New modules 'at-internal', 'openat-h', split off from module 'openat'.
[gnulib.git] / ChangeLog
1 2011-11-05  Bruno Haible  <bruno@clisp.org>
2
3         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6         * modules/openat (Description): Add reference to POSIX function.
7         (Files): Remove lib/openat.h, lib/openat-proc.c.
8         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9         intprops, unistd.
10         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
12         gl_FCNTL_MODULE_INDICATOR.
13         (Include): Remove unistd.h, openat.h.
14         * modules/areadlinkat (Files): Add lib/at-func.c.
15         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
16         openat-die, openat-h, save-cwd.
17         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
18         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
19         openat-die, openat-h, save-cwd, unistd.
20         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
21         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
22         openat-h, save-cwd. Remove fcntl-h, openat.
23         * modules/fchmodat (Files): Remove lib/openat.h.
24         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25         openat, stdbool, unistd.
26         * modules/fchownat (Files): Remove lib/openat.h.
27         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
28         openat, stdbool, sys_stat.
29         * modules/fdopendir (Files): Remove lib/openat-priv.h,
30         lib/openat-proc.c.
31         (Depends-on): Add at-internal.
32         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
33         * modules/fstatat (Files): Remove lib/openat.h.
34         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
35         stdbool, unistd.
36         * modules/fts (Depends-on): Add openat-h.
37         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
38         openat.
39         * modules/mkdirat (Files): Remove lib/openat.h.
40         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41         openat, stdbool, sys_stat.
42         * modules/mkfifoat (Files): Add lib/at-func.c.
43         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44         openat-h, save-cwd. Remove fcntl-h, openat.
45         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46         * modules/readlinkat (Files): Add lib/at-func.c.
47         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
48         openat-h, save-cwd. Remove fcntl-h, openat.
49         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
50         openat.
51         * modules/selinux-at (Files): Add lib/at-func.c.
52         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
53         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
54         * modules/symlinkat (Files): Add lib/at-func.c.
55         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
56         openat-h, save-cwd. Remove fcntl-h, openat.
57         * modules/unlinkat (Files): Remove lib/openat.h.
58         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
59         stdbool.
60         * modules/utimensat (Files): Add lib/at-func.c.
61         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
62         openat-die, openat-h, save-cwd.
63         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
64         * modules/fdutimensat-tests (Depends-on): Add openat.
65         * modules/fstatat-tests (Depends-on): Add openat-h.
66         * modules/readlinkat-tests (Depends-on): Add openat.
67         * modules/symlinkat-tests (Depends-on): Add openat.
68
69 2011-11-05  Bruno Haible  <bruno@clisp.org>
70
71         openat: Include <stdbool.h>.
72         * lib/openat.c: Include <stdbool.h>.
73
74 2011-11-04  Bruno Haible  <bruno@clisp.org>
75
76         fchownat, renameat, unlinkat: Fix dependencies.
77         * modules/fchownat (Depends-on): Add fstatat.
78         * modules/renameat (Depends-on): Likewise.
79         * modules/unlinkat (Depends-on): Likewise.
80
81 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
82
83         openat: remove direct dependency on dirent
84         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
85         and hasn't been needed ever since fdopendir was split into its own
86         module on 2009-08-31.
87         * modules/openat (Depends-on): Remove dirent.
88
89 2011-11-04  Bruno Haible  <bruno@clisp.org>
90
91         renameat: Optimize code size.
92         * modules/renameat (configure.ac): Don't compile at-func2.c if
93         REPLACE_RENAMEAT is 1.
94
95 2011-11-04  Bruno Haible  <bruno@clisp.org>
96
97         openat tests: Fix file list.
98         * modules/openat-tests (Files): Add tests/test-open.h.
99
100 2011-11-04  Bruno Haible  <bruno@clisp.org>
101
102         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
103         * modules/fchmodat (Depends-on): Add openat-die.
104         * modules/fchownat (Depends-on): Likewise.
105         * modules/linkat (Depends-on): Likewise.
106         * modules/renameat (Depends-on): Likewise.
107         * modules/openat (Depends-on): Add dirent.
108
109 2011-11-04  Jim Meyering  <meyering@redhat.com>
110
111         at-func*.c: fix comments
112         * lib/at-func2.c: Correct/improve first-line comment.
113         * lib/at-func.c: Correct grammar in first-line comment.
114
115 2011-11-04  Bruno Haible  <bruno@clisp.org>
116
117         New module 'mkdirat', split off from module 'openat'.
118         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
119         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
120         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
121         * modules/mkdirat: New file, extracted from modules/openat.
122         * modules/openat (Files): Remove lib/mkdirat.c.
123         (Depends-on): Remove mkdir.
124         (configure.ac): Remove AC_LIBOBJ of mkdirat.
125         (Include): Remove <sys/stat.h>.
126         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
127         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
128         tests/test-mkdir.h.
129         (Depends-on): Remove ignore-value.
130         (Makefile.am): Remove rules for test-mkdirat.
131         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
132         of module 'openat'.
133         * NEWS: Mention the change.
134
135 2011-11-04  Bruno Haible  <bruno@clisp.org>
136
137         closedir: Avoid warning on mingw.
138         * lib/closedir.c: Include <unistd.h>.
139
140 2011-11-04  Bruno Haible  <bruno@clisp.org>
141
142         New module 'fstatat', split off from module 'openat'.
143         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
144         defined.
145         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
146         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
147         gl_FUNC_FSTATAT.
148         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
149         * modules/fstatat: New file, extracted from modules/openat.
150         * modules/openat (Files): Remove lib/fstatat.c.
151         (Depends-on): Remove lstat.
152         (configure.ac): Remove AC_LIBOBJ of fstatat.
153         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
154         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
155         tests/test-lstat.h, tests/test-stat.h.
156         (Depends-on): Remove getcwd-lgpl.
157         (Makefile.am): Remove rules for test-fstatat.
158         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
159         of module 'openat'.
160         * NEWS: Mention the change.
161         * modules/getcwd (Depends-on): Add fstatat.
162         * modules/linkat (Depends-on): Likewise.
163         * modules/mkfifoat-tests (Depends-on): Likewise.
164         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
165
166 2011-11-03  Bruno Haible  <bruno@clisp.org>
167
168         New module 'unlinkat', split off from module 'openat'.
169         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
170         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
171         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
172         * modules/unlinkat: New file, extracted from modules/openat. Correct
173         the dependency conditions.
174         * modules/openat (Files): Remove lib/unlinkat.c.
175         (Depends-on): Remove rmdir, unlink.
176         (configure.ac): Remove AC_LIBOBJ of unlinkat.
177         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
178         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
179         tests/test-rmdir.h, tests/test-unlink.h.
180         (Depends-on): Remove unlinkdir.
181         (Makefile.am): Remove rules for test-unlinkat.
182         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
183         of module 'openat'.
184         * NEWS: Mention the change.
185         * modules/linkat-tests (Depends-on): Add unlinkat.
186         * modules/mkfifoat-tests (Depends-on): Likewise.
187         * modules/readlinkat-tests (Depends-on): Likewise.
188
189 2011-11-02  Bruno Haible  <bruno@clisp.org>
190
191         New module 'fchmodat', split off from module 'openat'.
192         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
193         defined.
194         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
195         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
196         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
197         * modules/fchmodat: New file, extracted from modules/openat.
198         * modules/openat (Files): Remove lib/fchmodat.c.
199         (configure.ac): Remove AC_LIBOBJ of fchmodat.
200         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
201         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
202         (Makefile.am): Remove rules for test-fchmodat.
203         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
204         of module 'openat'.
205         * NEWS: Mention the change.
206
207 2011-11-02  Jim Meyering  <meyering@redhat.com>
208
209         putenv: indent #definition of "environ" to placate cppi
210         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
211
212         gitlog-to-changelog: provide a ChangeLog-repair mechanism
213         Git logs are often treated as immutable, because editing them
214         changes the SHA1 checksums of all descendants.  Thus, errors in
215         git logs tend to stay there forever.  However, when we generate
216         a ChangeLog file -- typically for distribution -- from that git log,
217         we can actually make corrections in the generated file.  The key
218         lies in recording in machine-readable/applicable form the desired
219         corrections.  See --help for description and an example.
220         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
221         (usage): Describe it; alphabetize option descriptions.
222         (main): Honor the new option, carefully.
223
224 2011-11-01  Jim Meyering  <meyering@redhat.com>
225
226         gitlog-to-changelog: avoid an infloop
227         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
228         that ends up being empty.
229
230 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
231
232         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
233         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
234         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
235         contains (possibly-quoted) backslashes.  This should avoid
236         all-too-common shell bugs if COMPLICATED contains backslashes in
237         the "wrong" places.  Reported by David Evans in
238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
239         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
240         because we want ASCII ranges.  Is there some reason we don't use
241         the C locale everywhere in this script?
242         (func_module, top level): Avoid unwanted pathname expansion when
243         $repo_url_prefix or $repo_url_suffix_repl contain shell
244         metacharacters like '?' and '*'.
245
246 2011-11-01  Bruno Haible  <bruno@clisp.org>
247
248         fchownat: Improve description.
249         * modules/fchownat (Description): Add link to function.
250
251 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
252
253         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
254         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
256         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
257
258 2011-11-01  Bruno Haible  <bruno@clisp.org>
259
260         alignof: Avoid collision with stdalign module.
261         * lib/alignof.h (alignof): Remove macro.
262         * NEWS: Mention the change.
263         Reported by Paul Eggert.
264
265 2011-11-01  Bruno Haible  <bruno@clisp.org>
266
267         New module 'fchownat', split off from module 'openat'.
268         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
269         defined.
270         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
271         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
272         invoke gl_FUNC_FCHOWNAT.
273         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
274         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
275         * modules/fchownat: New file, extracted from modules/openat.
276         * modules/openat (Files): Remove lib/fchownat.c.
277         (Depends-on): Remove lchown.
278         (configure.ac): Remove AC_LIBOBJ of fchownat.
279         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
280         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
281         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
282         (Depends-on): Remove mgetgroups, usleep, stat-time.
283         (configure.ac): Remove test for getegid.
284         (Makefile.am): Remove rules for test-fchownat.
285         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
286         of module 'openat'.
287         * NEWS: Mention the change.
288
289 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
290
291         stdalign: port better to MSVC and to Sun C 5.11
292         This fixes some of the problems reported by Bruno Haible in
293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
294         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
295         shortcomings of MSVC and of Sun C 5.11.
296         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
297         around __declspec arg.
298         * modules/stdalign-tests (Files): Add tests/macros.h.
299         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
300         Include macros.h, for ASSERT.
301         (DECLARE_ALIGNED): Remove.
302         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
303         to catch bug), and to 1 if not (simplifies the rest of the code).
304         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
305         (CHECK_AUTO): Remove.
306         (CHECK_ALIGNED): Check only the alignment of the static vars,
307         since auto var alignment isn't supported by Sun C 5.11.
308         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
309         ASSERT failures are easier to diagnose.
310
311 2011-10-31  Bruno Haible  <bruno@clisp.org>
312
313         doc about some IRIX 5.3 problems.
314         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
315         on IRIX 5.3.
316         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
317         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
318         5.3.
319         * doc/posix-functions/grantpt.texi: Likewise.
320         * doc/posix-functions/unlockpt.texi: Likewise.
321         * doc/posix-functions/lgamma.texi: Likewise.
322         * doc/posix-functions/nextafter.texi: Likewise.
323         * doc/posix-functions/remainder.texi: Likewise.
324         * doc/posix-functions/select.texi: Mention misplaced declaration on
325         IRIX 5.3.
326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
327
328 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
329
330         gitlog-to-changelog: fix git-log invocation.
331         git-log mishandles date strings before 1970-01-01 UTC, and there is
332         no use to specify --since=1970-01-01 by default anyway.
333         * build-aux/gitlog-to-changelog: By default, when no --since option
334         was given, do not specify explicit --since option to git-log.
335
336 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
337
338         gitlog-to-changelog: new option --append-dot.
339         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
340         first non-blank line of each commit message terminated with a dot.
341
342 2011-10-30  Bruno Haible  <bruno@clisp.org>
343
344         ffsl, ffsll: Avoid compilation error due to 'restrict'.
345         * lib/ffsl.h: Include <config.h>.
346         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
347
348 2011-10-30  Jim Meyering  <meyering@redhat.com>
349
350         GNUmakefile: reenable "make syntax-check" for most projects
351         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
352         build-aux variable", "syntax-check" would do nothing but succeed with
353         the "No version control files detected..." diagnostic (unless you
354         happened to override _build-aux via cfg.mk).
355         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
356         to precede inclusion of maint.mk.  Otherwise, these variables would
357         be used undefined in any project that does not override the default.
358
359 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
360
361         gitlog-to-changelog: treat a message with only blank lines as empty.
362         * build-aux/gitlog-to-changelog: Move the code that removes leading and
363         trailing blank lines before the code that issues a warning about an
364         empty commit message.
365
366 2011-10-30  Jim Meyering  <meyering@redhat.com>
367
368         test-parse-datetime.c: avoid new DST-related false positive test failure
369         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
370         based on the time/date we'll convert, not the current time.
371         Otherwise, the moment we cross a DST boundary like today's in
372         Europe, (CEST to CET), that offset ends up being one hour off.
373
374 2011-10-27  Bruno Haible  <bruno@clisp.org>
375
376         fstat: Tweak documentation.
377         * modules/fstat (Description): More precise description.
378
379 2011-10-27  Bruno Haible  <bruno@clisp.org>
380
381         Update documentation regarding 'largefile' module.
382         * doc/posix-functions/fstat.texi: Tweak wording.
383         * doc/posix-functions/opendir.texi: Mention that the module fixes the
384         problems with huge directories and/or small ino_t types.
385         * doc/posix-functions/readdir.texi: Likewise.
386         * doc/posix-functions/rewinddir.texi: Likewise.
387
388 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
389
390         maint.mk: don't maintain a second build-aux variable.
391         * maint.mk (build_aux): Removed.  The maintainer-makefile module
392         depends on GNUmakefile, which already maintains a cfg.mk
393         overridable $(_build-aux) for projects with a non-standard
394         build-aux directory location, although without the $(srcdir)
395         prefix.  Use that variable consistently instead of introducing a
396         second one.  Adjust all call sites.
397
398 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
399
400         Add stdalign module and use it in other modules.
401         This is based on a previous proposal by Bruno Haible
402         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
403
404         stdalign: new module
405         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
406         * modules/stdalign: New files.
407         * MODULES.html.sh (c1x_core_properties): Add stdalign.
408         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
409
410         stdalign-tests: new module
411         * modules/stdalign-tests, tests/test-stdalign.c: New files.
412
413         argp: use stdalign
414         * lib/argp-parse.c: Include <stdalign.h>.
415         (alignof): Remove.
416         * modules/argp (Depends-on): Add stdalign.
417
418         crypto libraries: use stdalign
419         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
420         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
421         Do not include <stdlib.h> twice, in md4.c.
422         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
423         because we are accessing a pointer's bit-pattern, not a size.
424         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
425         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
426         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
427         * modules/crypto/sha512: Likewise.
428
429         sys_socket: use stdalign, not alignof
430         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
431         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
432
433 2011-10-27  Bruno Haible  <bruno@clisp.org>
434
435         raise test: Avoid a test failure on Linux/MIPS.
436         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
437         because 99 is a valid signal on Linux/MIPS.
438
439 2011-10-27  Bruno Haible  <bruno@clisp.org>
440
441         nonblocking tests: Fix test failure on Linux/MIPS.
442         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
443         Set to 270000.
444
445 2011-10-27  Bruno Haible  <bruno@clisp.org>
446
447         utimensat: Work around problem on Linux/hppa.
448         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
449         values.
450         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
451
452 2011-10-25  Jim Meyering  <meyering@redhat.com>
453
454         maint.mk: fix a bug in sc_prohibit_stddef_without_use
455         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
456         after symbols like NULL, size_t, etc.
457         Reported by Alfred M. Szmidt.
458
459         maint.mk: exempt ENODATA from a syntax-check rule
460         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
461         from the sc_prohibit_always-defined_macros syntax-check rule.
462         Add a comment.  See this for more details:
463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
464
465 2011-10-23  Jim Meyering  <meyering@redhat.com>
466
467         fts: close parent dir FD before returning from post-traversal fts_read
468         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
469         unlink A, even though an FD open on A remained.  This is suboptimal
470         (holding a file descriptor open longer than needed), but otherwise not
471         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
472         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
473         that represents a real problem: it causes the removal of A to fail
474         with e.g., "rm: cannot remove `A': Device or resource busy"
475
476         fts visits each directory twice and keeps a cache (fts_fd_ring) of
477         directory file descriptors.  After completing the final, FTS_DP,
478         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
479         cache, but then proceeded to add a new FD to it via the subsequent
480         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
481         final file descriptor would be closed only via fts_close's call to
482         fd_ring_clear.  Now, it is usually closed earlier, via the final
483         FTS_DP-returning fts_read call.
484         * lib/fts.c (restore_initial_cwd): New function, converted from
485         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
486         Update callers.
487         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
488         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
489
490 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
491             Bruno Haible  <bruno@clisp.org>
492             Jim Meyering  <jim@meyering.net>
493
494         readme-release: improve safety of release prep instructions.
495         * README-release: Don't git pull all branches when only master
496         is needed for the release process.
497         Run make maintainer-clean before changing trees and merging.
498         Don't try to run ./configure right after git pull in case files
499         that influence the bootstrap process have changed, move the
500         ./configure step to after running ./bootstrap.
501         Don't bootstrap "one last time"... it's the first time!
502
503 2011-10-22  Bruno Haible  <bruno@clisp.org>
504
505         errno, strerror-override: Support for MSVC 10.
506         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
507         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
508         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
509         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
510         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
511         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
512         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
513         Assign values compatible with MSVC 10.
514         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
515         New macros.
516         (GNULIB_defined_EWINSOCK): New macro.
517         * lib/strerror-override.c (strerror_override): Update accordingly.
518         * lib/strerror-override.h: Likewise.
519         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
520         longer equal to the corresponding errno value.
521         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
522
523 2011-10-22  Bruno Haible  <bruno@clisp.org>
524
525         perror: Recognize when test program crashes.
526         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
527         strerror, set gl_cv_func_perror_works to no.
528         Reported by Daniel Richard G. <skunk@iskunk.org>.
529
530         perror: Fix indentation.
531         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
532
533 2011-10-22  Bruno Haible  <bruno@clisp.org>
534
535         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
536         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
537         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
538         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
539         functions, not as a macro.
540         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
541         macros.
542         (isfinite, isinf, isnan, signbit): Check overloaded functions and
543         absence of macro.
544         Suggested by Eric Blake.
545         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
546
547 2011-10-21  Bruno Haible  <bruno@clisp.org>
548
549         relocatable-prog-wrapper: Don't leave object files behind.
550         * build-aux/install-reloc: Re-synchronize list of .o files to be
551         removed with list of compilation units.
552
553 2011-10-20  Bruno Haible  <bruno@clisp.org>
554
555         openpty, posix_openpt: Remove code duplication.
556         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
557         * lib/openpty.c: Include <stdlib.h>.
558         (openpty): Use posix_openpt on all platforms except IRIX.
559         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
560
561 2011-10-20  Bruno Haible  <bruno@clisp.org>
562
563         unlockpt: Detect invalid argument.
564         * lib/unlockpt.c: Include <fcntl.h>.
565         (unlockpt): Check whether fd is valid, using fcntl().
566         * modules/unlockpt (Depends-on): Add fcntl-h.
567
568 2011-10-20  Bruno Haible  <bruno@clisp.org>
569
570         openpty: Avoid compilation error on AIX 6.1.
571         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
572
573 2011-10-20  Bruno Haible  <bruno@clisp.org>
574
575         posix_openpt: Support for OpenBSD.
576         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
577         (posix_openpt) [OpenBSD]: New code.
578         * lib/grantpt.c: Include <fcntl.h>.
579         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
580         * modules/grantpt (Depends-on): Add fcntl-h.
581
582 2011-10-20  Bruno Haible  <bruno@clisp.org>
583
584         posix_openpt test: Coding style.
585         * tests/test-posix_openpt.c: Use GNU coding style.
586
587 2011-10-20  Bruno Haible  <bruno@clisp.org>
588
589         grantpt: Support --avoid=pt_chown.
590         * modules/grantpt (Files): Add lib/pty-private.h.
591
592 2011-10-20  Bruno Haible  <bruno@clisp.org>
593
594         posix_openpt: Fix autoconf macro.
595         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
596         unneeded check for _getpty.
597
598 2011-10-20  Bruno Haible  <bruno@clisp.org>
599
600         openpty: Update comments.
601         * lib/openpty.c: Add comments about Minix.
602
603 2011-10-19  Eric Blake  <eblake@redhat.com>
604
605         openpty: relax license
606         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
607
608         pt_chown: use configmake to simplify build
609         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
610
611         ptsname and others: relax license
612         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
613         * modules/unlockpt (License): Likewise.
614         * modules/pt_chown (License): Likewise.
615         * modules/ptsname (License): Likewise.
616         * modules/ttyname_r (License): Likewise.
617
618 2011-10-19  Jim Meyering  <meyering@redhat.com>
619
620         posix_openpt: remove spurious #endif
621         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
622
623 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
624
625         maint.mk: Respect $(build_aux) in web-manual rule.
626         * top/maint.mk (web-manual): Find gen-announce script in user's
627         $(build_aux) directory instead of hard-coding 'build-aux'.
628
629 2011-10-19  Bruno Haible  <bruno@clisp.org>
630
631         posix_openpt: Fix compilation error.
632         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
633         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
634         Mention the openpty module as an alternative.
635
636 2011-10-19  Bruno Haible  <bruno@clisp.org>
637
638         Support for old NeXTstep 3.3 frexp().
639         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
640         execution time of the test to 5 seconds.
641         Reported by Daniel Richard G. <skunk@iskunk.org>.
642
643 2011-10-19  Bruno Haible  <bruno@clisp.org>
644
645         Support for old NeXTstep 3.3 sed.
646         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
647         part, use /.../, not \|...|. Escape periods in the header file name.
648         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
649         Reported by Daniel Richard G. <skunk@iskunk.org>.
650
651 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
652
653         Support for old NeXTstep 3.3 gcc.
654         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
655         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
656         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
657         * lib/spawn.in.h (_Restrict_arr_): Likewise.
658         * lib/regex.h (_Restrict_arr_): Likewise.
659         * lib/regex_internal.h (re_token_t): Likewise.
660         * lib/regexec.c (check_node_accept_bytes): Likewise.
661         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
662
663 2011-10-18  Eric Blake  <eblake@redhat.com>
664
665         posix_openpt: new module
666         * modules/posix_openpt: New module.
667         * m4/posix_openpt.m4: New file.
668         * lib/posix_openpt.c: Likewise.
669         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
670         (gl_STDLIB_H_DEFAULTS): Set defaults.
671         * modules/stdlib (Makefile.am): Substitute macros.
672         * lib/stdlib.in.h (posix_openpt): Declare.
673         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
674         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
675         * modules/posix_openpt-tests: New test module.
676         * tests/test-posix_openpt.c: New test.
677
678 2011-10-15  Bruno Haible  <bruno@clisp.org>
679
680         xstrtoll: Fix compilation failure.
681         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
682         from lib/strtol.c.
683         * doc/posix-headers/limits.texi: Mention missing numerical limits on
684         some platforms.
685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
686
687 2011-10-15  Bruno Haible  <bruno@clisp.org>
688
689         vasnprintf: Optimize bit search operation.
690         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
692         gl_DOUBLE_EXPONENT_LOCATION.
693         * modules/vasnprintf (Files): Add m4/exponentd.m4.
694         * modules/unistdio/u8-vasnprintf (Files): Likewise.
695         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
696         * modules/unistdio/u16-vasnprintf (Files): Likewise.
697         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
698         * modules/unistdio/u32-vasnprintf (Files): Likewise.
699         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
700         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
701         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
702
703 2011-10-15  Bruno Haible  <bruno@clisp.org>
704
705         vasnprintf: Fix comments.
706         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
707
708 2011-10-14  Bruno Haible  <bruno@clisp.org>
709
710         Tests for module 'integer_length_ll'.
711         * modules/integer_length_ll-tests: New file.
712         * tests/test-integer_length_ll.c: New file.
713
714         New module 'integer_length_ll'.
715         * lib/integer_length_ll.c: New file.
716         * modules/integer_length_ll: New file.
717
718 2011-10-14  Bruno Haible  <bruno@clisp.org>
719
720         Tests for module 'integer_length_l'.
721         * modules/integer_length_l-tests: New file.
722         * tests/test-integer_length_l.c: New file.
723
724         New module 'integer_length_l'.
725         * lib/integer_length_l.c: New file.
726         * modules/integer_length_l: New file.
727
728 2011-10-14  Bruno Haible  <bruno@clisp.org>
729
730         Tests for module 'integer_length'.
731         * modules/integer_length-tests: New file.
732         * tests/test-integer_length.c: New file.
733
734         New module 'integer_length'.
735         * lib/integer_length.h: New file.
736         * lib/integer_length.c: New file.
737         * modules/integer_length: New file.
738
739 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
740
741         popen: Fix dependency conditions.
742         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
743
744 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
745
746         perror: Fix autoconf test.
747         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
748         <stdlib.h> and <string.h>.
749
750 2011-10-14  Bruno Haible  <bruno@clisp.org>
751
752         ffsl: Optimize on 64-bit platforms.
753         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
754         unrolling.
755
756 2011-10-13  Bruno Haible  <bruno@clisp.org>
757
758         ffsl: Optimize on 32-bit platforms.
759         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
760         use ffs() without a loop.
761
762         ffsl, ffsll: Optimize for GCC.
763         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
764         * lib/ffsl.c (GCC_BUILTIN): New macro.
765         * lib/ffsll.c (GCC_BUILTIN): Likewise.
766
767 2011-10-13  Bruno Haible  <bruno@clisp.org>
768
769         ffs, bcopy, memset: Support symbol renaming via config.h.
770         * lib/ffs.c: Include <config.h>.
771         * lib/bcopy.c: Likewise.
772         * lib/memset.c: Likewise.
773
774 2011-10-10  Bruno Haible  <bruno@clisp.org>
775
776         atanl: Simplify for platforms where 'long double' == 'double'.
777         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
778         alternative implementation.
779         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
780         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
781         * modules/atanl (Depends-on): Add atan. Update conditions.
782
783 2011-10-10  Bruno Haible  <bruno@clisp.org>
784
785         acosl: Simplify for platforms where 'long double' == 'double'.
786         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
787         alternative implementation.
788         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
789         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
790         * modules/acosl (Depends-on): Add acos. Update conditions.
791
792 2011-10-10  Bruno Haible  <bruno@clisp.org>
793
794         asinl: Simplify for platforms where 'long double' == 'double'.
795         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
796         alternative implementation.
797         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
798         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
799         * modules/asinl (Depends-on): Add asin. Update conditions.
800
801 2011-10-10  Bruno Haible  <bruno@clisp.org>
802
803         tanl: Simplify for platforms where 'long double' == 'double'.
804         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
805         implementation.
806         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
807         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
808         * modules/tanl (Depends-on): Add tan. Update conditions.
809         (configure.ac): Don't compile trigl.c if
810         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
811
812 2011-10-10  Bruno Haible  <bruno@clisp.org>
813
814         cosl: Simplify for platforms where 'long double' == 'double'.
815         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
816         implementation.
817         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
818         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
819         * modules/cosl (Depends-on): Add cos. Update conditions.
820         (configure.ac): Don't compile sincosl.c and trigl.c if
821         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
822
823 2011-10-10  Bruno Haible  <bruno@clisp.org>
824
825         sinl: Simplify for platforms where 'long double' == 'double'.
826         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
827         implementation.
828         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
829         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
830         * modules/sinl (Depends-on): Add sin. Update conditions.
831         (configure.ac): Don't compile sincosl.c and trigl.c if
832         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
833
834 2011-10-10  Bruno Haible  <bruno@clisp.org>
835
836         logl: Simplify for platforms where 'long double' == 'double'.
837         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
838         implementation.
839         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
840         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
841         * modules/logl (Depends-on): Add log. Update conditions.
842
843 2011-10-10  Bruno Haible  <bruno@clisp.org>
844
845         expl: Simplify for platforms where 'long double' == 'double'.
846         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
847         implementation.
848         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
849         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
850         * modules/expl (Depends-on): Add exp. Update conditions.
851
852 2011-10-10  Bruno Haible  <bruno@clisp.org>
853
854         sqrtl: Simplify for platforms where 'long double' == 'double'.
855         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
856         alternative implementation.
857         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
858         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
859         * modules/sqrtl (Depends-on): Update conditions.
860
861 2011-10-10  Bruno Haible  <bruno@clisp.org>
862
863         ldexpl: Simplify for platforms where 'long double' == 'double'.
864         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
865         alternative implementation.
866         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
867         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
868         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
869
870 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
871
872         ffsll: set correct witness
873         * modules/ffsll (configure.ac): Fix typo.
874
875 2011-10-10  Bruno Haible  <bruno@clisp.org>
876
877         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
878         * lib/printf-frexpl.c: Include <config.h>.
879         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
880         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
881         second time.
882         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
883         gl_LONG_DOUBLE_VS_DOUBLE.
884         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
885         conditions.
886
887 2011-10-10  Bruno Haible  <bruno@clisp.org>
888
889         frexpl: Simplify for platforms where 'long double' == 'double'.
890         * lib/frexpl.c: Include <config.h>.
891         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
892         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
893         time.
894         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
895         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
896         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
897         * modules/frexpl (Depends-on): Add frexp. Update conditions.
898         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
899         conditions.
900
901 2011-10-10  Jim Meyering  <meyering@redhat.com>
902
903         test-renameat: don't leave behind a temporary file
904         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
905           ERROR: files left in build directory after distclean:
906           ./gltests/test-renameat.too
907           make[1]: *** [distcleancheck] Error 1
908         Reported by Tom G. Christensen.
909
910 2011-10-09  Bruno Haible  <bruno@clisp.org>
911
912         rint: Determine RINT_LIBM correctly on AIX 7.
913         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
914         directly, not only through a function pointer. Also accept an optional
915         4th argument with extra code.
916         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
917         rintf() call by gcc when optimizing.
918
919         mathfunc.m4: Refactor.
920         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
921         m4 variable.
922
923 2011-10-09  Bruno Haible  <bruno@clisp.org>
924
925         rintl: Simplify for platforms where 'long double' == 'double'.
926         * lib/rintl.c: Include <config.h>.
927         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
928         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
929         time.
930         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
931         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
932         * modules/rintl (Depends-on): Add rint. Update conditions.
933
934 2011-10-09  Bruno Haible  <bruno@clisp.org>
935
936         roundl: Simplify for platforms where 'long double' == 'double'.
937         * lib/roundl.c: Include <config.h>.
938         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
939         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
940         time.
941         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
942         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
943         * modules/roundl (Depends-on): Add round. Update conditions.
944
945 2011-10-09  Bruno Haible  <bruno@clisp.org>
946
947         truncl: Simplify for platforms where 'long double' == 'double'.
948         * lib/truncl.c: Include <config.h>.
949         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
950         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
951         time.
952         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
953         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
954         * modules/truncl (Depends-on): Add trunc. Update conditions.
955
956 2011-10-09  Bruno Haible  <bruno@clisp.org>
957
958         ceill: Simplify for platforms where 'long double' == 'double'.
959         * lib/ceill.c: Include <config.h>.
960         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
961         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
962         time.
963         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
964         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
965         * modules/ceill (Depends-on): Add ceil. Update conditions.
966
967 2011-10-09  Bruno Haible  <bruno@clisp.org>
968
969         floorl: Simplify for platforms where 'long double' == 'double'.
970         * lib/floorl.c: Include <config.h>.
971         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
972         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
973         time.
974         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
975         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
976         * modules/floorl (Depends-on): Add floor. Update conditions.
977
978 2011-10-09  Bruno Haible  <bruno@clisp.org>
979
980         rint: Fix ordering constraints.
981         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
982         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
983         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
984
985 2011-10-09  Bruno Haible  <bruno@clisp.org>
986
987         copysignl: Simplify for platforms where 'long double' == 'double'.
988         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
989         alternative.
990         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
991         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
992         * modules/copysignl (Depends-on): Add copysign. Update conditions.
993
994 2011-10-09  Bruno Haible  <bruno@clisp.org>
995
996         Tests for module 'rintl'.
997         * modules/rintl-tests: New file.
998         * tests/test-rintl.c: New file.
999
1000         New module 'rintl'.
1001         * lib/math.in.h (rintl): New declaration.
1002         * lib/rintl.c: New file.
1003         * m4/rintl.m4: New file.
1004         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1006         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1007         * modules/rintl: New file.
1008         * tests/test-math-c++.cc: Check the declaration of rintl.
1009         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1010         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1011         * doc/posix-functions/rintl.texi: Mention the new module.
1012
1013 2011-10-09  Bruno Haible  <bruno@clisp.org>
1014
1015         Tests for module 'rintf'.
1016         * modules/rintf-tests: New file.
1017         * tests/test-rintf.c: New file.
1018
1019         New module 'rintf'.
1020         * lib/math.in.h (rintf): New declaration.
1021         * lib/rintf.c: New file.
1022         * m4/rintf.m4: New file.
1023         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1025         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1026         * modules/rintf: New file.
1027         * tests/test-math-c++.cc: Check the declaration of rintf.
1028         * doc/posix-functions/rintf.texi: Mention the new module.
1029
1030 2011-10-09  Bruno Haible  <bruno@clisp.org>
1031
1032         rint: Support for MSVC.
1033         * lib/math.in.h (rint): New declaration.
1034         * lib/rint.c: New file.
1035         * m4/rint.m4: New file.
1036         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1038         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1039         * modules/rint (Description): Fix.
1040         (Files): Add lib/rint.c, m4/rint.m4.
1041         (Depends-on): Add math.
1042         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1043         gl_MATH_MODULE_INDICATOR.
1044         * tests/test-math-c++.cc: Check the declaration of rint.
1045         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1046         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1047         * doc/posix-functions/rint.texi: Mention the replacement provided by
1048         the module.
1049
1050         rint tests: More tests.
1051         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1052         minus-zero.h, infinity.h, nan.h.
1053         (main): Skip the test if the current rounding mode is not standard. Add
1054         tests for negative numbers, minus zero, infinity, NaN.
1055         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1056         tests/nan.h.
1057         (Depends-on): Add isnand-nolibm.
1058
1059 2011-10-09  Bruno Haible  <bruno@clisp.org>
1060
1061         Tests for module 'copysignl'.
1062         * modules/copysignl-tests: New file.
1063         * tests/test-copysignl.c: New file.
1064
1065         New module 'copysignl'.
1066         * lib/math.in.h (copysignl): New declaration.
1067         * lib/copysignl.c: New file.
1068         * m4/copysignl.m4: New file.
1069         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1070         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1071         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1072         HAVE_COPYSIGNL.
1073         * modules/copysignl: New file.
1074         * tests/test-math-c++.cc: Check the declaration of copysignl.
1075         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1076         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1077         * doc/posix-functions/copysignl.texi: Mention the new module.
1078
1079 2011-10-09  Bruno Haible  <bruno@clisp.org>
1080
1081         Tests for module 'copysignf'.
1082         * modules/copysignf-tests: New file.
1083         * tests/test-copysignf.c: New file.
1084
1085         New module 'copysignf'.
1086         * lib/math.in.h (copysignf): New declaration.
1087         * lib/copysignf.c: New file.
1088         * m4/copysignf.m4: New file.
1089         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1091         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1092         HAVE_COPYSIGNF.
1093         * modules/copysignf: New file.
1094         * tests/test-math-c++.cc: Check the declaration of copysignf.
1095         * doc/posix-functions/copysignf.texi: Mention the new module.
1096
1097 2011-10-09  Bruno Haible  <bruno@clisp.org>
1098
1099         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1100         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1102         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1103         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1104         gl_SIGNAL_H_DEFAULTS.
1105
1106 2011-10-09  Bruno Haible  <bruno@clisp.org>
1107
1108         poll: Make macro safer.
1109         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1110         ac_cv_header_poll_h is not set.
1111
1112 2011-10-09  Bruno Haible  <bruno@clisp.org>
1113
1114         copysign: Provide replacement.
1115         * lib/math.in.h (copysign): New declaration.
1116         * lib/copysign.c: New file.
1117         * m4/copysign.m4: New file.
1118         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1120         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1121         HAVE_COPYSIGN.
1122         * modules/copysign (Description): Clarify.
1123         (Files): Add lib/copysign.c, m4/copysign.m4.
1124         (Depends-on): Add math, signbit.
1125         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1126         gl_MATH_MODULE_INDICATOR.
1127         * tests/test-math-c++.cc: Check the declaration of copysign.
1128         * doc/posix-functions/copysign.texi: Mention the effects of the module
1129         on Minix and MSVC.
1130
1131 2011-10-09  Bruno Haible  <bruno@clisp.org>
1132
1133         isinf: Ensure macro on AIX 5.1.
1134         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1135         macro.
1136         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1137
1138 2011-10-09  Bruno Haible  <bruno@clisp.org>
1139
1140         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1141         * modules/snprintf-posix-tests (configure.ac): Require
1142         gl_LONG_DOUBLE_VS_DOUBLE.
1143         * modules/sprintf-posix-tests (configure.ac): Likewise.
1144         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1145         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1146         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1147         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1148         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1149         tests on platforms where 'long double' is the same as 'double'.
1150         * tests/test-sprintf-posix.h (test_function): Likewise.
1151         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1152         * tests/test-vasprintf-posix.c (test_function): Likewise.
1153
1154         *printf: Fix for platforms where 'long double' == 'double'.
1155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1156         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1157         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1158         * modules/fprintf-posix (Files): Likewise.
1159         * modules/obstack-printf-posix (Files): Likewise.
1160         * modules/snprintf-posix (Files): Likewise.
1161         * modules/sprintf-posix (Files): Likewise.
1162         * modules/vasnprintf (Files): Likewise.
1163         * modules/vasnprintf-posix (Files): Likewise.
1164         * modules/vasprintf-posix (Files): Likewise.
1165         * modules/vdprintf-posix (Files): Likewise.
1166         * modules/vfprintf-posix (Files): Likewise.
1167         * modules/vsnprintf-posix (Files): Likewise.
1168         * modules/vsprintf-posix (Files): Likewise.
1169         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1170         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1171         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1172         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1173         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1174         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1175         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1176
1177         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1178         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1179         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1180         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1181         'long double'.
1182         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1183
1184         isinf: Fix for platforms where 'long double' == 'double'.
1185         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1186         Don't blindly assume 80-bit 'long double'.
1187
1188         isfinite: Fix for platforms where 'long double' == 'double'.
1189         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1190         Don't blindly assume 80-bit 'long double'.
1191
1192         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1193         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1194         * modules/isfinite-tests (configure.ac): Require
1195         gl_LONG_DOUBLE_VS_DOUBLE.
1196         * modules/isinf-tests (configure.ac): Likewise.
1197         * modules/isnan-tests (configure.ac): Likewise.
1198         * modules/isnanl-tests (configure.ac): Likewise.
1199         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1200         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1201         tests on platforms where 'long double' is the same as 'double'.
1202         * tests/test-isinf.c (test_isinfl): Likewise.
1203         * tests/test-isnan.c (test_long_double): Likewise.
1204         * tests/test-isnanl.h (main): Likewise.
1205
1206 2011-10-08  Bruno Haible  <bruno@clisp.org>
1207
1208         Tests for module 'tanhf'.
1209         * modules/tanhf-tests: New file.
1210         * tests/test-tanhf.c: New file.
1211
1212         New module 'tanhf'.
1213         * lib/math.in.h (tanhf): New declaration.
1214         * lib/tanhf.c: New file.
1215         * m4/tanhf.m4: New file.
1216         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1218         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1219         * modules/tanhf: New file.
1220         * tests/test-math-c++.cc: Check the declaration of tanhf.
1221         * doc/posix-functions/tanhf.texi: Mention the new module.
1222
1223         tanh: Use a .m4 file.
1224         * m4/tanh.m4: New file.
1225         * modules/tanh (Files): Add it.
1226         (configure.ac): Just invoke gl_FUNC_TANH.
1227
1228 2011-10-08  Bruno Haible  <bruno@clisp.org>
1229
1230         Tests for module 'coshf'.
1231         * modules/coshf-tests: New file.
1232         * tests/test-coshf.c: New file.
1233
1234         New module 'coshf'.
1235         * lib/math.in.h (coshf): New declaration.
1236         * lib/coshf.c: New file.
1237         * m4/coshf.m4: New file.
1238         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1240         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1241         * modules/coshf: New file.
1242         * tests/test-math-c++.cc: Check the declaration of coshf.
1243         * doc/posix-functions/coshf.texi: Mention the new module.
1244
1245         cosh: Use a .m4 file.
1246         * m4/cosh.m4: New file.
1247         * modules/cosh (Files): Add it.
1248         (configure.ac): Just invoke gl_FUNC_COSH.
1249
1250 2011-10-08  Bruno Haible  <bruno@clisp.org>
1251
1252         Tests for module 'sinhf'.
1253         * modules/sinhf-tests: New file.
1254         * tests/test-sinhf.c: New file.
1255
1256         New module 'sinhf'.
1257         * lib/math.in.h (sinhf): New declaration.
1258         * lib/sinhf.c: New file.
1259         * m4/sinhf.m4: New file.
1260         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1262         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1263         * modules/sinhf: New file.
1264         * tests/test-math-c++.cc: Check the declaration of sinhf.
1265         * doc/posix-functions/sinhf.texi: Mention the new module.
1266
1267         sinh: Use a .m4 file.
1268         * m4/sinh.m4: New file.
1269         * modules/sinh (Files): Add it.
1270         (configure.ac): Just invoke gl_FUNC_SINH.
1271
1272 2011-10-08  Bruno Haible  <bruno@clisp.org>
1273
1274         Tests for module 'atan2f'.
1275         * modules/atan2f-tests: New file.
1276         * tests/test-atan2f.c: New file.
1277
1278         New module 'atan2f'.
1279         * lib/math.in.h (atan2f): New declaration.
1280         * lib/atan2f.c: New file.
1281         * m4/atan2f.m4: New file.
1282         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1284         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1285         * modules/atan2f: New file.
1286         * tests/test-math-c++.cc: Check the declaration of atan2f.
1287         * doc/posix-functions/atan2f.texi: Mention the new module.
1288
1289         atan2: Use a .m4 file.
1290         * m4/atan2.m4: New file.
1291         * modules/atan2 (Files): Add it.
1292         (configure.ac): Just invoke gl_FUNC_ATAN2.
1293
1294 2011-10-08  Bruno Haible  <bruno@clisp.org>
1295
1296         Tests for module 'atanf'.
1297         * modules/atanf-tests: New file.
1298         * tests/test-atanf.c: New file.
1299
1300         New module 'atanf'.
1301         * lib/math.in.h (atanf): New declaration.
1302         * lib/atanf.c: New file.
1303         * m4/atanf.m4: New file.
1304         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1306         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1307         * modules/atanf: New file.
1308         * tests/test-math-c++.cc: Check the declaration of atanf.
1309         * doc/posix-functions/atanf.texi: Mention the new module.
1310
1311         atan: Use a .m4 file.
1312         * m4/atan.m4: New file.
1313         * modules/atan (Files): Add it.
1314         (configure.ac): Just invoke gl_FUNC_ATAN.
1315
1316 2011-10-08  Bruno Haible  <bruno@clisp.org>
1317
1318         Tests for module 'acosf'.
1319         * modules/acosf-tests: New file.
1320         * tests/test-acosf.c: New file.
1321
1322         New module 'acosf'.
1323         * lib/math.in.h (acosf): New declaration.
1324         * lib/acosf.c: New file.
1325         * m4/acosf.m4: New file.
1326         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1328         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1329         * modules/acosf: New file.
1330         * tests/test-math-c++.cc: Check the declaration of acosf.
1331         * doc/posix-functions/acosf.texi: Mention the new module.
1332
1333         acos: Use a .m4 file.
1334         * m4/acos.m4: New file.
1335         * modules/acos (Files): Add it.
1336         (configure.ac): Just invoke gl_FUNC_ACOS.
1337
1338 2011-10-08  Bruno Haible  <bruno@clisp.org>
1339
1340         Tests for module 'asinf'.
1341         * modules/asinf-tests: New file.
1342         * tests/test-asinf.c: New file.
1343
1344         New module 'asinf'.
1345         * lib/math.in.h (asinf): New declaration.
1346         * lib/asinf.c: New file.
1347         * m4/asinf.m4: New file.
1348         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1350         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1351         * modules/asinf: New file.
1352         * tests/test-math-c++.cc: Check the declaration of asinf.
1353         * doc/posix-functions/asinf.texi: Mention the new module.
1354
1355         asin: Use a .m4 file.
1356         * m4/asin.m4: New file.
1357         * modules/asin (Files): Add it.
1358         (configure.ac): Just invoke gl_FUNC_ASIN.
1359
1360 2011-10-08  Bruno Haible  <bruno@clisp.org>
1361
1362         Tests for module 'tanf'.
1363         * modules/tanf-tests: New file.
1364         * tests/test-tanf.c: New file.
1365
1366         New module 'tanf'.
1367         * lib/math.in.h (tanf): New declaration.
1368         * lib/tanf.c: New file.
1369         * m4/tanf.m4: New file.
1370         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1372         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1373         * modules/tanf: New file.
1374         * tests/test-math-c++.cc: Check the declaration of tanf.
1375         * doc/posix-functions/tanf.texi: Mention the new module.
1376
1377         tan: Use a .m4 file.
1378         * m4/tan.m4: New file.
1379         * modules/tan (Files): Add it.
1380         (configure.ac): Just invoke gl_FUNC_TAN.
1381
1382 2011-10-08  Bruno Haible  <bruno@clisp.org>
1383
1384         Tests for module 'cosf'.
1385         * modules/cosf-tests: New file.
1386         * tests/test-cosf.c: New file.
1387
1388         New module 'cosf'.
1389         * lib/math.in.h (cosf): New declaration.
1390         * lib/cosf.c: New file.
1391         * m4/cosf.m4: New file.
1392         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1393         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1394         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1395         * modules/cosf: New file.
1396         * tests/test-math-c++.cc: Check the declaration of cosf.
1397         * doc/posix-functions/cosf.texi: Mention the new module.
1398
1399         cos: Use a .m4 file.
1400         * m4/cos.m4: New file.
1401         * modules/cos (Files): Add it.
1402         (configure.ac): Just invoke gl_FUNC_COS.
1403
1404 2011-10-08  Bruno Haible  <bruno@clisp.org>
1405
1406         Tests for module 'sinf'.
1407         * modules/sinf-tests: New file.
1408         * tests/test-sinf.c: New file.
1409
1410         New module 'sinf'.
1411         * lib/math.in.h (sinf): New declaration.
1412         * lib/sinf.c: New file.
1413         * m4/sinf.m4: New file.
1414         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1416         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1417         * modules/sinf: New file.
1418         * tests/test-math-c++.cc: Check the declaration of sinf.
1419         * doc/posix-functions/sinf.texi: Mention the new module.
1420
1421         sin: Use a .m4 file.
1422         * m4/sin.m4: New file.
1423         * modules/sin (Files): Add it.
1424         (configure.ac): Just invoke gl_FUNC_SIN.
1425
1426 2011-10-08  Bruno Haible  <bruno@clisp.org>
1427
1428         Tests for module 'powf'.
1429         * modules/powf-tests: New file.
1430         * tests/test-powf.c: New file.
1431
1432         New module 'powf'.
1433         * lib/math.in.h (powf): New declaration.
1434         * lib/powf.c: New file.
1435         * m4/powf.m4: New file.
1436         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1438         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1439         * modules/powf: New file.
1440         * tests/test-math-c++.cc: Check the declaration of powf.
1441         * doc/posix-functions/powf.texi: Mention the new module.
1442
1443         pow: Use a .m4 file.
1444         * m4/pow.m4: New file.
1445         * modules/pow (Files): Add it.
1446         (configure.ac): Just invoke gl_FUNC_POW.
1447
1448 2011-10-08  Bruno Haible  <bruno@clisp.org>
1449
1450         Tests for module 'log10f'.
1451         * modules/log10f-tests: New file.
1452         * tests/test-log10f.c: New file.
1453
1454         New module 'log10f'.
1455         * lib/math.in.h (log10f): New declaration.
1456         * lib/log10f.c: New file.
1457         * m4/log10f.m4: New file.
1458         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1460         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1461         * modules/log10f: New file.
1462         * tests/test-math-c++.cc: Check the declaration of log10f.
1463         * doc/posix-functions/log10f.texi: Mention the new module.
1464
1465         log10: Use a .m4 file.
1466         * m4/log10.m4: New file.
1467         * modules/log10 (Files): Add it.
1468         (configure.ac): Just invoke gl_FUNC_LOG10.
1469
1470 2011-10-08  Bruno Haible  <bruno@clisp.org>
1471
1472         Tests for module 'logf'.
1473         * modules/logf-tests: New file.
1474         * tests/test-logf.c: New file.
1475
1476         New module 'logf'.
1477         * lib/math.in.h (logf): New declaration.
1478         * lib/logf.c: New file.
1479         * m4/logf.m4: New file.
1480         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1482         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1483         * modules/logf: New file.
1484         * tests/test-math-c++.cc: Check the declaration of logf.
1485         * doc/posix-functions/logf.texi: Mention the new module.
1486
1487         log: Use a .m4 file.
1488         * m4/log.m4: New file.
1489         * modules/log (Files): Add it.
1490         (configure.ac): Just invoke gl_FUNC_LOG.
1491
1492 2011-10-08  Bruno Haible  <bruno@clisp.org>
1493
1494         Tests for module 'expf'.
1495         * modules/expf-tests: New file.
1496         * tests/test-expf.c: New file.
1497
1498         New module 'expf'.
1499         * lib/math.in.h (expf): New declaration.
1500         * lib/expf.c: New file.
1501         * m4/expf.m4: New file.
1502         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1504         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1505         * modules/expf: New file.
1506         * tests/test-math-c++.cc: Check the declaration of expf.
1507         * doc/posix-functions/expf.texi: Mention the new module.
1508
1509         exp: Use a .m4 file.
1510         * m4/exp.m4: New file.
1511         * modules/exp (Files): Add it.
1512         (configure.ac): Just invoke gl_FUNC_EXP.
1513
1514 2011-10-08  Bruno Haible  <bruno@clisp.org>
1515
1516         Tests for module 'sqrtf'.
1517         * modules/sqrtf-tests: New file.
1518         * tests/test-sqrtf.c: New file.
1519
1520         New module 'sqrtf'.
1521         * lib/math.in.h (sqrtf): New declaration.
1522         * lib/sqrtf.c: New file.
1523         * m4/sqrtf.m4: New file.
1524         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1526         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1527         * modules/sqrtf: New file.
1528         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1529         * doc/posix-functions/sqrtf.texi: Mention the new module.
1530
1531 2011-10-08  Bruno Haible  <bruno@clisp.org>
1532
1533         Tests: Avoid link failures w.r.t. libintl.
1534         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1535         $(LIBINTL).
1536         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1537         $(LIBINTL).
1538         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1539         against $(LIBINTL).
1540         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1541         $(LIBINTL).
1542         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1543         $(LIBINTL).
1544         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1545
1546 2011-10-08  Bruno Haible  <bruno@clisp.org>
1547
1548         pow tests: Defeat compiler optimizations.
1549         * tests/test-pow.c (main): Assign arguments to x and y before use.
1550
1551 2011-10-08  Bruno Haible  <bruno@clisp.org>
1552
1553         gnulib-tool: Improve last commit.
1554         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1555         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1556         ignore dependencies that are not among the modules list.
1557
1558 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         gnulib-tool: don't follow dependencies to avoided modules
1561         This fixes a bug that is related to the previous one.
1562         * gnulib-tool (func_modules_transitive_closure)
1563         (func_emit_autoconf_snippets):
1564         Check whether a dependency is acceptable before using it.
1565         (--extract-dependencies): Report an error if --avoid is also used,
1566         since this combination of options is not yet supported.
1567
1568         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1569         Problem reported by Peter Dyballa in
1570         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1571         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1572         when echoing "$condition".
1573
1574 2011-10-07  Bruno Haible  <bruno@clisp.org>
1575
1576         Fix documentation about math functions on MacOS X.
1577         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1578         MacOS X 10.5.
1579         * doc/posix-functions/fdim.texi: Likewise.
1580         * doc/posix-functions/feclearexcept.texi: Likewise.
1581         * doc/posix-functions/fegetenv.texi: Likewise.
1582         * doc/posix-functions/fegetround.texi: Likewise.
1583         * doc/posix-functions/feholdexcept.texi: Likewise.
1584         * doc/posix-functions/feraiseexcept.texi: Likewise.
1585         * doc/posix-functions/fesetenv.texi: Likewise.
1586         * doc/posix-functions/fesetround.texi: Likewise.
1587         * doc/posix-functions/fetestexcept.texi: Likewise.
1588         * doc/posix-functions/feupdateenv.texi: Likewise.
1589         * doc/posix-functions/fmax.texi: Likewise.
1590         * doc/posix-functions/fmin.texi: Likewise.
1591         * doc/posix-functions/log2.texi: Likewise.
1592         * doc/posix-functions/modff.texi: Likewise.
1593         * doc/posix-functions/nan.texi: Likewise.
1594         * doc/posix-functions/nanf.texi: Likewise.
1595         * doc/posix-functions/nextafterf.texi: Likewise.
1596         * doc/posix-functions/remquo.texi: Likewise.
1597
1598 2011-10-07  Bruno Haible  <bruno@clisp.org>
1599
1600         modff: Drop assumption about library that defines modff.
1601         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1602         AC_CHECK_FUNCS.
1603         * modules/modff (Files): Add m4/mathfunc.m4.
1604
1605 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1606
1607         raise tests: Avoid a GCC warning.
1608         * tests/test-raise.c (handler): Use _Noreturn.
1609
1610 2011-10-07  Bruno Haible  <bruno@clisp.org>
1611
1612         Tests for module 'ldexpf'.
1613         * modules/ldexpf-tests: New file.
1614         * tests/test-ldexpf.c: New file.
1615
1616         New module 'ldexpf'.
1617         * lib/math.in.h (ldexpf): New declaration.
1618         * lib/ldexpf.c: New file.
1619         * m4/ldexpf.m4: New file.
1620         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1622         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1623         * modules/ldexpf: New file.
1624         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1625         * doc/posix-functions/ldexpf.texi: Mention the new module.
1626
1627 2011-10-06  Bruno Haible  <bruno@clisp.org>
1628
1629         frexpf: Work around problems on IRIX and mingw.
1630         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1632         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1633         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1634         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1635         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1636         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1637
1638 2011-10-06  Bruno Haible  <bruno@clisp.org>
1639
1640         fabsf: Drop assumption about library that defines fabsf.
1641         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1642         AC_CHECK_FUNCS.
1643         * modules/fabsf (Files): Add m4/mathfunc.m4.
1644
1645 2011-10-06  Bruno Haible  <bruno@clisp.org>
1646
1647         frexpf: Drop assumption about library that defines frexpf.
1648         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1649         'int *', 'float *', 'long double *', 'float', 'long double'.
1650         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1651         AC_CHECK_FUNCS.
1652         * modules/frexpf (Files): Add m4/mathfunc.m4.
1653
1654         Tests for module 'frexpf'.
1655         * modules/frexpf-tests: New file.
1656         * tests/test-frexpf.c: New file.
1657
1658         New module 'frexpf'.
1659         * lib/math.in.h (frexpf): New declaration.
1660         * lib/frexpf.c: New file.
1661         * m4/frexpf.m4: New file.
1662         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1664         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1665         * modules/frexpf: New file.
1666         * tests/test-math-c++.cc: Check the declaration of frexpf.
1667         * doc/posix-functions/frexpf.texi: Mention the new module.
1668
1669 2011-10-06  Bruno Haible  <bruno@clisp.org>
1670
1671         math: Sort function declarations of math.in.h.
1672         * lib/math.in.h (frexp, logb): Move declarations.
1673
1674 2011-10-05  Bruno Haible  <bruno@clisp.org>
1675
1676         Tests for module 'modff'.
1677         * modules/modff-tests: New file.
1678         * tests/test-modff.c: New file.
1679
1680         New module 'modff'.
1681         * lib/math.in.h (modff): New declaration.
1682         * lib/modff.c: New file.
1683         * m4/modff.m4: New file.
1684         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1686         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1687         * modules/modff: New file.
1688         * tests/test-math-c++.cc: Check the declaration of modff.
1689         * doc/posix-functions/modff.texi: Mention the new module.
1690
1691         modf tests: Make test sharper.
1692         * tests/test-modf.c (main): Strengthen upper bound.
1693
1694         modf: Use a .m4 file.
1695         * m4/modf.m4: New file.
1696         * modules/modf (Files): Add it.
1697         (configure.ac): Just invoke gl_FUNC_MODF.
1698
1699 2011-10-05  Bruno Haible  <bruno@clisp.org>
1700
1701         Tests for module 'fmodf'.
1702         * modules/fmodf-tests: New file.
1703         * tests/test-fmodf.c: New file.
1704
1705         New module 'fmodf'.
1706         * lib/math.in.h (fmodf): New declaration.
1707         * lib/fmodf.c: New file.
1708         * m4/fmodf.m4: New file.
1709         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1711         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1712         * modules/fmodf: New file.
1713         * tests/test-math-c++.cc: Check the declaration of fmodf.
1714         * doc/posix-functions/fmodf.texi: Mention the new module.
1715
1716         fmod: Use a .m4 file.
1717         * m4/fmod.m4: New file.
1718         * modules/fmod (Files): Add it.
1719         (configure.ac): Just invoke gl_FUNC_FMOD.
1720
1721 2011-10-05  Bruno Haible  <bruno@clisp.org>
1722
1723         Tests for module 'fabsf'.
1724         * modules/fabsf-tests: New file.
1725         * tests/test-fabsf.c: New file.
1726
1727         New module 'fabsf'.
1728         * lib/math.in.h (fabsf): New declaration.
1729         * lib/fabsf.c: New file.
1730         * m4/fabsf.m4: New file.
1731         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1733         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1734         * modules/fabsf: New file.
1735         * tests/test-math-c++.cc: Check the declaration of fabsf.
1736         * doc/posix-functions/fabsf.texi: Mention the new module.
1737
1738         fabs: Use a .m4 file.
1739         * m4/fabs.m4: New file.
1740         * modules/fabs (Files): Add it.
1741         (configure.ac): Just invoke gl_FUNC_FABS.
1742
1743 2011-10-05  Jim Meyering  <meyering@redhat.com>
1744
1745         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1746         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1747         ls -lL regression introduced in coreutils-8.12, it does so at the
1748         cost of an additional stat call in the common case.  Besides, now
1749         that the kernel change that prompted commit 95f7c57f has been reverted
1750         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1751         we have no use for commit 95f7c57f, "file-has-acl: use
1752         acl_extended_file_nofollow if available".
1753
1754 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1755
1756         file-has-acl: revert unintended change in behavior of ls -L
1757         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1758         derived from...
1759         (file_has_acl): ...code here.  Call it.
1760         This problem was introduced with 2011-07-22 commit 95f7c57f,
1761         "file-has-acl: use acl_extended_file_nofollow if available".
1762         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1763
1764 2011-10-03  Bruno Haible  <bruno@clisp.org>
1765
1766         poll: Avoid link errors on MSVC.
1767         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1768         * modules/poll (Depends-on): Add sockets.
1769         (Link): New section.
1770         * NEWS: Mention the change.
1771         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1772         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1773         $(LIB_POLL) instead of $(LIBSOCKET).
1774
1775 2011-10-03  Bruno Haible  <bruno@clisp.org>
1776
1777         sys_select tests: Fix link error on MSVC 9.
1778         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1779         with $(LIB_SELECT) instead of $(LIBSOCKET).
1780
1781 2011-10-03  Bruno Haible  <bruno@clisp.org>
1782
1783         sys_select: Fix compilation error on mingw.
1784         * lib/sys_select.in.h: On native Windows, include <io.h>.
1785
1786 2011-10-03  Bruno Haible  <bruno@clisp.org>
1787
1788         wmemset: Support for MSVC.
1789         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1790         whether wmemset() exists.
1791
1792 2011-10-03  Bruno Haible  <bruno@clisp.org>
1793
1794         wmemmove: Support for MSVC.
1795         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1796         whether wmemmove() exists.
1797
1798 2011-10-03  Bruno Haible  <bruno@clisp.org>
1799
1800         wmemcpy: Support for MSVC.
1801         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1802         whether wmemcpy() exists.
1803
1804 2011-10-03  Bruno Haible  <bruno@clisp.org>
1805
1806         wmemcmp: Support for MSVC.
1807         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1808         whether wmemcmp() exists.
1809
1810 2011-10-03  Bruno Haible  <bruno@clisp.org>
1811
1812         wmemchr: Support for MSVC.
1813         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1814         whether wmemchr() exists.
1815
1816 2011-10-03  Bruno Haible  <bruno@clisp.org>
1817
1818         glthread/*, strsignal: Support for MSVC.
1819         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1820         including <winsock.h> on MSVC 9.
1821         * lib/glthread/lock.h: Likewise.
1822         * lib/glthread/thread.h: Likewise.
1823         * lib/glthread/tls.h: Likewise.
1824         * lib/glthread/yield.h: Likewise.
1825         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1826         if HAVE_UNISTD_H is false.
1827         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1828
1829 2011-10-03  Bruno Haible  <bruno@clisp.org>
1830
1831         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1832         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1833         Set to 100000.
1834
1835 2011-10-03  Bruno Haible  <bruno@clisp.org>
1836
1837         acl: Fix specification.
1838         * lib/file-has-acl.c (file_has_acl): Fix specification.
1839
1840 2011-10-03  Bruno Haible  <bruno@clisp.org>
1841
1842         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1843         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1844         (compute_curr_prefix, shared_library_fullname,
1845         find_shared_library_fullname, get_shared_library_fullname, relocate):
1846         Use it together with PIC && INSTALLDIR.
1847         Reported by <jojelino@gmail.com>
1848         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1849
1850 2011-10-01  Jim Meyering  <meyering@redhat.com>
1851
1852         maint.mk: adjust a release-related rule not to require use of gzip
1853         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1854         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1855         projects that build only .tar.xz files.  Also fix an erroneous test.
1856
1857         test-linkat: don't leave behind a temporary file
1858         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1859         Otherwise, coreutils' "make distcheck" would fail with this:
1860           Only in /c/cu/tests/torture/coreutils/test/\
1861             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1862           make[2]: *** [my-distcheck] Error 1
1863
1864         float, math: add omitted file
1865         * lib/itold.c: Add file, required for yesterday's float change.
1866
1867 2011-10-01  Bruno Haible  <bruno@clisp.org>
1868
1869         isinf: Fix for OpenBSD/x86.
1870         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1871         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1872         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1873
1874 2011-10-01  Bruno Haible  <bruno@clisp.org>
1875
1876         isfinite: Fix syntax error in configure test.
1877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1878
1879         isfinite: Fix typo.
1880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1881         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1882
1883 2011-10-01  Bruno Haible  <bruno@clisp.org>
1884
1885         nonblocking tests: Fix test failure on Linux/IA-64.
1886         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1887         Set to 270000.
1888
1889 2011-10-01  Bruno Haible  <bruno@clisp.org>
1890
1891         mkfifoat tests: Fix a test failure on mingw.
1892         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1893         with error ENOSYS.
1894
1895 2011-09-30  Bruno Haible  <bruno@clisp.org>
1896
1897         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1898         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1899         'long double'. Set REPLACE_ITOLD.
1900         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1901         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1902         * lib/itold.c: New file.
1903         * modules/float (Files): Add lib/itold.c.
1904         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1905         (Makefile.am): Substitute REPLACE_ITOLD.
1906         * modules/math (Depends-on): Add float.
1907         (Makefile.am): Substitute REPLACE_ITOLD.
1908         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1909         * doc/posix-headers/math.texi: Likewise.
1910         * doc/posix-functions/logl.texi: Likewise.
1911
1912 2011-09-30  Bruno Haible  <bruno@clisp.org>
1913
1914         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1915         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1916         Set to 140000.
1917
1918 2011-09-30  Bruno Haible  <bruno@clisp.org>
1919
1920         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1921         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1922         invocation, say "right after AC_PROG_CC_STDC", not "right after
1923         AC_PROG_CC".
1924         Reported by Gary V. Vaughan <gary@gnu.org>.
1925
1926 2011-09-30  Bruno Haible  <bruno@clisp.org>
1927
1928         Centralize C99 requirement.
1929         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1930         * modules/stdarg (configure.ac-early): Invoke it instead of
1931         AC_PROG_CC_STDC.
1932         Reported by Gary V. Vaughan and Paul Eggert.
1933
1934 2011-09-29  Bruno Haible  <bruno@clisp.org>
1935
1936         float: Fix LDBL_MAX value on Linux/PowerPC.
1937         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1938         on Linux/PowerPC.
1939         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1940         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1941         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1942         platform.
1943         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1944
1945 2011-09-29  Bruno Haible  <bruno@clisp.org>
1946
1947         doc: Improve doc about gl_EARLY.
1948         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1949         AC_PROG_CC_STDC invocation.
1950         Reported by Gary V. Vaughan <gary@gnu.org>.
1951
1952 2011-09-28  Bruno Haible  <bruno@clisp.org>
1953
1954         fgetc, fputc, fread, fwrite tests: Fix link error.
1955         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1956         on non-MSVC platforms.
1957         * tests/test-fputc.c (main): Likewise.
1958         * tests/test-fread.c (main): Likewise.
1959         * tests/test-fwrite.c (main): Likewise.
1960         Reported by Jim Meyering.
1961
1962 2011-09-27  Bruno Haible  <bruno@clisp.org>
1963
1964         fputc, fwrite tests: Avoid test failure on MSVC.
1965         * tests/test-fgetc.c: Include msvc-inval.h.
1966         (main): Invoke gl_msvc_inval_ensure_handler.
1967         * tests/test-fputc.c: Include msvc-inval.h.
1968         (main): Invoke gl_msvc_inval_ensure_handler.
1969         * tests/test-fread.c: Include msvc-inval.h.
1970         (main): Invoke gl_msvc_inval_ensure_handler.
1971         * tests/test-fwrite.c: Include msvc-inval.h.
1972         (main): Invoke gl_msvc_inval_ensure_handler.
1973         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1974         * modules/fputc-tests (Depends-on): Likewise.
1975         * modules/fread-tests (Depends-on): Likewise.
1976         * modules/fwrite-tests (Depends-on): Likewise.
1977
1978 2011-09-27  Bruno Haible  <bruno@clisp.org>
1979
1980         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1981         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1982         (raise): Remove older, duplicated declaration.
1983         (_gl_raise_SIGPIPE): New declaration.
1984         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1985         (rpl_raise): Remove function.
1986         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1987         a gnulib-defined SIGPIPE here.
1988         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1989         'sigprocmask' has detected missing signal-blocking and the module
1990         'sigpipe' is enabled.
1991         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1992
1993 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1994
1995         base64-tests: avoid memory leak
1996         * tests/test-base64.c (main): Plug memory leak.
1997
1998         base32: new module
1999         * modules/base32: New module.
2000         * lib/base32.c: New file.
2001         * lib/base32.h: Likewise.
2002         * m4/base32.m4: Likewise.
2003         * modules/base32-tests: New test.
2004         * tests/test-base32.c: Likewise.
2005         * MODULES.html.sh (Misc): Mention it.
2006
2007 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2008
2009         gnulib: use more-standard license notice wording
2010         * gnulib-tool (func_emit_copyright_notice): When emitting a
2011         license notice into a file, use the standard wording as suggested
2012         by the current information for GNU maintainers, except say "file"
2013         rather than "program".  The new wording gives a license version
2014         number, which addresses an issue raised by Glenn Morris in
2015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2016         * m4/onceonly.m4: Use that same wording here, too.
2017
2018         dup2: minor simplification
2019         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2020         as lib/dup2.c no longer uses 'inline'.
2021
2022 2011-09-25  Bruno Haible  <bruno@clisp.org>
2023
2024         strings: Fix compilation error on MSVC.
2025         * lib/strings.in.h: Include <stddef.h> for size_t.
2026
2027 2011-09-25  Bruno Haible  <bruno@clisp.org>
2028
2029         fflush et al.: Document limitation on MSVC.
2030         * doc/posix-functions/fflush.texi: Document possible crash in handling
2031         mode other than DEFAULT_HANDLING.
2032         * doc/posix-functions/fgetc.texi: Likewise.
2033         * doc/posix-functions/fputc.texi: Likewise.
2034         * doc/posix-functions/fread.texi: Likewise.
2035         * doc/posix-functions/fwrite.texi: Likewise.
2036
2037 2011-09-25  Bruno Haible  <bruno@clisp.org>
2038
2039         msvc-inval: Allow three invalid parameter handling modes.
2040         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2041         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2042         macros.
2043         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2044         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2045         SANE_LIBRARY_HANDLING as a no-op.
2046         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2047         <stdlib.h>.
2048         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2049
2050 2011-09-25  Bruno Haible  <bruno@clisp.org>
2051
2052         msvc-inval: Make handler multithread-safe.
2053         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2054         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2055         declarations.
2056         (gl_msvc_inval_current): New declaration.
2057         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2058         Operate on the structure returned by gl_msvc_inval_current().
2059         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2060         Remove varaiables.
2061         (tls_index, tls_initialized): New variables.
2062         (not_per_thread): New variable.
2063         (gl_msvc_inval_current): New function.
2064         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2065         returned by gl_msvc_inval_current().
2066
2067 2011-09-25  Bruno Haible  <bruno@clisp.org>
2068
2069         msvc-inval: Install handler globally.
2070         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2071         !_MSC_VER.
2072         (gl_msvc_invalid_parameter_handler): Remove declaration.
2073         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2074         declarations.
2075         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2076         Install the handler globally, don't uninstall it.
2077         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2078         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2079         currently valid, call RaiseException instead.
2080         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2081         for !_MSC_VER.
2082
2083 2011-09-25  Bruno Haible  <bruno@clisp.org>
2084
2085         strerror_r-posix: Fix for MSVC 9.
2086         * lib/strerror_r.c (local_snprintf): New function.
2087         (snprintf): Define to local_snprintf, not to _snprintf.
2088
2089 2011-09-25  Bruno Haible  <bruno@clisp.org>
2090
2091         ftruncate: Support for MSVC 9.
2092         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2093         (chsize_nothrow): New function.
2094         (chsize): Redefine as a macro.
2095         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2096         * modules/ftruncate (Depends-on): Add msvc-inval.
2097
2098 2011-09-25  Bruno Haible  <bruno@clisp.org>
2099
2100         New module 'fstat'.
2101         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2102         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2103         * lib/fchdir.c (rpl_fstat): Remove function.
2104         * m4/fstat.m4: New file.
2105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2106         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2107         declared.
2108         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2109         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2110         * modules/fstat: New file.
2111         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2112         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2113         is set.
2114         * doc/posix-functions/fstat.texi: Mention the new module and the
2115         problem on MSVC.
2116         * NEWS: Mention the change.
2117         * modules/acl (Depends-on): Add fstat.
2118         * modules/chdir-safer (Depends-on): Likewise.
2119         * modules/chown (Depends-on): Likewise.
2120         * modules/copy-file (Depends-on): Likewise.
2121         * modules/fchdir (Depends-on): Likewise.
2122         * modules/fdopendir (Depends-on): Likewise.
2123         * modules/fopen (Depends-on): Likewise.
2124         * modules/fts (Depends-on): Likewise.
2125         * modules/getcwd (Depends-on): Likewise.
2126         * modules/isapipe (Depends-on): Likewise.
2127         * modules/linkat (Depends-on): Likewise.
2128         * modules/lseek (Depends-on): Likewise.
2129         * modules/mkdir-p (Depends-on): Likewise.
2130         * modules/open (Depends-on): Likewise.
2131         * modules/openat (Depends-on): Likewise.
2132         * modules/read-file (Depends-on): Likewise.
2133         * modules/renameat (Depends-on): Likewise.
2134         * modules/utimens (Depends-on): Likewise.
2135
2136 2011-09-25  Bruno Haible  <bruno@clisp.org>
2137
2138         linkat: Fix compilation on MSVC 9.
2139         * lib/linkat.c: Don't include <stdint.h>.
2140
2141 2011-09-25  Bruno Haible  <bruno@clisp.org>
2142
2143         fclose: Support for MSVC 9.
2144         * lib/fclose.c: Include msvc-inval.h.
2145         (fclose_nothrow): New function.
2146         (rpl_fclose): Use it.
2147         * modules/fclose (Depends-on): Add msvc-inval.
2148         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2149
2150 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2151
2152         dup2: minor simplifications
2153         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2154         that it's a performance win.
2155         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2156         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2157
2158 2011-09-24  Jim Meyering  <meyering@redhat.com>
2159
2160         test-futimens: avoid a warning from gcc -Wshadow
2161         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2162         to avoid a shadowing warning.
2163
2164 2011-09-24  Bruno Haible  <bruno@clisp.org>
2165
2166         fdopen: Support for MSVC 9.
2167         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2168         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2169         * lib/fdopen.c: Include msvc-inval.h.
2170         (fdopen_nothrow): New function.
2171         (rpl_fdopen): Use it.
2172         * modules/fdopen (Depends-on): Add msvc-inval.
2173         * modules/fclose-tests (Depends-on): Add fdopen.
2174         * modules/fflush-tests (Depends-on): Likewise.
2175         * modules/fgetc-tests (Depends-on): Likewise.
2176         * modules/fputc-tests (Depends-on): Likewise.
2177         * modules/fread-tests (Depends-on): Likewise.
2178         * modules/freopen-tests (Depends-on): Likewise.
2179         * modules/fseeko-tests (Depends-on): Likewise.
2180         * modules/ftello-tests (Depends-on): Likewise.
2181         * modules/fwrite-tests  (Depends-on): Likewise.
2182         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2183
2184 2011-09-24  Bruno Haible  <bruno@clisp.org>
2185
2186         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2187         * modules/fgetc-tests (Depends-on): Add unistd.
2188         * modules/fputc-tests (Depends-on): Likewise.
2189         * modules/fread-tests (Depends-on): Likewise.
2190         * modules/fwrite-tests (Depends-on): Likewise.
2191
2192 2011-09-24  Bruno Haible  <bruno@clisp.org>
2193
2194         dup: Simplify autoconf test.
2195         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2196         on gl_MSVC_INVAL's result.
2197
2198 2011-09-24  Bruno Haible  <bruno@clisp.org>
2199
2200         Tests for function fwrite().
2201         * modules/fwrite-tests: New file.
2202         * tests/test-fwrite.c: New file.
2203         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2204
2205         Tests for function fread().
2206         * modules/fread-tests: New file.
2207         * tests/test-fread.c: New file.
2208         * modules/stdio-tests (Depends-on): Add fread-tests.
2209
2210         Activate fputc tests.
2211         * modules/stdio-tests (Depends-on): Add fputc-tests.
2212
2213         Enhance fgetc, fputc tests.
2214         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2215         * tests/test-fputc.c (main): Likewise.
2216
2217 2011-09-24  Bruno Haible  <bruno@clisp.org>
2218
2219         write: Support for MSVC 9.
2220         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2221         is not 1.
2222         * lib/write.c (write_nothrow): New function.
2223         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2224         not 1. Use write_nothrow.
2225         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2226         invalid parameter handler.
2227         (gl_PREREQ_WRITE): New macro.
2228         * modules/write (Depends-on): Add msvc-inval.
2229         (configure.ac): Invoke gl_PREREQ_WRITE.
2230         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2231
2232 2011-09-24  Bruno Haible  <bruno@clisp.org>
2233
2234         read: Fix last commit.
2235         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2236
2237 2011-09-24  Bruno Haible  <bruno@clisp.org>
2238
2239         dup2: Fix last commit.
2240         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2241         (rpl_dup2): Disable fcntl workaround on native Windows.
2242
2243         sigprocmask: Make code safer.
2244         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2245         section that changes macro definitions for this compilation unit.
2246
2247 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         dup2: clarify by coalescing Windows-specific material
2250         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2251         "msvc-nothrow.h"' to the Windows-specific section, so that the
2252         Emacs source need not contain these include files.
2253         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2254         Windows-specific fixes into this function rather than just the
2255         nothrow fix, as this shortens and clarifies the code.  Always
2256         define as a function, as that's a bit cleaner than having it be
2257         sometimes a function and sometimes a macro.
2258         (rpl_dup2): Move the Windows-specific stuff out of here and into
2259         ms_windows_dup2.  Don't protect the Haiku-related fix with
2260         "#if !defined __linux__", as the same code also works around
2261         a Linux kernel bug, and it doesn't add any system calls on any
2262         platform.  Add comment about FreeBSD 6.1.
2263
2264         sigprocmask: move #include directive
2265         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2266         Windows-specific section, so that the Emacs source need not
2267         contain msvc-inval.h.
2268
2269 2011-09-23  Bruno Haible  <bruno@clisp.org>
2270
2271         read: Support for MSVC 9.
2272         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2273         is not 1.
2274         * lib/read.c (read_nothrow): New function.
2275         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2276         read_nothrow.
2277         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2278         invalid parameter handler.
2279         (gl_PREREQ_READ): New macro.
2280         * modules/read (Depends-on): Add msvc-inval.
2281         (configure.ac): Invoke gl_PREREQ_READ.
2282         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2283
2284 2011-09-23  Bruno Haible  <bruno@clisp.org>
2285
2286         close: Support for MSVC 9.
2287         * lib/close.c: Include <errno.h>, msvc-inval.h.
2288         (close_nothrow): New function.
2289         (rpl_close): Use it.
2290         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2291         invalid parameter handler.
2292         * modules/close (Depends-on): Add msvc-inval.
2293         * modules/dup2-tests (Depends-on): Add close.
2294         * modules/dup3-tests (Depends-on): Likewise.
2295         * modules/fcntl-tests (Depends-on): Likewise.
2296         * modules/spawn-pipe-tests (Depends-on): Likewise.
2297         * modules/unistd-safer-tests (Depends-on): Likewise.
2298         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2299
2300 2011-09-23  Bruno Haible  <bruno@clisp.org>
2301
2302         New module 'dup'.
2303         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2304         Allow replacement.
2305         * lib/dup.c: New file.
2306         * lib/fchdir.c (rpl_dup): Remove function.
2307         * m4/dup.m4: New file.
2308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2309         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2310         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2311         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2312         * modules/dup: New file.
2313         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2314         'dup' module is in use.
2315         * modules/fdopendir (Depends-on): Add dup.
2316         * modules/fdutimensat-tests (Depends-on): Likewise.
2317         * modules/fts (Depends-on): Likewise.
2318         * modules/futimens-tests (Depends-on): Likewise.
2319         * modules/posix_spawnp-tests (Depends-on): Likewise.
2320         * modules/unistd-safer-tests (Depends-on): Likewise.
2321         * modules/utimens-tests (Depends-on): Likewise.
2322         * doc/posix-functions/dup.texi: Mention the new module and the problem
2323         on MSVC.
2324
2325 2011-09-23  Bruno Haible  <bruno@clisp.org>
2326
2327         getdtablesize: Support for MSVC 9.
2328         * lib/getdtablesize.c: Include msvc-inval.h.
2329         (_setmaxstdio_nothrow): New function.
2330         (_setmaxstdio): Redefine it.
2331         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2332         * modules/getdtablesize (Depends-on): Add msvc-inval.
2333         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2334
2335 2011-09-23  Bruno Haible  <bruno@clisp.org>
2336
2337         signal-h: Rename from signal.
2338         * modules/signal-h: Renamed from modules/signal.
2339         * modules/pthread_sigmask (Depends-on): Update.
2340         * modules/raise (Depends-on): Likewise.
2341         * modules/sigaction (Depends-on): Likewise.
2342         * modules/sigpipe (Depends-on): Likewise.
2343         * modules/sigprocmask (Depends-on): Likewise.
2344         * modules/sys_select (Depends-on): Likewise.
2345         * modules/signal-h-tests: Renamed from modules/signal-tests.
2346         (Files, Depends-on, Makefile.am): Update.
2347         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2348         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2349         (Files, Makefile.am): Update.
2350         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2351         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2352         * modules/signal: New placeholder file.
2353         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2354         * doc/posix-headers/signal.texi: Update.
2355         * NEWS: Mention the change.
2356
2357 2011-09-23  Bruno Haible  <bruno@clisp.org>
2358
2359         sigprocmask: Avoid crashes through signal() on MSVC 9.
2360         * lib/sigprocmask.c: Include msvc-inval.h.
2361         (signal_nothrow): New function.
2362         (signal): Redefine it.
2363         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2364         * modules/sigprocmask (Depends-on): Add msvc-inval.
2365         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2366
2367 2011-09-23  Bruno Haible  <bruno@clisp.org>
2368
2369         Tests for module 'raise'.
2370         * modules/raise-tests: New file.
2371         * tests/test-raise.c: New file.
2372
2373         raise: Support for MSVC.
2374         * lib/signal.in.h (raise): New declaration.
2375         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2376         for native Windows platforms.
2377         * m4/raise.m4: New file.
2378         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2379         HAVE_RAISE, REPLACE_RAISE.
2380         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2381         REPLACE_RAISE.
2382         * modules/raise (Status, Notice): Remove fields.
2383         (Files): Add m4/raise.m4.
2384         (Depends-on): Add signal, msvc-inval.
2385         (configure.ac): Use the common idioms.
2386         (Maintainer): Add me.
2387         * tests/test-signal-c++.cc: Check the signature of raise.
2388         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2389
2390 2011-09-23  Bruno Haible  <bruno@clisp.org>
2391
2392         pipe2: Fix compilation on pre-C99 compilers.
2393         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2394
2395 2011-09-23  Bruno Haible  <bruno@clisp.org>
2396
2397         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2398         * lib/msvc-nothrow.h: New file.
2399         * lib/msvc-nothrow.c: New file.
2400         * m4/msvc-nothrow.m4: New file.
2401         * modules/msvc-nothrow: New file.
2402         * lib/dup2.c: Include msvc-nothrow.h.
2403         (rpl_dup2): No need to protect _get_osfhandle call here.
2404         * lib/accept4.c: Include msvc-nothrow.h.
2405         * lib/error.c: Likewise.
2406         * lib/fcntl.c: Likewise.
2407         * lib/lseek.c: Likewise.
2408         * lib/nonblocking.c: Likewise.
2409         * lib/poll.c: Likewise.
2410         * lib/read.c: Likewise.
2411         * lib/select.c: Likewise.
2412         * lib/sockets.h: Likewise.
2413         * lib/sockets.c: Likewise.
2414         * lib/stdio-read.c: Likewise.
2415         * lib/stdio-write.c: Likewise.
2416         * lib/write.c: Likewise.
2417         * lib/w32sock.h: Likewise.
2418         * lib/w32spawn.h: Likewise.
2419         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2420         * lib/fsync.c: Likewise.
2421         * lib/isapipe.c: Likewise.
2422         * modules/dup2 (Depends-on): Add msvc-nothrow.
2423         * modules/accept4 (Depends-on): Likewise.
2424         * modules/error (Depends-on): Likewise.
2425         * modules/fcntl (Depends-on): Likewise.
2426         * modules/lseek (Depends-on): Likewise.
2427         * modules/nonblocking (Depends-on): Likewise.
2428         * modules/poll (Depends-on): Likewise.
2429         * modules/read (Depends-on): Likewise.
2430         * modules/select (Depends-on): Likewise.
2431         * modules/sockets (Depends-on): Likewise.
2432         * modules/sigpipe (Depends-on): Likewise.
2433         * modules/write (Depends-on): Likewise.
2434         * modules/accept (Depends-on): Likewise.
2435         * modules/bind (Depends-on): Likewise.
2436         * modules/connect (Depends-on): Likewise.
2437         * modules/gethostname (Depends-on): Likewise.
2438         * modules/getpeername (Depends-on): Likewise.
2439         * modules/getsockname (Depends-on): Likewise.
2440         * modules/getsockopt (Depends-on): Likewise.
2441         * modules/ioctl (Depends-on): Likewise.
2442         * modules/listen (Depends-on): Likewise.
2443         * modules/recv (Depends-on): Likewise.
2444         * modules/recvfrom (Depends-on): Likewise.
2445         * modules/send (Depends-on): Likewise.
2446         * modules/sendto (Depends-on): Likewise.
2447         * modules/setsockopt (Depends-on): Likewise.
2448         * modules/shutdown (Depends-on): Likewise.
2449         * modules/socket (Depends-on): Likewise.
2450         * modules/execute (Depends-on): Likewise.
2451         * modules/spawn-pipe (Depends-on): Likewise.
2452         * modules/flock (Depends-on): Likewise.
2453         * modules/fsync (Depends-on): Likewise.
2454         * modules/isapipe (Depends-on): Likewise.
2455         * tests/test-cloexec.c: Include msvc-nothrow.h.
2456         * tests/test-dup-safer.c: Likewise.
2457         * tests/test-dup2.c: Likewise.
2458         * tests/test-dup3.c: Likewise.
2459         * tests/test-fcntl.c: Likewise.
2460         * tests/test-pipe.c: Likewise.
2461         * tests/test-pipe2.c: Likewise.
2462         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2463         * modules/unistd-safer-tests (Depends-on): Likewise.
2464         * modules/dup2-tests (Depends-on): Likewise.
2465         * modules/dup3-tests (Depends-on): Likewise.
2466         * modules/fcntl-tests (Depends-on): Likewise.
2467         * modules/pipe-posix-tests (Depends-on): Likewise.
2468         * modules/pipe2-tests (Depends-on): Likewise.
2469
2470 2011-09-23  Bruno Haible  <bruno@clisp.org>
2471
2472         dup2: Make code more maintainable.
2473         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2474         (rpl_dup2): Use it.
2475         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2476         * modules/dup2 (configure.ac): Invoke it.
2477         Reported by Paul Eggert.
2478
2479 2011-09-23  Bruno Haible  <bruno@clisp.org>
2480
2481         msvc-inval: Fix compilation error.
2482         * lib/msvc-inval.h: Include <excpt.h>.
2483
2484 2011-09-23  Bruno Haible  <bruno@clisp.org>
2485
2486         mkdir: Tweak for MSVC 9.
2487         * lib/sys_stat.in.h: Update comments.
2488         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2489
2490         Tests for module 'chdir'.
2491         * modules/chdir-tests: New file.
2492         * tests/test-chdir.c: New file.
2493
2494         New module 'chdir'.
2495         * modules/chdir: New file.
2496         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2497         (chdir): New declaration.
2498         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2499         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2500         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2501         * tests/test-unistd-c++.cc: Check signature of chdir.
2502         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2503         * modules/chdir-long (Depends-on): Add chdir.
2504         * modules/fchdir (Depends-on): Likewise.
2505         * modules/rename (Depends-on): Likewise.
2506         * modules/savewd (Depends-on): Likewise.
2507
2508         rmdir: Support for mingw, MSVC 9.
2509         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2510         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2511
2512         getcwd: Tweak for MSVC 9.
2513         * lib/unistd.in.h: Update comments.
2514         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2515
2516 2011-09-22  Bruno Haible  <bruno@clisp.org>
2517
2518         strerror_r-posix: Avoid a link error on MSVC.
2519         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2520         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2521
2522 2011-09-22  Bruno Haible  <bruno@clisp.org>
2523
2524         select: Avoid link errors on MSVC.
2525         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2526         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2527         * modules/pselect (Link): Likewise.
2528         * NEWS: Mention the change.
2529         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2530         test-select-stdin against $(LIB_SELECT).
2531         * modules/pselect-tests (Makefile.am): Link test-pselect against
2532         $(LIB_SELECT).
2533
2534 2011-09-22  Bruno Haible  <bruno@clisp.org>
2535
2536         select: Avoid compilation error on MSVC.
2537         * lib/select.c: Don't include <stdbool.h>.
2538
2539 2011-09-21  Bruno Haible  <bruno@clisp.org>
2540
2541         Consolidate all uses of PATH_MAX in *.m4 files.
2542         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2543         macros.
2544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2545         and gl_PATHMAX_SNIPPET.
2546         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2547         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2548         * modules/chdir-long (Files): Add m4/pathmax.m4.
2549         * modules/getcwd (Files): Likewise.
2550
2551 2011-09-21  Bruno Haible  <bruno@clisp.org>
2552
2553         ftruncate: Un-deprecate, concentrate on Win32 support.
2554         * modules/ftruncate (Status, Notice): Remove sections.
2555         (Depends-on): Add largefile.
2556         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2557         non-mingw platforms.
2558         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2559         include <io.h>.
2560         * modules/perror-tests (Depends-on): Add ftruncate.
2561         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2562         'ftruncate' module.
2563
2564 2011-09-21  Bruno Haible  <bruno@clisp.org>
2565
2566         Add dependencies to new dirent related modules.
2567         * modules/opendir (Depends-on): Add closedir.
2568         * modules/getcwd (Depends-on): Add opendir, closedir.
2569         * modules/dirent-safer-tests (Depends-on): Likewise.
2570         * modules/fdopendir-tests (Depends-on): Likewise.
2571         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2572         * modules/renameat-tests (Depends-on): Likewise.
2573
2574 2011-09-21  Bruno Haible  <bruno@clisp.org>
2575
2576         opendir: Avoid compilation error on mingw.
2577         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2578         * modules/opendir (Depends-on): Add unistd.
2579
2580 2011-09-21  Bruno Haible  <bruno@clisp.org>
2581
2582         ftruncate tests: Avoid a test failure on mingw.
2583         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2584
2585 2011-09-21  Bruno Haible  <bruno@clisp.org>
2586
2587         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2588         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2589         native Windows.
2590
2591 2011-09-21  Bruno Haible  <bruno@clisp.org>
2592
2593         New module 'fdopen'.
2594         * lib/stdio.in.h (fdopen): New declaration.
2595         * lib/fdopen.c: New file.
2596         * m4/fdopen.m4: New file.
2597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2598         REPLACE_FDOPEN.
2599         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2600         REPLACE_FDOPEN.
2601         * modules/fdopen: New file.
2602         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2603         * tests/test-stdio-c++.cc: Check signature of fdopen.
2604         * doc/posix-functions/fdopen.texi: Mention the new module.
2605
2606 2011-09-21  Bruno Haible  <bruno@clisp.org>
2607
2608         unlockpt tests: Avoid test failure on NetBSD 5.1.
2609         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2610         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2611
2612 2011-09-21  Bruno Haible  <bruno@clisp.org>
2613
2614         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2615         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2616         * tests/test-getlogin_r.c (main): Likewise.
2617
2618 2011-09-20  Bruno Haible  <bruno@clisp.org>
2619
2620         time tests: Don't require pid_t.
2621         * doc/posix-headers/time.texi: Revert last change.
2622         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2623         * tests/test-time.c: Comment out the check for pid_t.
2624
2625 2011-09-20  Bruno Haible  <bruno@clisp.org>
2626
2627         fsync tests: Avoid a test failure on mingw.
2628         * tests/test-fsync.c (main): Allow a failure with EIO.
2629
2630 2011-09-20  Bruno Haible  <bruno@clisp.org>
2631
2632         euidaccess: Update comments.
2633         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2634
2635 2011-09-20  Bruno Haible  <bruno@clisp.org>
2636
2637         Ensure EBADF returns for socket functions on mingw.
2638         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2639         descriptor is invalid.
2640         * lib/bind.c (rpl_bind): Likewise.
2641         * lib/connect.c (rpl_connect): Likewise.
2642         * lib/getpeername.c (rpl_getpeername): Likewise.
2643         * lib/getsockname.c (rpl_getsockname): Likewise.
2644         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2645         * lib/listen.c (rpl_listen): Likewise.
2646         * lib/recv.c (rpl_recv): Likewise.
2647         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2648         * lib/send.c (rpl_send): Likewise.
2649         * lib/sendto.c (rpl_sendto): Likewise.
2650         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2651         * lib/shutdown.c (rpl_shutdown): Likewise.
2652
2653 2011-09-20  Bruno Haible  <bruno@clisp.org>
2654
2655         select tests: EBADF tests.
2656         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2657         test_bad_fd): New functions.
2658         (test_function): Invoke also test_bad_fd.
2659
2660 2011-09-20  Bruno Haible  <bruno@clisp.org>
2661
2662         Tests for module 'posix_spawn_file_actions_addopen.
2663         * modules/posix_spawn_file_actions_addopen-tests: New file.
2664         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2665
2666         Tests for module 'posix_spawn_file_actions_adddup2'.
2667         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2668         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2669
2670         Tests for module 'posix_spawn_file_actions_addclose'.
2671         * modules/posix_spawn_file_actions_addclose-tests: New file.
2672         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2673
2674 2011-09-20  Bruno Haible  <bruno@clisp.org>
2675
2676         Tests for module 'unlockpt'.
2677         * modules/unlockpt-tests: New file.
2678         * tests/test-unlockpt.c: New file.
2679         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2680
2681         Tests for module 'grantpt'.
2682         * modules/grantpt-tests: New file.
2683         * tests/test-grantpt.c: New file.
2684         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2685
2686 2011-09-20  Bruno Haible  <bruno@clisp.org>
2687
2688         freopen tests: EBADF tests.
2689         * tests/test-freopen.c: Include errno.h, unistd.h.
2690         (main): Add tests for EBADF, commented out for the moment.
2691
2692         fclose tests: EBADF tests.
2693         * tests/test-fclose.c (main): Add tests for EBADF.
2694
2695         fflush tests: EBADF tests.
2696         * tests/test-fflush.c: Include errno.h, macros.h.
2697         (main): Add tests for EBADF.
2698
2699         ftello tests: EBADF tests.
2700         * tests/test-ftello4.sh: New file.
2701         * tests/test-ftello4.c: New file.
2702         * modules/ftello-tests (Files): Add them.
2703         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2704
2705         fseeko tests: EBADF tests.
2706         * tests/test-fseeko4.sh: New file.
2707         * tests/test-fseeko4.c: New file.
2708         * modules/fseeko-tests (Files): Add them.
2709         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2710
2711         Tests for function fputc().
2712         * modules/fputc-tests: New file.
2713         * tests/test-fputc.c: New file.
2714         * modules/stdio-tests (Depends-on): Add fputc-tests.
2715
2716         Tests for function fgetc().
2717         * modules/fgetc-tests: New file.
2718         * tests/test-fgetc.c: New file.
2719         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2720
2721         Tests for function fdopen().
2722         * modules/fdopen-tests: New file.
2723         * tests/test-fdopen.c: New file.
2724         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2725
2726         Tests for module 'vdprintf'.
2727         * modules/vdprintf-tests: New file.
2728         * tests/test-vdprintf.c: New file.
2729
2730         Tests for module 'dprintf'.
2731         * modules/dprintf-tests: New file.
2732         * tests/test-dprintf.c: New file.
2733
2734 2011-09-20  Bruno Haible  <bruno@clisp.org>
2735
2736         Tests for module 'ioctl'.
2737         * modules/ioctl-tests: New file.
2738         * tests/test-ioctl.c: New file.
2739
2740 2011-09-20  Bruno Haible  <bruno@clisp.org>
2741
2742         fcntl tests: EBADF tests.
2743         * tests/test-fcntl.c (main): Add more tests for EBADF.
2744
2745 2011-09-20  Bruno Haible  <bruno@clisp.org>
2746
2747         utimensat tests: EBADF tests.
2748         * tests/test-utimensat.c (main): Add tests for EBADF.
2749
2750         renameat tests: EBADF tests.
2751         * tests/test-renameat.c (main): Add tests for EBADF.
2752
2753         mkfifoat tests: EBADF tests.
2754         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2755
2756         readlinkat tests: EBADF tests.
2757         * tests/test-readlinkat.c (main): Add tests for EBADF.
2758
2759         symlinkat tests: EBADF tests.
2760         * tests/test-symlinkat.c (main): Add tests for EBADF.
2761
2762         linkat tests: EBADF tests.
2763         * tests/test-linkat.c (main): Add tests for EBADF.
2764
2765         Tests for module 'faccessat'.
2766         * modules/faccessat-tests: New file.
2767         * tests/test-faccessat.c: New file.
2768
2769         fdopendir tests: EBADF tests.
2770         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2771
2772         openat tests: EBADF tests.
2773         * tests/test-fchownat.c (main): Add tests for EBADF.
2774         * tests/test-fstatat.c (main): Likewise.
2775         * tests/test-mkdirat.c (main): Likewise.
2776         * tests/test-openat.c (main): Likewise.
2777         * tests/test-unlinkat.c (main): Likewise.
2778         * tests/test-fchmodat.c: New file.
2779         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2780         (Makefile.am): Also run 'test-fchmodat'.
2781
2782 2011-09-20  Bruno Haible  <bruno@clisp.org>
2783
2784         utimens, futimens, fdutimensat tests: EBADF tests.
2785         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2786
2787         Tests for function fstat().
2788         * modules/fstat-tests: New file.
2789         * tests/test-fstat.c: New file.
2790         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2791
2792 2011-09-20  Bruno Haible  <bruno@clisp.org>
2793
2794         test-ttyname_r tests: EBADF tests.
2795         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2796
2797         Tests for module 'isatty'.
2798         * modules/isatty-tests: New file.
2799         * tests/test-isatty.c: New file.
2800
2801         Tests for module 'write'.
2802         * modules/write-tests: New file.
2803         * tests/test-write.c: New file.
2804
2805         Tests for module 'read'.
2806         * modules/read-tests: New file.
2807         * tests/test-read.c: New file.
2808
2809         pwrite tests: EBADF tests.
2810         * tests/test-pwrite.c (main): Add tests for EBADF.
2811
2812         pread tests: EBADF tests.
2813         * tests/test-pread.c (main): Add tests for EBADF.
2814
2815         lseek tests: EBADF tests.
2816         * tests/test-lseek.c (main): Add more tests for EBADF.
2817
2818         Tests for module 'ftruncate'.
2819         * modules/ftruncate-tests: New file.
2820         * tests/test-ftruncate.sh: New file.
2821         * tests/test-ftruncate.c: New file.
2822
2823         fsync tests: EBADF tests.
2824         * tests/test-fsync.c (main): Add more tests for EBADF.
2825
2826         fdatasync tests: EBADF tests.
2827         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2828
2829         Tests for module 'fchown'.
2830         * modules/fchown-tests: New file.
2831         * tests/test-fchown.c: New file.
2832
2833         Tests for module 'fchmod'.
2834         * modules/fchmod-tests: New file.
2835         * tests/test-fchmod.c: New file.
2836
2837         fchdir tests: EBADF tests.
2838         * tests/test-fchdir.c (main): Add more tests for EBADF.
2839
2840         dup2 tests: EBADF tests.
2841         * tests/test-dup2.c (main): Add more tests for EBADF.
2842
2843         Tests for module 'dup'.
2844         * modules/dup-tests: New file.
2845         * tests/test-dup.c: New file.
2846
2847         Tests for module 'close'.
2848         * modules/close-tests: New file.
2849         * tests/test-close.c: New file.
2850
2851 2011-09-20  Bruno Haible  <bruno@clisp.org>
2852
2853         Tests for module 'shutdown'.
2854         * modules/shutdown-tests: New file.
2855         * tests/test-shutdown.c: New file.
2856
2857         Tests for module 'setsockopt'.
2858         * modules/setsockopt-tests: New file.
2859         * tests/test-setsockopt.c: New file.
2860
2861         Tests for module 'sendto'.
2862         * modules/sendto-tests: New file.
2863         * tests/test-sendto.c: New file.
2864
2865         Tests for module 'send'.
2866         * modules/send-tests: New file.
2867         * tests/test-send.c: New file.
2868
2869         Tests for module 'recvfrom'.
2870         * modules/recvfrom-tests: New file.
2871         * tests/test-recvfrom.c: New file.
2872
2873         Tests for module 'recv'.
2874         * modules/recv-tests: New file.
2875         * tests/test-recv.c: New file.
2876
2877         Tests for module 'listen'.
2878         * modules/listen-tests: New file.
2879         * tests/test-listen.c: New file.
2880
2881         Tests for module 'getsockopt'.
2882         * modules/getsockopt-tests: New file.
2883         * tests/test-getsockopt.c: New file.
2884
2885         Tests for module 'getsockname'.
2886         * modules/getsockname-tests: New file.
2887         * tests/test-getsockname.c: New file.
2888
2889         Tests for module 'getpeername'.
2890         * modules/getpeername-tests: New file.
2891         * tests/test-getpeername.c: New file.
2892
2893         Tests for module 'connect'.
2894         * modules/connect-tests: New file.
2895         * tests/test-connect.c: New file.
2896
2897         Tests for module 'bind'.
2898         * modules/bind-tests: New file.
2899         * tests/test-bind.c: New file.
2900
2901         accept4 tests: Fix for native Windows.
2902         * tests/test-accept4.c: Include sockets.h.
2903         (main): Invoke gl_sockets_startup.
2904         * modules/accept4-tests (Depends-on): Add sockets.
2905
2906         accept tests: Fix for native Windows.
2907         * tests/test-accept.c: Include sockets.h.
2908         (main): Invoke gl_sockets_startup.
2909         * modules/accept-tests (Depends-on): Add sockets.
2910
2911 2011-09-19  Bruno Haible  <bruno@clisp.org>
2912
2913         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2914         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2915         do...while(0).
2916         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2917         Suggested by Paul Eggert.
2918
2919 2011-09-19  Bruno Haible  <bruno@clisp.org>
2920
2921         sched: Ensure pid_t is defined.
2922         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2923         not define pid_t.
2924         * lib/sched.in.h: Include <sys/types.h>.
2925         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2927
2928 2011-09-19  Bruno Haible  <bruno@clisp.org>
2929
2930         msvc-inval: Ensure the entire expansion is a single statement.
2931         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2932         of braces.
2933
2934 2011-09-19  Jim Meyering  <meyering@redhat.com>
2935
2936         tests: use printf, not echo in init.sh's warn_ function
2937         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2938         misbehave when given strings containing a backslash or starting
2939         with e.g., -n.  James Youngman suggested setting IFS.
2940
2941 2011-09-19  Eric Blake  <eblake@redhat.com>
2942
2943         futimens: enhance test
2944         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2945         closed non-negative fd.
2946
2947         date: accept 'hence' as opposite of 'ago'
2948         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2949         * tests/test-parse-datetime.c (main): Enhance test.
2950         Suggested by Jesse Wilson.
2951
2952 2011-09-19  Jim Meyering  <meyering@redhat.com>
2953
2954         getcwd: don't fail in a deep directory on a system without openat
2955         Before this change, getcwd would fail when called from a directory
2956         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2957         the non-openat implementation used "..", "../..", "../../..", etc.
2958         to access ancestor directories.  With too many, that string would
2959         be longer than PATH_MAX.
2960         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2961         using gnulib's openat replacement.
2962         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2963         we're using the replacement function.
2964
2965 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2966
2967         maint.mk: avoid warnings from perl about missing files
2968         * top/maint.mk (def_sym_regex): Ignore files listed in
2969         $(gl_other_headers_) that do not exist, say because a project
2970         does not use a corresponding module.
2971
2972 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         stat: use pathmax.h only if needed
2975         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2976         This is better for Emacs, which does not have a mingw port and
2977         therefore can avoid the pathmax module.
2978
2979         utimens: remove dependency on dup2
2980         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2981         to work around the Linux kernel bug.
2982         * modules/utimens (Depends-on): Remove dup2.
2983
2984 2011-09-18  Bruno Haible  <bruno@clisp.org>
2985
2986         inet_ntop, inet_pton: Look for it also in libresolv.
2987         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2988         libnsl, search for it in libresolv.
2989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2990         Needed on Solaris 7.
2991
2992 2011-09-18  Bruno Haible  <bruno@clisp.org>
2993
2994         accept, accept4 tests: Avoid link error on Solaris.
2995         * modules/accept-tests (Makefile.am): Link test-accept against
2996         $(LIBSOCKET).
2997         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2998         $(LIBSOCKET).
2999
3000         accept4: Avoid link error on Solaris.
3001         * modules/accept4 (Link): New section.
3002
3003         socket functions: Avoid link errors on Solaris.
3004         * modules/accept (Depends-on): Add socketlib.
3005         (Link): New section.
3006         * modules/bind (Depends-on): Add socketlib.
3007         (Link): New section.
3008         * modules/connect (Depends-on): Add socketlib.
3009         (Link): New section.
3010         * modules/getpeername (Depends-on): Add socketlib.
3011         (Link): New section.
3012         * modules/getsockname (Depends-on): Add socketlib.
3013         (Link): New section.
3014         * modules/getsockopt (Depends-on): Add socketlib.
3015         (Link): New section.
3016         * modules/listen (Depends-on): Add socketlib.
3017         (Link): New section.
3018         * modules/recv (Depends-on): Add socketlib.
3019         (Link): New section.
3020         * modules/recvfrom (Depends-on): Add socketlib.
3021         (Link): New section.
3022         * modules/send (Depends-on): Add socketlib.
3023         (Link): New section.
3024         * modules/sendto (Depends-on): Add socketlib.
3025         (Link): New section.
3026         * modules/setsockopt (Depends-on): Add socketlib.
3027         (Link): New section.
3028         * modules/shutdown (Depends-on): Add socketlib.
3029         (Link): New section.
3030         * modules/socket (Depends-on): Add socketlib.
3031         (Link): New section.
3032
3033 2011-09-18  Bruno Haible  <bruno@clisp.org>
3034
3035         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3036         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3037         than 5 seconds.
3038         * modules/ptsname-tests (configure.ac): Test for alarm.
3039
3040 2011-09-18  Bruno Haible  <bruno@clisp.org>
3041
3042         posix_spawn_file_actions_add*: Fix module dependencies.
3043         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3044         posix_spawn_file_actions_init.
3045         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3046         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3047
3048 2011-09-18  Bruno Haible  <bruno@clisp.org>
3049
3050         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3051         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3052         * tests/test-renameat.c (main): Likewise.
3053
3054 2011-09-18  Bruno Haible  <bruno@clisp.org>
3055
3056         Tests for module 'accept4'.
3057         * modules/accept4-tests: New file.
3058         * tests/test-accept4.c: New file.
3059
3060 2011-09-18  Bruno Haible  <bruno@clisp.org>
3061
3062         Tests for module 'accept'.
3063         * modules/accept-tests: New file.
3064         * tests/test-accept.c: New file.
3065
3066 2011-09-18  Bruno Haible  <bruno@clisp.org>
3067
3068         dup2: Support for MSVC.
3069         * lib/dup2.c: Include msvc-inval.h.
3070         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3071         _get_osfhandle calls.
3072         * modules/dup2 (Depends-on): Add msvc-inval.
3073         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3074
3075         New module 'msvc-inval'.
3076         * lib/msvc-inval.h: New file.
3077         * lib/msvc-inval.c: New file.
3078         * m4/msvc-inval.m4: New file.
3079         * modules/msvc-inval: New file.
3080
3081 2011-09-17  Bruno Haible  <bruno@clisp.org>
3082
3083         Tests for module 'pclose'.
3084         * modules/pclose-tests: New file.
3085
3086         New module 'pclose'.
3087         * lib/stdio.in.h (pclose): New declaration.
3088         * lib/pclose.c: New file.
3089         * m4/pclose.m4: New file.
3090         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3091         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3092         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3093         * modules/pclose: New file.
3094         * modules/popen-tests (Depends-on): Add pclose.
3095         * modules/popen-safer-tests (Depends-on): Likewise.
3096         * doc/posix-functions/pclose.texi: Mention the new module.
3097
3098 2011-09-17  Bruno Haible  <bruno@clisp.org>
3099
3100         popen: Support for MSVC.
3101         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3102         * lib/popen.c (popen): Provide alternate definition for native Windows.
3103         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3105         * modules/popen (Depends-on, configure.ac): Update condition.
3106         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3107         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3108         fixed.
3109
3110 2011-09-17  Bruno Haible  <bruno@clisp.org>
3111
3112         isnanl, isnand, isnanf: Work around MSVC bug.
3113         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3114
3115 2011-09-17  Bruno Haible  <bruno@clisp.org>
3116
3117         sys_socket tests: Fix recent mistake.
3118         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3119
3120 2011-09-17  Bruno Haible  <bruno@clisp.org>
3121
3122         putenv: Support for MSVC.
3123         * modules/putenv (Depends-on): Add environ.
3124         * lib/putenv.c (environ): Disable declaration.
3125         * lib/unistd.in.h: Update comment.
3126
3127 2011-09-17  Bruno Haible  <bruno@clisp.org>
3128
3129         math: Avoid macro redefinition warnings on MSVC.
3130         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3131         Undefine before redefining.
3132
3133 2011-09-17  Bruno Haible  <bruno@clisp.org>
3134
3135         doc: Mention functions which are declared as macros.
3136         * doc/posix-functions/*[fl].texi: Mention that some functions are
3137         defined as macros with arguments only.
3138
3139 2011-09-17  Bruno Haible  <bruno@clisp.org>
3140
3141         Add dependencies to new dirent related modules.
3142         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3143         * modules/fts (Depends-on): Likewise.
3144         * modules/glob (Depends-on): Likewise.
3145         * modules/savedir (Depends-on): Likewise.
3146         * modules/scandir (Depends-on): Likewise.
3147         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3148         * modules/fdopendir (Depends-on): Add opendir.
3149
3150 2011-09-17  Bruno Haible  <bruno@clisp.org>
3151
3152         inet_pton: Support for MSVC on Windows Vista or newer.
3153         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3154         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3155         HAVE_DECL_INET_PTON is defined.
3156         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3157         On platforms with <winsock2.h>, test whether inet_pton is declared in
3158         <ws2tcpip.h>. If so, arrange to replace it.
3159         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3160         REPLACE_INET_PTON.
3161         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3162         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3163         (Depends-on, configure.ac): Update condition.
3164         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3165
3166 2011-09-17  Bruno Haible  <bruno@clisp.org>
3167
3168         inet_ntop: Support for MSVC on Windows Vista or newer.
3169         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3170         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3171         HAVE_DECL_INET_NTOP is defined.
3172         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3173         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3174         <ws2tcpip.h>. If so, arrange to replace it.
3175         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3176         REPLACE_INET_NTOP.
3177         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3178         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3179         (Depends-on, configure.ac): Update condition.
3180         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3181
3182 2011-09-16  Eric Blake  <eblake@redhat.com>
3183
3184         test-fsync: yet another enhancement
3185         * tests/test-fsync.c (main): Also test behavior on read-only text
3186         file.
3187
3188 2011-09-16  Bruno Haible  <bruno@clisp.org>
3189
3190         Enhance fsync, fdatasync tests.
3191         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3192         * tests/test-fdatasync.c (main): Likewise.
3193
3194 2011-09-16  Bruno Haible  <bruno@clisp.org>
3195
3196         Support for MSVC compiler: Ensure mode_t gets defined.
3197         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3198         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3200         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3201         * tests/test-fcntl-h.c: Check that mode_t is defined.
3202         * tests/test-sys_stat.c: Likewise.
3203         * tests/test-sys_types.c: Likewise.
3204         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3205         * doc/posix-headers/sys_stat.texi: Likewise.
3206         * doc/posix-headers/sys_types.texi: Likewise.
3207
3208 2011-09-16  Bruno Haible  <bruno@clisp.org>
3209
3210         sys_stat: Support for MSVC.
3211         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3212         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3213         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3214         MSVC.
3215
3216 2011-09-16  Bruno Haible  <bruno@clisp.org>
3217
3218         Support for MSVC compiler: Ensure off_t gets defined.
3219         * lib/unistd.in.h: Include <sys/types.h>.
3220         * tests/test-fcntl-h.c: Check that off_t is defined.
3221         * tests/test-sys_stat.c: Likewise.
3222         * tests/test-sys_types.c: Likewise.
3223
3224 2011-09-16  Eric Blake  <eblake@redhat.com>
3225
3226         fdatasync: port to Solaris
3227         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3228         * modules/fdatasync (Link): Document it.
3229         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3230
3231         fdatasync: port to MacOS X 10.7
3232         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3233         declared.
3234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3235         * modules/unistd (Makefile.am): Substitute it.
3236         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3237         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3238
3239         fdatasync: minor improvements
3240         * modules/fdatasync (Depends-on): Add condition for fsync.
3241         * lib/fdatasync.c (fdatasync): Add comment.
3242         * tests/test-unistd-c++.cc: Test fdatasync.
3243
3244         unistd: update refs to newer POSIX
3245         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3246         Suggested by Bruno Haible.
3247
3248         fdatasync: new module
3249         * modules/fsync (Description): Document difference to fdatasync.
3250         * modules/fdatasync: New module.
3251         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3252         * lib/fdatasync.c (fdatasync): Likewise.
3253         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3254         defaults.
3255         * modules/unistd (Makefile.am): Set witnesses.
3256         * lib/unistd.in.h (fdatasync): Declare.
3257         * MODULES.html.sh: Document it.
3258         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3259         * modules/fdatasync-tests: New test.
3260         * tests/test-fdatasync.c: Likewise.
3261
3262 2011-09-16  Eric Blake  <eblake@redhat.com>
3263
3264         test-fsync: enhance tests
3265         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3266         * tests/test-fsync.c (main): Enhance test.
3267
3268 2011-09-15  Bruno Haible  <bruno@clisp.org>
3269
3270         Support for MSVC compiler: Ensure ssize_t gets defined.
3271         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3272         * doc/posix-headers/stdio.texi: Likewise.
3273         * modules/stdio (Depends-on): Add ssize_t.
3274         * modules/sys_socket (Depends-on): Likewise.
3275         * modules/sys_types (Depends-on): Likewise.
3276         * modules/sys_uio (Depends-on): Likewise.
3277         * modules/unistd (Depends-on): Likewise.
3278         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3279         * tests/test-sys_types.c: Check that ssize_t is defined.
3280
3281 2011-09-14  Bruno Haible  <bruno@clisp.org>
3282
3283         Avoid using #, the m4 comment starter character, near brackets.
3284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3285         delimiter character in sed expressions.
3286         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3287         Suggested by Eric Blake.
3288
3289         Properly quote AC_CHECK_DECLS' 4th argument.
3290         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3291         argument.
3292         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3293         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3294         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3295         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3296         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3297         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3298         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3299         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3300         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3301         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3302         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3303         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3304         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3305         * m4/isinf.m4 (gl_ISINF): Likewise.
3306         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3307         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3308         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3309         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3310         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3311         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3312         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3313         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3314         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3315         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3316         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3317         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3319         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3321         Reported by Eric Blake.
3322
3323         Properly quote AC_CHECK_DECL's 4th argument.
3324         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3325         argument.
3326         * m4/argp.m4 (gl_ARGP): Likewise.
3327         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3328         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3329         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3330         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3331         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3332         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3334         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3336         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3337         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3338         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3339         Reported by Eric Blake.
3340
3341 2011-09-14  Eric Blake  <eblake@redhat.com>
3342
3343         opendir: avoid compile warning
3344         * lib/opendir.c (includes): Always include errno.h.
3345         Reported by Tatsuro MATSUOKA.
3346
3347 2011-09-14  Jim Meyering  <meyering@redhat.com>
3348
3349         maint.mk: sc_tight_scope: propagate failure from sub-make
3350         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3351         Reported by Martin von Gagern.
3352
3353 2011-09-13  Bruno Haible  <bruno@clisp.org>
3354
3355         tempname: Support for MSVC.
3356         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3357         MSVC.
3358         * modules/tempname (Depends-on): Add fcntl-h.
3359
3360 2011-09-13  Bruno Haible  <bruno@clisp.org>
3361
3362         sys_time: Support for MSVC.
3363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3364         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3365         include <winsock2.h>.
3366         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3367         function declarations that collide with POSIX.
3368         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3369         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3370
3371 2011-09-13  Bruno Haible  <bruno@clisp.org>
3372
3373         stat: Support for MSVC.
3374         * lib/stat.c: Include pathmax.h.
3375         * modules/stat (Depends-on): Add pathmax.
3376
3377         pathmax: Support for native Windows.
3378         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3379
3380 2011-09-12  Bruno Haible  <bruno@clisp.org>
3381
3382         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3383         * lib/dirent.in.h (struct dirent): New type.
3384         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3385         DT_WHT): New macros.
3386         (DIR): New type.
3387         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3388         (readdir, rewinddir): New declarations.
3389         * lib/dirent-private.h: New file.
3390         * lib/opendir.c: New file.
3391         * lib/readdir.c: New file.
3392         * lib/rewinddir.c: New file.
3393         * lib/closedir.c: New file.
3394         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3395         * m4/opendir.m4: New file.
3396         * m4/readdir.m4: New file.
3397         * m4/rewinddir.m4: New file.
3398         * m4/closedir.m4: New file.
3399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3400         REPLACE_CLOSEDIR here.
3401         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3402         readdir, rewinddir are declared.
3403         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3404         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3405         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3406         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3407         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3408         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3409         * modules/opendir: New file.
3410         * modules/readdir: New file.
3411         * modules/rewinddir: New file.
3412         * modules/closedir: New file.
3413         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3414         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3415         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3416         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3417         * NEWS: Mention the 'fchdir' change.
3418
3419 2011-09-11  Bruno Haible  <bruno@clisp.org>
3420
3421         asm-underscore.m4: Support for MSVC.
3422         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3423         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3424
3425 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3426
3427         Doc about crypt functions.
3428         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3429         needing for _GNU_SOURCE to get crypt.
3430         * doc/posix-functions/encrypt.texi: Likewise.
3431         * doc/posix-functions/setkey.texi: Likewise.
3432
3433 2011-09-11  Bruno Haible  <bruno@clisp.org>
3434
3435         doc: Update regarding MSVC 9.
3436         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3437         tested".
3438         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3439         * doc/posix-headers/*.texi: Likewise.
3440         * doc/pastposix-functions/*.texi: Likewise.
3441         * doc/glibc-functions/*.texi: Likewise.
3442         * doc/glibc-headers/*.texi: Likewise.
3443
3444 2011-09-11  Bruno Haible  <bruno@clisp.org>
3445
3446         unistd et al.: Don't assume <unistd.h> exists.
3447         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3448         does not exist.
3449         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3450         exist. But include <stdlib.h>.
3451         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3452         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3453         symlink() does not exist.
3454         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3455         include <io.h> instead.
3456         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3457         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3458         include <direct.h> instead.
3459         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3460         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3461         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3462         <io.h> instead.
3463         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3464         correctly if the system does not have hard links.
3465         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3466         <direct.h> instead.
3467         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3468         it when looking for function declarations.
3469         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3470         <direct.h> and <io.h> instead.
3471         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3472
3473 2011-09-11  Bruno Haible  <bruno@clisp.org>
3474
3475         strcase: Support for MSVC.
3476         * modules/strcase (Status, Notice): Remove obsoletion mark.
3477         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3478         * doc/posix-functions/strncasecmp.texi: Likewise.
3479
3480         strings: Don't assume <strings.h> exists.
3481         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3482         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3483         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3484         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3485
3486 2011-09-11  Bruno Haible  <bruno@clisp.org>
3487
3488         dirent: Don't assume <dirent.h> exists.
3489         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3490         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3491         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3492         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3493
3494 2011-09-11  Bruno Haible  <bruno@clisp.org>
3495
3496         Fix wint_t on MSVC.
3497         * lib/wchar.in.h (wint_t): On MSVC, override it.
3498         * lib/wctype.in.h (wint_t): Likewise.
3499         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3500         MSVC.
3501         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3502         * doc/posix-headers/wctype.texi: Likewise.
3503
3504 2011-09-11  Bruno Haible  <bruno@clisp.org>
3505
3506         sys_types: Fix typo.
3507         * lib/sys_types.in.h: Fix typo in comment.
3508         Reported by Paul Eggert.
3509
3510         Support for MSVC compiler: Ensure size_t gets defined.
3511         * modules/strings (Depends-on): Add 'sys_types'.
3512         * modules/sys_uio (Depends-on): Likewise.
3513         * lib/sys_uio.in.h: Update comment.
3514
3515         C++ tests for module 'sys_types'.
3516         * modules/sys_types-c++-tests: New file.
3517         * tests/test-sys_types-c++.cc: New file.
3518
3519         Tests for module 'sys_types'.
3520         * modules/sys_types-tests: New file.
3521         * tests/test-sys_types.c: New file.
3522
3523         New module 'sys_types'.
3524         * lib/sys_types.in.h: New file.
3525         * m4/sys_types_h.m4: New file.
3526         * modules/sys_types: New file.
3527         * doc/posix-headers/sys_types.texi: Mention the new module and the
3528         size_t problem on MSVC 9.
3529
3530 2011-09-11  Bruno Haible  <bruno@clisp.org>
3531
3532         Support for MSVC compiler: Avoid division by a literal 0.
3533         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3534         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3535         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3536         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3537         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3538         * tests/infinity.h: New file.
3539         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3540         on MSVC.
3541         * tests/test-ceilf1.c: Include infinity.h.
3542         (main): Use Infinityf.
3543         * tests/test-ceil1.c: Include infinity.h.
3544         (main): Use Infinityd.
3545         * tests/test-ceill.c: Include infinity.h.
3546         (main): Use Infinityl.
3547         * tests/test-dprintf-posix.c: Include infinity.h.
3548         (test_function): Use Infinityd.
3549         * tests/test-floorf1.c: Include infinity.h.
3550         (main): Use Infinityf.
3551         * tests/test-floor1.c: Include infinity.h.
3552         (main): Use Infinityd.
3553         * tests/test-floorl.c: Include infinity.h.
3554         (main): Use Infinityl.
3555         * tests/test-fprintf-posix.c: Include infinity.h.
3556         (test_function): Use Infinityd.
3557         * tests/test-frexp.c: Include infinity.h.
3558         (main): Use Infinityd.
3559         * tests/test-frexpl.c: Include infinity.h.
3560         (main): Use Infinityl.
3561         * tests/test-isfinite.c: Include infinity.h.
3562         (test_isfinitef): Use Infinityf.
3563         (test_isfinited): Use Infinityd.
3564         (test_isfinitel): Use Infinityl.
3565         * tests/test-isinf.c: Include infinity.h.
3566         (test_isinff): Use Infinityf.
3567         (test_isinfd): Use Infinityd.
3568         (test_isinfl): Use Infinityl.
3569         * tests/test-isnan.c: Include infinity.h.
3570         (test_float): Use Infinityf.
3571         (test_double): Use Infinityd.
3572         (test_long_double): Use Infinityl.
3573         * tests/test-isnanf.h: Include infinity.h.
3574         (main): Use Infinityf.
3575         * tests/test-isnand.h: Include infinity.h.
3576         (main): Use Infinityd.
3577         * tests/test-isnanl.h: Include infinity.h.
3578         (main): Use Infinityl.
3579         * tests/test-ldexpl.c: Include infinity.h.
3580         (main): Use Infinityl.
3581         * tests/test-printf-posix.h: Include infinity.h.
3582         (test_function): Use Infinityd.
3583         * tests/test-roundf1.c: Include infinity.h.
3584         (main): Use Infinityf.
3585         * tests/test-round1.c: Include infinity.h.
3586         (main): Use Infinityd.
3587         * tests/test-roundl.c: Include infinity.h.
3588         (main): Use Infinityl.
3589         * tests/test-signbit.c: Include infinity.h.
3590         (test_signbitf): Use Infinityf.
3591         (test_signbitd): Use Infinityd.
3592         (test_signbitl): Use Infinityl.
3593         * tests/test-snprintf-posix.h: Include infinity.h.
3594         (test_function): Use Infinityd, Infinityl.
3595         * tests/test-sprintf-posix.h: Include infinity.h.
3596         (test_function): Use Infinityd, Infinityl.
3597         * tests/test-truncf1.c: Include infinity.h.
3598         (main): Use Infinityf.
3599         * tests/test-trunc1.c: Include infinity.h.
3600         (main): Use Infinityd.
3601         * tests/test-truncl.c: Include infinity.h.
3602         (main): Use Infinityl.
3603         * tests/test-vasnprintf-posix.c: Include infinity.h.
3604         (test_function): Use Infinityd, Infinityl.
3605         * tests/test-vasprintf-posix.c: Include infinity.h.
3606         (test_function): Use Infinityd, Infinityl.
3607         * modules/ceilf-tests (Files): Add tests/infinity.h.
3608         * modules/ceil-tests (Files): Likewise.
3609         * modules/ceill-tests (Files): Likewise.
3610         * modules/dprintf-posix-tests (Files): Likewise.
3611         * modules/floorf-tests (Files): Likewise.
3612         * modules/floor-tests (Files): Likewise.
3613         * modules/floorl-tests (Files): Likewise.
3614         * modules/fprintf-posix-tests (Files): Likewise.
3615         * modules/frexp-tests (Files): Likewise.
3616         * modules/frexp-nolibm-tests (Files): Likewise.
3617         * modules/frexpl-tests (Files): Likewise.
3618         * modules/frexpl-nolibm-tests (Files): Likewise.
3619         * modules/isfinite-tests (Files): Likewise.
3620         * modules/isinf-tests (Files): Likewise.
3621         * modules/isnan-tests (Files): Likewise.
3622         * modules/isnanf-tests (Files): Likewise.
3623         * modules/isnanf-nolibm-tests (Files): Likewise.
3624         * modules/isnand-tests (Files): Likewise.
3625         * modules/isnand-nolibm-tests (Files): Likewise.
3626         * modules/isnanl-tests (Files): Likewise.
3627         * modules/isnanl-nolibm-tests (Files): Likewise.
3628         * modules/ldexpl-tests (Files): Likewise.
3629         * modules/printf-posix-tests (Files): Likewise.
3630         * modules/roundf-tests (Files): Likewise.
3631         * modules/round-tests (Files): Likewise.
3632         * modules/roundl-tests (Files): Likewise.
3633         * modules/signbit-tests (Files): Likewise.
3634         * modules/snprintf-posix-tests (Files): Likewise.
3635         * modules/sprintf-posix-tests (Files): Likewise.
3636         * modules/truncf-tests (Files): Likewise.
3637         * modules/trunc-tests (Files): Likewise.
3638         * modules/truncl-tests (Files): Likewise.
3639         * modules/vasnprintf-posix-tests (Files): Likewise.
3640         * modules/vasprintf-posix-tests (Files): Likewise.
3641         * modules/vdprintf-posix-tests (Files): Likewise.
3642         * modules/vfprintf-posix-tests (Files): Likewise.
3643         * modules/vprintf-posix-tests (Files): Likewise.
3644         * modules/vsnprintf-posix-tests (Files): Likewise.
3645         * modules/vsprintf-posix-tests (Files): Likewise.
3646         * modules/xprintf-posix-tests (Files): Likewise.
3647
3648 2011-09-11  Bruno Haible  <bruno@clisp.org>
3649
3650         Ensure pid_t gets defined.
3651         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3652         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3653         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3654         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3655         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3656         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3657         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3659         * tests/test-fcntl-h.c: Check that pid_t is defined.
3660         * tests/test-sched.c: Likewise.
3661         * tests/test-termios.c: Likewise.
3662         * tests/test-time.c: Likewise.
3663         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3664         * doc/posix-headers/signal.texi: Likewise.
3665         * doc/posix-headers/sys_types.texi: Likewise.
3666         * doc/posix-headers/time.texi: Likewise.
3667
3668 2011-09-11  Bruno Haible  <bruno@clisp.org>
3669
3670         acl: Fix compilation on Solaris 10 (older version).
3671         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3672         of ACE_EVERYONE.
3673         * lib/set-mode-acl.c (qset_acl): Likewise.
3674         Reported by Christian Jullien <eligis@orange.fr>.
3675
3676 2011-09-10  Bruno Haible  <bruno@clisp.org>
3677
3678         iconv, unsetenv: Add support for MSVC compiler.
3679         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3680         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3681
3682 2011-09-10  Bruno Haible  <bruno@clisp.org>
3683
3684         *printf: Add support for MSVC compiler.
3685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3686         handles the exception caused by the %n directive. When cross-compiling,
3687         guess no on native Windows.
3688         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3689         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3690         emulate it through vsnprintf.
3691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3692         * doc/posix-functions/dprintf.texi: Update documentation regarding
3693         MSVC 9.
3694         * doc/posix-functions/fprintf.texi: Likewise.
3695         * doc/posix-functions/printf.texi: Likewise.
3696         * doc/posix-functions/snprintf.texi: Likewise.
3697         * doc/posix-functions/sprintf.texi: Likewise.
3698         * doc/posix-functions/swprintf.texi: Likewise.
3699         * doc/posix-functions/vdprintf.texi: Likewise.
3700         * doc/posix-functions/vfprintf.texi: Likewise.
3701         * doc/posix-functions/vprintf.texi: Likewise.
3702         * doc/posix-functions/vsnprintf.texi: Likewise.
3703         * doc/posix-functions/vsprintf.texi: Likewise.
3704         * doc/glibc-functions/asprintf.texi: Likewise.
3705         * doc/glibc-functions/obstack_printf.texi: Likewise.
3706         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3707         * doc/glibc-functions/vasprintf.texi: Likewise.
3708
3709 2011-09-10  Bruno Haible  <bruno@clisp.org>
3710
3711         nocrash: Add support for native Windows.
3712         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3713
3714 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3715             Bruno Haible  <bruno@clisp.org>
3716
3717         absolute-header, include-next: Add support for MSVC compiler.
3718         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3719         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3720         directory separator in #line directives.
3721         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3722         recognize also backslash as directory separator in #line directives.
3723
3724 2011-09-08  Jim Meyering  <meyering@redhat.com>
3725
3726         maint.mk: mark the post-release commit log with "maint: " prefix
3727         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3728         one-line commit-log summary.
3729
3730 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3731             Bruno Haible  <bruno@clisp.org>
3732
3733         Doc about crypt functions.
3734         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3735         systems.
3736         * doc/posix-functions/encrypt.texi: Likewise.
3737         * doc/posix-functions/setkey.texi: Likewise.
3738
3739 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3740
3741         * lib/gc.h: Fix copyright header.
3742
3743 2011-09-07  Bruno Haible  <bruno@clisp.org>
3744
3745         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3746         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3747         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3748
3749 2011-09-07  Bruno Haible  <bruno@clisp.org>
3750
3751         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3752         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3753         * lib/freopen.c: Likewise.
3754         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3755         * lib/lstat.c: Likewise.
3756         * lib/stat.c: Likewise.
3757         * lib/open.c: Use different syntax for include of <fcntl.h>.
3758         * lib/openat.c: Include fcntl.h again, explicitly.
3759
3760 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3761
3762         parse-datetime: document the newly accepted format
3763         * doc/parse-datetime.texi (Combined date and time of day items):
3764         New section.
3765
3766 2011-09-06  Bruno Haible  <bruno@clisp.org>
3767
3768         acl: Fix a test failure on newer Solaris 10 with ZFS.
3769         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3770         ENOSYS as no ACL.
3771         Reported by Jim Meyering.
3772
3773 2011-09-06  Bruno Haible  <bruno@clisp.org>
3774
3775         acl: Update for AIX >= 5.3 with NFS.
3776         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3777         ENOSYS as no ACL.
3778
3779         acl: Fix a test failure on AIX >= 5.3 with NFS.
3780         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3781         as no ACL.
3782
3783 2011-09-06  Bruno Haible  <bruno@clisp.org>
3784
3785         acl: Fix a test failure on IRIX 6.5 with NFS.
3786         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3787         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3788         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3789         * lib/copy-acl.c (qcopy_acl): Likewise.
3790
3791 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3792
3793         openat: port to AIX 7.1 with large files
3794         AIX 7.1 does a "#define openat open64at" if large files are in use,
3795         so we can't simply #undef openat.  Use the orig_openat trick (similar
3796         to orig_open in lib/open.c) to work around the problem.  Problem
3797         reported by Kevin Brott for GNU tar, in the thread containing
3798         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3799         * lib/openat.c (__need_system_fcntl_h): Define first.
3800         Include <fcntl.h> and <sys/types.h> before undefining.
3801         (orig_openat) [HAVE_OPENAT]: New inline function.
3802         (openat) [HAVE_OPENAT]: Do not undef.
3803         (rpl_openat): Use orig_openat, not openat.
3804
3805 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3806             Bruno Haible  <bruno@clisp.org>
3807
3808         acl: Avoid errors on NonStop Kernel.
3809         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3810         ENOTSUP errors.
3811
3812 2011-09-05  Bruno Haible  <bruno@clisp.org>
3813
3814         acl: Clean up Solaris code.
3815         * lib/acl-internal.h: Remove no-op #if.
3816         * lib/file-has-acl.c: Likewise.
3817         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3818         * lib/copy-acl.c (qcopy_acl): Likewise.
3819
3820 2011-09-05  Bruno Haible  <bruno@clisp.org>
3821
3822         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3823         binaries built on the original Solaris 10.
3824         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3825         trivial.
3826
3827 2011-09-05  Bruno Haible  <bruno@clisp.org>
3828
3829         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3830         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3831         10.
3832         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3833         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3834         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3835         instead of acl_get, facl_get, acl_set, facl_set.
3836
3837 2011-09-05  Bruno Haible  <bruno@clisp.org>
3838
3839         copy-file: Try unit tests on more file systems.
3840         * tests/test-copy-file-1.sh: New file.
3841         * tests/test-copy-file-2.sh: New file.
3842         * modules/copy-file-tests (Files): Add them.
3843         (Makefile.am): Add them to TESTS.
3844
3845         acl: Try unit tests on more file systems.
3846         * tests/test-file-has-acl-1.sh: New file.
3847         * tests/test-file-has-acl-2.sh: New file.
3848         * tests/test-set-mode-acl-1.sh: New file.
3849         * tests/test-set-mode-acl-2.sh: New file.
3850         * tests/test-copy-acl-1.sh: New file.
3851         * tests/test-copy-acl-2.sh: New file.
3852         * modules/acl-tests (Files): Add them.
3853         (Makefile.am): Add them to TESTS.
3854
3855 2011-09-04  Bruno Haible  <bruno@clisp.org>
3856
3857         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3858         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3859         10.
3860         (OLD_ALLOW, OLD_DENY): New macros.
3861         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3862         ACE_ACCESS_ALLOWED_ACE_TYPE.
3863         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3864         ACE_ACCESS_DENIED_ACE_TYPE.
3865         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3866         (NEW_ACE_EXECUTE): Fix value.
3867         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3868         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3869         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3870         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3871         NEW_ACE_SYNCHRONIZE): New macros.
3872         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3873         instead of acl_fromtext, acl_set, facl_set.
3874         Fixes a coreutils/tests/cp/perm failure.
3875
3876 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3877
3878         openat: test for fstatat (..., 0) bug
3879         Further testing with tar suggests that fstatat (..., 0)
3880         does not work in general, on AIX 7.1; see
3881         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3882         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3883         replacement fstatat (which is what older AIX releases were using
3884         anyway).
3885         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3886         use is now changed to orig_fstatat.  This was probably the right
3887         thing to do anyway.
3888         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3889         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3890         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3891         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3892         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3893         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3894         if the bug is found.
3895
3896         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3897         This tests for another fstatat bug on AIX 7.1:
3898         fstatat (AT_FDCWD, ..., 0) does not work.  See
3899         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3900         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3901         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3902         (rpl_fstatat): Adjust so that it works around either (or both)
3903         bugs if present.
3904         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3905
3906 2011-09-03  Karl Berry  <karl@gnu.org>
3907
3908         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3909         in index entries.
3910
3911 2011-09-02  Bruno Haible  <bruno@clisp.org>
3912
3913         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3914         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3915         values of AR, ARFLAGS, RANLIB.
3916         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3917
3918 2011-09-02  Bruno Haible  <bruno@clisp.org>
3919
3920         Find 'ar' program that fits with --host argument.
3921         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3922
3923 2011-09-02  Bruno Haible  <bruno@clisp.org>
3924
3925         tests: init.sh: Support any non-GNU diff.
3926         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3927         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3928         Solaris 8.
3929
3930 2011-09-02  Bruno Haible  <bruno@clisp.org>
3931
3932         tests: init.sh: work also with any non-GNU diff that supports -u
3933         * tests/init.sh: Relax check for diff -u support.
3934         Rather than checking for GNU diff via --version, simply check
3935         for support for -u itself.  Useful at least on OpenBSD 4.9,
3936         AIX 7.1, IRIX 6.5, and Solaris 10.
3937
3938 2011-09-01  Bruno Haible  <bruno@clisp.org>
3939
3940         strtoimax, strtoumax: Document problem on HP-UX 11.
3941         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3942         * doc/posix-functions/strtoumax.texi: Likewise.
3943
3944 2011-09-01  Bruno Haible  <bruno@clisp.org>
3945
3946         strtoumax: Avoid link error on OSF/1 with DTK cc.
3947         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3948         defined as a function.
3949         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3950         strtoumax is defined, not whether it is declared.
3951
3952 2011-09-01  Bruno Haible  <bruno@clisp.org>
3953
3954         strtoimax: Avoid link error on OSF/1 with DTK cc.
3955         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3956         defined as a function.
3957         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3958         strtoimax is defined, not whether it is declared.
3959
3960 2011-09-01  Bruno Haible  <bruno@clisp.org>
3961
3962         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3963         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3964         as a function.
3965         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3966         whether it is declared.
3967
3968 2011-09-01  Bruno Haible  <bruno@clisp.org>
3969
3970         imaxabs: Avoid link error on OSF/1 with DTK cc.
3971         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3972         as a function.
3973         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3974         whether it is declared.
3975
3976 2011-09-01  Bruno Haible  <bruno@clisp.org>
3977
3978         Tests for module 'strtoumax'.
3979         * modules/strtoumax-tests: New file.
3980         * tests/test-strtoumax.c: New file.
3981
3982         Tests for module 'strtoimax'.
3983         * modules/strtoimax-tests: New file.
3984         * tests/test-strtoimax.c: New file.
3985
3986         Tests for module 'imaxdiv'.
3987         * modules/imaxdiv-tests: New file.
3988         * tests/test-imaxdiv.c: New file.
3989
3990         Tests for module 'imaxabs'.
3991         * modules/imaxabs-tests: New file.
3992         * tests/test-imaxabs.c: New file.
3993
3994 2011-09-01  Bruno Haible  <bruno@clisp.org>
3995
3996         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3997         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3998         pthread_create.
3999
4000 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         openat: work around AIX 7.1 fstatat issue
4003         This should fix the problem that was not properly fixed
4004         in the previous change, dated 2011-08-30.
4005         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4006         __need_system_stat_h defined.
4007         (orig_fstatat) [HAVE_FSTATAT]: New function.
4008         (rpl_fstatat): Go back to the old way of doing things,
4009         except call orig_fstatat instead of fstatat.
4010         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4011         Remove unnecessary check whether fstatat fills in st_size etc.
4012
4013 2011-09-01  Bruno Haible  <bruno@clisp.org>
4014
4015         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4016         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4017         just include the system's header.
4018
4019 2011-08-31  Jim Meyering  <meyering@redhat.com>
4020
4021         tests: avoid spurious assertion failure in test-float.c on ppc64
4022         * tests/test-float.c (test_long_double): Comment out an assertion,
4023         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4024         with gcc-4.4.4.
4025
4026         maint: indent with spaces, not TABs
4027         I need to get in the habit of running gnulib's "make check".
4028         Both of these would have been caught.
4029         * m4/largefile.m4: Indent with spaces, not TABs.
4030         * lib/parse-datetime.y (iso_8601_time): Likewise.
4031         Spotted by Pádraig Brady.
4032
4033         test-parse-datetime.c: accommodate a relatively strict gcc warning
4034         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4035         to avoid a warning from gcc's -Werror=missing-declarations.
4036         Insert a few spaces-before-funcall-parenthesis.
4037
4038 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4039
4040         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4041         The parser now accepts ISO 8601 date-time strings with "T" as the
4042         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4043         with a space between the date and time strings.  Now it also parses
4044         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4045         variants like "2004-02-29T16:21:42.333-07:00"
4046         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4047         of day representation using the 'T' separator character.
4048         * doc/parse-datetime.texi (General date syntax): replace use of
4049         deprecated --iso-8601 option with --rfc-3339 in example of date
4050         command output formats that can be parsed.
4051         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4052         lib/parse-datetime.y.
4053         (gmt_offset): New function.
4054         (main): Add additional test cases to validate ISO8601 extended
4055         date and time of day parsing.
4056
4057 2011-08-31  Bruno Haible  <bruno@clisp.org>
4058
4059         freopen: Documentation.
4060         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4061         name.
4062         Reported by Claudio Bley <claudio.bley@gmail.com>.
4063
4064 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4065
4066         freopen: Don't crash if the filename argument is NULL.
4067         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4068         NULL.
4069
4070 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         openat: work around AIX 7.1 fstatat bug
4073         Problem reported by Kevin Brott for GNU tar, in the thread containing
4074         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4075         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4076         FSTATAT_ST_SIZE_ETC_BROKEN.
4077         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4078         rpl_fstatat.
4079         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4080         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4081         AC_CHECK_FUNCS_ONCE for fstatat.
4082         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4083         fchmodat, mkdirat, openat and unlinkat.
4084
4085 2011-08-30  Bruno Haible  <bruno@clisp.org>
4086
4087         Avoid endless recursions if config.h includes some header files.
4088         * lib/fopen.c (__need_FILE): Define already before including config.h.
4089         * lib/freopen.c (__need_FILE): Likewise.
4090         * lib/open.c (__need_system_fcntl_h): Likewise.
4091         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4092         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4093         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4094
4095 2011-08-25  Karl Berry  <karl@gnu.org>
4096
4097         * config/srclist.txt (ylwrap): new try.
4098         * build-aux/ylwrap: new file.
4099
4100 2011-08-23  Bruno Haible  <bruno@clisp.org>
4101
4102         tmpdir: Use a good default directory on native Windows.
4103         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4104         (P_tmpdir): Default to _P_tmpdir on native Windows.
4105         (path_search): On native Windows, try the value returned by GetTempPath
4106         before trying P_tmpdir.
4107         * modules/tmpdir (Depends-on): Add pathmax.
4108         Suggested by John Darrington <john@darrington.wattle.id.au>.
4109
4110 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4111
4112         doc: fix typo in README-release
4113         * top/README-release: Capitalize first word of a sentence.
4114
4115 2011-08-19  Jim Meyering  <meyering@redhat.com>
4116
4117         fts: do not exhaust memory when processing million-entry directories
4118         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4119         directory would require about 256*N bytes of memory.  Thus, it was
4120         easy to construct a directory too large to be processed by any of
4121         those tools.  With this change, fts' maximum memory utilization is
4122         now limited to around 30MB.
4123         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4124         (fts_read): When we've processed the final entry (i.e., when
4125         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4126         using the parent entry to read any remaining entries.  Dispatch
4127         depending on what fts_build returns:
4128         - NULL+stop, aka failure: stop
4129         - NULL otherwise: move up in the dir hierarchy
4130         - non-NULL: handle this new entry
4131         (fts_build): Declare and use new local, continue_readdir.
4132         Prepare to be called from fts_read, when the entries
4133         from a partially-read directory have just been exhausted.
4134         In that case, we'll skip the opendir and instead use the parent's
4135         fts_dirp and derive dir_fd from that.
4136         Finally, in the readdir loop, if we read max_entries entries,
4137         exit the loop ensuring *not* to call closedir.  This is required
4138         so that fts_dirp can be reused on a subsequent call.
4139         Prompted by Ben England's report of memory exhaustion in find
4140         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4141
4142         maint: fts: move decl of `dp' down into while loop; split a long line
4143         * lib/fts.c (fts_build): No semantic change.
4144
4145         fts: add/use new struct member, fts_dirp
4146         We are about to use this to manage any directory with
4147         too many entries to read all of them into memory at once.
4148         To do that, we'll need to save the DIR* pointer in each
4149         affected FTSENT struct.
4150         * lib/fts_.h: Include <dirent.h>.
4151         (struct FTSENT) [fts_dirp]: New member.
4152         * lib/fts.c (closedir_and_clear): Define.
4153         Use it in place of closedir so that we are sure to
4154         clear the new fts_dirp member when done with it.
4155         (fts_alloc): Initialize the new member.
4156         (fts_lfree): Free, if needed.
4157
4158         maint: fts: give __opendir2 a new parameter and rename
4159         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4160         than surreptitiously using sole caller's "dir_fd".
4161         (fts_opendir): Rename from __opendir2.
4162
4163         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4164         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4165
4166         maint: fts.c: correct off-by-one indentation
4167         * lib/fts.c (fts_build): Correct indentation, change style
4168         of a couple of block comments, and bracing style.
4169
4170         maint: fts.c: move __opendir2 #define "up" out of function body
4171         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4172
4173         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4174         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4175         out for a long time and besides was useful only on BSD systems.
4176
4177 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4178
4179         regex: port to Stratus OpenVOS
4180         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4181         define to empty, rather than attempting nonportable optimizations.
4182         Problem reported by Paul Green in:
4183         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4184         and fix suggested by Eric Blake in:
4185         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4186
4187 2011-08-17  Eric Blake  <eblake@redhat.com>
4188
4189         getcwd: fix test failures on mingw
4190         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4191         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4192         test if long directory cannot be created, and allow mingw errno.
4193
4194         getcwd-lgpl: fix m4 to match relaxed test for BSD
4195         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4196         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4197         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4198         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4199         signature problem.
4200
4201         getcwd: fix compilation on mingw64
4202         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4203         getcwd.
4204         Reported by Marc-André Lureau.
4205
4206         pipe2: silence compiler warning
4207         * lib/pipe2.c (pipe2): Hide label if it is not used.
4208
4209 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4210
4211         relocatable-prog: fix link error
4212         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4213         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4214         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4215         into modules/relocatable-lib without noticing that
4216         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4217         also needs to build relocatable.c.
4218
4219 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4223         shell code: it contained a 'break' that was not in a loop.
4224         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4225         via a shell-language loop; this may have been true in old Autoconf
4226         versions, but it's not true in Autoconf 2.68.  I found this bug
4227         when testing coreutils git on Solaris 8, whose shell complains
4228         about the syntax error.
4229
4230 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4231
4232         * lib/base64.c: Fix comment to reference RFC 4648.
4233         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4234         <gvtulder@gmail.com>.
4235
4236 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4237
4238         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4239
4240         po/Makefile.in.in: fix make -q problem
4241         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4242         rule, since there's no file named 'check-macro-version' and its
4243         use as a file breaks make -q.
4244         (all): Don't depend on check-macro-version.
4245         (CHECK_MACRO_VERSION): New macro.
4246         (stamp-po): Use it.
4247
4248         configmake: fix make -q problem
4249         * modules/configmake (configmake.h): Update configmake.h's time stamp
4250         even if the file does not change.  Otherwise, 'make -q' fails.
4251         Problem reported by Simon Josefsson in
4252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4253
4254 2011-08-11  Jim Meyering  <meyering@redhat.com>
4255
4256         git-version-gen: correct the advice in a comment
4257         * build-aux/git-version-gen: Correct comment.
4258         Don't recommend to list .tarball-version in .gitignore.
4259
4260 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4261
4262         base64: fix off-by-one buffer size bug
4263         Problem and (trivial) fix reported by Gijs van Tulder in
4264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4265         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4266         * tests/test-base64.c (main): Catch the bug.
4267
4268 2011-08-10  Eric Blake  <eblake@redhat.com>
4269
4270         closein: correct comments
4271         * lib/closein.c (close_stdin): Improve comments.
4272
4273 2011-08-09  Bruno Haible  <bruno@clisp.org>
4274
4275         More tests for 'fseeko'.
4276         * tests/test-fseeko3.c: New file, from Eric Blake.
4277         * tests/test-fseeko3.sh: New file.
4278         * modules/fseeko-tests (Files): Add them.
4279         (TESTS): Add test-fseeko3.sh.
4280         (check_PROGRAMS): Add test-fseeko3.
4281
4282 2011-08-09  Eric Blake  <eblake@redhat.com>
4283
4284         fseeko: remove unneeded hack
4285         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4286
4287         fseeko: fix bug on glibc
4288         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4289         Reported by John W. Eaton.
4290
4291 2011-08-08  Bruno Haible  <bruno@clisp.org>
4292
4293         unictype/base: Fix interoperability with preinstalled libunistring.
4294         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4295         Reported by Simon Josefsson.
4296
4297 2011-08-08  Bruno Haible  <bruno@clisp.org>
4298
4299         iswblank: Detect declaration correctly.
4300         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4301         AC_CHECK_DECLS invocation.
4302
4303 2011-08-08  Bruno Haible  <bruno@clisp.org>
4304
4305         tcgetsid: Detect declaration correctly.
4306         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4307         AC_CHECK_DECLS invocation.
4308         Reported by Simon Josefsson.
4309
4310 2011-08-08  Eric Blake  <eblake@redhat.com>
4311
4312         largefile: fix typo that regressed large file support
4313         * modules/largefile (configure.ac-early): Fix section name.
4314
4315 2011-08-06  Karl Berry  <karl@gnu.org>
4316
4317         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4318         a separate module.
4319
4320 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4321
4322         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4323         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4324         get prototype for free.
4325
4326 2011-08-04  Bruno Haible  <bruno@clisp.org>
4327
4328         Tests for module 'pathmax'.
4329         * modules/pathmax-tests: New file.
4330         * tests/test-pathmax.c: New file.
4331
4332         canonicalize-lgpl: Support larger filenames on the Hurd.
4333         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4334         Reported by Paul Eggert.
4335
4336         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4337         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4338         * lib/chdir-long.h: Include pathmax.h.
4339         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4340         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4341         (PATH_MAX): Remove code that is done by pathmax.h.
4342         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4343         * lib/tmpfile.c: Add a comment.
4344         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4345         * modules/chdir-long (Depends-on): Add pathmax.
4346         * modules/getcwd (Depends-on): Add pathmax.
4347         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4348         is not defined.
4349         * doc/posix-headers/limits.texi: Mention the pathmax module.
4350         * NEWS: Mention the change.
4351
4352 2011-08-02  Bruno Haible  <bruno@clisp.org>
4353
4354         pthread_sigmask: Actually use results of gl_THREADLIB.
4355         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4356         gl_THREADLIB, not gl_[]THREADLIB.
4357         Reported by Eric Blake.
4358
4359 2011-08-02  Jim Meyering  <meyering@redhat.com>
4360
4361         maint.mk: relax the default _gl_TS_function_match regexp
4362         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4363         space between function name and "(" in an "extern" declaration.
4364         That would fail to match a decl with no space there: extern void foo();
4365
4366 2011-07-31  Iain Nicol  <iain@thenicols.net>
4367
4368         git-version-gen: document that EXTRA_DIST must include .version
4369         * build-aux/git-version-gen: In the how-to-use comment, document
4370         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4371         will fail when run from an unpacked distribution tarball.
4372
4373 2011-08-01  Bruno Haible  <bruno@clisp.org>
4374
4375         wctype-h: Fix last change.
4376         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4377         REPLACE_TOWLOWER to 0.
4378         Reported by Sam Steingold <sds@gnu.org>.
4379
4380 2011-07-31  Bruno Haible  <bruno@clisp.org>
4381
4382         frexpl: Update autoconf test.
4383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4384         according to changes of 2011-06-20.
4385
4386 2011-07-31  Bruno Haible  <bruno@clisp.org>
4387
4388         sys_utsname: Add support for Minix.
4389         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4390         <sys/utsname.h>.
4391         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4392         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4393
4394 2011-07-31  Bruno Haible  <bruno@clisp.org>
4395
4396         strings: Add support for Minix.
4397         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4398         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4399         * doc/posix-headers/strings.texi: Document the Minix problem.
4400
4401 2011-07-31  Bruno Haible  <bruno@clisp.org>
4402
4403         wctype-h: Add support for Minix.
4404         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4405         REPLACE_TOWLOWER.
4406         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4407         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4408         REPLACE_ISWCNTRL.
4409
4410 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4411
4412         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4413         This is a performance improvement for 64-bit hosts: it causes the
4414         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4415
4416 2011-07-31  Bruno Haible  <bruno@clisp.org>
4417
4418         stdioext: Add support for Minix.
4419         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4420         * lib/fpurge.c (fpurge): Likewise.
4421         * lib/freadahead.c (freadahead): Likewise.
4422         * lib/freadable.c (freadable): Likewise.
4423         * lib/freading.c (freading): Likewise.
4424         * lib/freadptr.c (freadptr): Likewise.
4425         * lib/freadseek.c (freadptrinc): Likewise.
4426         * lib/fseeko.c (rpl_fseeko): Likewise.
4427         * lib/fseterr.c (fseterr): Likewise.
4428         * lib/fwritable.c (fwritable): Likewise.
4429         * lib/fwriting.c (fwriting): Likewise.
4430         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4431         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4432
4433 2011-07-31  Bruno Haible  <bruno@clisp.org>
4434
4435         errno: Port to Minix.
4436         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4437         ECONNABORTED are defined.
4438         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4439         GNULIB_defined_ECONNABORTED): New macros.
4440         * lib/strerror-override.h (strerror_override): Test also
4441         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4442         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4443         ECONNABORTED.
4444         * doc/posix-headers/errno.texi: Mention the Minix problem.
4445
4446 2011-07-31  Bruno Haible  <bruno@clisp.org>
4447
4448         Work around declaration collisions on Minix.
4449         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4450         defined, set REPLACE_MBSINIT.
4451         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4452         defined, set REPLACE_MBRTOWC.
4453         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4454         set REPLACE_MBRLEN.
4455         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4456         defined, set REPLACE_MBSRTOWCS.
4457         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4458         defined, set REPLACE_WCRTOMB.
4459         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4460         defined, set REPLACE_WCSRTOMBS.
4461
4462 2011-07-31  Bruno Haible  <bruno@clisp.org>
4463
4464         Add support for Minix with ACK compiler.
4465         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4466         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4467         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4468
4469 2011-07-31  Bruno Haible  <bruno@clisp.org>
4470
4471         Documentation about Minix.
4472         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4473         * doc/glibc-headers/*.texi: Likewise.
4474         * doc/posix-functions/*.texi: Likewise.
4475         * doc/glibc-functions/*.texi: Likewise.
4476
4477 2011-07-31  Bruno Haible  <bruno@clisp.org>
4478
4479         snippet/warn-on-use: Fix indentation.
4480         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4481
4482 2011-07-25  Jim Meyering  <meyering@redhat.com>
4483
4484         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4485         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4486         commands.
4487
4488 2011-07-27  Jim Meyering  <meyering@redhat.com>
4489
4490         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4491         * top/maint.mk (gl_extract_significant_defines_): Now that
4492         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4493         gnulib/lib/signal.in.h, and now that we recommend to
4494         define-if-undefined those two symbols in application code,
4495         we must filter them out of the "significant" list.
4496         This avoids a "make syntax-check" failure in coreutils.
4497
4498 2011-07-26  Eric Blake  <eblake@redhat.com>
4499
4500         warnings: add comments about previous patch
4501         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4502         * m4/include_next.m4: Likewise.
4503         * m4/warn-on-use.m4: Likewise.
4504         * m4/warnings.m4: Likewise, and simplify use.
4505         Suggested by Stefano Lattarini.
4506
4507         include-next, warnings: support older autoconf
4508         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4509         AS_VAR_PUSHDEF in a way that works with older autoconf.
4510         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4511         Reported by Daniel P. Berrange.
4512
4513 2011-07-25  Bruno Haible  <bruno@clisp.org>
4514
4515         fseek, ftell: Fix doc.
4516         * doc/posix-functions/fseek.texi: Reword statement about
4517         AC_SYS_LARGEFILE.
4518         * doc/posix-functions/ftell.texi: Likewise.
4519
4520 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4521             Bruno Haible  <bruno@clisp.org>
4522
4523         Add dependencies to the 'largefile' module.
4524         * modules/fopen (Depends-on): Add 'largefile'.
4525         * modules/freopen (Depends-on): Likewise.
4526         * modules/fseeko (Depends-on): Likewise.
4527         * modules/ftello (Depends-on): Likewise.
4528         * modules/glob (Depends-on): Likewise.
4529         * modules/lseek (Depends-on): Likewise.
4530         * modules/lstat (Depends-on): Likewise.
4531         * modules/mkostemp (Depends-on): Likewise.
4532         * modules/mkostemps (Depends-on): Likewise.
4533         * modules/mkstemp (Depends-on): Likewise.
4534         * modules/mkstemps (Depends-on): Likewise.
4535         * modules/open (Depends-on): Likewise.
4536         * modules/openat (Depends-on): Likewise.
4537         * modules/pread (Depends-on): Likewise.
4538         * modules/pwrite (Depends-on): Likewise.
4539         * modules/scandir (Depends-on): Likewise.
4540         * modules/stat (Depends-on): Likewise.
4541         * modules/tmpfile (Depends-on): Likewise.
4542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4543         since the containing module now depends on the largefile module.
4544         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4545         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4546         off_t is fixed by gnulib.
4547         * doc/posix-functions/freopen.texi: Likewise.
4548         * doc/posix-functions/fseeko.texi: Likewise.
4549         * doc/posix-functions/fstatat.texi: Likewise.
4550         * doc/posix-functions/ftello.texi: Likewise.
4551         * doc/posix-functions/glob.texi: Likewise.
4552         * doc/posix-functions/lseek.texi: Likewise.
4553         * doc/posix-functions/lstat.texi: Likewise.
4554         * doc/posix-functions/mkstemp.texi: Likewise.
4555         * doc/posix-functions/open.texi: Likewise.
4556         * doc/posix-functions/openat.texi: Likewise.
4557         * doc/posix-functions/pread.texi: Likewise.
4558         * doc/posix-functions/pwrite.texi: Likewise.
4559         * doc/posix-functions/scandir.texi: Likewise.
4560         * doc/posix-functions/stat.texi: Likewise.
4561         * doc/posix-functions/tmpfile.texi: Likewise.
4562         * doc/glibc-functions/mkostemp.texi: Likewise.
4563         * doc/glibc-functions/mkostemps.texi: Likewise.
4564         * doc/glibc-functions/mkstemps.texi: Likewise.
4565
4566 2011-07-25  Bruno Haible  <bruno@clisp.org>
4567
4568         fcntl: Move AC_LIBOBJ invocation to module description.
4569         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4570         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4571
4572         fcntl: Remove call-in from fchdir.m4.
4573         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4575
4576         dup3: Remove potential call-in from fchdir.m4.
4577         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4579
4580         dup2: Move AC_LIBOBJ invocation to module description.
4581         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4582         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4583         Don't invoke AC_LIBOBJ.
4584         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4585
4586         dup2: Remove call-in from fchdir.m4.
4587         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4589
4590         fclose: Move AC_LIBOBJ invocation to module description.
4591         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4592         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4593         to 1.
4594         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4595
4596         fclose: Remove call-in from close.m4.
4597         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4598         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4599
4600         close: Move AC_LIBOBJ invocation to module description.
4601         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4602         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4603         1.
4604         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4605
4606         close: Remove call-in from fchdir.m4.
4607         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4609
4610         open: Move AC_LIBOBJ invocation to module description.
4611         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4612         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4613         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4614
4615         open: Remove call-in from fchdir.m4.
4616         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4618
4619         fchdir: Start to remove gl_REPLACE_* idiom.
4620         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4621         (gl_FUNC_FCHDIR): Invoke it.
4622
4623 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4624
4625         * lib/ftell.c (ftell): Comment out cast.
4626
4627         close: use gl_REPLACE_FCLOSE only if defined
4628         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4629         is defined.  The close module doesn't depend on the fclose module
4630         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4632         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4633
4634 2011-07-24  Jim Meyering  <meyering@redhat.com>
4635
4636         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4637         * tests/test-select.h (test_function): Declare as "static".
4638
4639 2011-07-24  Bruno Haible  <bruno@clisp.org>
4640
4641         doc: Mention the effects of AC_SYS_LARGEFILE.
4642         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4643         on this function.
4644         * doc/posix-functions/aio_error.texi: Likewise.
4645         * doc/posix-functions/aio_fsync.texi: Likewise.
4646         * doc/posix-functions/aio_read.texi: Likewise.
4647         * doc/posix-functions/aio_return.texi: Likewise.
4648         * doc/posix-functions/aio_suspend.texi: Likewise.
4649         * doc/posix-functions/aio_write.texi: Likewise.
4650         * doc/posix-functions/fgetpos.texi: Likewise.
4651         * doc/posix-functions/fopen.texi: Likewise.
4652         * doc/posix-functions/freopen.texi: Likewise.
4653         * doc/posix-functions/fsetpos.texi: Likewise.
4654         * doc/posix-functions/fstatvfs.texi: Likewise.
4655         * doc/posix-functions/ftruncate.texi: Likewise.
4656         * doc/posix-functions/ftw.texi: Likewise.
4657         * doc/posix-functions/getrlimit.texi: Likewise.
4658         * doc/posix-functions/glob.texi: Likewise.
4659         * doc/posix-functions/lio_listio.texi: Likewise.
4660         * doc/posix-functions/lockf.texi: Likewise.
4661         * doc/posix-functions/mkstemp.texi: Likewise.
4662         * doc/posix-functions/mmap.texi: Likewise.
4663         * doc/posix-functions/nftw.texi: Likewise.
4664         * doc/posix-functions/openat.texi: Likewise.
4665         * doc/posix-functions/opendir.texi: Likewise.
4666         * doc/posix-functions/posix_fadvise.texi: Likewise.
4667         * doc/posix-functions/posix_fallocate.texi: Likewise.
4668         * doc/posix-functions/pread.texi: Likewise.
4669         * doc/posix-functions/pwrite.texi: Likewise.
4670         * doc/posix-functions/readdir.texi: Likewise.
4671         * doc/posix-functions/readdir_r.texi: Likewise.
4672         * doc/posix-functions/rewinddir.texi: Likewise.
4673         * doc/posix-functions/scandir.texi: Likewise.
4674         * doc/posix-functions/seekdir.texi: Likewise.
4675         * doc/posix-functions/setrlimit.texi: Likewise.
4676         * doc/posix-functions/statvfs.texi: Likewise.
4677         * doc/posix-functions/telldir.texi: Likewise.
4678         * doc/posix-functions/tmpfile.texi: Likewise.
4679         * doc/posix-functions/truncate.texi: Likewise.
4680         * doc/glibc-functions/fallocate.texi: Likewise.
4681         * doc/glibc-functions/fstatfs.texi: Likewise.
4682         * doc/glibc-functions/fts_children.texi: Likewise.
4683         * doc/glibc-functions/fts_read.texi: Likewise.
4684         * doc/glibc-functions/getdirentries.texi: Likewise.
4685         * doc/glibc-functions/mkostemp.texi: Likewise.
4686         * doc/glibc-functions/mkostemps.texi: Likewise.
4687         * doc/glibc-functions/mkstemps.texi: Likewise.
4688         * doc/glibc-functions/preadv.texi: Likewise.
4689         * doc/glibc-functions/pwritev.texi: Likewise.
4690         * doc/glibc-functions/sendfile.texi: Likewise.
4691         * doc/glibc-functions/statfs.texi: Likewise.
4692
4693 2011-07-24  Bruno Haible  <bruno@clisp.org>
4694
4695         doc: Fix typo.
4696         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4697
4698 2011-07-24  Bruno Haible  <bruno@clisp.org>
4699
4700         doc: Mention fsusage.
4701         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4702
4703 2011-07-24  Bruno Haible  <bruno@clisp.org>
4704
4705         doc: Mention new glibc headers and functions.
4706         * doc/glibc-headers/gshadow.texi: New file.
4707         * doc/glibc-functions/endsgent.texi: New file.
4708         * doc/glibc-functions/fgetsgent.texi: New file.
4709         * doc/glibc-functions/fgetsgent_r.texi: New file.
4710         * doc/glibc-functions/getsgent.texi: New file.
4711         * doc/glibc-functions/getsgent_r.texi: New file.
4712         * doc/glibc-functions/getsgnam.texi: New file.
4713         * doc/glibc-functions/getsgnam_r.texi: New file.
4714         * doc/glibc-functions/putsgent.texi: New file.
4715         * doc/glibc-functions/setsgent.texi: New file.
4716         * doc/glibc-functions/sgetsgent.texi: New file.
4717         * doc/glibc-functions/sgetsgent_r.texi: New file.
4718         * doc/glibc-functions/malloc_info.texi: New file.
4719         * doc/glibc-functions/preadv.texi: New file.
4720         * doc/glibc-functions/pwritev.texi: New file.
4721         * doc/glibc-functions/register_printf_modifier.texi: New file.
4722         * doc/glibc-functions/register_printf_specifier.texi: New file.
4723         * doc/glibc-functions/register_printf_type.texi: New file.
4724         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4725         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4726         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4727         * doc/glibc-functions/pthread_getname_np.texi: New file.
4728         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4729         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4730         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4731         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4732         * doc/glibc-functions/pthread_setname_np.texi: New file.
4733         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4734         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4735         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4736         * doc/glibc-functions/qsort_r.texi: New file.
4737         * doc/glibc-functions/quick_exit.texi: New file.
4738         * doc/glibc-functions/syncfs.texi: New file.
4739         * doc/gnulib.texi: Include them.
4740         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4741         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4742         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4743         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4744         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4745         * doc/glibc-functions/execvpe.texi: Likewise.
4746
4747 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4748
4749         ftell: don't include <unistd.h>
4750         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4751         guaranteed to define off_t, and the ftell module depends on the
4752         stdio module.
4753
4754         ftell: do not assume wraparound signed arithmetic
4755         * lib/ftell.c: Include <limits.h>.
4756         (ftell): Don't assume wraparound signed arithmetic.
4757
4758 2011-07-24  Bruno Haible  <bruno@clisp.org>
4759
4760         close: No longer depend on module 'fclose'.
4761         * modules/close (Depends-on): Remove fclose.
4762         * NEWS: Mention the change.
4763         Suggested by Sam Steingold <sds@gnu.org>.
4764
4765 2011-07-24  Bruno Haible  <bruno@clisp.org>
4766
4767         fsusage: Enable large volume support on AIX >= 5.2.
4768         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4769         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4770         instead of STAT_STATVFS.
4771         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4772
4773         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4775         f_blocks field only on MacOS X.
4776
4777         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4779         * modules/fsusage (Depends-on): Add largefile.
4780
4781 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4782
4783         * README: Modernize discussion of signed integers.
4784         Assuming overflow wraparound is no longer safe.
4785         Mention ones' complement and signed magnitude.
4786
4787 2011-07-22  Bruno Haible  <bruno@clisp.org>
4788
4789         select tests, pselect tests: Refactor.
4790         * tests/test-select.h: New file, extracted from tests/test-select.c.
4791         (select_fn): New type.
4792         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4793         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4794         test_pipe): Add my_select argument.
4795         (test_function): Renamed from main. Add my_select argument.
4796         * tests/test-select.c: Move most code to tests/test-select.h. Include
4797         test-select.h.
4798         * modules/select-tests (Files): Add tests/test-select.h.
4799         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4800         (my_select, main): New functions.
4801         * modules/pselect-tests (Files): Add tests/test-select.h,
4802         tests/macros.h, tests/signature.h.
4803         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4804         (configure.ac): Check for <sys/wait.h>.
4805
4806 2011-07-22  Bruno Haible  <bruno@clisp.org>
4807
4808         sys_select tests: Check the signature of FD_*.
4809         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4810         signature tests from here...
4811         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4812         here.
4813         * modules/sys_select-tests (Files): Add tests/signature.h.
4814
4815 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         largefile: new module, replacing large-inode
4818         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4819         * MODULES.html.sh: Add largefile, remove large-inode.
4820         * modules/largefile, m4/largefile.m4: New files.
4821         * modules/large-inode, m4/large-inode.m4: Remove.
4822
4823         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4825         implementations that use only 32 bits to count blocks.
4826         On typical hosts with 1024-byte blocks, this fails with file
4827         systems as small as 4 TiB.  Problem reported by Herb Wartens
4828         <http://debbugs.gnu.org/9140> and this should also fix a similar
4829         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4830
4831         large-inode: New module
4832         * MODULES.html.sh: Add it.
4833         * modules/large-inode, m4/large-inode.m4: New files.
4834
4835         extensions: Enable extensions on MacOS X 10.5 and later.
4836         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4837
4838 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4839
4840         file-has-acl: use acl_extended_file_nofollow if available
4841         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4842         (acl_extended_file): New macro.
4843         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4844         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4845
4846 2011-07-21  Bruno Haible  <bruno@clisp.org>
4847
4848         Declare system functions in a way that works with C++.
4849         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4850         declare fdopendir as extern "C".
4851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4852         declare frexpl as extern "C".
4853         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4854         declare gai_strerror as extern "C".
4855         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4856         programs, declare gai_strerror as extern "C".
4857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4858         declare getlogin_r as extern "C".
4859         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4860         as extern "C".
4861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4862         declare ldexpl as extern "C".
4863         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4864         as extern "C".
4865         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4866         program, declare getmntinfo as extern "C".
4867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4868         stpncpy as extern "C".
4869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4870         program, declare __xpg_strerror_r as extern "C".
4871         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4872         strndup as extern "C".
4873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4874         declare memset and bzero as extern "C".
4875         Reported by Sam Steingold <sds@gnu.org>.
4876
4877 2011-07-12  Jim Meyering  <meyering@redhat.com>
4878
4879         maint.mk: prohibit inclusion of "verify.h" without use
4880         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4881
4882 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4883
4884         timer-time: A new module to check for timer_settime()
4885         * m4/timer_time.m4: Check for the posix function.
4886         * modules/timer-time: Add the new module.
4887         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4888         Mention it.
4889
4890 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4891             Bruno Haible  <bruno@clisp.org>
4892
4893         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4895         not defined, assume POSIX threads and look for pthread_sigmask in
4896         $LIBS, without changing $CPPFLAGS.
4897
4898 2011-07-19  Bruno Haible  <bruno@clisp.org>
4899
4900         strstr: Update cross-compilation guess.
4901         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4902         CPUs, guess no, in view of glibc
4903         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4904         Suggested by Eric Blake. Reported by Reuben Thomas.
4905
4906 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4907
4908         getopt-gnu: suppress core dumps from detection code
4909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4910         to suppress core dumps that may well occur on glibc systems.
4911         * modules/getopt-gnu: Depend on nocrash.
4912
4913 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4914
4915         pthread_sigmask: ensure usleep is declared
4916         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4917         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4918
4919 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         doc: Document NonStop portability issues.
4922         * doc/posix-functions/sigaction.texi (sigaction):
4923         * doc/posix-headers/signal.texi (signal.h):
4924         Document NonStop.  See Joachim Schmitz in
4925         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4926
4927 2011-07-15  Bruno Haible  <bruno@clisp.org>
4928
4929         ffsl, ffsll: Avoid unportable behaviour.
4930         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4931
4932 2011-07-15  Bruno Haible  <bruno@clisp.org>
4933
4934         ffs: More tests.
4935         * tests/test-ffs.c (NBITS): New macro.
4936         (main): Add more tests.
4937         * tests/test-ffsl.c (NBITS): New macro.
4938         (main): Add more tests.
4939         * tests/test-ffsll.c (NBITS): New macro.
4940         (main): Add more tests.
4941
4942 2011-07-15  Eric Blake  <eblake@redhat.com>
4943
4944         ffsl, ffsll: new modules
4945         * modules/ffsl: New file.
4946         * modules/ffsll: Likewise.
4947         * m4/ffsl.m4: Likewise.
4948         * m4/ffsll.m4: Likewise.
4949         * lib/ffsl.c: Likewise.
4950         * lib/ffsl.h: Likewise.
4951         * lib/ffsll.c: Likewise.
4952         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4953         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4954         * modules/string (Makefile.am): Substitute witnesses.
4955         * lib/strings.in.h (ffsl, ffsll): Declare.
4956         * modules/ffsl-tests: New test file.
4957         * modules/ffsll-tests: Likewise.
4958         * tests/test-ffsl.c: Likewise.
4959         * tests/test-ffsll.c: Likewise.
4960         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4961         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4962         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4963
4964         ffs: fix m4 prerequisite
4965         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4966
4967         ffs: avoid undefined behavior
4968         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4969         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4970         Reported by Bruno Haible.
4971
4972 2011-07-12  Bruno Haible  <bruno@clisp.org>
4973
4974         pthread_sigmask: Rely on module 'threadlib'.
4975         * modules/pthread_sigmask (Depends-on): Add threadlib.
4976         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4977         is defined.
4978
4979 2011-07-12  Bruno Haible  <bruno@clisp.org>
4980
4981         regex: Depend on module 'strcase'.
4982         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4983
4984 2011-07-12  Jim Meyering  <meyering@redhat.com>
4985
4986         warn-on-use: fix typo in file name
4987         * modules/snippet/warn-on-use (Files): Correct file name:
4988         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4989
4990 2011-07-12  Bruno Haible  <bruno@clisp.org>
4991
4992         strings: Document module.
4993         * doc/posix-headers/strings.texi: Mention module 'strings'.
4994
4995 2011-07-12  Bruno Haible  <bruno@clisp.org>
4996
4997         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4998         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4999         (Files, Makefile.am): Update.
5000         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5001         * modules/stdlib (Depends-on): Update.
5002
5003 2011-07-12  Bruno Haible  <bruno@clisp.org>
5004
5005         * NEWS: Mention the changes.
5006
5007         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5008         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5009         (Files, Makefile.am): Update.
5010         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5011         * modules/arpa_inet (Depends-on): Update.
5012         * modules/ctype (Depends-on): Update.
5013         * modules/dirent (Depends-on): Update.
5014         * modules/fcntl-h (Depends-on): Update.
5015         * modules/glob (Depends-on): Update.
5016         * modules/iconv-h (Depends-on): Update.
5017         * modules/inttypes-incomplete (Depends-on): Update.
5018         * modules/langinfo (Depends-on): Update.
5019         * modules/locale (Depends-on): Update.
5020         * modules/math (Depends-on): Update.
5021         * modules/netdb (Depends-on): Update.
5022         * modules/poll-h (Depends-on): Update.
5023         * modules/pty (Depends-on): Update.
5024         * modules/search (Depends-on): Update.
5025         * modules/signal (Depends-on): Update.
5026         * modules/spawn (Depends-on): Update.
5027         * modules/stdio (Depends-on): Update.
5028         * modules/stdlib (Depends-on): Update.
5029         * modules/string (Depends-on): Update.
5030         * modules/strings (Depends-on): Update.
5031         * modules/sys_file (Depends-on): Update.
5032         * modules/sys_ioctl (Depends-on): Update.
5033         * modules/sys_select (Depends-on): Update.
5034         * modules/sys_socket (Depends-on): Update.
5035         * modules/sys_stat (Depends-on): Update.
5036         * modules/sys_time (Depends-on): Update.
5037         * modules/sys_times (Depends-on): Update.
5038         * modules/sys_utsname (Depends-on): Update.
5039         * modules/sys_wait (Depends-on): Update.
5040         * modules/termios (Depends-on): Update.
5041         * modules/time (Depends-on): Update.
5042         * modules/unistd (Depends-on): Update.
5043         * modules/wchar (Depends-on): Update.
5044         * modules/wctype-h (Depends-on): Update.
5045         * MODULES.html.sh (Support for building libraries and executables):
5046         Update.
5047
5048         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5049         * modules/snippet/unused-parameter: Renamed from
5050         modules/unused-parameter.
5051         (Files, Makefile.am): Update.
5052         * build-aux/snippet/unused-parameter.h: Renamed from
5053         build-aux/unused-parameter.h.
5054         * modules/selinux-h (Depends-on): Update.
5055         * modules/unistr/base (Depends-on): Update.
5056         * MODULES.html.sh (Core language properties): Update.
5057
5058         Rename module 'link-warning' to 'snippet/link-warning'.
5059         * modules/snippet/link-warning: Renamed from modules/link-warning.
5060         (Files, Makefile.am): Update.
5061         * build-aux/snippet/link-warning.h: Renamed from
5062         build-aux/link-warning.h.
5063         * MODULES.html.sh (Support for building libraries and executables):
5064         Update.
5065
5066         Rename module 'c++defs' to 'snippet/c++defs'.
5067         * modules/snippet/c++defs: Renamed from modules/c++defs.
5068         (Files, Makefile.am): Update.
5069         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5070         * modules/arpa_inet (Depends-on): Update.
5071         * modules/ctype (Depends-on): Update.
5072         * modules/dirent (Depends-on): Update.
5073         * modules/fcntl-h (Depends-on): Update.
5074         * modules/glob (Depends-on): Update.
5075         * modules/iconv-h (Depends-on): Update.
5076         * modules/langinfo (Depends-on): Update.
5077         * modules/locale (Depends-on): Update.
5078         * modules/math (Depends-on): Update.
5079         * modules/netdb (Depends-on): Update.
5080         * modules/poll-h (Depends-on): Update.
5081         * modules/pty (Depends-on): Update.
5082         * modules/search (Depends-on): Update.
5083         * modules/signal (Depends-on): Update.
5084         * modules/spawn (Depends-on): Update.
5085         * modules/stdio (Depends-on): Update.
5086         * modules/stdlib (Depends-on): Update.
5087         * modules/string (Depends-on): Update.
5088         * modules/strings (Depends-on): Update.
5089         * modules/sys_ioctl (Depends-on): Update.
5090         * modules/sys_select (Depends-on): Update.
5091         * modules/sys_socket (Depends-on): Update.
5092         * modules/sys_stat (Depends-on): Update.
5093         * modules/sys_time (Depends-on): Update.
5094         * modules/sys_wait (Depends-on): Update.
5095         * modules/termios (Depends-on): Update.
5096         * modules/time (Depends-on): Update.
5097         * modules/unistd (Depends-on): Update.
5098         * modules/wchar (Depends-on): Update.
5099         * modules/wctype-h (Depends-on): Update.
5100
5101         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5102         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5103         (Files, Makefile.am): Update.
5104         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5105         * modules/argv-iter (Depends-on): Update.
5106         * modules/arpa_inet (Depends-on): Update.
5107         * modules/dirent (Depends-on): Update.
5108         * modules/fcntl-h (Depends-on): Update.
5109         * modules/fnmatch (Depends-on): Update.
5110         * modules/getopt-posix (Depends-on): Update.
5111         * modules/glob (Depends-on): Update.
5112         * modules/iconv-h (Depends-on): Update.
5113         * modules/inttypes-incomplete (Depends-on): Update.
5114         * modules/locale (Depends-on): Update.
5115         * modules/math (Depends-on): Update.
5116         * modules/netdb (Depends-on): Update.
5117         * modules/search (Depends-on): Update.
5118         * modules/signal (Depends-on): Update.
5119         * modules/spawn (Depends-on): Update.
5120         * modules/stdio (Depends-on): Update.
5121         * modules/stdlib (Depends-on): Update.
5122         * modules/string (Depends-on): Update.
5123         * modules/strings (Depends-on): Update.
5124         * modules/sys_socket (Depends-on): Update.
5125         * modules/sys_stat (Depends-on): Update.
5126         * modules/sys_time (Depends-on): Update.
5127         * modules/sys_times (Depends-on): Update.
5128         * modules/sys_utsname (Depends-on): Update.
5129         * modules/time (Depends-on): Update.
5130         * modules/unistd (Depends-on): Update.
5131         * modules/wchar (Depends-on): Update.
5132         * MODULES.html.sh (Support for building libraries and executables):
5133         Update.
5134
5135 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5136
5137         Improvements on _Noreturn and related modules.
5138
5139         modules/_Exit-tests: test _Noreturn too
5140         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5141         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5142         (main): Use them.
5143
5144         stdnoreturn, stdnoreturn-tests: remove modules
5145         They're not needed here and a bit premature for use elsewhere.  See
5146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5147         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5148         * tests/test-stdnoreturn.c: Remove files.
5149         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5150         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5151         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5152         and using noreturn.
5153         * modules/openat, modules/sigpipe-die, modules/xalloc:
5154         * modules/xmemdup0, modules/xstrtol:
5155         Remove dependency on stdnoreturn.
5156
5157         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5158         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5159         Reparenthesize to avoid GCC warning.
5160         Support Microsoft's syntax.
5161         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5162
5163         _Noreturn-tests: remove module
5164         * modules/_Noreturn-tests: Remove.
5165         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5166         * tests/test-_Noreturn.c: Remove.
5167         * tests/test-stdnoreturn.c: Merge from the old
5168         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5169
5170 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5171
5172         _Noreturn, stdnoreturn, and related modules.
5173
5174         * top/maint.mk: Adjust to new noreturn support.
5175         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5176         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5177
5178         xalloc: use stdnoreturn.h
5179         * lib/xalloc.h: Include <stdnoreturn.h>.
5180         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5181         * modules/xalloc (Depends-on): Add stdnoreturn.
5182
5183         xstrtol: use stdnoreturn.h
5184         * lib/xstrtol.h: Include <stdnoreturn.h>.
5185         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5186         * modules/xstrtol (Depends-on): Add stdnoreturn.
5187
5188         xmemdup0: use stdnoreturn.h
5189         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5190         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5191         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5192
5193         sigpipe-die: use stdnoreturn.h
5194         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5195         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5196         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5197
5198         openat: use stdnoreturn.h
5199         * lib/openat.h: Include <stdnoreturn.h>.
5200         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5201         * modules/openat (Depends-on): Add stdnoreturn.
5202
5203         * lib/openat-die.c (openat_save_fail): Modernize comment.
5204
5205         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5206
5207         * lib/glthread/thread.h: Modernize comment.
5208
5209         obstack: use _Noreturn
5210         * lib/obstack.c (__attribute__): Remove macro.
5211         (print_and_abort): Use _Noreturn.
5212
5213         c-stack: use _Noreturn
5214         * lib/c-stack.c (die, overflow_handler, segv_handler):
5215         Use _Noreturn rather than __attribute__((noreturn)).
5216
5217         argmatch-tests, exclude_tests: use _Noreturn
5218         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5219         Remove.
5220         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5221
5222         stdlib: use _Noreturn
5223         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5224         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5225         * modules/stdlib (Depends-on): Add _Noreturn.
5226         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5227
5228         stdnoreturn-tests: new module
5229         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5230
5231         stdnoreturn: new module
5232         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5233         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5234
5235         _Noreturn-tests: new module
5236         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5237
5238         _Noreturn: new module
5239         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5240         New section, mentioning it.
5241         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5242
5243         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5244
5245 2011-07-11  Eric Blake  <eblake@redhat.com>
5246
5247         ffs: new module
5248         * modules/ffs: New file.
5249         * m4/ffs.m4: Likewise.
5250         * lib/ffs.c: Likewise.
5251         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5252         * modules/strings (Makefile.am): Substitute witness.
5253         (Depends-on): Add c++defs.
5254         * lib/strings.in.h (ffs): Declare.
5255         * modules/ffs-tests: New test file.
5256         * tests/test-ffs.c: Test new module.
5257         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5258         * doc/posix-functions/ffs.texi (ffs): Likewise.
5259
5260         regex: avoid compiler warning
5261         * lib/regex.c (includes): Include <strings.h>, for use of
5262         strcasecmp in regcomp.c.
5263         Reported by Joachim Schmitz.
5264
5265 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5266
5267         stdint: respect system's intmax_t if INTMAX_MAX
5268         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5269         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5270         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5271         long but int64_t is long long, and where we will clash with the
5272         system intmax_t if we override it.  See
5273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5274         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5275         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5276         similarly for UINTMAX_C.
5277
5278 2011-07-08  Bruno Haible  <bruno@clisp.org>
5279
5280         pthread_sigmask tests: Avoid a compiler warning.
5281         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5282         non-zero.
5283
5284         sigprocmask tests: A better way to avoid a compiler warning.
5285         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5286         (main): Complain if system() returns non-zero.
5287         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5288
5289 2011-07-08  Bruno Haible  <bruno@clisp.org>
5290
5291         pthread_sigmask: Work around IRIX bug.
5292         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5293         bug.
5294         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5295         there may be unblocked pending signals.
5296         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5297
5298 2011-07-08  Bruno Haible  <bruno@clisp.org>
5299
5300         pthread_sigmask: Work around Cygwin bug.
5301         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5302         bug.
5303         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5304         the system's pthread_sigmask function.
5305         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5306
5307 2011-07-08  Bruno Haible  <bruno@clisp.org>
5308
5309         pthread_sigmask: Work around bug in single-threaded implementation.
5310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5311         FreeBSD, HP-UX, Solaris bug.
5312         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5313         * lib/pthread_sigmask.c: Include <stddef.h>.
5314         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5315         the system's pthread_sigmask function.
5316         * modules/pthread_sigmask (configure.ac): Invoke
5317         gl_PREREQ_PTHREAD_SIGMASK.
5318         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5319         HP-UX, Solaris.
5320
5321 2011-07-08  Eric Blake  <eblake@redhat.com>
5322
5323         test-sigprocmask: avoid compiler warning
5324         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5325         * tests/test-sigprocmask.c (main): Use it to silence warning.
5326         Reported by Jim Meyering.
5327
5328         test-snprintf: avoid compiler warning
5329         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5330         * tests/test-vsnprintf.c (main): Likewise.
5331         Reported by Jim Meyering.
5332
5333 2011-07-08  Bruno Haible  <bruno@clisp.org>
5334
5335         Tests for module 'pthread_sigmask'.
5336         * modules/pthread_sigmask-tests: New file.
5337         * tests/test-pthread_sigmask1.c: New file, based on
5338         tests/test-sigprocmask.c.
5339         * tests/test-pthread_sigmask2.c: New file.
5340
5341 2011-07-08  Jim Meyering  <meyering@redhat.com>
5342
5343         test-getopt.h: avoid warning about an unused variable
5344         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5345
5346 2011-07-07  Jim Meyering  <meyering@redhat.com>
5347
5348         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5349         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5350         now that it no longer contains leading TABs.
5351         Remove unused "url=FIXME" statement.
5352
5353 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5354
5355         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5357         When gl_THREADLIB is not in use, assume that the POSIX sematics
5358         are desired.  This is better for Emacs, which uses POSIX semantics
5359         on GNUish and/or POSIXish platforms, and does not use threads at
5360         all otherwise.
5361
5362         pthread_sigmask: fix typo when testing for libraries
5363         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5364         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5365
5366 2011-07-08  Eric Blake  <eblake@redhat.com>
5367
5368         fts: introduce FTS_NOATIME
5369         * lib/fts_.h (FTS_NOATIME): New bit flag.
5370         (FTS_OPTIONMASK): Adjust.
5371         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5372         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5373
5374 2011-07-08  Bruno Haible  <bruno@clisp.org>
5375
5376         Tests for module 'thread'.
5377         * modules/thread-tests: New file.
5378         * tests/test-thread_self.c: New file.
5379         * tests/test-thread_create.cc: New file.
5380
5381 2011-07-08  Bruno Haible  <bruno@clisp.org>
5382
5383         thread: Avoid gcc warnings when using gl_thread_self().
5384         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5385         'void *'.
5386         (gl_thread_self_pointer): Update.
5387
5388 2011-07-07  Bruno Haible  <bruno@clisp.org>
5389
5390         signal-c++-tests: Check declaration of pthread_sigmask.
5391         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5392         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5393         $(LIB_PTHREAD_SIGMASK).
5394
5395 2011-07-07  Bruno Haible  <bruno@clisp.org>
5396
5397         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5398         * lib/signal.in.h (pthread_sigmask): Override if
5399         REPLACE_PTHREAD_SIGMASK is 1.
5400         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5401         REPLACE_PTHREAD_SIGMASK.
5402         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5403         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5404         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5405         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5406         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5407
5408 2011-07-07  Bruno Haible  <bruno@clisp.org>
5409
5410         pthread_sigmask: Ensure declaration in <signal.h>.
5411         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5412         include <pthread.h>.
5413         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5414         problem.
5415
5416 2011-07-07  Bruno Haible  <bruno@clisp.org>
5417
5418         pthread_sigmask: Document the module.
5419         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5420
5421 2011-07-07  Bruno Haible  <bruno@clisp.org>
5422
5423         pthread_sigmask: Follow gnulib conventions.
5424         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5425         gl_PTHREAD_SIGMASK.
5426         * modules/pthread_sigmask (configure.ac): Update.
5427
5428 2011-07-07  Bruno Haible  <bruno@clisp.org>
5429
5430         pthread_sigmask: Make declaration C++ safe.
5431         * lib/signal.in.h: In two special conditions, just do an #include_next.
5432         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5433         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5435         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5436         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5437         not REPLACE_PTHREAD_MASK.
5438         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5439         not REPLACE_PTHREAD_MASK.
5440         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5441
5442 2011-07-07  Bruno Haible  <bruno@clisp.org>
5443
5444         pthread_sigmask: Fix return value.
5445         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5446         * lib/pthread_sigmask.c: New file.
5447         * modules/pthread_sigmask (Files): Add it.
5448         (configure.ac): Invoke AC_LIBOBJ.
5449
5450 2011-07-07  Eric Blake  <eblake@redhat.com>
5451
5452         getopt: more portable argv creation
5453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5454         const, use char arrays rather than strings.
5455         Suggested by Paul Eggert.
5456
5457 2011-07-07  Bruno Haible  <bruno@clisp.org>
5458
5459         Tests for module 'sigprocmask'.
5460         * modules/sigprocmask-tests: New file.
5461         * tests/test-sigprocmask.c: New file.
5462
5463 2011-07-07  Bruno Haible  <bruno@clisp.org>
5464
5465         float tests: Tweak.
5466         * tests/test-float.c (main): Tweak skip message.
5467
5468 2011-07-07  Eric Blake  <eblake@redhat.com>
5469
5470         getopt: avoid compiler warning during configure
5471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5472         assigning string literals to non-const pointer.
5473
5474         getopt-gnu: avoid crash in glibc getopt
5475         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5476         * tests/test-getopt.h (test_getopt): Enhance test.
5477         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5478         * doc/posix-functions/getopt.texi (getopt): Document it.
5479         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5481         Likewise.
5482
5483 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5484
5485         getopt: handle W; without long options in getopt [BZ #12922]
5486         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5487         but no long options are defined, just return 'W'.
5488
5489 2011-07-07  Bruno Haible  <bruno@clisp.org>
5490
5491         Avoid literal tabs.
5492         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5493         variable containing a tab instead of a literal tab.
5494         Reported by Jim Meyering.
5495
5496 2011-07-07  Bruno Haible  <bruno@clisp.org>
5497
5498         Comments.
5499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5500
5501 2011-07-06  Bruno Haible  <bruno@clisp.org>
5502
5503         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5504         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5505         <winsock2.h>.
5506         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5507         lib/sys_socket.in.h.
5508         (close, gethostname): Hide declarations from <winsock2.h>.
5509         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5510         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5511         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5512         (select): Don't override if gnulib's <sys/select.h> was already
5513         included.
5514         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5515         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5516         setsockopt, shutdown, select): Tweak indentation.
5517
5518 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5519
5520         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5521         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5522         in an application that does not use the sys_select module.
5523
5524 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5525
5526         poll: do not return 0 on timeout=-1
5527         * lib/poll.c: Loop with yield if no events occured
5528
5529 2011-07-06  Eric Blake  <eblake@redhat.com>
5530
5531         pthread_sigmask: always replace when not using pthread
5532         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5533         replacement when using some threading other than pthread.  Fix
5534         logic bug.
5535
5536 2011-07-06  Bruno Haible  <bruno@clisp.org>
5537
5538         Comments.
5539         * m4/printf.m4: Update comments about mingw.
5540
5541 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5542
5543         sys_select: define sigset_t more portably
5544         * lib/sys_select.in.h: Always include <sys/types.h>, since
5545         we now need sigset_t and mingw defines it there.
5546         Include <signal.h> before split inclusion guard, to avoid
5547         mishaps on Solaris, whose <signal.h> eventually includes us.
5548         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5549         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5550         which come from ...
5551         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5552         gl_CHECK_TYPE_SIGSET_T.
5553         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5554         does the real work.
5555         * modules/sys_select (Depends-on): Add 'signal'.
5556
5557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5558         Suggested by Bruno Haible.
5559
5560         pselect: Use pthread_sigmask, not sigprocmask.
5561         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5562         multithreaded apps better than sigprocmask does.
5563         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5564         sigprocmask directly.
5565
5566 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5567
5568         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5569         Don't #undef,  since we don't need any underlying pselect.
5570         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5571         (Depends-on): Add select.
5572         (Link): Add $(LIBSOCKET).
5573         These changes suggested by Bruno Haible.
5574
5575         pselect: document better
5576         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5577         * doc/posix-functions/pselect.texi (pselect): Document new module.
5578
5579         pthread_sigmask: new module
5580         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5581         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5582         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5583         This is done only as a macro; I don't know how well that'll
5584         work for C++.  Move <sys/types.h> include before the include_next,
5585         to avoid mishap on Solaris.
5586         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5587         * modules/signal (Makefile.am): Substitute the check's results.
5588         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5589
5590         test-pselect: new module
5591         * modules/pselect-tests, tests/test-pselect.c: New files.
5592         * tests/test-select.c, tests/test-sys_select-c++.cc:
5593         If TEST_PSELECT is defined, test pselect instead of testing select.
5594
5595         * tests/test-sys_select.c (sigset_t): Test for it, too.
5596         Suggested by Bruno Haible.
5597
5598 2011-07-05  Eric Blake  <eblake@redhat.com>
5599
5600         snprintf: guarantee %1$d, for libintl
5601         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5602         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5603         * doc/posix-functions/snprintf.texi (snprintf): Update.
5604         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5605         * tests/test-snprintf.c (main): Enhance test.
5606         * tests/test-vsnprintf.c (main): Likewise.
5607
5608 2011-07-05  Jim Meyering  <meyering@redhat.com>
5609
5610         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5611         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5612         per Bruno's request, to accommodate this idiom (no space after "#")
5613         even when the function is inside an #if block:
5614         char *
5615         gets (char *s)
5616         #undef gets
5617         {
5618           ...
5619         }
5620
5621 2011-07-04  Jim Meyering  <meyering@redhat.com>
5622
5623         maint: indent with spaces, not TABs, and add a rule to check this
5624         * tests/test-userspec.c: Indent with spaces, not TABs.
5625         * tests/test-argp.c: Likewise.
5626         * tests/test-c-stack2.sh: Likewise.
5627         * tests/test-parse-duration.sh: Likewise
5628         * m4/strtod.m4: Likewise.
5629         * m4/alloca.m4: Likewise.
5630         * m4/pselect.m4: Likewise.
5631         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5632
5633 2011-07-03  Jim Meyering  <meyering@redhat.com>
5634
5635         maint.mk: correct omissions in prohibit_argmatch_without_use check
5636         This rule would mistakenly report that argmatch.h is included without
5637         use even when both the argmatch and invalid_arg macro were used.
5638         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5639         of argmatch and invalid_arg.
5640
5641 2011-07-03  Bruno Haible  <bruno@clisp.org>
5642
5643         Comments about EINTR.
5644         * lib/safe-read.h: Explain the purpose of this module.
5645         * lib/safe-write.h: Likewise.
5646         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5647         module.
5648         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5649         module.
5650         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5651
5652 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5653
5654         xnanosleep: Rewrite to use new dtotimespec module.
5655         It has the conversion code that used to be in xnanosleep.
5656         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5657         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5658         (TIME_T_MAX): Remove.
5659         (xnanosleep): Rewrite in terms of dtotimespec.
5660         * modules/xnanosleep (Depends-on): Add dtotimespec.
5661         Remove intprops, stdbool.
5662
5663         timespec-add, timespec-sub: new modules
5664         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5665         * lib/timespec-add.c, lib/timespec-sub.c:
5666         * modules/timespec-add, modules/timespec-sub: New files.
5667
5668         dtotimespec: new module
5669         * lib/timespec.h (dtotimespec): New decl.
5670         * lib/dtotimespec.c, modules/dtotimespec: New files.
5671
5672         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5673
5674         pselect: new module
5675         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5676         (pselect): New decls.
5677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5678         since the standard pselect decl uses 'restrict'.
5679         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5680         HAVE_PSELECT, REPLACE_PSELECT.
5681         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5682         HAVE_PSELECT, REPLACE_PSELECT.
5683         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5684
5685         sys_select: don't depend on sys_socket
5686         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5688         This fix works on GNU and GNU-like platforms, but has not been tested
5689         on native Windows.
5690         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5692         gl_HEADER_SYS_SOCKET.
5693         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5694         gl_PREREQ_SYS_H_WINSOCK2.
5695
5696 2011-06-29  Eric Blake  <eblake@redhat.com>
5697
5698         pipe2: fix C89 compile problem
5699         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5700         Reported by Bruno Haible.
5701
5702         pipe, pipe2: don't corrupt fd on error
5703         * lib/pipe.c (pipe): Leave fd unchanged on error.
5704         * lib/pipe2.c (pipe2): Likewise.
5705         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5706         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5707
5708 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5709
5710         mmap-anon: do not use regular expressions inadvertently
5711         * m4/mmap-anon.m4: Remove trailing period from strings sought
5712         in the output.
5713
5714 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5715
5716         nanosleep: fix integer overflow problem
5717         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5718         arithmetic wraps around on overflow.
5719
5720         nanosleep: simplify carrying
5721         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5722         first call to the underyling nanosleep, not for the last one.
5723         This doesn't fix any bugs, but it simplifies the computation of
5724         the remaining delay.  Found while auditing integer overflow issues.
5725
5726         dup2: remove test for existence of fcntl
5727         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5728         "#if HAVE_FCNTL", in the configure-time test program.
5729         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5730         and therefore speeds up "configure" a bit.  Found while
5731         adding the dup2 module to Emacs.
5732
5733 2011-06-24  Eric Blake  <eblake@redhat.com>
5734
5735         maint.mk: enhance useless header checks
5736         * top/maint.mk (_sc_header_without_use): Check both include
5737         styles.
5738         (sc_prohibit_assert_without_use)
5739         (sc_prohibit_close_stream_without_use)
5740         (sc_prohibit_getopt_without_use)
5741         (sc_prohibit_quotearg_without_use)
5742         (sc_prohibit_quote_without_use)
5743         (sc_prohibit_long_options_without_use)
5744         (sc_prohibit_inttostr_without_use)
5745         (sc_prohibit_ignore_value_without_use)
5746         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5747         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5748         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5749         (sc_prohibit_hash_pjw_without_use)
5750         (sc_prohibit_safe_read_without_use)
5751         (sc_prohibit_argmatch_without_use)
5752         (sc_prohibit_canonicalize_without_use)
5753         (sc_prohibit_root_dev_ino_without_use)
5754         (sc_prohibit_openat_without_use)
5755         (sc_prohibit_c_ctype_without_use)
5756         (sc_prohibit_signal_without_use)
5757         (sc_prohibit_stdio--_without_use)
5758         (sc_prohibit_stdio-safer_without_use)
5759         (sc_prohibit_strings_without_use)
5760         (sc_prohibit_intprops_without_use)
5761         (sc_prohibit_stddef_without_use)
5762         (sc_prohibit_xfreopen_without_use): Update clients.
5763
5764 2011-06-24  Jim Meyering  <meyering@redhat.com>
5765
5766         syntax-check: keep one maint.mk rule in sync with its header
5767         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5768         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5769         I prefer to avoid temporary files here, so use <(...), but that
5770         is not supported by /bin/sh, so...
5771         (SHELL): Define to /bin/bash.
5772
5773 2011-06-24  Eric Blake  <eblake@redhat.com>
5774
5775         maint.mk: update sc_prohibit_intprops_without_use
5776         * top/maint.mk (_intprops_names): Match recent changes.
5777
5778 2011-06-24  Bruno Haible  <bruno@clisp.org>
5779
5780         strerror-override: No-op tweak.
5781         * lib/strerror-override.h (strerror_override): Reorder conditions,
5782         for consistency with lib/strerror-override.c.
5783
5784 2011-06-23  Eric Blake  <eblake@redhat.com>
5785
5786         maint.mk: test further PATH_MAX issues
5787         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5788         (sc_prohibit_path_max_allocation): ...and also test alloca.
5789         Suggested by Jim Meyering.
5790
5791 2011-06-22  Eric Blake  <eblake@redhat.com>
5792
5793         maint.mk: add syntax-check to avoid char[PATH_MAX]
5794         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5795
5796         stat: be robust to PATH_MAX definition
5797         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5798         * modules/stat (Depends-on): Add verify.
5799
5800         link: work around IRIX bug
5801         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5802         * lib/link.c (rpl_link): Work around it.
5803         * tests/test-link.h (test_link): Enhance test.
5804         * doc/posix-functions/link.texi (link): Document the bug.
5805
5806         getopt: silence clang warning
5807         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5808         dereference.
5809         Reported by Gustavo Martin Domato.
5810
5811 2011-06-22  Jim Meyering  <meyering@redhat.com>
5812
5813         bootstrap: do not insert a blank line into each .gitignore file
5814         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5815
5816 2011-06-21  Eric Blake  <eblake@redhat.com>
5817
5818         perror: test for output mismatch
5819         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5820         perror on IRIX.
5821
5822         strerror_r: fix OpenBSD behavior on out-of-range
5823         * lib/strerror_r.c (strerror_r): Always use maximal string.
5824         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5825
5826         strerror_r: fix OpenBSD behavior on 0
5827         * lib/strerror-override.c (strerror_override): Also override 0
5828         when needed.
5829         * lib/strerror-override.h (strerror_override): Likewise.
5830         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5831         earlier.
5832         * lib/strerror_r.c (strerror_r): Likewise.
5833         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5834         behavior...
5835         (gl_FUNC_STRERROR_0): ...into new macro.
5836         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5837         is overridden.
5838         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5839         * modules/strerror-override (Files): Add strerror.m4.
5840         (configure.ac): Also provide override for 0 when needed.
5841         * doc/posix-functions/strerror.texi (strerror): Document this.
5842         * doc/posix-functions/perror.texi (perror): Likewise.
5843
5844         perror: adjust array size
5845         * modules/perror (Depends-on): Add strerror-override.
5846         * lib/perror.c (perror): Use it to avoid magic number.
5847
5848         strerror-override: reduce size
5849         * lib/strerror-override.c (strerror_override): Use fewer lines.
5850
5851 2011-06-20  Bruno Haible  <bruno@clisp.org>
5852
5853         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5854         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5855
5856 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5857
5858         alloca: port to compilers that can optimize like GCC 4.6.0
5859         * lib/alloca.c (find_stack_direction): New signature, taken from
5860         Autoconf git.  This works with GCC 4.6.0.  This code should never
5861         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5862         be used with other compilers that optimize as well as GCC 4.6.0 does.
5863         (alloca): Adjust to new signature.
5864         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5865         New macro, which patches Autoconf in a similar way.
5866
5867         c-stack: stop worrying about stack direction
5868         * lib/c-stack.c (find_stack_direction): Remove.
5869         (segv_handler): Don't worry about stack direction growth, as it's
5870         too much of a pain to configure this correctly, given how compilers
5871         are optimizing-away our stack-growth detection code.  Instead, assume
5872         that any access to just before or just after the stack is OK.
5873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5874         Don't require AC_FUNC_ALLOCA; no longer needed.
5875
5876 2011-06-20  Eric Blake  <eblake@redhat.com>
5877
5878         test-stat: don't allocate PATH_MAX bytes
5879         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5880         PATH_MAX-sized buffer.
5881         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5882         * modules/stat-tests (Depends-on): Likewise.
5883         * tests/test-fstatat.c (includes): Drop pathmax.h.
5884         * tests/test-stat.c (includes): Likewise.
5885         Reported by Bruno Haible.
5886
5887 2011-06-20  Bruno Haible  <bruno@clisp.org>
5888
5889         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5890         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5891         * lib/float.c: New file.
5892         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5893         REPLACE_FLOAT_LDBL.
5894         * modules/float (Files): Add lib/float.c.
5895         (configure.ac): Invoke AC_LIBOBJ.
5896         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5897
5898 2011-06-20  Bruno Haible  <bruno@clisp.org>
5899
5900         Tests for module 'float'.
5901         * modules/float-tests: New file.
5902         * tests/test-float.c: New file.
5903
5904 2011-06-19  Bruno Haible  <bruno@clisp.org>
5905
5906         isinf: Coding style.
5907         * lib/isinf.c: Use GNU coding style.
5908
5909 2011-06-19  Bruno Haible  <bruno@clisp.org>
5910
5911         linkat test: Avoid test failure on AIX 7.1.
5912         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5913         * tests/test-link.h (test_link): Likewise.
5914
5915 2011-06-19  Bruno Haible  <bruno@clisp.org>
5916
5917         pread test: Avoid test failure on OpenBSD 4.9.
5918         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5919
5920 2011-06-19  Bruno Haible  <bruno@clisp.org>
5921
5922         sprintf-posix: Fix test failure on AIX 7.1.
5923         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5924         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5925         on AIX.
5926         * doc/posix-functions/fprintf.texi: Likewise.
5927         * doc/posix-functions/printf.texi: Likewise.
5928         * doc/posix-functions/snprintf.texi: Likewise.
5929         * doc/posix-functions/sprintf.texi: Likewise.
5930         * doc/posix-functions/vdprintf.texi: Likewise.
5931         * doc/posix-functions/vfprintf.texi: Likewise.
5932         * doc/posix-functions/vprintf.texi: Likewise.
5933         * doc/posix-functions/vsnprintf.texi: Likewise.
5934         * doc/posix-functions/vsprintf.texi: Likewise.
5935
5936 2011-06-19  Bruno Haible  <bruno@clisp.org>
5937
5938         roundl-ieee: Fix test failure on AIX 7.1.
5939         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5940         * doc/posix-functions/roundl.texi: Mention problem with negative
5941         arguments.
5942
5943 2011-06-19  Bruno Haible  <bruno@clisp.org>
5944
5945         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5946         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5947         * doc/posix-functions/round.texi: Mention problem with negative
5948         arguments.
5949         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5950
5951 2011-06-19  Bruno Haible  <bruno@clisp.org>
5952
5953         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5955         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5956         * doc/posix-functions/roundf.texi: Mention problem with negative
5957         arguments.
5958         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5959
5960 2011-06-19  Bruno Haible  <bruno@clisp.org>
5961
5962         ceilf-ieee: Work around bug on MacOS X 10.5.
5963         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5964
5965         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5966         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5967         IEEE compliant, avoid compiler optimizations.
5968         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5969         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5970         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5971         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5972         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5973         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5974         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5975         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5976         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5977         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5978
5979 2011-06-19  Bruno Haible  <bruno@clisp.org>
5980
5981         ceilf-ieee: Work around bug on AIX 7.1.
5982         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5983         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5984
5985 2011-06-19  Bruno Haible  <bruno@clisp.org>
5986
5987         ceil-ieee: Work around bug on AIX 7.1.
5988         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5989         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5990
5991 2011-06-18  Bruno Haible  <bruno@clisp.org>
5992
5993         fsync test: Avoid test failure on MacOS X and AIX.
5994         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5995         EINVAL.
5996
5997 2011-06-18  Bruno Haible  <bruno@clisp.org>
5998
5999         openat, fdopendir tests: Fix link errors.
6000         * modules/openat-tests (Depends-on): Add progname.
6001         * modules/fdopendir-tests (Depends-on): Likewise.
6002         * tests/test-fchownat.c: Include progname.h.
6003         (main): Call set_program_name.
6004         * tests/test-fstatat.c: Include progname.h.
6005         (main): Call set_program_name.
6006         * tests/test-mkdirat.c: Include progname.h.
6007         (main): Call set_program_name.
6008         * tests/test-openat.c: Include progname.h.
6009         (main): Call set_program_name.
6010         * tests/test-unlinkat.c: Include progname.h.
6011         (main): Call set_program_name.
6012         * tests/test-fdopendir.c: Include progname.h.
6013         (main): Call set_program_name.
6014
6015 2011-06-18  Bruno Haible  <bruno@clisp.org>
6016
6017         Doc update.
6018         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6019         HP-UX.
6020         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6021
6022 2011-06-18  Bruno Haible  <bruno@clisp.org>
6023
6024         getcwd tests: Avoid compilation error on HP-UX 11.31.
6025         * modules/getcwd-tests (Depends-on): Add pathmax.
6026         * tests/test-getcwd.c: Include pathmax.h.
6027
6028 2011-06-18  Bruno Haible  <bruno@clisp.org>
6029
6030         isfinite, isinf: Fix link error on AIX 6 and 7.
6031         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6032         needed, also test the macro with a 'float' argument.
6033         * m4/isinf.m4 (gl_ISINF): Likewise.
6034
6035 2011-06-18  Bruno Haible  <bruno@clisp.org>
6036
6037         getloadavg: Don't clobber LIBS. Regression from previous commit.
6038         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6039         AC_CHECK_LIB from here...
6040         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6041         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6042         gl_func_getloadavg_done.
6043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6044
6045 2011-06-18  Bruno Haible  <bruno@clisp.org>
6046
6047         clean-temp: Improve documentation.
6048         * lib/clean-temp.h: Explain better how to use this module.
6049         Reported by John Darrington <john@darrington.wattle.id.au>.
6050
6051 2011-06-17  Bruno Haible  <bruno@clisp.org>
6052
6053         pread, pwrite: Avoid cc warning on AIX.
6054         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6055         (pwrite): Likewise.
6056
6057 2011-06-17  Bruno Haible  <bruno@clisp.org>
6058
6059         spawn-pipe tests: Fix link error.
6060         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6062
6063 2011-06-17  Bruno Haible  <bruno@clisp.org>
6064
6065         Tests: Remove unnecessary dependency.
6066         * modules/canonicalize-tests (Depends-on): Remove progname.
6067         * modules/chown-tests (Depends-on): Likewise.
6068         * modules/dirname-tests (Depends-on): Likewise.
6069         * modules/fdopendir-tests (Depends-on): Likewise.
6070         * modules/fdutimensat-tests (Depends-on): Likewise.
6071         * modules/hash-tests (Depends-on): Likewise.
6072         * modules/lchown-tests (Depends-on): Likewise.
6073         * modules/linkat-tests (Depends-on): Likewise.
6074         * modules/renameat-tests (Depends-on): Likewise.
6075         * modules/spawn-pipe-tests (Depends-on): Likewise.
6076         * modules/utimensat-tests (Depends-on): Likewise.
6077
6078 2011-06-17  Bruno Haible  <bruno@clisp.org>
6079
6080         spawn-pipe tests: Fix link error.
6081         * tests/test-spawn-pipe-child.c: Undefine fflush.
6082
6083 2011-06-17  Bruno Haible  <bruno@clisp.org>
6084
6085         Fix tests link errors.
6086         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6087         * modules/chown-tests (Makefile.am): Don't link test-chown with
6088         LIBINTL.
6089         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6090         LIBINTL.
6091         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6092         LIBINTL.
6093         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6094         LIBINTL.
6095
6096 2011-06-16  Bruno Haible  <bruno@clisp.org>
6097
6098         crypto/gc-sha1: Fix recent regression.
6099         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6100         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6101
6102         crypto/gc-md5: Fix recent regression.
6103         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6104
6105         crypto/gc-md4: Fix recent regression.
6106         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6107         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6108
6109         crypto/gc-arctwo: Fix recent regression.
6110         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6111         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6112
6113         crypto/gc-rijndael: Fix recent regression.
6114         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6115         (configure.ac): Invoke AC_LIBOBJ here.
6116         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6118
6119         crypto/gc-hmac-sha1: Fix recent regression.
6120         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6121         (configure.ac): Invoke AC_LIBOBJ here.
6122         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6123         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6124
6125         crypto/gc-hmac-md5: Fix recent regression.
6126         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6127         (configure.ac): Invoke AC_LIBOBJ here.
6128         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6130
6131         crypto/gc-des: Fix recent regression.
6132         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6133         (configure.ac): Invoke AC_LIBOBJ here.
6134         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6136
6137         crypto/gc-arcfour: Fix recent regression.
6138         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6139         (configure.ac): Invoke AC_LIBOBJ here.
6140         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6142
6143 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6144
6145         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6146         After the 2011-05-21 change, this macro requires
6147         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6148         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6149
6150 2011-06-16  Bruno Haible  <bruno@clisp.org>
6151
6152         fprintftime: Move AC_LIBOBJ invocations to module description.
6153         * m4/fprintftime.m4: Remove file.
6154         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6155         (configure.ac): Remove gl_FPRINTFTIME call.
6156         (Makefile.am): Augment lib_SOURCES.
6157         Reported by Jim Meyering.
6158
6159 2011-06-16  Bruno Haible  <bruno@clisp.org>
6160
6161         tmpfile-safer: Finish 2011-05-23 commit.
6162         * m4/stdio-safer.m4: Really remove file.
6163         Reported by Jim Meyering.
6164
6165 2011-06-16  Bruno Haible  <bruno@clisp.org>
6166
6167         syntax-check: Fix typo.
6168         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6169         printf-posix.m4.
6170         Reported by Jim Meyering.
6171
6172 2011-06-13  Jim Meyering  <meyering@redhat.com>
6173
6174         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6175         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6176
6177 2011-05-23  Bruno Haible  <bruno@clisp.org>
6178
6179         yesno: Move AC_LIBOBJ invocations to module description.
6180         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6181         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6182
6183 2011-05-23  Bruno Haible  <bruno@clisp.org>
6184
6185         xstrtol: Move AC_LIBOBJ invocations to module description.
6186         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6187         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6188
6189 2011-05-23  Bruno Haible  <bruno@clisp.org>
6190
6191         xstrtold: Move AC_LIBOBJ invocations to module description.
6192         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6193         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6194
6195 2011-05-23  Bruno Haible  <bruno@clisp.org>
6196
6197         xstrtod: Move AC_LIBOBJ invocations to module description.
6198         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6199         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6200
6201 2011-05-23  Bruno Haible  <bruno@clisp.org>
6202
6203         xnanosleep: Move AC_LIBOBJ invocations to module description.
6204         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6205         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6206
6207 2011-05-23  Bruno Haible  <bruno@clisp.org>
6208
6209         xgetcwd: Move AC_LIBOBJ invocations to module description.
6210         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6211         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6212
6213 2011-05-23  Bruno Haible  <bruno@clisp.org>
6214
6215         xalloc: Move AC_LIBOBJ invocations to module description.
6216         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6217         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6218
6219 2011-05-23  Bruno Haible  <bruno@clisp.org>
6220
6221         write-any-file: Move AC_LIBOBJ invocations to module description.
6222         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6223         invocation.
6224         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6225
6226 2011-05-23  Bruno Haible  <bruno@clisp.org>
6227
6228         utimens: Move AC_LIBOBJ invocations to module description.
6229         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6230         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6231
6232 2011-05-23  Bruno Haible  <bruno@clisp.org>
6233
6234         utimecmp: Move AC_LIBOBJ invocations to module description.
6235         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6236         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6237
6238 2011-05-23  Bruno Haible  <bruno@clisp.org>
6239
6240         userspec: Move AC_LIBOBJ invocations to module description.
6241         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6242         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6243
6244 2011-05-23  Bruno Haible  <bruno@clisp.org>
6245
6246         unlinkdir: Move AC_LIBOBJ invocations to module description.
6247         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6248         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6249
6250 2011-05-23  Bruno Haible  <bruno@clisp.org>
6251
6252         unistd-safer: Move AC_LIBOBJ invocations to module description.
6253         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6254         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6255
6256 2011-05-23  Bruno Haible  <bruno@clisp.org>
6257
6258         tempname: Move AC_LIBOBJ invocations to module description.
6259         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6260         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6261
6262 2011-05-23  Bruno Haible  <bruno@clisp.org>
6263
6264         strftime: Move AC_LIBOBJ invocations to module description.
6265         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6266         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6267
6268 2011-05-23  Bruno Haible  <bruno@clisp.org>
6269
6270         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6271         * m4/stdlib-safer.m4: Remove file.
6272         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6273         (configure.ac): Remove gl_STDLIB_SAFER call.
6274         (Makefile.am): Augment lib_SOURCES.
6275
6276 2011-05-23  Bruno Haible  <bruno@clisp.org>
6277
6278         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6279         * m4/stdio-safer.m4: Remove file.
6280         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6281         (configure.ac): Remove gl_TMPFILE_SAFER call.
6282         (Makefile.am): Augment lib_SOURCES.
6283
6284 2011-05-23  Bruno Haible  <bruno@clisp.org>
6285
6286         popen-safer: Move AC_LIBOBJ invocations to module description.
6287         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6288         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6289         (configure.ac): Remove gl_POPEN_SAFER call.
6290         (Makefile.am): Augment lib_SOURCES.
6291
6292 2011-05-23  Bruno Haible  <bruno@clisp.org>
6293
6294         freopen-safer: Move AC_LIBOBJ invocations to module description.
6295         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6296         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6297         (configure.ac): Remove gl_FREOPEN_SAFER call.
6298         (Makefile.am): Augment lib_SOURCES.
6299
6300 2011-05-23  Bruno Haible  <bruno@clisp.org>
6301
6302         fopen-safer: Move AC_LIBOBJ invocations to module description.
6303         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6304         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6305         (configure.ac): Remove gl_FOPEN_SAFER call.
6306         (Makefile.am): Augment lib_SOURCES.
6307
6308 2011-05-23  Bruno Haible  <bruno@clisp.org>
6309
6310         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6311         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6312         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6313
6314 2011-05-23  Bruno Haible  <bruno@clisp.org>
6315
6316         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6317         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6318         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6319
6320 2011-05-23  Bruno Haible  <bruno@clisp.org>
6321
6322         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6323         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6324         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6325
6326 2011-05-23  Bruno Haible  <bruno@clisp.org>
6327
6328         settime: Move AC_LIBOBJ invocations to module description.
6329         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6330         * modules/settime (Makefile.am): Augment lib_SOURCES.
6331
6332 2011-05-23  Bruno Haible  <bruno@clisp.org>
6333
6334         savedir: Move AC_LIBOBJ invocations to module description.
6335         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6336         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6337
6338 2011-05-23  Bruno Haible  <bruno@clisp.org>
6339
6340         save-cwd: Move AC_LIBOBJ invocations to module description.
6341         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6342         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6343
6344 2011-05-23  Bruno Haible  <bruno@clisp.org>
6345
6346         same: Move AC_LIBOBJ invocations to module description.
6347         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6348         * modules/same (Makefile.am): Augment lib_SOURCES.
6349
6350 2011-05-23  Bruno Haible  <bruno@clisp.org>
6351
6352         safe-write: Move AC_LIBOBJ invocations to module description.
6353         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6354         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6355         instead of gl_SAFE_WRITE.
6356         (Makefile.am): Augment lib_SOURCES.
6357
6358 2011-05-23  Bruno Haible  <bruno@clisp.org>
6359
6360         safe-read: Move AC_LIBOBJ invocations to module description.
6361         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6362         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6363         of gl_SAFE_READ.
6364         (Makefile.am): Augment lib_SOURCES.
6365
6366 2011-05-23  Bruno Haible  <bruno@clisp.org>
6367
6368         safe-alloc: Move AC_LIBOBJ invocations to module description.
6369         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6370         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6371
6372 2011-05-23  Bruno Haible  <bruno@clisp.org>
6373
6374         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6375         * m4/rijndael.m4: Remove file.
6376         * modules/crypto/rijndael (Files): Remove it.
6377         (configure.ac): Remove gl_RIJNDAEL call.
6378         (Makefile.am): Augment lib_SOURCES.
6379
6380 2011-05-23  Bruno Haible  <bruno@clisp.org>
6381
6382         readtokens: Move AC_LIBOBJ invocations to module description.
6383         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6384         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6385
6386 2011-05-23  Bruno Haible  <bruno@clisp.org>
6387
6388         read-file: Move AC_LIBOBJ invocations to module description.
6389         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6390         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6391         of gl_FUNC_READ_FILE.
6392         (Makefile.am): Augment lib_SOURCES.
6393
6394 2011-05-23  Bruno Haible  <bruno@clisp.org>
6395
6396         quotearg: Move AC_LIBOBJ invocations to module description.
6397         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6398         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6399
6400 2011-05-23  Bruno Haible  <bruno@clisp.org>
6401
6402         quote: Move AC_LIBOBJ invocations to module description.
6403         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6404         * modules/quote (Makefile.am): Augment lib_SOURCES.
6405
6406 2011-05-23  Bruno Haible  <bruno@clisp.org>
6407
6408         posixver: Move AC_LIBOBJ invocations to module description.
6409         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6410         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6411
6412 2011-05-23  Bruno Haible  <bruno@clisp.org>
6413
6414         posixtm: Move AC_LIBOBJ invocations to module description.
6415         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6416         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6417
6418 2011-05-23  Bruno Haible  <bruno@clisp.org>
6419
6420         physmem: Move AC_LIBOBJ invocations to module description.
6421         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6422         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6423
6424 2011-05-23  Bruno Haible  <bruno@clisp.org>
6425
6426         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6427         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6428         invocation.
6429         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6430
6431 2011-05-23  Bruno Haible  <bruno@clisp.org>
6432
6433         mpsort: Move AC_LIBOBJ invocations to module description.
6434         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6435         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6436
6437 2011-05-23  Bruno Haible  <bruno@clisp.org>
6438
6439         modechange: Move AC_LIBOBJ invocations to module description.
6440         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6441         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6442
6443 2011-05-23  Bruno Haible  <bruno@clisp.org>
6444
6445         mkdir-p: Move AC_LIBOBJ invocations to module description.
6446         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6447         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6448
6449 2011-05-23  Bruno Haible  <bruno@clisp.org>
6450
6451         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6452         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6453         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6454
6455 2011-05-23  Bruno Haible  <bruno@clisp.org>
6456
6457         mgetgroups: Move AC_LIBOBJ invocations to module description.
6458         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6459         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6460
6461 2011-05-23  Bruno Haible  <bruno@clisp.org>
6462
6463         memxor: Move AC_LIBOBJ invocations to module description.
6464         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6465         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6466
6467 2011-05-23  Bruno Haible  <bruno@clisp.org>
6468
6469         memcoll: Move AC_LIBOBJ invocations to module description.
6470         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6471         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6472
6473 2011-05-23  Bruno Haible  <bruno@clisp.org>
6474
6475         memcasecmp: Move AC_LIBOBJ invocations to module description.
6476         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6477         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6478
6479 2011-05-23  Bruno Haible  <bruno@clisp.org>
6480
6481         crypto/md5: Move AC_LIBOBJ invocations to module description.
6482         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6483         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6484
6485 2011-05-23  Bruno Haible  <bruno@clisp.org>
6486
6487         crypto/md4: Move AC_LIBOBJ invocations to module description.
6488         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6489         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6490
6491 2011-05-23  Bruno Haible  <bruno@clisp.org>
6492
6493         crypto/md2: Move AC_LIBOBJ invocations to module description.
6494         * m4/md2.m4: Remove file.
6495         * modules/crypto/md2 (Files): Remove it.
6496         (configure.ac): Remove gl_MD2 call.
6497         (Makefile.am): Augment lib_SOURCES.
6498
6499 2011-05-23  Bruno Haible  <bruno@clisp.org>
6500
6501         long-options: Move AC_LIBOBJ invocations to module description.
6502         * m4/long-options.m4: Remove file.
6503         * modules/long-options (Files): Remove it.
6504         (configure.ac): Remove gl_LONG_OPTIONS call.
6505         (Makefile.am): Augment lib_SOURCES.
6506
6507 2011-05-23  Bruno Haible  <bruno@clisp.org>
6508
6509         i-ring: Move AC_LIBOBJ invocations to module description.
6510         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6511         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6512
6513 2011-05-23  Bruno Haible  <bruno@clisp.org>
6514
6515         idcache: Move AC_LIBOBJ invocations to module description.
6516         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6517         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6518
6519 2011-05-23  Bruno Haible  <bruno@clisp.org>
6520
6521         human: Move AC_LIBOBJ invocations to module description.
6522         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6523         * modules/human (Makefile.am): Augment lib_SOURCES.
6524
6525 2011-05-23  Bruno Haible  <bruno@clisp.org>
6526
6527         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6528         * m4/hmac-sha1.m4: Remove file.
6529         * modules/crypto/hmac-sha1 (Files): Remove it.
6530         (configure.ac): Remove gl_HMAC_SHA1 call.
6531         (Makefile.am): Augment lib_SOURCES.
6532
6533 2011-05-23  Bruno Haible  <bruno@clisp.org>
6534
6535         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6536         * m4/hmac-md5.m4: Remove file.
6537         * modules/crypto/hmac-md5 (Files): Remove it.
6538         (configure.ac): Remove gl_HMAC_MD5 call.
6539         (Makefile.am): Augment lib_SOURCES.
6540
6541 2011-05-23  Bruno Haible  <bruno@clisp.org>
6542
6543         hash: Move AC_LIBOBJ invocations to module description.
6544         * m4/hash.m4: Remove file.
6545         * modules/hash (Files): Remove it.
6546         (configure.ac): Remove gl_HASH call.
6547         (Makefile.am): Augment lib_SOURCES.
6548
6549 2011-05-23  Bruno Haible  <bruno@clisp.org>
6550
6551         hard-locale: Move AC_LIBOBJ invocations to module description.
6552         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6553         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6554
6555 2011-05-23  Bruno Haible  <bruno@clisp.org>
6556
6557         getugroups: Move AC_LIBOBJ invocations to module description.
6558         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6559         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6560
6561 2011-05-23  Bruno Haible  <bruno@clisp.org>
6562
6563         gettime: Move AC_LIBOBJ invocations to module description.
6564         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6565         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6566
6567 2011-05-23  Bruno Haible  <bruno@clisp.org>
6568
6569         getndelim2: Move AC_LIBOBJ invocations to module description.
6570         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6571         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6572
6573 2011-05-23  Bruno Haible  <bruno@clisp.org>
6574
6575         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6576         * m4/gc-pbkdf2-sha1.m4: Remove file.
6577         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6578         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6579         (Makefile.am): Augment lib_SOURCES.
6580
6581 2011-05-23  Bruno Haible  <bruno@clisp.org>
6582
6583         fts: Move AC_LIBOBJ invocations to module description.
6584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6585         * modules/fts (configure.ac): ... to here.
6586
6587 2011-05-23  Bruno Haible  <bruno@clisp.org>
6588
6589         file-type: Move AC_LIBOBJ invocations to module description.
6590         * m4/file-type.m4: Remove file.
6591         * modules/file-type (Files): Remove it.
6592         (configure.ac): Remove gl_FILE_TYPE call.
6593         (Makefile.am): Augment lib_SOURCES.
6594
6595 2011-05-23  Bruno Haible  <bruno@clisp.org>
6596
6597         filenamecat*: Respect rules for use of AC_LIBOBJ.
6598         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6599         Remove AC_LIBOBJ invocation.
6600         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6601         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6602
6603 2011-05-23  Bruno Haible  <bruno@clisp.org>
6604
6605         filemode: Move AC_LIBOBJ invocations to module description.
6606         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6607         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6608
6609 2011-05-23  Bruno Haible  <bruno@clisp.org>
6610
6611         openat-safer: Move AC_LIBOBJ invocations to module description.
6612         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6613         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6614
6615 2011-05-23  Bruno Haible  <bruno@clisp.org>
6616
6617         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6618         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6619         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6620
6621 2011-05-23  Bruno Haible  <bruno@clisp.org>
6622
6623         exclude: Move AC_LIBOBJ invocations to module description.
6624         * m4/exclude.m4: Remove file.
6625         * modules/exclude (Files): Remove it.
6626         (configure.ac): Remove gl_EXCLUDE call.
6627         (Makefile.am): Augment lib_SOURCES.
6628
6629 2011-05-23  Bruno Haible  <bruno@clisp.org>
6630
6631         dirname*: Respect rules for use of AC_LIBOBJ.
6632         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6633         invocations.
6634         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6635         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6636
6637 2011-05-23  Bruno Haible  <bruno@clisp.org>
6638
6639         dirent-safer: Move AC_LIBOBJ invocations to module description.
6640         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6641         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6642
6643 2011-05-23  Bruno Haible  <bruno@clisp.org>
6644
6645         crypto/des: Move AC_LIBOBJ invocations to module description.
6646         * m4/des.m4: Remove file.
6647         * modules/crypto/des (Files): Remove it.
6648         (configure.ac): Remove gl_DES call.
6649         (Makefile.am): Augment lib_SOURCES.
6650
6651 2011-05-23  Bruno Haible  <bruno@clisp.org>
6652
6653         cycle-check: Move AC_LIBOBJ invocations to module description.
6654         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6655         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6656
6657 2011-05-23  Bruno Haible  <bruno@clisp.org>
6658
6659         c-strtold: Move AC_LIBOBJ invocations to module description.
6660         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6661         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6662
6663 2011-05-23  Bruno Haible  <bruno@clisp.org>
6664
6665         c-strtod: Move AC_LIBOBJ invocations to module description.
6666         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6667         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6668
6669 2011-05-23  Bruno Haible  <bruno@clisp.org>
6670
6671         crc: Move AC_LIBOBJ invocations to module description.
6672         * m4/crc.m4: Remove file.
6673         * modules/crc (Files): Remove it.
6674         (configure.ac): Remove gl_CRC call.
6675         (Makefile.am): Augment lib_SOURCES.
6676
6677 2011-05-23  Bruno Haible  <bruno@clisp.org>
6678
6679         close-stream: Move AC_LIBOBJ invocations to module description.
6680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6681         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6682
6683 2011-05-23  Bruno Haible  <bruno@clisp.org>
6684
6685         closeout: Move AC_LIBOBJ invocations to module description.
6686         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6687         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6688
6689 2011-05-23  Bruno Haible  <bruno@clisp.org>
6690
6691         closein: Move AC_LIBOBJ invocations to module description.
6692         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6693         * modules/closein (Makefile.am): Augment lib_SOURCES.
6694
6695 2011-05-23  Bruno Haible  <bruno@clisp.org>
6696
6697         cloexec: Move AC_LIBOBJ invocations to module description.
6698         * m4/cloexec.m4: Remove file.
6699         * modules/cloexec (Files): Remove it.
6700         (configure.ac): Remove gl_CLOEXEC call.
6701         (Makefile.am): Augment lib_SOURCES.
6702
6703 2011-05-23  Bruno Haible  <bruno@clisp.org>
6704
6705         check-version: Move AC_LIBOBJ invocations to module description.
6706         * m4/check-version.m4: Remove file.
6707         * modules/check-version (Files): Remove it.
6708         (configure.ac): Remove gl_CHECK_VERSION call.
6709         (Makefile.am): Augment lib_SOURCES.
6710
6711 2011-05-23  Bruno Haible  <bruno@clisp.org>
6712
6713         chdir-safer: Move AC_LIBOBJ invocations to module description.
6714         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6715         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6716
6717 2011-05-23  Bruno Haible  <bruno@clisp.org>
6718
6719         canonicalize: Move AC_LIBOBJ invocations to module description.
6720         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6721         AC_LIBOBJ invocation.
6722         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6723
6724 2011-05-23  Bruno Haible  <bruno@clisp.org>
6725
6726         canon-host: Move AC_LIBOBJ invocations to module description.
6727         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6728         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6729         instead of gl_CANON_HOST.
6730         (Makefile.am): Augment lib_SOURCES.
6731
6732 2011-05-23  Bruno Haible  <bruno@clisp.org>
6733
6734         backupfile: Move AC_LIBOBJ invocations to module description.
6735         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6736         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6737
6738 2011-05-23  Bruno Haible  <bruno@clisp.org>
6739
6740         argmatch: Move AC_LIBOBJ invocations to module description.
6741         * m4/argmatch.m4: Remove file.
6742         * modules/argmatch (Files): Remove it.
6743         (configure.ac): Remove gl_ARGMATCH call.
6744         (Makefile.am): Augment lib_SOURCES.
6745
6746 2011-05-23  Bruno Haible  <bruno@clisp.org>
6747
6748         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6749         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6750         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6751
6752 2011-05-23  Bruno Haible  <bruno@clisp.org>
6753
6754         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6755         * m4/arcfour.m4: Remove file.
6756         * modules/crypto/arcfour (Files): Remove it.
6757         (configure.ac): Remove gl_ARCFOUR call.
6758         (Makefile.am): Augment lib_SOURCES.
6759
6760 2011-05-22  Bruno Haible  <bruno@clisp.org>
6761
6762         write: Move AC_LIBOBJ invocations to module description.
6763         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6764         * modules/write (configure.ac): ... to here.
6765
6766 2011-05-22  Bruno Haible  <bruno@clisp.org>
6767
6768         wmemset: Move AC_LIBOBJ invocations to module description.
6769         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6770         here...
6771         * modules/wmemset (configure.ac): ... to here.
6772
6773 2011-05-22  Bruno Haible  <bruno@clisp.org>
6774
6775         wmemmove: Move AC_LIBOBJ invocations to module description.
6776         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6777         here...
6778         * modules/wmemmove (configure.ac): ... to here.
6779
6780 2011-05-22  Bruno Haible  <bruno@clisp.org>
6781
6782         wmemcpy: Move AC_LIBOBJ invocations to module description.
6783         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6784         here...
6785         * modules/wmemcpy (configure.ac): ... to here.
6786
6787 2011-05-22  Bruno Haible  <bruno@clisp.org>
6788
6789         wmemcmp: Move AC_LIBOBJ invocations to module description.
6790         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6791         here...
6792         * modules/wmemcmp (configure.ac): ... to here.
6793
6794 2011-05-22  Bruno Haible  <bruno@clisp.org>
6795
6796         wmemchr: Move AC_LIBOBJ invocations to module description.
6797         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6798         here...
6799         * modules/wmemchr (configure.ac): ... to here.
6800
6801 2011-05-22  Bruno Haible  <bruno@clisp.org>
6802
6803         wcswidth: Move AC_LIBOBJ invocations to module description.
6804         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6805         here...
6806         * modules/wcswidth (configure.ac): ... to here.
6807
6808 2011-05-22  Bruno Haible  <bruno@clisp.org>
6809
6810         wcwidth: Respect rules for use of AC_LIBOBJ.
6811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6812         invocation from here...
6813         * modules/wcwidth (configure.ac): ... to here.
6814         (Depends-on): Update conditions.
6815
6816 2011-05-22  Bruno Haible  <bruno@clisp.org>
6817
6818         wctype: Move AC_LIBOBJ invocations to module description.
6819         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6820         invocation from here...
6821         * modules/wctype (configure.ac): ... to here.
6822         (Depends-on): Update conditions.
6823
6824 2011-05-22  Bruno Haible  <bruno@clisp.org>
6825
6826         wctrans: Move AC_LIBOBJ invocations to module description.
6827         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6828         invocation from here...
6829         * modules/wctrans (configure.ac): ... to here.
6830
6831 2011-05-22  Bruno Haible  <bruno@clisp.org>
6832
6833         wctomb: Move AC_LIBOBJ invocations to module description.
6834         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6835         invocations from here...
6836         * modules/wctomb (configure.ac): ... to here.
6837
6838 2011-05-22  Bruno Haible  <bruno@clisp.org>
6839
6840         wctob: Move AC_LIBOBJ invocations to module description.
6841         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6842         gl_PREREQ_WCTOB invocations from here...
6843         * modules/wctob (configure.ac): ... to here.
6844         (Depends-on): Update conditions.
6845
6846 2011-05-22  Bruno Haible  <bruno@clisp.org>
6847
6848         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6849         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6850         here...
6851         * modules/wcsxfrm (configure.ac): ... to here.
6852
6853 2011-05-22  Bruno Haible  <bruno@clisp.org>
6854
6855         wcstok: Move AC_LIBOBJ invocations to module description.
6856         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6857         * modules/wcstok (configure.ac): ... to here.
6858
6859 2011-05-22  Bruno Haible  <bruno@clisp.org>
6860
6861         wcsstr: Move AC_LIBOBJ invocations to module description.
6862         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6863         * modules/wcsstr (configure.ac): ... to here.
6864
6865 2011-05-22  Bruno Haible  <bruno@clisp.org>
6866
6867         wcsspn: Move AC_LIBOBJ invocations to module description.
6868         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6869         * modules/wcsspn (configure.ac): ... to here.
6870
6871 2011-05-22  Bruno Haible  <bruno@clisp.org>
6872
6873         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6874         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6875         gl_PREREQ_WCSRTOMBS invocations from here...
6876         * modules/wcsrtombs (configure.ac): ... to here.
6877
6878 2011-05-22  Bruno Haible  <bruno@clisp.org>
6879
6880         wcsrchr: Move AC_LIBOBJ invocations to module description.
6881         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6882         here...
6883         * modules/wcsrchr (configure.ac): ... to here.
6884
6885 2011-05-22  Bruno Haible  <bruno@clisp.org>
6886
6887         wcspbrk: Move AC_LIBOBJ invocations to module description.
6888         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6889         here...
6890         * modules/wcspbrk (configure.ac): ... to here.
6891
6892 2011-05-22  Bruno Haible  <bruno@clisp.org>
6893
6894         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6895         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6896         gl_PREREQ_WCSNRTOMBS invocations from here...
6897         * modules/wcsnrtombs (configure.ac): ... to here.
6898
6899 2011-05-22  Bruno Haible  <bruno@clisp.org>
6900
6901         wcsnlen: Move AC_LIBOBJ invocations to module description.
6902         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6903         here...
6904         * modules/wcsnlen (configure.ac): ... to here.
6905
6906 2011-05-22  Bruno Haible  <bruno@clisp.org>
6907
6908         wcsncpy: Move AC_LIBOBJ invocations to module description.
6909         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6910         here...
6911         * modules/wcsncpy (configure.ac): ... to here.
6912
6913 2011-05-22  Bruno Haible  <bruno@clisp.org>
6914
6915         wcsncmp: Move AC_LIBOBJ invocations to module description.
6916         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6917         here...
6918         * modules/wcsncmp (configure.ac): ... to here.
6919
6920 2011-05-22  Bruno Haible  <bruno@clisp.org>
6921
6922         wcsncat: Move AC_LIBOBJ invocations to module description.
6923         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6924         here...
6925         * modules/wcsncat (configure.ac): ... to here.
6926
6927 2011-05-22  Bruno Haible  <bruno@clisp.org>
6928
6929         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6930         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6931         from here...
6932         * modules/wcsncasecmp (configure.ac): ... to here.
6933
6934 2011-05-22  Bruno Haible  <bruno@clisp.org>
6935
6936         wcslen: Move AC_LIBOBJ invocations to module description.
6937         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6938         * modules/wcslen (configure.ac): ... to here.
6939
6940 2011-05-22  Bruno Haible  <bruno@clisp.org>
6941
6942         wcsdup: Move AC_LIBOBJ invocations to module description.
6943         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6944         * modules/wcsdup (configure.ac): ... to here.
6945
6946 2011-05-22  Bruno Haible  <bruno@clisp.org>
6947
6948         wcscspn: Move AC_LIBOBJ invocations to module description.
6949         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6950         here...
6951         * modules/wcscspn (configure.ac): ... to here.
6952
6953 2011-05-22  Bruno Haible  <bruno@clisp.org>
6954
6955         wcscpy: Move AC_LIBOBJ invocations to module description.
6956         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6957         * modules/wcscpy (configure.ac): ... to here.
6958
6959 2011-05-22  Bruno Haible  <bruno@clisp.org>
6960
6961         wcscoll: Move AC_LIBOBJ invocations to module description.
6962         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6963         here...
6964         * modules/wcscoll (configure.ac): ... to here.
6965
6966 2011-05-22  Bruno Haible  <bruno@clisp.org>
6967
6968         wcscmp: Move AC_LIBOBJ invocations to module description.
6969         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6970         * modules/wcscmp (configure.ac): ... to here.
6971
6972 2011-05-22  Bruno Haible  <bruno@clisp.org>
6973
6974         wcschr: Move AC_LIBOBJ invocations to module description.
6975         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6976         * modules/wcschr (configure.ac): ... to here.
6977
6978 2011-05-22  Bruno Haible  <bruno@clisp.org>
6979
6980         wcscat: Move AC_LIBOBJ invocations to module description.
6981         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6982         * modules/wcscat (configure.ac): ... to here.
6983
6984 2011-05-22  Bruno Haible  <bruno@clisp.org>
6985
6986         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6987         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6988         here...
6989         * modules/wcscasecmp (configure.ac): ... to here.
6990
6991 2011-05-22  Bruno Haible  <bruno@clisp.org>
6992
6993         wcrtomb: Move AC_LIBOBJ invocations to module description.
6994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6995         invocations from here...
6996         * modules/wcrtomb (configure.ac): ... to here.
6997
6998 2011-05-22  Bruno Haible  <bruno@clisp.org>
6999
7000         wcpncpy: Move AC_LIBOBJ invocations to module description.
7001         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7002         here...
7003         * modules/wcpncpy (configure.ac): ... to here.
7004
7005 2011-05-22  Bruno Haible  <bruno@clisp.org>
7006
7007         wcpcpy: Move AC_LIBOBJ invocations to module description.
7008         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7009         * modules/wcpcpy (configure.ac): ... to here.
7010
7011 2011-05-22  Bruno Haible  <bruno@clisp.org>
7012
7013         waitpid: Move AC_LIBOBJ invocations to module description.
7014         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7015         invocation from here...
7016         * modules/waitpid (configure.ac): ... to here.
7017
7018 2011-05-22  Bruno Haible  <bruno@clisp.org>
7019
7020         utimensat: Move AC_LIBOBJ invocations to module description.
7021         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7022         here...
7023         * modules/utimensat (configure.ac): ... to here.
7024
7025 2011-05-22  Bruno Haible  <bruno@clisp.org>
7026
7027         usleep: Move AC_LIBOBJ invocations to module description.
7028         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7029         here...
7030         * modules/usleep (configure.ac): ... to here.
7031
7032 2011-05-22  Bruno Haible  <bruno@clisp.org>
7033
7034         unlockpt: Move AC_LIBOBJ invocations to module description.
7035         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7036         gl_PREREQ_UNLOCKPT invocations from here...
7037         * modules/unlockpt (configure.ac): ... to here.
7038
7039 2011-05-22  Bruno Haible  <bruno@clisp.org>
7040
7041         unlink: Respect rules for use of AC_LIBOBJ.
7042         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7043         * modules/unlink (configure.ac): ... to here.
7044
7045 2011-05-22  Bruno Haible  <bruno@clisp.org>
7046
7047         uname: Move AC_LIBOBJ invocations to module description.
7048         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7050         here...
7051         * modules/uname (configure.ac): ... to here.
7052
7053 2011-05-22  Bruno Haible  <bruno@clisp.org>
7054
7055         ttyname_r: Move AC_LIBOBJ invocations to module description.
7056         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7057         gl_PREREQ_TTYNAME_R invocations from here...
7058         * modules/ttyname_r (configure.ac): ... to here.
7059
7060 2011-05-22  Bruno Haible  <bruno@clisp.org>
7061
7062         tsearch: Move AC_LIBOBJ invocations to module description.
7063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7064         invocations from here...
7065         * modules/tsearch (configure.ac): ... to here.
7066
7067 2011-05-22  Bruno Haible  <bruno@clisp.org>
7068
7069         towctrans: Move AC_LIBOBJ invocations to module description.
7070         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7071         AC_LIBOBJ invocation from here...
7072         * modules/towctrans (configure.ac): ... to here.
7073
7074 2011-05-22  Bruno Haible  <bruno@clisp.org>
7075
7076         tmpfile: Move AC_LIBOBJ invocations to module description.
7077         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7078         invocations from here...
7079         * modules/tmpfile (configure.ac): ... to here.
7080
7081 2011-05-22  Bruno Haible  <bruno@clisp.org>
7082
7083         times: Move AC_LIBOBJ invocations to module description.
7084         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7085         * modules/times (configure.ac): ... to here.
7086
7087 2011-05-22  Bruno Haible  <bruno@clisp.org>
7088
7089         time_r: Move AC_LIBOBJ invocations to module description.
7090         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7091         invocations from here...
7092         * modules/time_r (configure.ac): ... to here.
7093
7094 2011-05-22  Bruno Haible  <bruno@clisp.org>
7095
7096         timegm: Move AC_LIBOBJ invocations to module description.
7097         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7098         invocations from here...
7099         * modules/timegm (configure.ac): ... to here.
7100
7101 2011-05-22  Bruno Haible  <bruno@clisp.org>
7102
7103         tcgetsid: Move AC_LIBOBJ invocations to module description.
7104         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7105         and gl_PREREQ_TCGETSID invocations from here...
7106         * modules/tcgetsid (configure.ac): ... to here.
7107         (Depends-on): Update conditions.
7108
7109 2011-05-22  Bruno Haible  <bruno@clisp.org>
7110
7111         symlinkat: Move AC_LIBOBJ invocations to module description.
7112         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7113         here...
7114         * modules/symlinkat (configure.ac): ... to here.
7115
7116 2011-05-22  Bruno Haible  <bruno@clisp.org>
7117
7118         symlink: Move AC_LIBOBJ invocations to module description.
7119         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7120         here...
7121         * modules/symlink (configure.ac): ... to here.
7122
7123 2011-05-22  Bruno Haible  <bruno@clisp.org>
7124
7125         strverscmp: Move AC_LIBOBJ invocations to module description.
7126         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7128         from here...
7129         * modules/strverscmp (configure.ac): ... to here.
7130
7131 2011-05-22  Bruno Haible  <bruno@clisp.org>
7132
7133         strtok_r: Move AC_LIBOBJ invocations to module description.
7134         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7135         and gl_PREREQ_STRTOK_R invocations from here...
7136         * modules/strtok_r (configure.ac): ... to here.
7137         (Depends-on): Update conditions.
7138
7139 2011-05-22  Bruno Haible  <bruno@clisp.org>
7140
7141         strtoumax: Move AC_LIBOBJ invocations to module description.
7142         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7144         from here...
7145         * modules/strtoumax (configure.ac): ... to here.
7146
7147 2011-05-22  Bruno Haible  <bruno@clisp.org>
7148
7149         strtoimax: Move AC_LIBOBJ invocations to module description.
7150         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7152         from here...
7153         * modules/strtoimax (configure.ac): ... to here.
7154
7155 2011-05-22  Bruno Haible  <bruno@clisp.org>
7156
7157         strtoull: Move AC_LIBOBJ invocations to module description.
7158         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7160         from here...
7161         * modules/strtoull (configure.ac): ... to here.
7162
7163 2011-05-22  Bruno Haible  <bruno@clisp.org>
7164
7165         strtoll: Move AC_LIBOBJ invocations to module description.
7166         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7168         here...
7169         * modules/strtoll (configure.ac): ... to here.
7170
7171 2011-05-22  Bruno Haible  <bruno@clisp.org>
7172
7173         strtoul: Move AC_LIBOBJ invocations to module description.
7174         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7175         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7176         * modules/strtoul (configure.ac): ... to here.
7177
7178 2011-05-22  Bruno Haible  <bruno@clisp.org>
7179
7180         strtol: Move AC_LIBOBJ invocations to module description.
7181         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7182         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7183         * modules/strtol (configure.ac): ... to here.
7184
7185 2011-05-22  Bruno Haible  <bruno@clisp.org>
7186
7187         strtod: Move AC_LIBOBJ invocations to module description.
7188         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7189         invocations from here...
7190         * modules/strtod (configure.ac): ... to here.
7191
7192 2011-05-22  Bruno Haible  <bruno@clisp.org>
7193
7194         strstr*: Move AC_LIBOBJ invocations to module description.
7195         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7196         invocations from here...
7197         * modules/strstr-simple (configure.ac): ... to here.
7198         * modules/strstr (configure.ac): ... and here.
7199
7200 2011-05-22  Bruno Haible  <bruno@clisp.org>
7201
7202         strsignal: Move AC_LIBOBJ invocations to module description.
7203         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7204         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7205         * modules/strsignal (configure.ac): ... to here.
7206         (Depends-on): Update conditions.
7207
7208 2011-05-22  Bruno Haible  <bruno@clisp.org>
7209
7210         strsep: Move AC_LIBOBJ invocations to module description.
7211         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7213         here...
7214         * modules/strsep (configure.ac): ... to here.
7215
7216 2011-05-22  Bruno Haible  <bruno@clisp.org>
7217
7218         strptime: Move AC_LIBOBJ invocations to module description.
7219         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7220         gl_PREREQ_STRPTIME invocations from here...
7221         * modules/strptime (configure.ac): ... to here.
7222
7223 2011-05-22  Bruno Haible  <bruno@clisp.org>
7224
7225         strpbrk: Move AC_LIBOBJ invocations to module description.
7226         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7228         here...
7229         * modules/strpbrk (configure.ac): ... to here.
7230
7231 2011-05-22  Bruno Haible  <bruno@clisp.org>
7232
7233         strnlen: Move AC_LIBOBJ invocations to module description.
7234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7235         invocations from here...
7236         * modules/strnlen (configure.ac): ... to here.
7237
7238 2011-05-22  Bruno Haible  <bruno@clisp.org>
7239
7240         strndup: Move AC_LIBOBJ invocations to module description.
7241         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7242         invocations from here...
7243         * modules/strndup (configure.ac): ... to here.
7244         (Depends-on): Update conditions.
7245
7246 2011-05-22  Bruno Haible  <bruno@clisp.org>
7247
7248         strncat: Move AC_LIBOBJ invocations to module description.
7249         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7250         invocations from here...
7251         * modules/strncat (configure.ac): ... to here.
7252
7253 2011-05-22  Bruno Haible  <bruno@clisp.org>
7254
7255         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7256         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7257         invocations from here...
7258         * modules/strdup (configure.ac): ... to here.
7259         * modules/strdup-posix (configure.ac): ... and here.
7260
7261 2011-05-22  Bruno Haible  <bruno@clisp.org>
7262
7263         strcspn: Move AC_LIBOBJ invocations to module description.
7264         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7266         here...
7267         * modules/strcspn (configure.ac): ... to here.
7268
7269 2011-05-22  Bruno Haible  <bruno@clisp.org>
7270
7271         strchrnul: Move AC_LIBOBJ invocations to module description.
7272         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7273         gl_PREREQ_STRCHRNUL invocations from here...
7274         * modules/strchrnul (configure.ac): ... to here.
7275
7276 2011-05-22  Bruno Haible  <bruno@clisp.org>
7277
7278         strcasestr*: Move AC_LIBOBJ invocations to module description.
7279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7280         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7281         * modules/strcasestr-simple (configure.ac): ... to here.
7282         * modules/strcasestr (configure.ac): ... and here.
7283
7284 2011-05-22  Bruno Haible  <bruno@clisp.org>
7285
7286         strcase: Move AC_LIBOBJ invocations to module description.
7287         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7288         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7289         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7290         gl_PREREQ_STRNCASECMP invocations from here...
7291         * modules/strcase (configure.ac): ... to here.
7292
7293 2011-05-22  Bruno Haible  <bruno@clisp.org>
7294
7295         stpncpy: Move AC_LIBOBJ invocations to module description.
7296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7297         here...
7298         * modules/stpncpy (configure.ac): ... to here.
7299
7300 2011-05-22  Bruno Haible  <bruno@clisp.org>
7301
7302         stpcpy: Move AC_LIBOBJ invocations to module description.
7303         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7305         here...
7306         * modules/stpcpy (configure.ac): ... to here.
7307
7308 2011-05-21  Bruno Haible  <bruno@clisp.org>
7309
7310         stat: Move AC_LIBOBJ invocations to module description.
7311         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7312         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7313         here...
7314         * modules/stat (configure.ac): ... to here.
7315
7316 2011-05-21  Bruno Haible  <bruno@clisp.org>
7317
7318         sleep: Move AC_LIBOBJ invocations to module description.
7319         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7320         * modules/sleep (configure.ac): ... to here.
7321
7322 2011-05-21  Bruno Haible  <bruno@clisp.org>
7323
7324         signbit: Move AC_LIBOBJ invocations to module description.
7325         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7326         * modules/signbit (configure.ac): ... to here.
7327
7328 2011-05-21  Bruno Haible  <bruno@clisp.org>
7329
7330         sigprocmask: Move AC_LIBOBJ invocations to module description.
7331         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7332         gl_PREREQ_SIGPROMASK invocations from here...
7333         * modules/sigprocmask (configure.ac): ... to here.
7334
7335 2011-05-21  Bruno Haible  <bruno@clisp.org>
7336
7337         sigaction: Move AC_LIBOBJ invocations to module description.
7338         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7339         gl_PREREQ_SIGACTION invocations from here...
7340         * modules/sigaction (configure.ac): ... to here.
7341
7342 2011-05-21  Bruno Haible  <bruno@clisp.org>
7343
7344         sig2str: Move AC_LIBOBJ invocations to module description.
7345         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7346         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7347         here...
7348         * modules/sig2str (configure.ac): ... to here.
7349
7350 2011-05-21  Bruno Haible  <bruno@clisp.org>
7351
7352         setlocale: Move AC_LIBOBJ invocations to module description.
7353         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7354         gl_PREREQ_SETLOCALE invocations from here...
7355         * modules/setlocale (configure.ac): ... to here.
7356
7357 2011-05-21  Bruno Haible  <bruno@clisp.org>
7358
7359         unsetenv: Move AC_LIBOBJ invocations to module description.
7360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7361         and gl_PREREQ_UNSETENV invocations from here...
7362         * modules/unsetenv (configure.ac): ... to here.
7363         (Depends-on): Update.
7364
7365 2011-05-21  Bruno Haible  <bruno@clisp.org>
7366
7367         setenv: Move AC_LIBOBJ invocations to module description.
7368         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7369         here...
7370         * modules/setenv (configure.ac): ... to here.
7371
7372 2011-05-21  Bruno Haible  <bruno@clisp.org>
7373
7374         selinux-h: Move AC_LIBOBJ invocations to module description.
7375         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7376         AC_LIBOBJ invocation from here...
7377         * modules/selinux-h (configure.ac): ... to here.
7378
7379 2011-05-21  Bruno Haible  <bruno@clisp.org>
7380
7381         select: Respect rules for use of AC_LIBOBJ.
7382         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7383         here...
7384         * modules/select (configure.ac): ... to here.
7385
7386 2011-05-21  Bruno Haible  <bruno@clisp.org>
7387
7388         scandir: Move AC_LIBOBJ invocations to module description.
7389         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7390         invocations from here...
7391         * modules/scandir (configure.ac): ... to here.
7392
7393 2011-05-21  Bruno Haible  <bruno@clisp.org>
7394
7395         rpmatch: Move AC_LIBOBJ invocations to module description.
7396         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7397         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7398         here...
7399         * modules/rpmatch (configure.ac): ... to here.
7400
7401 2011-05-21  Bruno Haible  <bruno@clisp.org>
7402
7403         rmdir: Respect rules for use of AC_LIBOBJ.
7404         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7405         * modules/rmdir (configure.ac): ... to here.
7406
7407 2011-05-21  Bruno Haible  <bruno@clisp.org>
7408
7409         renameat: Move AC_LIBOBJ invocations to module description.
7410         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7411         here...
7412         * modules/renameat (configure.ac): ... to here.
7413
7414 2011-05-21  Bruno Haible  <bruno@clisp.org>
7415
7416         rename: Respect rules for use of AC_LIBOBJ.
7417         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7418         here...
7419         * modules/rename (configure.ac): ... to here.
7420
7421 2011-05-21  Bruno Haible  <bruno@clisp.org>
7422
7423         remove: Move AC_LIBOBJ invocations to module description.
7424         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7425         here...
7426         * modules/remove (configure.ac): ... to here.
7427
7428 2011-05-21  Bruno Haible  <bruno@clisp.org>
7429
7430         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7431         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7432         macro.
7433         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7434         * modules/relocatable-lib (configure.ac): ... to here.
7435         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7436         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7437
7438 2011-05-21  Bruno Haible  <bruno@clisp.org>
7439
7440         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7441         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7442         here...
7443         * modules/relocatable-prog (configure.ac): ... to here.
7444
7445 2011-05-21  Bruno Haible  <bruno@clisp.org>
7446
7447         regex: Move AC_LIBOBJ invocations to module description.
7448         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7449         invocations from here...
7450         * modules/regex (configure.ac): ... to here.
7451
7452 2011-05-21  Bruno Haible  <bruno@clisp.org>
7453
7454         realloc-*: Move AC_LIBOBJ invocations to module description.
7455         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7456         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7457         AC_LIBOBJ invocations from here...
7458         * modules/realloc-gnu (configure.ac): ... to here.
7459         * modules/realloc-posix (configure.ac): ... and here.
7460
7461 2011-05-21  Bruno Haible  <bruno@clisp.org>
7462
7463         readutmp: Move AC_LIBOBJ invocations to module description.
7464         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7465         * modules/readutmp (configure.ac): ... to here.
7466
7467 2011-05-21  Bruno Haible  <bruno@clisp.org>
7468
7469         readlinkat: Move AC_LIBOBJ invocations to module description.
7470         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7471         here...
7472         * modules/readlinkat (configure.ac): ... to here.
7473
7474 2011-05-21  Bruno Haible  <bruno@clisp.org>
7475
7476         readlink: Move AC_LIBOBJ invocations to module description.
7477         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7478         gl_PREREQ_READLINK invocations from here...
7479         * modules/readlink (configure.ac): ... to here.
7480
7481 2011-05-21  Bruno Haible  <bruno@clisp.org>
7482
7483         readline: Move AC_LIBOBJ invocations to module description.
7484         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7485         gl_PREREQ_READLINE invocations from here...
7486         * modules/readline (configure.ac): ... to here.
7487
7488 2011-05-21  Bruno Haible  <bruno@clisp.org>
7489
7490         read: Move AC_LIBOBJ invocations to module description.
7491         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7492         * modules/read (configure.ac): ... to here.
7493
7494 2011-05-21  Bruno Haible  <bruno@clisp.org>
7495
7496         rawmemchr: Move AC_LIBOBJ invocations to module description.
7497         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7499         from here...
7500         * modules/rawmemchr (configure.ac): ... to here.
7501
7502 2011-05-21  Bruno Haible  <bruno@clisp.org>
7503
7504         random_r: Move AC_LIBOBJ invocations to module description.
7505         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7506         gl_PREREQ_RANDOM_R invocations from here...
7507         * modules/random_r (configure.ac): ... to here.
7508
7509 2011-05-21  Bruno Haible  <bruno@clisp.org>
7510
7511         pwrite: Move AC_LIBOBJ invocations to module description.
7512         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7513         * modules/pwrite (configure.ac): ... to here.
7514
7515 2011-05-21  Bruno Haible  <bruno@clisp.org>
7516
7517         putenv: Move AC_LIBOBJ invocations to module description.
7518         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7519         * modules/putenv (configure.ac): ... to here.
7520
7521 2011-05-21  Bruno Haible  <bruno@clisp.org>
7522
7523         login_tty: Move AC_LIBOBJ invocations to module description.
7524         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7525         * modules/login_tty (configure.ac): ... to here.
7526
7527 2011-05-21  Bruno Haible  <bruno@clisp.org>
7528
7529         openpty: Move AC_LIBOBJ invocations to module description.
7530         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7531         * modules/openpty (configure.ac): ... to here.
7532
7533 2011-05-21  Bruno Haible  <bruno@clisp.org>
7534
7535         forkpty: Move AC_LIBOBJ invocations to module description.
7536         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7537         * modules/forkpty (configure.ac): ... to here.
7538
7539 2011-05-21  Bruno Haible  <bruno@clisp.org>
7540
7541         ptsname: Move AC_LIBOBJ invocations to module description.
7542         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7543         invocations from here...
7544         * modules/ptsname (configure.ac): ... to here.
7545
7546 2011-05-21  Bruno Haible  <bruno@clisp.org>
7547
7548         pread: Move AC_LIBOBJ invocations to module description.
7549         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7550         * modules/pread (configure.ac): ... to here.
7551
7552 2011-05-21  Bruno Haible  <bruno@clisp.org>
7553
7554         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7555         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7556         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7557         * modules/posix_spawn (configure.ac): ... to here.
7558         * modules/posix_spawnp (configure.ac): ... and here.
7559
7560 2011-05-21  Bruno Haible  <bruno@clisp.org>
7561
7562         popen: Move AC_LIBOBJ invocations to module description.
7563         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7564         invocations from here...
7565         * modules/popen (configure.ac): ... to here.
7566
7567 2011-05-21  Bruno Haible  <bruno@clisp.org>
7568
7569         poll: Move AC_LIBOBJ invocations to module description.
7570         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7571         invocations from here...
7572         * modules/poll (configure.ac): ... to here.
7573
7574 2011-05-21  Bruno Haible  <bruno@clisp.org>
7575
7576         pipe-posix: Move AC_LIBOBJ invocations to module description.
7577         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7578         * modules/pipe-posix (configure.ac): ... to here.
7579
7580 2011-05-21  Bruno Haible  <bruno@clisp.org>
7581
7582         openat: Respect rules for use of AC_LIBOBJ.
7583         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7584         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7585         * modules/openat (configure.ac): ... to here.
7586
7587 2011-05-21  Bruno Haible  <bruno@clisp.org>
7588
7589         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7590         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7591         invocation from here...
7592         * modules/obstack-printf (configure.ac): ... to here.
7593         * modules/obstack-printf-posix (configure.ac): ... and here.
7594
7595 2011-05-21  Bruno Haible  <bruno@clisp.org>
7596
7597         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7598         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7599         from here...
7600         * modules/nl_langinfo (configure.ac): ... to here.
7601
7602 2011-05-21  Bruno Haible  <bruno@clisp.org>
7603
7604         nanosleep: Move AC_LIBOBJ invocations to module description.
7605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7606         gl_PREREQ_NANOSLEEP invocations from here...
7607         * modules/nanosleep (configure.ac): ... to here.
7608
7609 2011-05-21  Bruno Haible  <bruno@clisp.org>
7610
7611         mountlist: Move AC_LIBOBJ invocations to module description.
7612         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7613         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7614         * modules/mountlist (configure.ac): ... to here.
7615
7616 2011-05-21  Bruno Haible  <bruno@clisp.org>
7617
7618         mktime: Respect rules for use of AC_LIBOBJ.
7619         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7620         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7621         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7622         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7623         * modules/mktime (configure.ac): ... to here.
7624         * modules/mktime-internal (configure.ac): ... and here.
7625         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7626
7627 2011-05-21  Bruno Haible  <bruno@clisp.org>
7628
7629         mkstemps: Move AC_LIBOBJ invocations to module description.
7630         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7631         here...
7632         * modules/mkstemps (configure.ac): ... to here.
7633
7634 2011-05-21  Bruno Haible  <bruno@clisp.org>
7635
7636         mkstemp: Move AC_LIBOBJ invocations to module description.
7637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7638         gl_PREREQ_MKSTEMP invocations from here...
7639         * modules/mkstemp (configure.ac): ... to here.
7640
7641 2011-05-21  Bruno Haible  <bruno@clisp.org>
7642
7643         mkostemps: Move AC_LIBOBJ invocations to module description.
7644         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7645         here...
7646         * modules/mkostemps (configure.ac): ... to here.
7647
7648 2011-05-21  Bruno Haible  <bruno@clisp.org>
7649
7650         mkostemp: Move AC_LIBOBJ invocations to module description.
7651         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7652         gl_PREREQ_MKOSTEMP invocations from here...
7653         * modules/mkostemp (configure.ac): ... to here.
7654
7655 2011-05-21  Bruno Haible  <bruno@clisp.org>
7656
7657         mknod: Move AC_LIBOBJ invocations to module description.
7658         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7659         * modules/mknod (configure.ac): ... to here.
7660
7661 2011-05-21  Bruno Haible  <bruno@clisp.org>
7662
7663         mkfifoat: Move AC_LIBOBJ invocations to module description.
7664         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7665         here...
7666         * modules/mkfifoat (configure.ac): ... to here.
7667
7668 2011-05-21  Bruno Haible  <bruno@clisp.org>
7669
7670         mkfifo: Respect rules for use of AC_LIBOBJ.
7671         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7672         here...
7673         * modules/mkfifo (configure.ac): ... to here.
7674
7675 2011-05-21  Bruno Haible  <bruno@clisp.org>
7676
7677         mkdtemp: Move AC_LIBOBJ invocations to module description.
7678         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7679         invocations from here...
7680         * modules/mkdtemp (configure.ac): ... to here.
7681
7682 2011-05-21  Bruno Haible  <bruno@clisp.org>
7683
7684         mkdir: Move AC_LIBOBJ invocations to module description.
7685         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7686         * modules/mkdir (configure.ac): ... to here.
7687
7688 2011-05-21  Bruno Haible  <bruno@clisp.org>
7689
7690         memset: Move AC_LIBOBJ invocations to module description.
7691         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7693         here...
7694         * modules/memset (configure.ac): ... to here.
7695
7696 2011-05-21  Bruno Haible  <bruno@clisp.org>
7697
7698         memrchr: Move AC_LIBOBJ invocations to module description.
7699         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7701         here...
7702         * modules/memrchr (configure.ac): ... to here.
7703
7704 2011-05-21  Bruno Haible  <bruno@clisp.org>
7705
7706         mempcpy: Move AC_LIBOBJ invocations to module description.
7707         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7709         here...
7710         * modules/mempcpy (configure.ac): ... to here.
7711
7712 2011-05-21  Bruno Haible  <bruno@clisp.org>
7713
7714         memmove: Move AC_LIBOBJ invocations to module description.
7715         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7717         here...
7718         * modules/memmove (configure.ac): ... to here.
7719
7720 2011-05-21  Bruno Haible  <bruno@clisp.org>
7721
7722         memmem*: Move AC_LIBOBJ invocations to module description.
7723         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7724         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7725         here...
7726         (gl_FUNC_MEMMEM): ... and here...
7727         * modules/memmem-simple (configure.ac): ... to here.
7728         * modules/memmem (configure.ac): ... and here.
7729
7730 2011-05-21  Bruno Haible  <bruno@clisp.org>
7731
7732         memcpy: Move AC_LIBOBJ invocations to module description.
7733         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7734         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7735         here...
7736         * modules/memcpy (configure.ac): ... to here.
7737
7738 2011-05-21  Bruno Haible  <bruno@clisp.org>
7739
7740         memcmp: Simplify autoconf macro.
7741         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7742         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7743         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7744
7745 2011-05-21  Bruno Haible  <bruno@clisp.org>
7746
7747         memcmp: Move AC_LIBOBJ invocations to module description.
7748         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7749         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7750         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7751         * modules/memcmp (configure.ac): ... to here.
7752         (Depends-on): Update conditions.
7753
7754 2011-05-21  Bruno Haible  <bruno@clisp.org>
7755
7756         memchr: Respect rules for use of AC_LIBOBJ.
7757         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7758         invocations from here...
7759         * modules/memchr (configure.ac): ... to here.
7760
7761 2011-05-21  Bruno Haible  <bruno@clisp.org>
7762
7763         mbtowc: Move AC_LIBOBJ invocations to module description.
7764         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7765         invocations from here...
7766         * modules/mbtowc (configure.ac): ... to here.
7767
7768 2011-05-21  Bruno Haible  <bruno@clisp.org>
7769
7770         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7771         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7772         gl_PREREQ_MBSRTOWCS invocations from here...
7773         * modules/mbsrtowcs (configure.ac): ... to here.
7774
7775 2011-05-21  Bruno Haible  <bruno@clisp.org>
7776
7777         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7778         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7779         gl_PREREQ_MBSNRTOWCS invocations from here...
7780         * modules/mbsnrtowcs (configure.ac): ... to here.
7781
7782 2011-05-21  Bruno Haible  <bruno@clisp.org>
7783
7784         mbsinit: Move AC_LIBOBJ invocations to module description.
7785         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7786         invocations from here...
7787         * modules/mbsinit (configure.ac): ... to here.
7788
7789 2011-05-21  Bruno Haible  <bruno@clisp.org>
7790
7791         mbrlen: Move AC_LIBOBJ invocations to module description.
7792         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7793         invocations from here...
7794         * modules/mbrlen (configure.ac): ... to here.
7795
7796 2011-05-21  Bruno Haible  <bruno@clisp.org>
7797
7798         mbrtowc: Respect rules for use of AC_LIBOBJ.
7799         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7800         invocations from here...
7801         * modules/mbrtowc (configure.ac): ... to here.
7802
7803 2011-05-21  Bruno Haible  <bruno@clisp.org>
7804
7805         malloc-*: Move AC_LIBOBJ invocations to module description.
7806         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7807         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7808         AC_LIBOBJ invocations from here...
7809         * modules/malloc-gnu (configure.ac): ... to here.
7810         * modules/malloc-posix (configure.ac): ... and here.
7811
7812 2011-05-21  Bruno Haible  <bruno@clisp.org>
7813
7814         lstat, openat: Respect rules for use of AC_LIBOBJ.
7815         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7817         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7818         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7819         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7820         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7821         here.
7822         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7823
7824 2011-05-21  Bruno Haible  <bruno@clisp.org>
7825
7826         lseek: Move AC_LIBOBJ invocations to module description.
7827         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7828         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7829         * modules/lseek (configure.ac): ... to here.
7830
7831 2011-05-21  Bruno Haible  <bruno@clisp.org>
7832
7833         linkat: Move AC_LIBOBJ invocations to module description.
7834         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7835         here...
7836         * modules/linkat (configure.ac): ... to here.
7837
7838 2011-05-21  Bruno Haible  <bruno@clisp.org>
7839
7840         link: Respect rules for use of AC_LIBOBJ.
7841         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7842         * modules/link (configure.ac): ... to here.
7843
7844 2011-05-21  Bruno Haible  <bruno@clisp.org>
7845
7846         lchown: Move AC_LIBOBJ invocations to module description.
7847         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7848         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7849         * modules/lchown (configure.ac): ... to here.
7850
7851 2011-05-21  Bruno Haible  <bruno@clisp.org>
7852
7853         iswctype: Move AC_LIBOBJ invocations to module description.
7854         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7855         here...
7856         * modules/iswctype (configure.ac): ... to here.
7857
7858 2011-05-21  Bruno Haible  <bruno@clisp.org>
7859
7860         iswblank: Move AC_LIBOBJ invocations to module description.
7861         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7862         here...
7863         * modules/iswblank (configure.ac): ... to here.
7864
7865 2011-05-21  Bruno Haible  <bruno@clisp.org>
7866
7867         atanl: Move AC_LIBOBJ invocations to module description.
7868         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7869         * modules/atanl (configure.ac): ... to here.
7870
7871 2011-05-21  Bruno Haible  <bruno@clisp.org>
7872
7873         acosl: Move AC_LIBOBJ invocations to module description.
7874         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7875         * modules/acosl (configure.ac): ... to here.
7876
7877 2011-05-21  Bruno Haible  <bruno@clisp.org>
7878
7879         asinl: Respect rules for use of AC_LIBOBJ.
7880         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7881         * modules/asinl (configure.ac): ... to here.
7882
7883 2011-05-21  Bruno Haible  <bruno@clisp.org>
7884
7885         tanl: Move AC_LIBOBJ invocations to module description.
7886         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7887         * modules/tanl (configure.ac): ... to here.
7888
7889 2011-05-21  Bruno Haible  <bruno@clisp.org>
7890
7891         cosl: Move AC_LIBOBJ invocations to module description.
7892         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7893         * modules/cosl (configure.ac): ... to here.
7894
7895 2011-05-21  Bruno Haible  <bruno@clisp.org>
7896
7897         sinl: Move AC_LIBOBJ invocations to module description.
7898         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7899         * modules/sinl (configure.ac): ... to here.
7900
7901 2011-05-21  Bruno Haible  <bruno@clisp.org>
7902
7903         logl: Move AC_LIBOBJ invocations to module description.
7904         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7905         * modules/logl (configure.ac): ... to here.
7906
7907 2011-05-21  Bruno Haible  <bruno@clisp.org>
7908
7909         expl: Move AC_LIBOBJ invocations to module description.
7910         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7911         * modules/expl (configure.ac): ... to here.
7912
7913 2011-05-21  Bruno Haible  <bruno@clisp.org>
7914
7915         roundl: Move AC_LIBOBJ invocations to module description.
7916         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7917         * modules/roundl (configure.ac): ... to here.
7918
7919 2011-05-21  Bruno Haible  <bruno@clisp.org>
7920
7921         round: Move AC_LIBOBJ invocations to module description.
7922         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7923         * modules/round (configure.ac): ... to here.
7924
7925 2011-05-21  Bruno Haible  <bruno@clisp.org>
7926
7927         roundf: Move AC_LIBOBJ invocations to module description.
7928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7929         * modules/roundf (configure.ac): ... to here.
7930
7931 2011-05-21  Bruno Haible  <bruno@clisp.org>
7932
7933         truncl: Move AC_LIBOBJ invocations to module description.
7934         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7935         * modules/truncl (configure.ac): ... to here.
7936
7937 2011-05-21  Bruno Haible  <bruno@clisp.org>
7938
7939         trunc: Move AC_LIBOBJ invocations to module description.
7940         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7941         * modules/trunc (configure.ac): ... to here.
7942
7943 2011-05-21  Bruno Haible  <bruno@clisp.org>
7944
7945         truncf: Move AC_LIBOBJ invocations to module description.
7946         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7947         * modules/truncf (configure.ac): ... to here.
7948
7949 2011-05-21  Bruno Haible  <bruno@clisp.org>
7950
7951         ceill: Move AC_LIBOBJ invocations to module description.
7952         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7953         * modules/ceill (configure.ac): ... to here.
7954
7955 2011-05-21  Bruno Haible  <bruno@clisp.org>
7956
7957         ceil: Move AC_LIBOBJ invocations to module description.
7958         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7959         * modules/ceil (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         ceilf: Move AC_LIBOBJ invocations to module description.
7964         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7965         * modules/ceilf (configure.ac): ... to here.
7966
7967 2011-05-21  Bruno Haible  <bruno@clisp.org>
7968
7969         floorl: Respect rules for use of AC_LIBOBJ.
7970         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7971         * modules/floorl (configure.ac): ... to here.
7972
7973 2011-05-21  Bruno Haible  <bruno@clisp.org>
7974
7975         floor: Respect rules for use of AC_LIBOBJ.
7976         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7977         * modules/floor (configure.ac): ... to here.
7978
7979 2011-05-21  Bruno Haible  <bruno@clisp.org>
7980
7981         floorf: Move AC_LIBOBJ invocations to module description.
7982         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7983         * modules/floorf (configure.ac): ... to here.
7984
7985 2011-05-20  Bruno Haible  <bruno@clisp.org>
7986
7987         sqrtl: Respect rules for use of AC_LIBOBJ.
7988         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7989         * modules/sqrtl (configure.ac): ... to here.
7990
7991 2011-05-20  Bruno Haible  <bruno@clisp.org>
7992
7993         ldexpl: Respect rules for use of AC_LIBOBJ.
7994         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7995         * modules/ldexpl (configure.ac): ... to here.
7996
7997 2011-05-20  Bruno Haible  <bruno@clisp.org>
7998
7999         frexpl*: Respect rules for use of AC_LIBOBJ.
8000         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8001         invocation from here...
8002         * modules/frexpl (configure.ac): ... to here.
8003         * modules/frexpl-nolibm (configure.ac): ... and here.
8004
8005 2011-05-20  Bruno Haible  <bruno@clisp.org>
8006
8007         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8008         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8009         invocation from here...
8010         * modules/frexp (configure.ac): ... to here.
8011         * modules/frexp-nolibm (configure.ac): ... and here.
8012
8013 2011-05-20  Bruno Haible  <bruno@clisp.org>
8014
8015         isnan: Respect rules for use of AC_LIBOBJ.
8016         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8017         invocations here.
8018         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8019         REPLACE_ISNAN.
8020         * modules/isnand (configure.ac): Likewise.
8021         * modules/isnanl (configure.ac): Likewise.
8022
8023 2011-05-20  Bruno Haible  <bruno@clisp.org>
8024
8025         isnanl*: Respect rules for use of AC_LIBOBJ.
8026         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8027         invocation from here...
8028         * modules/isnanl (configure.ac): ... to here.
8029         * modules/isnanl-nolibm (configure.ac): ... and here.
8030
8031 2011-05-20  Bruno Haible  <bruno@clisp.org>
8032
8033         isnand*: Move AC_LIBOBJ invocations to module description.
8034         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8035         invocation from here...
8036         * modules/isnand (configure.ac): ... to here.
8037         * modules/isnand-nolibm (configure.ac): ... and here.
8038
8039 2011-05-20  Bruno Haible  <bruno@clisp.org>
8040
8041         isnanf*: Move AC_LIBOBJ invocations to module description.
8042         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8043         invocation from here...
8044         * modules/isnanf (configure.ac): ... to here.
8045         * modules/isnanf-nolibm (configure.ac): ... and here.
8046
8047 2011-05-20  Bruno Haible  <bruno@clisp.org>
8048
8049         isnan*: Separate the AC_LIBOBJ invocations.
8050         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8051         AC_LIBOBJ invocation.
8052         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8053         here.
8054         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8055         AC_LIBOBJ invocation.
8056         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8057         here.
8058         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8059         AC_LIBOBJ invocation.
8060         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8061         here.
8062         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8063
8064 2011-05-08  Bruno Haible  <bruno@clisp.org>
8065
8066         isinf: Move AC_LIBOBJ invocations to module description.
8067         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8068         * modules/isinf (configure.ac): ... to here.
8069
8070 2011-05-08  Bruno Haible  <bruno@clisp.org>
8071
8072         isfinite: Move AC_LIBOBJ invocations to module description.
8073         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8074         * modules/isfinite (configure.ac): ... to here.
8075
8076 2011-05-08  Bruno Haible  <bruno@clisp.org>
8077
8078         isblank: Move AC_LIBOBJ invocations to module description.
8079         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8080         here...
8081         * modules/isblank (configure.ac): ... to here.
8082
8083 2011-05-08  Bruno Haible  <bruno@clisp.org>
8084
8085         isapipe: Move AC_LIBOBJ invocations to module description.
8086         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8087         gl_PREREQ_ISAPIPE invocations from here...
8088         * modules/isapipe (configure.ac): ... to here.
8089         (Depends-on): Update condition.
8090
8091 2011-05-08  Bruno Haible  <bruno@clisp.org>
8092
8093         ioctl: Move AC_LIBOBJ invocations to module description.
8094         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8095         invocations from here...
8096         * modules/ioctl (configure.ac): ... to here.
8097         (Depends-on): Update condition.
8098
8099 2011-05-08  Bruno Haible  <bruno@clisp.org>
8100
8101         imaxdiv: Move AC_LIBOBJ invocations to module description.
8102         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8103         invocations from here...
8104         * modules/imaxdiv (configure.ac): ... to here.
8105
8106 2011-05-08  Bruno Haible  <bruno@clisp.org>
8107
8108         imaxabs: Move AC_LIBOBJ invocations to module description.
8109         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8110         invocations from here...
8111         * modules/imaxabs (configure.ac): ... to here.
8112
8113 2011-05-08  Bruno Haible  <bruno@clisp.org>
8114
8115         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8117         AC_LIBOBJ invocations from here...
8118         * modules/getaddrinfo (configure.ac): ... to here.
8119         (Depends-on): Add conditions.
8120
8121 2011-05-08  Bruno Haible  <bruno@clisp.org>
8122
8123         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8124         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8125         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8126         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8127         (gl_PREREQ_INET_PTON): ... from here.
8128         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8129         gl_PREREQ_INET_PTON here.
8130         (Depends-on): Update condition.
8131
8132 2011-05-08  Bruno Haible  <bruno@clisp.org>
8133
8134         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8135         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8136         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8137         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8138         (gl_PREREQ_INET_NTOP): ... from here.
8139         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8140         gl_PREREQ_INET_NTOP here.
8141         (Depends-on): Update condition.
8142
8143 2011-05-08  Bruno Haible  <bruno@clisp.org>
8144
8145         iconv_open: Move AC_LIBOBJ invocations to module description.
8146         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8147         AC_LIBOBJ invocations from here...
8148         * modules/iconv_open (configure.ac): ... to here.
8149
8150 2011-05-08  Bruno Haible  <bruno@clisp.org>
8151
8152         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8153         If module 'iconv_open' is among the main modules and module
8154         'iconv_open-utf' is among the tests dependencies, then
8155         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8156         return the special iconv_t values. Therefore iconv() and iconv_close()
8157         must support these special iconv_t values, already in lib, not only in
8158         tests.
8159         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8160         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8161         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8162         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8163         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8164         (Depends-on): Add the dependencies of iconv_open-utf.
8165         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8166         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8167         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8168
8169 2011-05-08  Bruno Haible  <bruno@clisp.org>
8170
8171         group-member: Move AC_LIBOBJ invocations to module description.
8172         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8173         gl_PREREQ_GROUP_MEMBER invocations from here...
8174         * modules/group-member (configure.ac): ... to here.
8175
8176 2011-05-08  Bruno Haible  <bruno@clisp.org>
8177
8178         grantpt: Move AC_LIBOBJ invocations to module description.
8179         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8180         invocations from here...
8181         * modules/grantpt (configure.ac): ... to here.
8182
8183 2011-05-08  Bruno Haible  <bruno@clisp.org>
8184
8185         glob: Move AC_LIBOBJ invocations to module description.
8186         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8187         from here...
8188         * modules/glob (configure.ac): ... to here.
8189
8190 2011-05-08  Bruno Haible  <bruno@clisp.org>
8191
8192         getusershell: Move AC_LIBOBJ invocations to module description.
8193         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8194         Move AC_LIBOBJ invocation from here...
8195         * modules/getusershell (configure.ac): ... to here.
8196         (Depends-on): Update condition.
8197
8198 2011-05-08  Bruno Haible  <bruno@clisp.org>
8199
8200         gettimeofday: Move AC_LIBOBJ invocations to module description.
8201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8202         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8203         gl_PREREQ_GETTIMEOFDAY invocations from here...
8204         * modules/gettimeofday (configure.ac): ... to here.
8205
8206 2011-05-08  Bruno Haible  <bruno@clisp.org>
8207
8208         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8209         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8210         just gl_FUNC_TZSET.
8211         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8212         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8214         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8215
8216 2011-05-08  Bruno Haible  <bruno@clisp.org>
8217
8218         getsubopt: Move AC_LIBOBJ invocations to module description.
8219         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8220         gl_PREREQ_GETSUBOPT invocations from here...
8221         * modules/getsubopt (configure.ac): ... to here.
8222
8223 2011-05-08  Bruno Haible  <bruno@clisp.org>
8224
8225         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8226         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8227         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8228         * modules/getpass-gnu (configure.ac): ... to here.
8229
8230 2011-05-08  Bruno Haible  <bruno@clisp.org>
8231
8232         getpass: Move AC_LIBOBJ invocations to module description.
8233         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8234         gl_PREREQ_GETPASS invocations from here...
8235         * modules/getpass (configure.ac): ... to here.
8236
8237 2011-05-08  Bruno Haible  <bruno@clisp.org>
8238
8239         getpagesize: Move AC_LIBOBJ invocations to module description.
8240         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8241         from here...
8242         * modules/getpagesize (configure.ac): ... to here.
8243
8244 2011-05-08  Bruno Haible  <bruno@clisp.org>
8245
8246         getopt: Move AC_LIBOBJ invocations to module description.
8247         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8248         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8249         invocations from here...
8250         * modules/getopt-gnu (configure.ac): ... to here.
8251         * modules/getopt-posix (configure.ac): ... and here.
8252         (Depends-on): Update condition.
8253
8254 2011-05-08  Bruno Haible  <bruno@clisp.org>
8255
8256         getopt, argp: Respect rules for use of AC_LIBOBJ.
8257         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8258         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8259         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8260         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8261
8262 2011-05-08  Bruno Haible  <bruno@clisp.org>
8263
8264         getlogin_r: Move AC_LIBOBJ invocations to module description.
8265         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8266         gl_PREREQ_GETLOGIN_R invocations from here...
8267         * modules/getlogin_r (configure.ac): ... to here.
8268
8269 2011-05-08  Bruno Haible  <bruno@clisp.org>
8270
8271         getlogin: Move AC_LIBOBJ invocations to module description.
8272         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8273         here...
8274         * modules/getlogin (configure.ac): ... to here.
8275
8276 2011-05-08  Bruno Haible  <bruno@clisp.org>
8277
8278         getloadavg: Move AC_LIBOBJ invocations to module description.
8279         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8280         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8281         * modules/getloadavg (configure.ac): ... to here.
8282
8283 2011-05-08  Bruno Haible  <bruno@clisp.org>
8284
8285         gethrxtime: Move AC_LIBOBJ invocations to module description.
8286         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8287         LIB_GETHRXTIME from here...
8288         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8289         invocations from here...
8290         * modules/gethrxtime (configure.ac): ... to here.
8291
8292 2011-05-08  Bruno Haible  <bruno@clisp.org>
8293
8294         gethostname: Move AC_LIBOBJ invocations to module description.
8295         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8296         gl_PREREQ_GETHOSTNAME invocations from here...
8297         * modules/gethostname (configure.ac): ... to here.
8298
8299 2011-05-08  Bruno Haible  <bruno@clisp.org>
8300
8301         getgroups: Move AC_LIBOBJ invocations to module description.
8302         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8303         here...
8304         * modules/getgroups (configure.ac): ... to here.
8305
8306 2011-05-08  Bruno Haible  <bruno@clisp.org>
8307
8308         getdtablesize: Move AC_LIBOBJ invocations to module description.
8309         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8310         invocation from here...
8311         * modules/getdtablesize (configure.ac): ... to here.
8312
8313 2011-05-08  Bruno Haible  <bruno@clisp.org>
8314
8315         getdomainname: Move AC_LIBOBJ invocations to module description.
8316         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8317         gl_PREREQ_GETDOMAINNAME invocations from here...
8318         * modules/getdomainname (configure.ac): ... to here.
8319
8320 2011-05-08  Bruno Haible  <bruno@clisp.org>
8321
8322         getline: Move AC_LIBOBJ invocations to module description.
8323         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8324         invocations from here...
8325         * modules/getline (configure.ac): ... to here.
8326
8327 2011-05-08  Bruno Haible  <bruno@clisp.org>
8328
8329         getline: Simplify.
8330         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8331         It's already handled through the module dependency.
8332
8333 2011-05-08  Bruno Haible  <bruno@clisp.org>
8334
8335         getdelim: Move AC_LIBOBJ invocations to module description.
8336         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8337         and gl_PREREQ_GETDELIM invocations from here...
8338         * modules/getdelim (configure.ac): ... to here.
8339         (Depends-on): Fix condition.
8340
8341 2011-05-08  Bruno Haible  <bruno@clisp.org>
8342
8343         getcwd: Move AC_LIBOBJ invocations to module description.
8344         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8345         invocations from here...
8346         * modules/getcwd (configure.ac): ... to here.
8347
8348 2011-05-08  Bruno Haible  <bruno@clisp.org>
8349
8350         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8351         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8352         here...
8353         * modules/getcwd-lgpl (configure.ac): ... to here.
8354
8355 2011-05-07  Bruno Haible  <bruno@clisp.org>
8356
8357         crypto/gc: Move AC_LIBOBJ invocations to module description.
8358         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8359         * modules/crypto/gc (configure.ac): ... to here.
8360
8361 2011-05-07  Bruno Haible  <bruno@clisp.org>
8362
8363         fwriting: Move AC_LIBOBJ invocations to module description.
8364         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8365         here...
8366         * modules/fwriting (configure.ac): ... to here.
8367
8368 2011-05-07  Bruno Haible  <bruno@clisp.org>
8369
8370         fwritable: Move AC_LIBOBJ invocations to module description.
8371         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8372         here...
8373         * modules/fwritable (configure.ac): ... to here.
8374
8375 2011-05-07  Bruno Haible  <bruno@clisp.org>
8376
8377         futimens: Move AC_LIBOBJ invocations to module description.
8378         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8379         here...
8380         * modules/futimens (configure.ac): ... to here.
8381
8382 2011-05-07  Bruno Haible  <bruno@clisp.org>
8383
8384         ftruncate: Move AC_LIBOBJ invocations to module description.
8385         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8386         gl_PREREQ_FTRUNCATE invocations from here...
8387         * modules/ftruncate (configure.ac): ... to here.
8388
8389 2011-05-07  Bruno Haible  <bruno@clisp.org>
8390
8391         fsync: Move AC_LIBOBJ invocations to module description.
8392         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8393         invocations from here...
8394         * modules/fsync (configure.ac): ... to here.
8395
8396 2011-05-07  Bruno Haible  <bruno@clisp.org>
8397
8398         fsusage: Move AC_LIBOBJ invocations to module description.
8399         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8400         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8401         * modules/fsusage (configure.ac): ... to here.
8402
8403 2011-05-07  Bruno Haible  <bruno@clisp.org>
8404
8405         freopen: Move AC_LIBOBJ invocations to module description.
8406         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8407         invocations from here...
8408         * modules/freopen (configure.ac): ... to here.
8409
8410 2011-05-07  Bruno Haible  <bruno@clisp.org>
8411
8412         free: Move AC_LIBOBJ invocations to module description.
8413         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8414         invocations from here...
8415         * modules/free (configure.ac): ... to here.
8416
8417 2011-05-07  Bruno Haible  <bruno@clisp.org>
8418
8419         freadable: Move AC_LIBOBJ invocations to module description.
8420         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8421         here...
8422         * modules/freadable (configure.ac): ... to here.
8423
8424 2011-05-07  Bruno Haible  <bruno@clisp.org>
8425
8426         fpurge: Move AC_LIBOBJ invocations to module description.
8427         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8428         invocations from here...
8429         * modules/fpurge (configure.ac): ... to here.
8430
8431 2011-05-07  Bruno Haible  <bruno@clisp.org>
8432
8433         fpending: Move AC_LIBOBJ invocations to module description.
8434         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8435         gl_FUNC_FPENDING.
8436         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8437         invocations from here...
8438         * modules/fpending (configure.ac): ... to here.
8439
8440 2011-05-07  Bruno Haible  <bruno@clisp.org>
8441
8442         fopen: Move AC_LIBOBJ invocations to module description.
8443         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8444         invocations from here...
8445         * modules/fopen (configure.ac): ... to here.
8446
8447 2011-05-07  Bruno Haible  <bruno@clisp.org>
8448
8449         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8450         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8451         gl_FUNC_FNMATCH_POSIX.
8452         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8453         invocations from here...
8454         * modules/fnmatch (configure.ac): ... to here.
8455         * modules/fnmatch-gnu (configure.ac): ... and here.
8456
8457 2011-05-07  Bruno Haible  <bruno@clisp.org>
8458
8459         flock: Move AC_LIBOBJ invocations to module description.
8460         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8461         invocations from here...
8462         * modules/flock (configure.ac): ... to here.
8463
8464 2011-05-07  Bruno Haible  <bruno@clisp.org>
8465
8466         fileblocks: Move AC_LIBOBJ invocations to module description.
8467         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8468         gl_PREREQ_FILEBLOCKS invocations from here...
8469         * modules/fileblocks (configure.ac): ... to here.
8470
8471 2011-05-06  Bruno Haible  <bruno@clisp.org>
8472
8473         fflush: Move AC_LIBOBJ invocations to module description.
8474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8475         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8476         invocations from here...
8477         * modules/fflush (configure.ac): ... to here.
8478
8479 2011-05-06  Bruno Haible  <bruno@clisp.org>
8480
8481         fdopendir: Move AC_LIBOBJ invocations to module description.
8482         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8483         here...
8484         * modules/fdopendir (configure.ac): ... to here.
8485         (Depends-on): Improve conditions.
8486
8487 2011-05-06  Bruno Haible  <bruno@clisp.org>
8488
8489         _Exit: Move AC_LIBOBJ invocations to module description.
8490         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8491         invocations from here...
8492         * modules/_Exit (configure.ac): ... to here.
8493
8494 2011-05-21  Bruno Haible  <bruno@clisp.org>
8495
8496         euidaccess: Respect rules for use of AC_LIBOBJ.
8497         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8499         from here...
8500         * modules/euidaccess (configure.ac): ... to here.
8501
8502 2011-05-06  Bruno Haible  <bruno@clisp.org>
8503
8504         error: Move AC_LIBOBJ invocations to module description.
8505         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8506         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8507         invocations from here...
8508         * modules/error (configure.ac): ... to here.
8509
8510 2011-05-06  Bruno Haible  <bruno@clisp.org>
8511
8512         duplocale: Move AC_LIBOBJ invocations to module description.
8513         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8514         gl_PREREQ_DUPLOCALE invocations from here...
8515         * modules/duplocale (configure.ac): ... to here.
8516
8517 2011-05-05  Bruno Haible  <bruno@clisp.org>
8518
8519         dirfd: Move AC_LIBOBJ invocations to module description.
8520         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8521         gl_FUNC_DIRFD.
8522         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8523         here...
8524         * modules/dirfd (configure.ac): ... to here.
8525         (Depends-on): Fix condition.
8526
8527 2011-05-05  Bruno Haible  <bruno@clisp.org>
8528
8529         chown: Respect rules for use of AC_LIBOBJ.
8530         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8531         * modules/chown (configure.ac): ... to here.
8532
8533 2011-05-05  Bruno Haible  <bruno@clisp.org>
8534
8535         chdir-long: Move AC_LIBOBJ invocations to module description.
8536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8537         gl_PREREQ_CHDIR_LONG invocations from here...
8538         * modules/chdir-long (configure.ac): ... to here.
8539
8540 2011-05-05  Bruno Haible  <bruno@clisp.org>
8541
8542         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8543         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8544         from here...
8545         * modules/canonicalize-lgpl (configure.ac): ... to here.
8546
8547 2011-05-05  Bruno Haible  <bruno@clisp.org>
8548
8549         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8550         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8551         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8552         REPLACE_CALLOC.
8553         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8554         * modules/calloc-gnu (configure.ac): Likewise.
8555
8556 2011-05-05  Bruno Haible  <bruno@clisp.org>
8557
8558         btowc: Move AC_LIBOBJ invocations to module description.
8559         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8560         invocations from here...
8561         * modules/btowc (configure.ac): ... to here.
8562
8563 2011-05-21  Bruno Haible  <bruno@clisp.org>
8564
8565         atexit: Move AC_LIBOBJ invocations to module description.
8566         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8568         here...
8569         * modules/atexit (configure.ac): ... to here.
8570
8571 2011-05-05  Bruno Haible  <bruno@clisp.org>
8572
8573         atoll: Move AC_LIBOBJ invocations to module description.
8574         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8575         invocations from here...
8576         * modules/atoll (configure.ac): ... to here.
8577
8578 2011-05-05  Bruno Haible  <bruno@clisp.org>
8579
8580         argz: Move AC_LIBOBJ invocations to module description.
8581         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8582         * modules/argz (configure.ac): ... to here.
8583
8584 2011-05-05  Bruno Haible  <bruno@clisp.org>
8585
8586         alphasort: Move AC_LIBOBJ invocations to module description.
8587         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8588         gl_PREREQ_ALPHASORT invocations from here...
8589         * modules/alphasort (configure.ac): ... to here.
8590
8591 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8592
8593         verify: new macro verify_expr; verify_true deprecated
8594         * NEWS: Mention this.
8595         * doc/verify.texi (Compile-time Assertions): Document this.
8596         * lib/verify.h (verify_true): Deprecate.
8597         (verify_expr): New macro.
8598         * tests/test-verify.c (function): Test verify_expr.
8599
8600 2011-06-14  Jim Meyering  <meyering@redhat.com>
8601
8602         init.sh: give more portable redirection-related advice in a comment
8603         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8604         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8605         for lots of discussion.  Stefano Lattarini suggested the solution
8606         of putting "9>&2" after the command.  Reported by Bruno Haible.
8607
8608 2011-06-13  Bruno Haible  <bruno@clisp.org>
8609
8610         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8611         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8612         'none'.
8613
8614 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8615
8616         ftoastr: use strtof only if HAVE_STRTOF
8617         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8619         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8620         * modules/ftoastr (configure.ac): Check for strtof.
8621
8622 2011-06-13  Bruno Haible  <bruno@clisp.org>
8623
8624         gnulib-tool: Addendum to 2011-06-08 commit.
8625         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8626         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8627
8628 2011-06-13  Bruno Haible  <bruno@clisp.org>
8629
8630         fseeko: Provide a non-inline replacement of fseek().
8631         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8632         * modules/fseeko (Depends-on): Add fseek.
8633         * modules/fseek (License): Change to LGPLv2+.
8634
8635 2011-06-13  Bruno Haible  <bruno@clisp.org>
8636
8637         ftello: Provide a non-inline replacement of ftell().
8638         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8639         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8640         not have ftello() (such as on mingw).
8641         * modules/ftello (Depends-on): Add ftell.
8642         * modules/ftell (License): Change to LGPLv2+.
8643
8644 2011-05-07  Bruno Haible  <bruno@clisp.org>
8645
8646         ftell: Move AC_LIBOBJ invocations to module description.
8647         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8648         * modules/ftell (configure.ac): ... to here.
8649
8650 2011-05-07  Bruno Haible  <bruno@clisp.org>
8651
8652         ftello: Respect rules for use of AC_LIBOBJ.
8653         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8654         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8655         here...
8656         * modules/ftello (configure.ac): ... to here.
8657
8658 2011-05-07  Bruno Haible  <bruno@clisp.org>
8659
8660         fseeko: Simplify.
8661         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8662         (gl_FUNC_FSEEKO): Inline it here.
8663
8664 2011-05-07  Bruno Haible  <bruno@clisp.org>
8665
8666         fseek: Move AC_LIBOBJ invocations to module description.
8667         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8668         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8669         * modules/fseek (configure.ac): ... to here.
8670
8671 2011-05-07  Bruno Haible  <bruno@clisp.org>
8672
8673         fseek: Respect rules for use of AC_LIBOBJ.
8674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8675         here...
8676         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8677
8678 2011-05-07  Bruno Haible  <bruno@clisp.org>
8679
8680         fseeko: Respect rules for use of AC_LIBOBJ.
8681         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8682         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8683         here...
8684         * modules/fseeko (configure.ac): ... to here.
8685
8686 2011-06-13  Bruno Haible  <bruno@clisp.org>
8687
8688         gnulib-tool: Allow comments in the 'Depends-on' section.
8689         * doc/gnulib.texi (Module description): Mention comment syntax in the
8690         Depends-on section.
8691         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8692
8693 2011-06-13  Bruno Haible  <bruno@clisp.org>
8694
8695         file-set.h: guard __attibute__ use, now that it's not always defined
8696         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8697         versions that support it.  This fixes a coreutils build failure with
8698         the vendor cc on HP-UX 11.31.
8699
8700 2011-06-12  Bruno Haible  <bruno@clisp.org>
8701
8702         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8703         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8704         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8705         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8706         (acl, aclsort): New declarations.
8707         (aclv_nontrivial): New declaration.
8708         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8709         (file_has_acl): Read also the second kind of HP-UX ACLs.
8710         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8711         kind of HP-UX ACLs if the first kind fails.
8712         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8713         second kind of HP-UX ACLs.
8714         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8715         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8716         agree.
8717         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8718         hpuxjfs.
8719         Handle hpuxjfs.
8720         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8721         hpuxjfs.
8722         Handle hpuxjfs.
8723         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8724         (func_test_same_acls): Use both lsacl and getacl.
8725         Handle hpuxjfs.
8726         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8727         (func_test_same_acls): Use both lsacl and getacl.
8728         Handle hpuxjfs.
8729
8730 2011-06-12  Bruno Haible  <bruno@clisp.org>
8731
8732         acl: Complete the 2010-08-10 fix.
8733         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8734         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8735         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8736         explicitly.
8737         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8738         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8739
8740 2011-06-12  Bruno Haible  <bruno@clisp.org>
8741
8742         spawn-pipe tests: Comments.
8743         * tests/test-spawn-pipe-child.c (main): Update comment.
8744         Reported by James Youngman <jay@gnu.org>.
8745
8746 2011-06-11  James Youngman  <jay@gnu.org>
8747
8748         New module 'stat-size'.
8749         * modules/stat-size: New module.  Provides macros for accessing
8750         file size information in instances of struct stat.  Depends on the
8751         fileblocks module because it calls st_blocks.
8752         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8753         * doc/gnulib.texi: Include stat-size.texi.
8754         * doc/stat-size.texi: Documentation for this module.
8755         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8756         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8757         AC_STRUCT_ST_BLOCKS.
8758
8759 2011-06-09  Bruno Haible  <bruno@clisp.org>
8760
8761         thread: Support pthreads-win32.
8762         * lib/glthread/thread.h (gl_thread_self): Define differently on
8763         pthreads-win32.
8764         (gl_null_thread): New declaration.
8765         (gl_thread_self_pointer): New macro.
8766         * lib/glthread/thread.c (gl_null_thread): New constant.
8767         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8768         gl_thread_self.
8769         * tests/test-tls.c: Likewise.
8770         Suggested by Paul Eggert. Reported by Eric Blake.
8771
8772 2011-06-09  Bruno Haible  <bruno@clisp.org>
8773
8774         thread: Fix confusion between NULL and 0.
8775         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8776         Reported by Paul Eggert.
8777
8778 2011-06-09  Bruno Haible  <bruno@clisp.org>
8779
8780         spawn-pipe tests: Avoid test failure on HP-UX 11.
8781         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8782         is closed.
8783
8784 2011-06-09  Bruno Haible  <bruno@clisp.org>
8785
8786         acl tests: Fix compilation error on HP-UX 11.
8787         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8788
8789 2011-06-09  Bruno Haible  <bruno@clisp.org>
8790
8791         rmdir: Avoid test failure on HP-UX 10.20.
8792         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8793         EEXIST.
8794
8795 2011-06-08  Eric Blake  <eblake@redhat.com>
8796
8797         perror: fix test on mingw
8798         * modules/perror-tests (Depends-on): Add dup2.
8799
8800         strerror_r-posix: fix on MacOS
8801         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8802         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8803         logic bug.
8804         * lib/strerror_r.c (strerror_r): Fix the bug.
8805         * lib/strerror.c (strerror): Likewise.
8806         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8807         problem.
8808         * doc/posix-functions/strerror.texi (strerror): Likewise.
8809         * doc/posix-functions/perror.texi (perror): Likewise.
8810         * tests/test-strerror.c (main): Enhance test.
8811         * tests/test-strerror_r.c (main): Likewise.
8812
8813 2011-06-08  Bruno Haible  <bruno@clisp.org>
8814
8815         gnulib-tool: Better isolation between different gnulib-tool invocations.
8816         * gnulib-tool: New option --witness-c-macro.
8817         (witness_c_macro): New variable.
8818         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8819         AM_CPPFLAGS define it as a C macro.
8820         (func_emit_tests_Makefile_am): Likewise.
8821         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8822         read it from there.
8823         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8824         m4_define, not AC_DEFUN.
8825         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8826         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8827         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8828         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8829         s|...|...|, to substitute the values of the GNULIB_* module indicator
8830         variables.
8831         * modules/dirent (Makefile.am): Likewise.
8832         * modules/fcntl-h (Makefile.am): Likewise.
8833         * modules/iconv-h (Makefile.am): Likewise.
8834         * modules/langinfo (Makefile.am): Likewise.
8835         * modules/locale (Makefile.am): Likewise.
8836         * modules/math (Makefile.am): Likewise.
8837         * modules/netdb (Makefile.am): Likewise.
8838         * modules/poll-h (Makefile.am): Likewise.
8839         * modules/pty (Makefile.am): Likewise.
8840         * modules/search (Makefile.am): Likewise.
8841         * modules/signal (Makefile.am): Likewise.
8842         * modules/spawn (Makefile.am): Likewise.
8843         * modules/stdio (Makefile.am): Likewise.
8844         * modules/stdlib (Makefile.am): Likewise.
8845         * modules/string (Makefile.am): Likewise.
8846         * modules/sys_ioctl (Makefile.am): Likewise.
8847         * modules/sys_select (Makefile.am): Likewise.
8848         * modules/sys_socket (Makefile.am): Likewise.
8849         * modules/sys_stat (Makefile.am): Likewise.
8850         * modules/sys_times (Makefile.am): Likewise.
8851         * modules/sys_utsname (Makefile.am): Likewise.
8852         * modules/sys_wait (Makefile.am): Likewise.
8853         * modules/termios (Makefile.am): Likewise.
8854         * modules/time (Makefile.am): Likewise.
8855         * modules/unistd (Makefile.am): Likewise.
8856         * modules/wchar (Makefile.am): Likewise.
8857
8858 2011-06-08  Eric Blake  <eblake@redhat.com>
8859
8860         strerror: simplify replacement
8861         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8862         * modules/strerror (configure.ac): No prereqs needed here...
8863         * modules/strerror-override (configure.ac): ...but this needs it.
8864         (Files): Add file for needed prereq macro.
8865
8866 2011-06-08  Bruno Haible  <bruno@clisp.org>
8867
8868         strerror_r-posix: Tweaks.
8869         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8870         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8871         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8872         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8873         (gl_FUNC_STRERROR_R): ... to here.
8874         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8875
8876 2011-06-07  Eric Blake  <eblake@redhat.com>
8877
8878         perror: document fixed bugs
8879         * doc/posix-functions/perror.texi (perror): Document recent
8880         patches.
8881
8882 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8883
8884         stat-time: get_stat_birthtime failure is better-defined
8885         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8886         return a timestamp whose tv_sec and tv_nsec values are both -1.
8887         Previously, the spec said only that the tv_nsec value was negative.
8888         This upward-compatible change simplifies GNU tar a bit.
8889
8890 2011-06-07  Eric Blake  <eblake@redhat.com>
8891
8892         strerror_r-posix: work around cygwin 1.7.9
8893         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8894         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8895         bug without replacing strerror_r.
8896         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8897         strerror_r is buggy, but without requiring strerror_r compilation.
8898         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8899
8900         test-perror: relax test to ignore cygwin bug
8901         * tests/test-perror2.c (main): Relax test on requiring detection
8902         of stream errors, and use unbuffered stream.
8903         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8904         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8905         * doc/posix-functions/fputc.texi (fputc): Likewise.
8906         * doc/posix-functions/fputs.texi (fputs): Likewise.
8907         * doc/posix-functions/fputws.texi (fputws): Likewise.
8908         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8909         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8910         * doc/posix-functions/getopt.texi (getopt): Likewise.
8911         * doc/posix-functions/perror.texi (perror): Likewise.
8912         * doc/posix-functions/printf.texi (printf): Likewise.
8913         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8914         * doc/posix-functions/psignal.texi (psignal): Likewise.
8915         * doc/posix-functions/putc.texi (putc): Likewise.
8916         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8917         Likewise.
8918         * doc/posix-functions/putchar.texi (putchar): Likewise.
8919         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8920         Likewise.
8921         * doc/posix-functions/puts.texi (puts): Likewise.
8922         * doc/posix-functions/putwc.texi (putwc): Likewise.
8923         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8924         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8925         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8926         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8927         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8928         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8929         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8930         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8931
8932 2011-05-22  Bruno Haible  <bruno@clisp.org>
8933
8934         strerror: Move AC_LIBOBJ invocations to module description.
8935         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8936         gl_PREREQ_STRERROR invocations from here...
8937         * modules/strerror (configure.ac): ... to here.
8938
8939 2011-05-21  Bruno Haible  <bruno@clisp.org>
8940
8941         perror: Use common idiom.
8942         * modules/perror (configure.ac): Reorder statements.
8943
8944 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8945
8946         tests: fix usage message in 'mktempd_'
8947         * tests/init.sh (mktempd_): In the usage message, use literal
8948         'mktempd_', not '$ME' (which is even undefined), as the name of
8949         the subroutine.
8950
8951 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8952
8953         tests init: new function 'fatal_', for hard errors
8954         Before this patch, the only way offered by tests/init.sh to
8955         properly signal a hard error was the `framework_failure_'
8956         function.  But the error message issued by that function,
8957         as its name would suggest, refers to a set-up failure in the
8958         testsuite, while hard errors can obviously also be due to
8959         other reasons.  The best way to fix this inconsistency is to
8960         introduce a new function with a more general error message.
8961         * tests/init.sh (fatal_): New function.
8962
8963 2011-06-06  Eric Blake  <eblake@redhat.com>
8964
8965         canonicalize-lgpl: use common idiom
8966         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8967         over newer POSIX -Rf.
8968         Reported by Bruno Haible.
8969
8970         canonicalize-lgpl: work around AIX realpath bug
8971         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8972         * doc/posix-functions/realpath.texi (realpath): Document it.
8973         Reported by Bruno Haible.
8974
8975         strerror: work around FreeBSD bug
8976         * lib/strerror.c (strerror): Special case 0.
8977         Reported by Bruno Haible.
8978
8979         strerror-override: avoid bloating errno module
8980         * modules/errno (Files, configure.ac): Move replacement strings...
8981         * modules/strerror-override: ...to new module.
8982         * modules/strerror (Depends-on): Add strerror-override.
8983         * modules/strerror_r-posix (Depends-on): Likewise.
8984         * MODULES.html.sh: Document new module.
8985         Reported by Bruno Haible.
8986
8987 2011-06-06  Bruno Haible  <bruno@clisp.org>
8988
8989         spawn-pipe tests: Rename program.
8990         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8991         * tests/test-spawn-pipe-child.c: Update comment.
8992         * tests/test-spawn-pipe.sh: Update.
8993         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8994
8995         spawn-pipe tests: Link the child program only against libc.
8996         * tests/test-spawn-pipe-child.c: New file, extracted from
8997         tests/test-spawn-pipe.c.
8998         (main): Expect only one argument.
8999         (is_open): New function, copied from tests/test-pipe.c.
9000         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9001         (child_main): Remove function.
9002         (test_pipe): Pass only one argument to the child program.
9003         (main): Remove child process code. Expect the child program's name as
9004         first argument.
9005         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9006         argument.
9007         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9008         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9009         test-spawn-pipe-child against no libraries.
9010
9011 2011-06-06  Bruno Haible  <bruno@clisp.org>
9012
9013         careadlinkat: Avoid mismatch between ssize_t and int.
9014         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9015         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9016
9017 2011-06-06  Jim Meyering  <meyering@redhat.com>
9018
9019         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9020         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9021         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9022
9023 2011-06-05  Bruno Haible  <bruno@clisp.org>
9024
9025         ansi-c++-opt: Interoperability with libtool.
9026         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9027         set the variable to "no", not to ":".
9028         * NEWS: Mention the change.
9029
9030 2011-06-05  Bruno Haible  <bruno@clisp.org>
9031
9032         acl: Fix test failure on AIX 7.
9033         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9034         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9035
9036 2011-06-05  Bruno Haible  <bruno@clisp.org>
9037
9038         pipe-filter-ii: Fix test failure on AIX and IRIX.
9039         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9040         with EAGAIN, retry with a smaller buffer size.
9041
9042 2011-06-05  Bruno Haible  <bruno@clisp.org>
9043
9044         localename: Fix link dependencies.
9045         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9046         * modules/localename-tests (Makefile.am): Link test-localename with
9047         $(LIBTHREAD).
9048
9049 2011-06-05  Bruno Haible  <bruno@clisp.org>
9050
9051         error: Avoid gcc warning.
9052         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9053
9054 2011-06-05  Bruno Haible  <bruno@clisp.org>
9055
9056         unsetenv: Avoid gcc warning.
9057         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9058
9059 2011-06-05  Bruno Haible  <bruno@clisp.org>
9060
9061         setenv: Avoid gcc warning.
9062         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9063
9064 2011-06-05  Bruno Haible  <bruno@clisp.org>
9065
9066         sys_select: Ensure memset is declared also on AIX 7.
9067         * lib/sys_select.in.h: Include <string.h> also on AIX.
9068         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9069         self-contained also on AIX 7.1.
9070
9071 2011-06-04  Jim Meyering  <meyering@redhat.com>
9072
9073         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9074         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9075         function name, "error".
9076         (_gl_translatable_diag_func_re): New configurable variable.
9077
9078 2011-06-04  Bruno Haible  <bruno@clisp.org>
9079
9080         getopt: Avoid gcc warning.
9081         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9082
9083 2011-06-04  Bruno Haible  <bruno@clisp.org>
9084
9085         strerror_r: Fix comments.
9086         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9087         commit.
9088
9089 2011-06-04  Bruno Haible  <bruno@clisp.org>
9090
9091         perror: Fix compilation error.
9092         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9093         Undefine fprintf, not sprintf.
9094         * modules/perror (Depends-on): Remove intprops, verify.
9095
9096 2011-06-04  Bruno Haible  <bruno@clisp.org>
9097
9098         setlocale: Enable replacement on Cygwin 1.5.
9099         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9100         Cygwin 1.5.x.
9101         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9102         LC_CTYPE category also exists on Cygwin 1.5.x.
9103
9104 2011-06-04  Bruno Haible  <bruno@clisp.org>
9105
9106         strerror-override: Don't disable symbol renamings.
9107         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9108         * lib/strerror-override.c: Include config.h.
9109         (strerror_override): Don't undefine.
9110
9111 2011-06-03  Bruno Haible  <bruno@clisp.org>
9112
9113         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9114         * lib/localename.h: Update copyright header.
9115         * lib/localename.c: Likewise.
9116         * lib/relocatable.h: Likewise.
9117         * lib/relocatable.c: Likewise.
9118
9119 2011-06-02  Bruno Haible  <bruno@clisp.org>
9120
9121         doc: Fix a module name.
9122         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9123
9124 2011-06-02  Bruno Haible  <bruno@clisp.org>
9125
9126         pipe2: Remove dependency on 'nonblocking' module.
9127         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9128         O_NONBLOCK is defined by gnulib.
9129         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9130         is zero.
9131         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9132         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9133         defined by gnulib.
9134         (get_nonblocking_flag): New function.
9135         (main): Test O_NONBLOCK flag only if it is nonzero.
9136         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9137
9138 2011-06-03  Jim Meyering  <meyering@redhat.com>
9139
9140         maint: three new prohibit-header-without-use rules
9141         Prohibit use of cloexec.h, posixver.h, same.h without use.
9142         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9143         (sc_prohibit_posixver_without_use): Likewise.
9144         (sc_prohibit_same_without_use): Likewise.
9145
9146 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9147
9148         allocator: 'die' routine is now given requested size
9149         * lib/allocator.h (struct allocator.die): New size arg.
9150         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9151         If the actual problem is an ssize_t limitation, not a size_t or
9152         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9153
9154 2011-06-01  Eric Blake  <eblake@redhat.com>
9155
9156         strerror: drop strerror_r dependency
9157         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9158         * lib/strerror-override.c (strerror_override): ...to new file.
9159         * lib/strerror-override.h: Add prototype.
9160         * lib/strerror-impl.h: Delete.
9161         * lib/strerror.c (strerror): New implementation.
9162         * modules/errno (Files): Add new files.
9163         (configure.ac): Compile new file as appropriate.
9164         * modules/strerror (Files): Drop unused file.
9165         (Depends-on): Drop strerror_r-posix.
9166         * MODULES.html.sh: Document strerror_r-posix.
9167         Requested by Sam Steingold.
9168
9169         perror: call strerror_r directly
9170         * modules/perror (Files): Drop strerror-impl.h.
9171         * lib/perror.c (perror): Use our own stack buffer, rather than
9172         calling a wrapper that uses static storage.
9173         * doc/posix-functions/perror.texi (perror): Document a limitation
9174         of our replacement.
9175
9176         strerror_r: fix includes for FreeBSD
9177         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9178         since we use abort on some platforms.
9179         Reported by Matthias Bolte.
9180
9181 2011-05-31  Bruno Haible  <bruno@clisp.org>
9182
9183         Fix link errors in tests: openat-die uses gettext-h.
9184         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9185         against $(LIBINTL).
9186         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9187         against $(LIBINTL).
9188         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9189         $(LIBINTL).
9190         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9191         against $(LIBINTL).
9192         * modules/linkat-tests (Makefile.am): Link test-linkat against
9193         $(LIBINTL).
9194         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9195         $(LIBINTL).
9196         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9197         against $(LIBINTL).
9198         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9199         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9200         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9201         $(LIBINTL).
9202         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9203         $(LIBINTL).
9204         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9205         $(LIBINTL).
9206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9207
9208 2011-05-31  Bruno Haible  <bruno@clisp.org>
9209
9210         Fix link errors in tests: wait-process uses gettext-h.
9211         * modules/nonblocking-pipe-tests (Makefile.am): Set
9212         test_nonblocking_pipe_main_LDADD.
9213         * modules/nonblocking-socket-tests (Makefile.am): Link
9214         test-nonblocking-socket-main against $(LIBINTL).
9215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9216
9217 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         assert-h: work around 'verify' incompatibility
9220         * lib/verify.h: Use @...@ directives, not ifdef.
9221         * modules/assert-h (assert.h): Implement the directives.
9222         (assert.h): Substitute the symbol-prefix more consistently.
9223
9224 2011-05-29  Jim Meyering  <meyering@redhat.com>
9225
9226         trim: remove three superfluous assignments
9227         * lib/trim.c (trim2): Remove three superfluous assignments
9228         and correct brace positioning.
9229
9230 2011-05-29  Bruno Haible  <bruno@clisp.org>
9231
9232         wctype-h: Avoid namespace pollution on Solaris 2.6.
9233         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9234         identifiers.
9235         * doc/posix-headers/wctype.texi: Mention the problem.
9236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9237
9238 2011-05-28  Jim Meyering  <meyering@redhat.com>
9239
9240         parse-datetime.y: accommodate -Wstrict-overflow
9241         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9242         placate -Wstrict-overflow.
9243
9244         trim: avoid a warning from -O2 -Wstrict-overflow
9245         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9246
9247 2011-05-29  Bruno Haible  <bruno@clisp.org>
9248
9249         gnulib-tool: Fix bug in yesterday's commit.
9250         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9251         twice.
9252
9253 2011-05-29  Bruno Haible  <bruno@clisp.org>
9254
9255         Allow multiple gnulib generated include files to be combined.
9256         * gnulib-tool (func_compute_include_guard_prefix): New function.
9257         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9258         ${gl_include_guard_prefix} references.
9259         (func_import, func_create_testdir): Invoke
9260         func_compute_include_guard_prefix.
9261         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9262         * lib/ctype.in.h: Likewise.
9263         * lib/dirent.in.h: Likewise.
9264         * lib/errno.in.h: Likewise.
9265         * lib/fcntl.in.h: Likewise.
9266         * lib/float.in.h: Likewise.
9267         * lib/getopt.in.h: Likewise.
9268         * lib/iconv.in.h: Likewise.
9269         * lib/langinfo.in.h: Likewise.
9270         * lib/locale.in.h: Likewise.
9271         * lib/math.in.h: Likewise.
9272         * lib/netdb.in.h: Likewise.
9273         * lib/netinet_in.in.h: Likewise.
9274         * lib/poll.in.h: Likewise.
9275         * lib/pthread.in.h: Likewise.
9276         * lib/pty.in.h: Likewise.
9277         * lib/sched.in.h: Likewise.
9278         * lib/se-selinux.in.h: Likewise.
9279         * lib/search.in.h: Likewise.
9280         * lib/signal.in.h: Likewise.
9281         * lib/spawn.in.h: Likewise.
9282         * lib/stdarg.in.h: Likewise.
9283         * lib/stddef.in.h: Likewise.
9284         * lib/stdint.in.h: Likewise.
9285         * lib/stdio.in.h: Likewise.
9286         * lib/stdlib.in.h: Likewise.
9287         * lib/string.in.h: Likewise.
9288         * lib/strings.in.h: Likewise.
9289         * lib/sys_file.in.h: Likewise.
9290         * lib/sys_ioctl.in.h: Likewise.
9291         * lib/sys_select.in.h: Likewise.
9292         * lib/sys_socket.in.h: Likewise.
9293         * lib/sys_stat.in.h: Likewise.
9294         * lib/sys_time.in.h: Likewise.
9295         * lib/sys_times.in.h: Likewise.
9296         * lib/sys_uio.in.h: Likewise.
9297         * lib/sys_utsname.in.h: Likewise.
9298         * lib/sys_wait.in.h: Likewise.
9299         * lib/sysexits.in.h: Likewise.
9300         * lib/termios.in.h: Likewise.
9301         * lib/time.in.h: Likewise.
9302         * lib/unistd.in.h: Likewise.
9303         * lib/wchar.in.h: Likewise.
9304         * lib/wctype.in.h: Likewise.
9305         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9306         * modules/ctype (Makefile.am): Likewise.
9307         * modules/dirent (Makefile.am): Likewise.
9308         * modules/errno (Makefile.am): Likewise.
9309         * modules/fcntl-h (Makefile.am): Likewise.
9310         * modules/float (Makefile.am): Likewise.
9311         * modules/getopt-posix (Makefile.am): Likewise.
9312         * modules/iconv-h (Makefile.am): Likewise.
9313         * modules/langinfo (Makefile.am): Likewise.
9314         * modules/locale (Makefile.am): Likewise.
9315         * modules/math (Makefile.am): Likewise.
9316         * modules/netdb (Makefile.am): Likewise.
9317         * modules/netinet_in (Makefile.am): Likewise.
9318         * modules/poll-h (Makefile.am): Likewise.
9319         * modules/pthread (Makefile.am): Likewise.
9320         * modules/pty (Makefile.am): Likewise.
9321         * modules/sched (Makefile.am): Likewise.
9322         * modules/search (Makefile.am): Likewise.
9323         * modules/selinux-h (Makefile.am): Likewise.
9324         * modules/signal (Makefile.am): Likewise.
9325         * modules/spawn (Makefile.am): Likewise.
9326         * modules/stdarg (Makefile.am): Likewise.
9327         * modules/stddef (Makefile.am): Likewise.
9328         * modules/stdint (Makefile.am): Likewise.
9329         * modules/stdio (Makefile.am): Likewise.
9330         * modules/stdlib (Makefile.am): Likewise.
9331         * modules/string (Makefile.am): Likewise.
9332         * modules/strings (Makefile.am): Likewise.
9333         * modules/sys_file (Makefile.am): Likewise.
9334         * modules/sys_ioctl (Makefile.am): Likewise.
9335         * modules/sys_select (Makefile.am): Likewise.
9336         * modules/sys_socket (Makefile.am): Likewise.
9337         * modules/sys_stat (Makefile.am): Likewise.
9338         * modules/sys_time (Makefile.am): Likewise.
9339         * modules/sys_times (Makefile.am): Likewise.
9340         * modules/sys_uio (Makefile.am): Likewise.
9341         * modules/sys_utsname (Makefile.am): Likewise.
9342         * modules/sys_wait (Makefile.am): Likewise.
9343         * modules/sysexits (Makefile.am): Likewise.
9344         * modules/termios (Makefile.am): Likewise.
9345         * modules/time (Makefile.am): Likewise.
9346         * modules/unistd (Makefile.am): Likewise.
9347         * modules/wchar (Makefile.am): Likewise.
9348         * modules/wctype-h (Makefile.am): Likewise.
9349         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9350
9351 2011-05-29  Bruno Haible  <bruno@clisp.org>
9352
9353         assert-h: Allow multiple gnulib generated replacements to coexist.
9354         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9355
9356 2011-05-29  Bruno Haible  <bruno@clisp.org>
9357
9358         argp: Allow coexistence with strerror_r-posix module.
9359         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9360         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9361         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9362         not the glibc signature.
9363
9364 2011-05-28  Bruno Haible  <bruno@clisp.org>
9365
9366         gnulib-tool: Alternative structure of testdirs, similar to --import.
9367         * gnulib-tool: New option --single-configure.
9368         (func_usage): Document it.
9369         (single_configure): New variable.
9370         (func_modules_transitive_closure_separately,
9371         func_modules_transitive_closure_separately,
9372         func_determine_use_libtests, func_modules_add_dummy_separately,
9373         func_modules_to_filelist_separately): New functions, extracted from
9374         func_import.
9375         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9376         (func_import): Use the new functions.
9377         (func_create_testdir): Set final_modules. Handle $single_configure =
9378         true case.
9379
9380 2011-05-28  Bruno Haible  <bruno@clisp.org>
9381
9382         getloadavg: Remove an unreliable safety check.
9383         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9384         getloadavg.c is in place.
9385         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9386         Reported by Sam Steingold <sds@gnu.org>.
9387
9388 2011-05-28  Bruno Haible  <bruno@clisp.org>
9389
9390         doc: Cleanup yet another file produced by texinfo.tex.
9391         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9392
9393 2011-05-28  Bruno Haible  <bruno@clisp.org>
9394
9395         Finish the conditional dependencies mechanism.
9396         * gnulib-tool: New option --no-conditional-dependencies.
9397         (func_usage): Document it. Don't mark --conditional-dependencies as
9398         experimental.
9399         (cond_dependencies): The possible values can now be true, false, empty.
9400         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9401         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9402         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9403
9404 2011-05-28  Bruno Haible  <bruno@clisp.org>
9405
9406         doc: Use a recent texinfo.tex.
9407         * doc/Makefile (tex_opts): New variable.
9408         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9409
9410 2011-05-28  Jim Meyering  <meyering@redhat.com>
9411
9412         intprops.h: adjust comment to match code change
9413         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9414         only once, it *may* have side effects.  Also fix an unrelated typo.
9415         (_GL_INT_SIGNED): Likewise.
9416
9417 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9418
9419         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9420
9421 2011-05-26  Bruno Haible  <bruno@clisp.org>
9422
9423         mbsrchr: Avoid collision with system function on Interix.
9424         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9425         Reported by Markus Duft <mduft@gentoo.org>.
9426
9427 2011-05-15  James Youngman  <jay@gnu.org>
9428
9429         getopt: for ambiguous options, enumerate the possibilities.
9430         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9431         the ambiguous options when an ambiguous prefix is given. This was
9432         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9433         glibc change was
9434         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9435
9436 2011-05-25  Eric Blake  <eblake@redhat.com>
9437
9438         getcwd: work around mingw bug
9439         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9440         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9441         Reported by Matthias Bolte.
9442
9443 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9444
9445         test-intprops: disable -Wtype-limits diagnostics
9446         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9447         diagnostics.  Otherwise, the integer overflow macros generate many
9448         diagnostics.  Reported by Jim Meyering in
9449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9450
9451         intprops: shorten, to pacify gcc -Woverlength-strings
9452         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9453         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9454         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9455         likely to run afoul of C compiler limits for string constant lengths.
9456         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9457
9458 2011-05-24  Eric Blake  <eblake@redhat.com>
9459
9460         docs: document recently fixed glibc printf bug
9461         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9462         * doc/posix-functions/printf.texi (printf): Likewise.
9463         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9464         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9465
9466         closein-tests: convert to init.sh
9467         * modules/closein-tests (Files): Add init.sh
9468         * tests/test-closein.sh Use it.
9469
9470         yesno-tests: convert to init.sh
9471         * modules/yesno-tests (Files): Add init.sh.
9472         * tests/test-yesno.sh: Use it.
9473
9474         atexit-tests: ensure reliable exit status
9475         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9476         Reported by Bruno Haible.
9477
9478 2011-05-24  Bruno Haible  <bruno@clisp.org>
9479
9480         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9481         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9482         gl_PREREQ_STRERROR_R invocations from here...
9483         * modules/strerror_r-posix (configure.ac): ... to here.
9484
9485 2011-05-24  Eric Blake  <eblake@redhat.com>
9486
9487         strerror_r: fix missing header
9488         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9489
9490         strerror_r: fix AIX test failures
9491         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9492         ERANGE failure.
9493
9494         strerror_r: fix Solaris test failures
9495         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9496         failures.
9497         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9498
9499         strerror_r: enforce POSIX recommendations
9500         * lib/strerror_r.c (safe_copy): New helper method.
9501         (strerror_r): Guarantee a non-empty string.
9502         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9503         recent POSIX rulings and to match our strerror guarantees.
9504         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9505
9506 2011-05-24  Jim Meyering  <meyering@redhat.com>
9507
9508         test-perror2.c: avoid warning about unused variable
9509         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9510
9511 2011-05-24  Eric Blake  <eblake@redhat.com>
9512
9513         perror: avoid spurious test failure on HP-UX
9514         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9515
9516         tests: fix logic bug in init.sh
9517         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9518         shell.
9519
9520 2011-05-24  Jim Meyering  <meyering@redhat.com>
9521
9522         utimensat: do not reference an out-of-scope buffer
9523         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9524         declared in an inner scope, yet "times" would be dereferenced outside
9525         the scope in which "ts" was valid.
9526         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9527         of ts[2] "out/up", so that the use of aliased "times" (via
9528         "times = ts;") does not end up referencing an out-of-scope "ts"
9529
9530         opendir-safer.c: don't clobber errno; don't close negative FD
9531         * lib/opendir-safer.c (opendir_safer):
9532         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9533         file descriptor, and more importantly, don't clobber the
9534         offending errno value with EINVAL.  Before, upon failure
9535         of dup_safer, we would pass the negative file descriptor to
9536         fdopendir, which would clobber errno.
9537
9538 2011-05-23  Bruno Haible  <bruno@clisp.org>
9539
9540         idcache: Fix module description.
9541         * modules/idcache (Include): Set to "idcache.h".
9542
9543 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         gnulib-tool: fix portability problem with MacOS sed
9546         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9547         before the "}".  Problem reported by Leo in
9548         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9549         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9550         sed_extract_condition1, sed_extract_condition2.
9551
9552 2011-05-23  Bruno Haible  <bruno@clisp.org>
9553
9554         hash: Simplify autoconf macro.
9555         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9556
9557 2011-05-23  Bruno Haible  <bruno@clisp.org>
9558
9559         getugroups: Fix module description.
9560         * modules/getugroups (Include): Set to "getugroups.h".
9561
9562 2011-05-23  Bruno Haible  <bruno@clisp.org>
9563
9564         linkat: Simplify autoconf macro.
9565         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9566
9567 2011-05-23  Bruno Haible  <bruno@clisp.org>
9568             Eric Blake  <eblake@redhat.com>
9569
9570         linkat, renameat: Update dependencies.
9571         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9572         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9573         symlinkat.
9574
9575 2011-05-23  Jim Meyering  <meyering@redhat.com>
9576
9577         maint.mk: more tight_scope improvements
9578         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9579         (_gl_TS_headers): Define only in if-0'd block.
9580         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9581         sometimes we must *not* use it.  Adjust uses accordingly.
9582         (sc_tight_scope): Use much simpler grep-based test to determine
9583         whether we skip this rule.
9584
9585         maint.mk: generalize/improve the tight-scope rule
9586         * top/maint.mk: Emit a warning when the test is skipped.
9587         (_gl_TS_dir): Add $(srcdir)/ prefix.
9588         (_gl_TS_function_match): Simplify, rather than trying
9589         to enumerate common types.  Otherwise, it would fail to match an
9590         "extern unsigned char const *" declaration in idutils.
9591         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9592         a way to support use of that type of macro.
9593         (_gl_TS_var_match): Simplify regexp.
9594         (_gl_TS_obj_files): New configurable variable.
9595         (_gl_TS_headers): Likewise.
9596
9597 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         verify: fix bug when gnulib <assert.h> is also included
9600         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9601         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9602         Perhaps there's a better way, but this fixes the immediate problem.
9603         Problem reported by Bruno Haible in
9604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9605
9606 2011-05-22  Bruno Haible  <bruno@clisp.org>
9607
9608         xgetcwd: Simplify autoconf macro.
9609         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9610
9611 2011-05-22  Bruno Haible  <bruno@clisp.org>
9612
9613         New module 'mktime-internal'.
9614         * modules/mktime-internal: New file.
9615         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9616         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9617         mktime_internal as a C macro if libc has __mktime_internal.
9618         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9619         conditions.
9620         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9621
9622 2011-05-22  Bruno Haible  <bruno@clisp.org>
9623
9624         timegm: Correct mktime replacement statements.
9625         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9626         defining mktime as a C macro. This completes a 2009-07-28 commit.
9627
9628 2011-05-22  Bruno Haible  <bruno@clisp.org>
9629
9630         timegm: Simplify autoconf macro.
9631         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9632
9633 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9634
9635         clock-time: change to LGPLv2+.
9636         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9637         BSD-like but we have no mark for that; this is good enough for now.
9638
9639 2011-05-21  Bruno Haible  <bruno@clisp.org>
9640
9641         strerror_r: Fix comments.
9642         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9643
9644 2011-05-21  Bruno Haible  <bruno@clisp.org>
9645
9646         relocatable-prog-wrapper: Fix possible link error.
9647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9648         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9649         (gl_FUNC_SETENV): ... to here.
9650         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9651         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9652
9653 2011-05-21  Bruno Haible  <bruno@clisp.org>
9654
9655         relocatable-prog-wrapper: Assume strerror() exists.
9656         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9657         m4/strerror.m4.
9658         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9659         * lib/relocwrapper.c: Remove mention of strerror module.
9660         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9661         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9662         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9663         C macro.
9664
9665 2011-05-21  Bruno Haible  <bruno@clisp.org>
9666
9667         select: Simplify replacement idiom.
9668         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9669         Win32 platforms.
9670         * lib/sys_select.in.h (select): Simplify accordingly.
9671         * modules/select (Depends-on): Likewise.
9672
9673 2011-05-21  Bruno Haible  <bruno@clisp.org>
9674
9675         mkdir-p: Simplify autoconf macro.
9676         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9677         gl_FUNC_LCHOWN.
9678
9679 2011-05-21  Eric Blake  <eblake@redhat.com>
9680
9681         strerror_r: avoid clobbering strerror on cygwin
9682         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9683         fall back instead to sys_errlist.
9684         * modules/strerror (configure.ac): Add witness.
9685         * tests/test-strerror_r.c (main): Enhance test.
9686         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9687         * tests/test-perror2.c (main): Free memory before exit.
9688
9689 2011-05-21  Bruno Haible  <bruno@clisp.org>
9690
9691         mkdtemp: Use gnulib naming conventions.
9692         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9693         * modules/mkdtemp (configure.ac): Update.
9694
9695 2011-05-20  Eric Blake  <eblake@redhat.com>
9696
9697         strerror_r: avoid corrupting errno on Solaris
9698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9699         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9700
9701         strerror_r: avoid compiler warning
9702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9703
9704         strerror_r: simplify AIX code
9705         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9706
9707         test-perror: avoid spurious failure on FreeBSD
9708         * modules/perror-tests (Depends-on): Add strerror, now that
9709         strerror_r no longer pulls it in.
9710
9711 2011-05-20  Bruno Haible  <bruno@clisp.org>
9712
9713         strerror_r-posix: Remove unused dependencies.
9714         * modules/strerror_r-posix (Depends-on): Remove strerror.
9715         Reported by Eric Blake.
9716
9717 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9718
9719         intprops: remove assumption about A|B representation
9720         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9721         is a valid integer if both A and B are.  Although this is true for
9722         all known practical hosts, the C standard doesn't guarantee it,
9723         and the code need not assume it.  Also, this change may work around
9724         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9726
9727 2011-05-20  Eric Blake  <eblake@redhat.com>
9728
9729         perror: work around FreeBSD bug
9730         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9731         is broken.  Move AC_LIBOBJ...
9732         * modules/perror (configure.ac): Here.
9733         * doc/posix-functions/perror.texi (perror): Document this.
9734         * tests/test-perror2.c (main): Enhance test.
9735
9736         test-perror: check for strerror interactions
9737         * tests/macros.h (STREQ): Add macro.
9738         * modules/perror-tests (Files): Add second test.
9739         * tests/test-perror2.c (main): New file.
9740         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9741
9742         test-perror: rewrite to use init script
9743         * modules/perror-tests (Files): Add init.sh.
9744         * tests/test-perror.sh: Use temporary directory.
9745
9746 2011-05-20  Jim Meyering  <meyering@redhat.com>
9747
9748         maint: replace misused "a" with "an"
9749         * doc/intprops.texi: "a integer"
9750         * doc/regex.texi: "a explanation"
9751         * lib/alignof.h: "a object"
9752         * lib/argmatch.h: "a explanation"
9753         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9754         * lib/stdint.in.h: "a integer"
9755         * lib/userspec.c: "a owner"
9756         * doc/gnulib.texi: Fix "a idea", and reword.
9757
9758 2011-05-19  Jim Meyering  <meyering@redhat.com>
9759
9760         maint: correct misuse of "a" and "an"
9761         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9762         * lib/argp-help.c: "an docum...": s/an/a/
9763         * lib/argp-parse.c: "An vector": s/An/A/
9764         * lib/execute.c: "an native": s/an/a/
9765         * lib/spawn-pipe.c: Likewise.
9766         * lib/gc.h: "an Gc_rc": s/an/a/
9767         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9768         * lib/fts.c: "an stat.st_dev": s/an/a/
9769
9770 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         intprops-tests: work around HP-UX 11.23 cc bug with constants
9773         * tests/test-intprops.c (VERIFY): New macro.
9774         (main): Use it, instead of verify, to work around the compiler bug; see
9775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9776
9777         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9778         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9779         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9780         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9781         (_GL_REMAINDER_OVERFLOW): Use it.
9782
9783         intprops-tests: revert unsigned part of previous change
9784         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9785         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9786         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9788
9789 2011-05-19  Bruno Haible  <bruno@clisp.org>
9790
9791         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9792         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9793         strerror_r() returned without filling the buffer.
9794         Reported by Eric Blake.
9795
9796 2011-05-19  Eric Blake  <eblake@redhat.com>
9797
9798         strerror_r: guarantee unchanged errno
9799         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9800         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9801         failure.
9802         * tests/test-strerror_r.c (main): Enhance test.
9803
9804 2011-05-19  Bruno Haible  <bruno@clisp.org>
9805
9806         strerror_r: Reorder #if blocks.
9807         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9808         for consistency with the previous commit.
9809
9810 2011-05-19  Bruno Haible  <bruno@clisp.org>
9811
9812         perror: Avoid clobbering the strerror buffer when possible.
9813         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9814         * lib/strerror.c: Include it.
9815         * modules/strerror (Files): Add lib/strerror-impl.h.
9816         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9817         (my_strerror): New function, defined through lib/strerror-impl.h.
9818         (perror): Use it instead of strerror.
9819         * modules/perror (Files): Add lib/strerror-impl.h.
9820         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9821
9822 2011-05-19  Eric Blake  <eblake@redhat.com>
9823
9824         strerror_r: fix on newer cygwin
9825         * lib/strerror_r.c (strerror_r): Cygwin now has
9826         __xpg_strerror_r, use it.
9827
9828 2011-05-19  Bruno Haible  <bruno@clisp.org>
9829
9830         strerror_r: Avoid clobbering the strerror buffer when possible.
9831         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9832         (sys_nerr, sys_errlist): New declarations.
9833         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9834         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9835         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9836
9837 2011-05-19  Bruno Haible  <bruno@clisp.org>
9838
9839         strerror_r: Fix test failure on mingw.
9840         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9841         EXTEND_STRERROR_R.
9842         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9843         macros from errno.in.h instead.
9844
9845 2011-05-19  Eric Blake  <eblake@redhat.com>
9846
9847         strerror: relax test for Solaris
9848         * tests/test-strerror.c (main): Permit Solaris behavior.
9849         * tests/test-strerror_r.c (main): Likewise.
9850
9851         strerror: enforce POSIX ruling on strerror(0)
9852         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9853         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9854         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9855         * doc/posix-functions/strerror.texi (strerror): Document it.
9856         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9857         * tests/test-strerror.c (main): Strengthen test.
9858         * tests/test-strerror_r.c (main): Likewise.
9859
9860 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9861
9862         intprop-tests: port to older and more-pedantic compilers
9863         * modules/intprops-tests (Files): Add tests/macros.h.
9864         * tests/test-intprops.c: Include macros.h.
9865         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9866         it's no longer documented to expand to an integer constant expression.
9867         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9868         argument is floating point, as it's no longer documented to expand
9869         to an integer constant expression in that case.
9870         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9871         compiler bugs reported by Bruno Haible.  See
9872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9873         (U0, U1): New constants, to work around the same bugs.  Also,
9874         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9875
9876         intprops: work around C compiler bugs
9877         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9878         bug in Sun C 5.11 2010/08/13 and other compilers; see
9879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9880
9881         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9882         * doc/intprops.texi (Integer Type Determination): Fix
9883         documentation for TYPE_IS_INTEGER: it returns an constant
9884         expression, not an integer constant expression.  Fix doc for
9885         TYPE_SIGNED: it returns an integer constant expression only if its
9886         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9887         hardly worth documented that way....)
9888
9889 2011-05-18  Bruno Haible  <bruno@clisp.org>
9890
9891         strerror_r: Avoid clobbering the strerror buffer when possible.
9892         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9893         Handle gnulib defined errno values here. When strerror() returns NULL
9894         or an empty string, return EINVAL.
9895         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9896         gnulib defined errno values here.
9897         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9898
9899 2011-05-18  Eric Blake  <eblake@redhat.com>
9900
9901         fnmatch: avoid compiler warning
9902         * lib/fnmatch_loop.c (FCT): Use correct type.
9903         Reported by Matthias Bolte.
9904
9905 2011-05-13  Jim Meyering  <meyering@redhat.com>
9906
9907         maint.mk: three new prohibit_<HDR>_without_use rules
9908         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9909         (sc_prohibit_stdio-safer_without_use): Likewise.
9910         (sc_prohibit_xfreopen_without_use): Likewise.
9911
9912 2011-05-17  Jim Meyering  <meyering@redhat.com>
9913
9914         announce-gen: fail if the NEWS delta is empty
9915         If there's nothing noteworthy in NEWS, then either you forgot
9916         or you shouldn't be releasing.
9917         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9918
9919 2011-05-17  Pádraig Brady <P@draigBrady.com>
9920
9921         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9922         reserved symbols starting with double underscore from the check.
9923
9924 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         intprops: add doc
9927         * doc/intprops.texi: New file, documenting intprops.
9928         * doc/gnulib.texi (Particular Modules): Include it.
9929
9930         verify: add doc to gnulib manual and fix example
9931         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9932         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9933         (Compile-time Assertions): Fix example so it can't overflow.
9934
9935 2011-05-17  Jim Meyering  <meyering@redhat.com>
9936
9937         warnings.m4: don't usurp save_CPPFLAGS variable name
9938         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9939
9940         doc: fix typo
9941         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9942
9943 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9944             Bruno Haible  <bruno@clisp.org>
9945
9946         doc: Tweak recent change.
9947         * README (Portability guidelines): Tweak new text.
9948         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9949         Interix 6.1.
9950
9951 2011-05-16  Eric Blake  <eblake@redhat.com>
9952
9953         inttypes: avoid autoconf warning
9954         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9955         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9956
9957 2011-05-16  Sam Steingold <sds@gnu.org>
9958         and Eric Blake  <eblake@redhat.com>
9959
9960         vc-list-files: accept multiple directory operands
9961         * build-aux/vc-list-files: Iterate over all remaining operands.
9962
9963 2011-05-16  Bruno Haible  <bruno@clisp.org>
9964
9965         Fix confusion regarding deprecated modules.
9966         * modules/calloc (Status, Notice): Mark module as deprecated, not
9967         obsolete.
9968         * modules/fnmatch-posix (Status, Notice): Likewise.
9969         * modules/getdate (Status, Notice): Likewise.
9970         * modules/getopt (Status, Notice): Likewise.
9971         * modules/malloc (Status, Notice): Likewise.
9972         * modules/pipe (Status, Notice): Likewise.
9973         * modules/realloc (Status, Notice): Likewise.
9974         * modules/rename-dest-slash (Status, Notice): Likewise.
9975         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9976         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9977         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9978         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9979         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9980
9981 2011-05-16  Bruno Haible  <bruno@clisp.org>
9982
9983         doc: List the target platforms.
9984         * doc/gnulib-intro.texi (Target Platforms): New section.
9985         * doc/gnulib.texi (Introduction): Update menu.
9986         * README (Portability guidelines): Refer to the new section. Update
9987         statement about oldest supported environment. Remove rationale why
9988         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9989         unportable C89 function.
9990         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9991         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9992
9993 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9994
9995         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9996
9997 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         intprops-tests: new module
10000         * modules/intprops-tests, tests/test-intprops.c: New files.
10001
10002         intprops: add safe, portable integer overflow checking
10003         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10004         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10005         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10006         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10007         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10008         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10009         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10010         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10011         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10012         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10013         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10014
10015 2011-05-12  James Youngman  <jay@gnu.org>
10016
10017         Add a test for glibc's Bugzilla bug #12378.
10018         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10019         doesn't allow the literal matching of a lone "[" (which is
10020         required by POSIX).
10021         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10022
10023 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10024
10025         Sync glibc change fixing Bugzilla bug #12378.
10026         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10027         beginning and fall back to matching as normal character if the
10028         string ends before the matching ']' is found.  This is what POSIX
10029         requires.
10030
10031 2011-05-13  Eric Blake  <eblake@redhat.com>
10032
10033         getcwd-lgpl: relax test for FreeBSD
10034         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10035         issue.
10036         * tests/test-getcwd-lgpl.c (main): Relax test.
10037         Reported by Matthias Bolte.
10038
10039 2011-05-11  Eric Blake  <eblake@redhat.com>
10040
10041         test-fflush: silence compiler warning
10042         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10043
10044 2011-05-11  Bruno Haible  <bruno@clisp.org>
10045
10046         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10047         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10048         * modules/canonicalize (Depends-on): Add 'nocrash'.
10049         * modules/canonicalize-lgpl (Depends-on): Likewise.
10050         * doc/posix-functions/realpath.texi: Update platforms list.
10051         Reported by Ryan Schmidt <ryandesign@macports.org>.
10052
10053 2011-05-11  Bruno Haible  <bruno@clisp.org>
10054
10055         group-member: Declare function in <unistd.h>.
10056         * lib/unistd.in.h (group_member): New declaration.
10057         * lib/group-member.h: Remove file.
10058         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10059         * tests/test-unistd-c++.cc: Check signature of group_member.
10060         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10061         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10062         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10063         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10064         HAVE_GROUP_MEMBER.
10065         * modules/group-member (Files): Remove lib/group-member.h.
10066         (Depends-on): Add unistd. Specify conditions.
10067         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10068         (Include): Change to <unistd.h>.
10069         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10070         HAVE_GROUP_MEMBER.
10071         * NEWS: Mention the change.
10072         * lib/euidaccess.c: Don't include group-member.h.
10073
10074 2011-05-11  Bruno Haible  <bruno@clisp.org>
10075
10076         group-member: Document module.
10077         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10078         module.
10079
10080 2011-05-11  Bruno Haible  <bruno@clisp.org>
10081
10082         fclose: Fix mistake earlier today.
10083         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10084
10085 2011-05-11  Eric Blake  <eblake@redhat.com>
10086
10087         fclose: preserve fflush errors
10088         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10089         Reported by Jim Meyering.
10090
10091         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10092         * build-aux/bootstrap (check_versions): When no specific version
10093         is required, merely check that the app produces an exit status
10094         that indicates its existence.
10095
10096         maint.mk: drop redundant check
10097         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10098         the same but better.
10099
10100 2011-05-11  Bruno Haible  <bruno@clisp.org>
10101
10102         fclose: Fix possible link error.
10103         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10104         unregister_shadow_fd. Improve comments.
10105         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10106         Eric Blake.
10107
10108 2011-05-11  Jim Meyering  <meyering@redhat.com>
10109
10110         maint.mk: improve "can not" detection and generalize rule name
10111         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10112         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10113         Use the same technique as in sc_prohibit_doubled_word, so that
10114         we recognize "can not" also when the words are separated by a newline.
10115         Suggested by Eric Blake.
10116         (perl_filename_lineno_text_): Define.  Factored out of...
10117         (prohibit_doubled_word_): ...here.  Use the new definition.
10118         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10119         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10120         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10121
10122 2011-05-10  Eric Blake  <eblake@redhat.com>
10123
10124         fclose: avoid double close race when possible
10125         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10126         all but WINDOWS_SOCKETS.
10127
10128 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10129
10130         openat: correct new comment
10131         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10132
10133 2011-05-10  Jim Meyering  <meyering@redhat.com>
10134
10135         openat: add comments
10136         * lib/openat-proc.c (openat_proc_name): Add comments,
10137         mostly from Eric Blake.
10138
10139 2011-05-09  Eric Blake  <eblake@redhat.com>
10140
10141         openat: reduce syscalls in first probe of /proc
10142         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10143         be a directory.  Simplify the probe for .. bugs.
10144         * modules/openat (Depends-on): Drop same-inode.
10145         Reported by Bastien ROUCARIES.
10146
10147 2011-05-09  Jim Meyering  <meyering@redhat.com>
10148
10149         maint.mk: change semantics/name of tight_scope variables
10150         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10151         Rename variables to align with semantics that make them more useful.
10152
10153         maint.mk: tweak new rule's name not to impinge
10154         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10155         (sc_tight_scope): Use new rule name rather than $@-0.
10156
10157         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10158         * top/maint.mk (sc_tight_scope): New rule.
10159         (sc_tight_scope-0): New rule, ifdef'd out.
10160         (_gl_TS_dir): Default.
10161         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10162         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10163
10164 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10165
10166         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10167         Haible <bruno@clisp.org>.
10168
10169 2011-05-08  Bruno Haible  <bruno@clisp.org>
10170
10171         Comments.
10172         * m4/isnanf.m4: Add comment.
10173         * m4/isnanl.m4: Likewise.
10174
10175 2011-05-08  Bruno Haible  <bruno@clisp.org>
10176
10177         glob: Remove obsolete macro.
10178         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10179
10180 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10181
10182         intprops: Sun C 5.11 supports __typeof__
10183         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10184         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10185         which is new.
10186         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10187
10188         intprops: switch to usual gnulib indenting and naming
10189         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10190         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10191
10192         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10193
10194 2011-05-08  Jim Meyering  <meyering@redhat.com>
10195
10196         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10197         * top/maint.mk (release-prep): Use make's --no-print-directory
10198         option when generating the announcement.  This eliminates the
10199         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10200         generated announcement template.
10201
10202 2011-05-08  Bruno Haible  <bruno@clisp.org>
10203
10204         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10205         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10206         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10207
10208 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10209
10210         ignore-value, verify: Omit include files from lib_SOURCES.
10211         * modules/ignore-value, modules/verify (Makefile.am):
10212         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10213         that leads Automake to duplicate use of am__objects_... variables
10214         in Makefile.in.  See
10215         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10216
10217 2011-05-07  Bruno Haible  <bruno@clisp.org>
10218
10219         fclose: Simplify autoconf macro.
10220         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10221         defined.
10222
10223 2011-05-07  Bruno Haible  <bruno@clisp.org>
10224
10225         canonicalize-lgpl: Fix autoconf macro ordering bug.
10226         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10227         gl_STDLIB_H_DEFAULTS.
10228
10229 2011-05-06  Eric Blake  <eblake@redhat.com>
10230
10231         maintainer-makefile: make sc_po_check easier to tune
10232         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10233         to probe for strings, such as an alternate location for gnulib.
10234
10235         fclose: guarantee behavior on seekable stdin
10236         * modules/fclose (Depends-on): Add fflush.
10237         * doc/posix-functions/fclose.texi (fclose): Document this.
10238         * tests/test-fclose.c (main): Make test for this unconditional.
10239
10240 2011-05-06  Bruno Haible  <bruno@clisp.org>
10241
10242         fflush, fpurge: Relicense under LGPLv2+.
10243         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10244         * modules/fpurge (License): Likewise.
10245         With permission from Eric Blake and Jim Meyering.
10246         Suggested by Eric Blake.
10247
10248 2011-05-06  Karl Berry  <karl@gnu.org>
10249
10250         * MODULES.html.sh (func_all_modules): remove exit.
10251
10252 2011-05-06  Jim Meyering  <meyering@redhat.com>
10253
10254         maint.mk: use info-gnu@ as the default only for a stable release
10255         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10256         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10257         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10259
10260 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10261
10262         assert-h: new module, which supports C1X-style static_assert
10263         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10264         * lib/verify.h: Revamp so that this can be copied into assert.h,
10265         while retaining the ability to use it standalone as before.
10266         Rename private identifiers so as not to encroach on the
10267         standard C namespace, since this is now used by assert.h.
10268         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10269         the old verify_true.
10270         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10271         the old verify_true.  Use _GL_VERIFY_TYPE.
10272         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10273         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10274         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10275         defined when this file is copied into the replacement assert.h.
10276         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10277         and _Static_assert is not built in.
10278         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10279         defined, and use the new macros mentioned above.
10280         * doc/posix-headers/assert.texi: Document this.
10281
10282 2011-05-05  Bruno Haible  <bruno@clisp.org>
10283
10284         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10285         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10286         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10287         gl_REPLACE_FCLOSE here.
10288         * modules/fflush (Depends-on): Remove fclose.
10289         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10290         combination with module 'fclose'.
10291
10292 2011-05-05  Bruno Haible  <bruno@clisp.org>
10293
10294         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10295         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10296         gl_FUNC_FFLUSH.
10297         (gl_FUNC_FFLUSH): Use it.
10298         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10299         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10300         gl_REPLACE_FSEEKO here.
10301
10302 2011-05-05  Bruno Haible  <bruno@clisp.org>
10303
10304         tzset: Relicense under LGPL.
10305         * modules/tzset (License): Change to LGPL.
10306         No agreement needed; it's a no-op.
10307
10308         strtoimax, strtoumax: Relicense under LGPL.
10309         * modules/strtoimax (License): Change to LGPL.
10310         * modules/strtoumax (License): Likewise.
10311         With permission from Jim Meyering, Paul Eggert:
10312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10314
10315         getgroups: Relicense under LGPL.
10316         * modules/getgroups (License): Change to LGPL.
10317         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10321
10322         nanosleep: Relicense under LGPL.
10323         * modules/nanosleep (License): Change to LGPL.
10324         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10325         Haible:
10326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10330
10331         futimens: Relicense under LGPL.
10332         * modules/futimens (License): Change to LGPL.
10333         With permission from Eric Blake:
10334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10335
10336         fflush: Relicense under LGPL.
10337         * modules/fflush (License): Change to LGPL.
10338         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10342
10343         tmpfile: Relicense under LGPL.
10344         * modules/tmpfile (License): Change to LGPL.
10345         With permission from Ben Pfaff:
10346         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10347
10348         isfinite: Relicense under LGPL.
10349         * modules/isfinite (License): Change to LGPL.
10350         With permission from Ben Pfaff, Bruno Haible:
10351         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10353
10354         acosl..tanl: Relicense under LGPL.
10355         * modules/acosl (License): Change to LGPL.
10356         * modules/asinl (License): Likewise.
10357         * modules/atanl (License): Likewise.
10358         * modules/cosl (License): Likewise.
10359         * modules/expl (License): Likewise.
10360         * modules/logl (License): Likewise.
10361         * modules/sinl (License): Likewise.
10362         * modules/sqrtl (License): Likewise.
10363         * modules/tanl (License): Likewise.
10364         Source code originally from glibc and Paolo Bonzini. Agreements:
10365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10367
10368 2011-05-05  Bruno Haible  <bruno@clisp.org>
10369
10370         signal: Define sighandler_t.
10371         * lib/signal.in.h (sighandler_t): New type.
10372         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10373         whether sighandler_t is defined.
10374         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10375         * modules/signal (Depends-on): Add extensions.
10376         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10377         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10378         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10379
10380 2011-05-05  Eric Blake  <eblake@redhat.com>
10381
10382         maint: remove useless REPLACE_*_H macros
10383         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10384         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10385         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10386         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10387         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10388         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10389         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10390         * m4/btowc.m4: Update callers.
10391         * m4/dirfd.m4: Likewise.
10392         * m4/duplocale.m4: Likewise.
10393         * m4/fchdir.m4: Likewise.
10394         * m4/fdopendir.m4: Likewise.
10395         * m4/inet_ntop.m4: Likewise.
10396         * m4/inet_pton.m4: Likewise.
10397         * m4/ioctl.m4: Likewise.
10398         * m4/mbrlen.m4: Likewise.
10399         * m4/mbrtowc.m4: Likewise.
10400         * m4/mbsinit.m4: Likewise.
10401         * m4/mbsnrtowcs.m4: Likewise.
10402         * m4/mbsrtowcs.m4: Likewise.
10403         * m4/poll.m4: Likewise.
10404         * m4/setlocale.m4: Likewise.
10405         * m4/wcrtomb.m4: Likewise.
10406         * m4/wcsnrtombs.m4: Likewise.
10407         * m4/wcsrtombs.m4: Likewise.
10408         * m4/wctob.m4: Likewise.
10409         * m4/wcwidth.m4: Likewise.
10410         * modules/posix_spawn: Likewise.
10411         * modules/posix_spawn_file_actions_addclose: Likewise.
10412         * modules/posix_spawn_file_actions_adddup2: Likewise.
10413         * modules/posix_spawn_file_actions_addopen: Likewise.
10414         * modules/posix_spawn_file_actions_destroy: Likewise.
10415         * modules/posix_spawn_file_actions_init: Likewise.
10416         * modules/posix_spawnattr_destroy: Likewise.
10417         * modules/posix_spawnattr_getflags: Likewise.
10418         * modules/posix_spawnattr_getpgroup: Likewise.
10419         * modules/posix_spawnattr_getschedparam: Likewise.
10420         * modules/posix_spawnattr_getschedpolicy: Likewise.
10421         * modules/posix_spawnattr_getsigdefault: Likewise.
10422         * modules/posix_spawnattr_getsigmask: Likewise.
10423         * modules/posix_spawnattr_init: Likewise.
10424         * modules/posix_spawnattr_setflags: Likewise.
10425         * modules/posix_spawnattr_setpgroup: Likewise.
10426         * modules/posix_spawnattr_setschedparam: Likewise.
10427         * modules/posix_spawnattr_setschedpolicy: Likewise.
10428         * modules/posix_spawnattr_setsigdefault: Likewise.
10429         * modules/posix_spawnattr_setsigmask: Likewise.
10430         * modules/posix_spawnp: Likewise.
10431
10432 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10433
10434         Add option to do-release-commit-and-tag to specify branch.
10435         * build-aux/do-release-commit-and-tag: Add --branch.
10436
10437 2011-05-03  Bruno Haible  <bruno@clisp.org>
10438
10439         Avoid unnecessary compilation units, through conditional dependencies.
10440         * modules/accept (Depends-on): Add conditions to the dependencies.
10441         * modules/acosl (Depends-on): Likewise.
10442         * modules/argz (Depends-on): Likewise.
10443         * modules/asinl (Depends-on): Likewise.
10444         * modules/atanl (Depends-on): Likewise.
10445         * modules/atoll (Depends-on): Likewise.
10446         * modules/bind (Depends-on): Likewise.
10447         * modules/btowc (Depends-on): Likewise.
10448         * modules/canonicalize-lgpl (Depends-on): Likewise.
10449         * modules/ceil (Depends-on): Likewise.
10450         * modules/ceilf (Depends-on): Likewise.
10451         * modules/ceill (Depends-on): Likewise.
10452         * modules/chdir-long (Depends-on): Likewise.
10453         * modules/chown (Depends-on): Likewise.
10454         * modules/close (Depends-on): Likewise.
10455         * modules/connect (Depends-on): Likewise.
10456         * modules/cosl (Depends-on): Likewise.
10457         * modules/dirfd (Depends-on): Likewise.
10458         * modules/dprintf (Depends-on): Likewise.
10459         * modules/dprintf-posix (Depends-on): Likewise.
10460         * modules/error (Depends-on): Likewise.
10461         * modules/euidaccess (Depends-on): Likewise.
10462         * modules/expl (Depends-on): Likewise.
10463         * modules/faccessat (Depends-on): Likewise.
10464         * modules/fchdir (Depends-on): Likewise.
10465         * modules/fclose (Depends-on): Likewise.
10466         * modules/fcntl (Depends-on): Likewise.
10467         * modules/fdopendir (Depends-on): Likewise.
10468         * modules/fflush (Depends-on): Likewise.
10469         * modules/floor (Depends-on): Likewise.
10470         * modules/floorf (Depends-on): Likewise.
10471         * modules/floorl (Depends-on): Likewise.
10472         * modules/fnmatch (Depends-on): Likewise.
10473         * modules/fopen (Depends-on): Likewise.
10474         * modules/fprintf-posix (Depends-on): Likewise.
10475         * modules/frexp (Depends-on): Likewise.
10476         * modules/frexp-nolibm (Depends-on): Likewise.
10477         * modules/frexpl (Depends-on): Likewise.
10478         * modules/frexpl-nolibm (Depends-on): Likewise.
10479         * modules/fseek (Depends-on): Likewise.
10480         * modules/fsusage (Depends-on): Likewise.
10481         * modules/ftell (Depends-on): Likewise.
10482         * modules/ftello (Depends-on): Likewise.
10483         * modules/futimens (Depends-on): Likewise.
10484         * modules/getcwd (Depends-on): Likewise.
10485         * modules/getcwd-lgpl (Depends-on): Likewise.
10486         * modules/getdelim (Depends-on): Likewise.
10487         * modules/getdomainname (Depends-on): Likewise.
10488         * modules/getgroups (Depends-on): Likewise.
10489         * modules/gethostname (Depends-on): Likewise.
10490         * modules/getline (Depends-on): Likewise.
10491         * modules/getlogin_r (Depends-on): Likewise.
10492         * modules/getopt-posix (Depends-on): Likewise.
10493         * modules/getpeername (Depends-on): Likewise.
10494         * modules/getsockname (Depends-on): Likewise.
10495         * modules/getsockopt (Depends-on): Likewise.
10496         * modules/getsubopt (Depends-on): Likewise.
10497         * modules/getusershell (Depends-on): Likewise.
10498         * modules/glob (Depends-on): Likewise.
10499         * modules/grantpt (Depends-on): Likewise.
10500         * modules/iconv_open (Depends-on): Likewise.
10501         * modules/iconv_open-utf (Depends-on): Likewise.
10502         * modules/inet_ntop (Depends-on): Likewise.
10503         * modules/inet_pton (Depends-on): Likewise.
10504         * modules/ioctl (Depends-on): Likewise.
10505         * modules/isapipe (Depends-on): Likewise.
10506         * modules/isfinite (Depends-on): Likewise.
10507         * modules/isinf (Depends-on): Likewise.
10508         * modules/lchown (Depends-on): Likewise.
10509         * modules/ldexpl (Depends-on): Likewise.
10510         * modules/link (Depends-on): Likewise.
10511         * modules/linkat (Depends-on): Likewise.
10512         * modules/listen (Depends-on): Likewise.
10513         * modules/logl (Depends-on): Likewise.
10514         * modules/lstat (Depends-on): Likewise.
10515         * modules/mbrlen (Depends-on): Likewise.
10516         * modules/mbrtowc (Depends-on): Likewise.
10517         * modules/mbsinit (Depends-on): Likewise.
10518         * modules/mbsnrtowcs (Depends-on): Likewise.
10519         * modules/mbsrtowcs (Depends-on): Likewise.
10520         * modules/mbtowc (Depends-on): Likewise.
10521         * modules/memcmp (Depends-on): Likewise.
10522         * modules/mkdir (Depends-on): Likewise.
10523         * modules/mkdtemp (Depends-on): Likewise.
10524         * modules/mkfifo (Depends-on): Likewise.
10525         * modules/mkfifoat (Depends-on): Likewise.
10526         * modules/mknod (Depends-on): Likewise.
10527         * modules/mkostemp (Depends-on): Likewise.
10528         * modules/mkostemps (Depends-on): Likewise.
10529         * modules/mkstemp (Depends-on): Likewise.
10530         * modules/mkstemps (Depends-on): Likewise.
10531         * modules/mktime (Depends-on): Likewise.
10532         * modules/nanosleep (Depends-on): Likewise.
10533         * modules/open (Depends-on): Likewise.
10534         * modules/openat (Depends-on): Likewise.
10535         * modules/perror (Depends-on): Likewise.
10536         * modules/poll (Depends-on): Likewise.
10537         * modules/popen (Depends-on): Likewise.
10538         * modules/posix_spawn (Depends-on): Likewise.
10539         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10540         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10541         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10542         * modules/posix_spawnp (Depends-on): Likewise.
10543         * modules/pread (Depends-on): Likewise.
10544         * modules/printf-posix (Depends-on): Likewise.
10545         * modules/ptsname (Depends-on): Likewise.
10546         * modules/putenv (Depends-on): Likewise.
10547         * modules/pwrite (Depends-on): Likewise.
10548         * modules/readline (Depends-on): Likewise.
10549         * modules/readlink (Depends-on): Likewise.
10550         * modules/readlinkat (Depends-on): Likewise.
10551         * modules/recv (Depends-on): Likewise.
10552         * modules/recvfrom (Depends-on): Likewise.
10553         * modules/regex (Depends-on): Likewise.
10554         * modules/remove (Depends-on): Likewise.
10555         * modules/rename (Depends-on): Likewise.
10556         * modules/renameat (Depends-on): Likewise.
10557         * modules/rmdir (Depends-on): Likewise.
10558         * modules/round (Depends-on): Likewise.
10559         * modules/roundf (Depends-on): Likewise.
10560         * modules/roundl (Depends-on): Likewise.
10561         * modules/rpmatch (Depends-on): Likewise.
10562         * modules/select (Depends-on): Likewise.
10563         * modules/send (Depends-on): Likewise.
10564         * modules/sendto (Depends-on): Likewise.
10565         * modules/setenv (Depends-on): Likewise.
10566         * modules/setlocale (Depends-on): Likewise.
10567         * modules/setsockopt (Depends-on): Likewise.
10568         * modules/shutdown (Depends-on): Likewise.
10569         * modules/sigaction (Depends-on): Likewise.
10570         * modules/signbit (Depends-on): Likewise.
10571         * modules/sigprocmask (Depends-on): Likewise.
10572         * modules/sinl (Depends-on): Likewise.
10573         * modules/sleep (Depends-on): Likewise.
10574         * modules/snprintf (Depends-on): Likewise.
10575         * modules/snprintf-posix (Depends-on): Likewise.
10576         * modules/socket (Depends-on): Likewise.
10577         * modules/sprintf-posix (Depends-on): Likewise.
10578         * modules/sqrtl (Depends-on): Likewise.
10579         * modules/stat (Depends-on): Likewise.
10580         * modules/strchrnul (Depends-on): Likewise.
10581         * modules/strdup-posix (Depends-on): Likewise.
10582         * modules/strerror (Depends-on): Likewise.
10583         * modules/strerror_r-posix (Depends-on): Likewise.
10584         * modules/strndup (Depends-on): Likewise.
10585         * modules/strnlen (Depends-on): Likewise.
10586         * modules/strptime (Depends-on): Likewise.
10587         * modules/strsep (Depends-on): Likewise.
10588         * modules/strsignal (Depends-on): Likewise.
10589         * modules/strstr-simple (Depends-on): Likewise.
10590         * modules/strtod (Depends-on): Likewise.
10591         * modules/strtoimax (Depends-on): Likewise.
10592         * modules/strtok_r (Depends-on): Likewise.
10593         * modules/strtoumax (Depends-on): Likewise.
10594         * modules/symlink (Depends-on): Likewise.
10595         * modules/symlinkat (Depends-on): Likewise.
10596         * modules/tanl (Depends-on): Likewise.
10597         * modules/tcgetsid (Depends-on): Likewise.
10598         * modules/tmpfile (Depends-on): Likewise.
10599         * modules/trunc (Depends-on): Likewise.
10600         * modules/truncf (Depends-on): Likewise.
10601         * modules/truncl (Depends-on): Likewise.
10602         * modules/uname (Depends-on): Likewise.
10603         * modules/unlink (Depends-on): Likewise.
10604         * modules/unlockpt (Depends-on): Likewise.
10605         * modules/unsetenv (Depends-on): Likewise.
10606         * modules/usleep (Depends-on): Likewise.
10607         * modules/utimensat (Depends-on): Likewise.
10608         * modules/vasprintf (Depends-on): Likewise.
10609         * modules/vdprintf (Depends-on): Likewise.
10610         * modules/vdprintf-posix (Depends-on): Likewise.
10611         * modules/vfprintf-posix (Depends-on): Likewise.
10612         * modules/vprintf-posix (Depends-on): Likewise.
10613         * modules/vsnprintf (Depends-on): Likewise.
10614         * modules/vsnprintf-posix (Depends-on): Likewise.
10615         * modules/vsprintf-posix (Depends-on): Likewise.
10616         * modules/wcrtomb (Depends-on): Likewise.
10617         * modules/wcscasecmp (Depends-on): Likewise.
10618         * modules/wcscspn (Depends-on): Likewise.
10619         * modules/wcsdup (Depends-on): Likewise.
10620         * modules/wcsncasecmp (Depends-on): Likewise.
10621         * modules/wcsnrtombs (Depends-on): Likewise.
10622         * modules/wcspbrk (Depends-on): Likewise.
10623         * modules/wcsrtombs (Depends-on): Likewise.
10624         * modules/wcsspn (Depends-on): Likewise.
10625         * modules/wcsstr (Depends-on): Likewise.
10626         * modules/wcstok (Depends-on): Likewise.
10627         * modules/wcswidth (Depends-on): Likewise.
10628         * modules/wctob (Depends-on): Likewise.
10629         * modules/wctomb (Depends-on): Likewise.
10630         * modules/wctype (Depends-on): Likewise.
10631         * modules/wcwidth (Depends-on): Likewise.
10632         * modules/write (Depends-on): Likewise.
10633
10634 2011-05-03  Bruno Haible  <bruno@clisp.org>
10635
10636         Support for conditional dependencies.
10637         * doc/gnulib.texi (Module description): Document the syntax of
10638         conditional dependencies.
10639         * gnulib-tool: New option --conditional-dependencies.
10640         (func_usage): Document it.
10641         (cond_dependencies): New variable.
10642         (func_get_automake_snippet_conditional,
10643         func_get_automake_snippet_unconditional): New functions, extracted from
10644         func_get_automake_snippet.
10645         (func_get_automake_snippet): Use them.
10646         (sed_first_32_chars): New variable.
10647         (func_module_shellfunc_name): New function.
10648         (func_module_shellvar_name): New function.
10649         (func_module_conditional_name): New function.
10650         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10651         func_cond_module_condition): New functions.
10652         (func_modules_transitive_closure): Add support for conditional
10653         dependencies.
10654         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10655         conditional automake snippet in an automake conditional.
10656         (func_emit_autoconf_snippets): Emit shell functions that contain the
10657         code for conditional modules.
10658         (func_import, func_create_testdir): Update specification.
10659
10660 2011-05-03  Eric Blake  <eblake@redhat.com>
10661
10662         test-getaddrinfo: report error information
10663         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10664
10665 2011-05-03  Jim Meyering  <meyering@redhat.com>
10666
10667         bootstrap: avoid build failure when $GZIP is set
10668         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10669         program name.  If defined at all, it is supposed to list gzip options.
10670         Reported by Alan Curry in http://debbugs.gnu.org/8609
10671
10672 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10673
10674         readme-release: new module with release instructions
10675         * modules/readme-release: New module.
10676         * top/README-release: New file, from coreutils, grep, diffutils.
10677         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10678
10679 2011-05-02  Eric Blake  <eblake@redhat.com>
10680
10681         fflush: also replace fclose when fixing fflush
10682         * modules/fflush (Depends-on): Add fclose.
10683         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10684         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10685         memstreams with no backing fd.
10686         * doc/posix-functions/fclose.texi (fclose): Document the use of
10687         fflush module to fix the bug.
10688         * tests/test-fclose.c (main): Relax test when fclose is used in
10689         isolation.
10690
10691         fclose: add some tests
10692         * modules/fclose-tests: New test module.
10693         * tests/test-fclose.c: New file.
10694         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10695
10696         fclose: reduced dependencies
10697         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10698         simpler lseek.
10699         * lib/fclose.c (rpl_fclose): Likewise.
10700         Reported by Simon Josefsson.
10701
10702         exit: drop remaining clients
10703         * modules/argmatch (Depends-on): Replace exit with stdlib.
10704         * modules/copy-file (Depends-on): Likewise.
10705         * modules/execute (Depends-on): Likewise.
10706         * modules/exitfail (Depends-on): Likewise.
10707         * modules/obstack (Depends-on): Likewise.
10708         * modules/pagealign_alloc (Depends-on): Likewise.
10709         * modules/pipe-filter-gi (Depends-on): Likewise.
10710         * modules/pipe-filter-ii (Depends-on): Likewise.
10711         * modules/savewd (Depends-on): Likewise.
10712         * modules/spawn-pipe (Depends-on): Likewise.
10713         * modules/wait-process (Depends-on): Likewise.
10714         * modules/xsetenv (Depends-on): Likewise.
10715         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10716         * modules/git-merge-changelog (Depends-on): Likewise.
10717         * modules/long-options (Depends-on): Likewise.
10718         * modules/pt_chown (Depends-on): Likewise.
10719         * modules/sysexits (Depends-on): Likewise.
10720
10721         freading: relax license from LGPLv3+ to LGPLv2+
10722         * modules/freading (License): Relax LGPL version.
10723
10724 2011-05-02  Bruno Haible  <bruno@clisp.org>
10725
10726         fchdir: Remove unused dependencies.
10727         * modules/fchdir (Depends-on): Remove include_next.
10728
10729 2011-05-02  Bruno Haible  <bruno@clisp.org>
10730
10731         gnulib-tool: Refactor.
10732         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10733         from func_emit_autoconf_snippets.
10734         (func_emit_autoconf_snippets): Use it.
10735
10736 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10737
10738         * NEWS: Document removal of 'exit'.
10739         * modules/exit: Remove file.
10740
10741 2011-05-01  Bruno Haible  <bruno@clisp.org>
10742
10743         Update DEPENDENCIES.
10744         * DEPENDENCIES (gettext): Recommend the newest release.
10745         Reported by Simon Josefsson.
10746
10747 2011-05-01  Bruno Haible  <bruno@clisp.org>
10748
10749         gnulib-tool: Reduce code duplication.
10750         * gnulib-tool (func_emit_autoconf_snippets): New function.
10751         (func_import, func_create_testdir): Use it.
10752
10753 2011-04-30  Eric Blake  <eblake@redhat.com>
10754
10755         fclose: don't fail on non-seekable input stream
10756         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10757         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10758         since fflush is allowed to fail in that case.
10759
10760 2011-04-30  Bruno Haible  <bruno@clisp.org>
10761
10762         dup3: cleanup
10763         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10764
10765 2011-04-30  Bruno Haible  <bruno@clisp.org>
10766
10767         netdb: Make it work in C++ mode.
10768         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10769         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10770         module.
10771         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10772         gl_MODULE_INDICATOR_FOR_TESTS.
10773         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10774         * modules/netdb-c++-tests: New file.
10775         * tests/test-netdb-c++.cc: New file.
10776
10777 2011-04-30  Bruno Haible  <bruno@clisp.org>
10778
10779         New modules 'vfscanf', 'vscanf'.
10780         * modules/vfscanf: New file.
10781         * modules/vscanf: New file.
10782         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10783         here.
10784         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10785         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10786
10787 2011-04-30  Bruno Haible  <bruno@clisp.org>
10788
10789         passfd: Add comments.
10790         * lib/passfd.c: Add comments about platforms.
10791
10792 2011-04-30  Bruno Haible  <bruno@clisp.org>
10793
10794         sys_uio: Make <sys/uio.h> self-contained.
10795         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10796         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10797
10798 2011-04-30  Bruno Haible  <bruno@clisp.org>
10799
10800         sys_socket: Ensure 'struct iovec' definition.
10801         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10802         <sys/socket.h>.
10803         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10804
10805 2011-04-30  Bruno Haible  <bruno@clisp.org>
10806
10807         sys_uio: Protect definition of 'struct iovec'.
10808         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10809         it as a C struct.
10810
10811 2011-04-30  Bruno Haible  <bruno@clisp.org>
10812
10813         manywarnings: fix indentation
10814         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10815
10816 2011-04-30  Pádraig Brady <P@draigBrady.com>
10817
10818         manywarnings: add -Wno-missing-field-initializers if needed.
10819         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10820         option if it's needed to allow initialization with { 0, }
10821
10822 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10823
10824         announce-gen: cosmetic improvement
10825         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10826
10827 2011-04-29  Jim Meyering  <meyering@redhat.com>
10828
10829         vc-list-files: indent with spaces, not TABs
10830         * build-aux/vc-list-files: Convert leading TABs to spaces,
10831         to match the style of most other files in gnulib.
10832
10833         announce-gen: indent with spaces, not TABs
10834         * build-aux/announce-gen: Convert all TABs to spaces, to match
10835         the style of most other files in gnulib.
10836
10837 2011-04-29  Eric Blake  <eblake@redhat.com>
10838
10839         quotearg: avoid uninitialized variable use
10840         * lib/quotearg.c (quoting_options_from_style): Initialize
10841         remaining fields, and ensure that custom styles are only used via
10842         quoting_options rather than quoting_style.
10843
10844 2011-04-29  Jim Meyering  <meyering@redhat.com>
10845
10846         maint.mk: remove unused VC-tag variable
10847         * top/maint.mk (VC-tag): Remove unused variable.
10848
10849 2011-04-29  Bruno Haible  <bruno@clisp.org>
10850
10851         netdb: fix gai_strerror replacements
10852         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10853         * modules/netdb: Substitute it.
10854
10855 2011-04-29  Jim Meyering  <meyering@redhat.com>
10856
10857         test-getcwd.c: avoid new set-but-not-used warning
10858         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10859         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10860         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10861         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10862
10863         test-hash.c: avoid a new shadowing warning
10864         * tests/test-hash.c (main): Don't shadow "dup".
10865
10866 2011-04-28  Eric Blake  <eblake@redhat.com>
10867
10868         getaddrinfo: fix gai_strerror signature
10869         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10870         and work around mingw with UNICODE defined.
10871         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10872         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10873         * modules/netdb (Makefile.am): Substitute it.
10874         * lib/netdb.in.h (gai_strerror): Declare replacement.
10875         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10876         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10877         the fix.
10878
10879         getsockopt: avoid compiler warning
10880         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10881         Reported by Matthias Bolte.
10882
10883         tests: drop unused link dependency
10884         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10885         * modules/dirent-safer-tests (Makefile.am): Likewise.
10886         * modules/fdopendir-tests (Makefile.am): Likewise.
10887         * modules/mkfifoat-tests (Makefile.am): Likewise.
10888         * modules/openat-safer-tests (Makefile.am): Likewise.
10889         * modules/openat-tests (Makefile.am): Likewise.
10890         * modules/readlinkat-tests (Makefile.am): Likewise.
10891         * modules/symlinkat-tests (Makefile.am): Likewise.
10892         * modules/linkat-tests (Makefile.am): Likewise.
10893         (Depends-on): Switch to filenamecat-lgpl.
10894         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10895         LIBINTL.
10896         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10897         * tests/test-linkat.c (main): Don't require xalloc.
10898
10899         hash, mgetgroups: drop xalloc dependency
10900         * lib/hash.c (includes): Adjust includes.
10901         * lib/mgetgroups.c (includes): Likewise.
10902         (xgetgroups): Move...
10903         * lib/xgetgroups.c: ...to new file.
10904         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10905         * modules/xgetgroups: New file, split from...
10906         * modules/mgetgroups: ...here.
10907         (Depends-on): Add xalloc-oversized.
10908         * modules/hash (Depends-on): Likewise.
10909         * modules/hash-tests (Depends-on): Drop xalloc.
10910         (test_hash_LDADD): Drop unused library.
10911         * tests/test-hash.c (main): Break xalloc dependency.
10912         (includes): Drop unused include.
10913
10914         xalloc-oversized: new module
10915         * modules/xalloc-oversized: New module.
10916         * modules/xalloc (Depends-on): Add it.
10917         * lib/xalloc.h (xalloc_oversized): Move...
10918         * lib/xalloc-oversized.h: ...into new file.
10919
10920         utimecmp: drop dependency on xmalloc
10921         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10922         due to memory pressure.
10923         * modules/utimecmp (Depends-on): Drop xalloc.
10924
10925 2011-04-27  Eric Blake  <eblake@redhat.com>
10926
10927         getcwd: fix mingw bugs
10928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10929         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10930         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10931
10932 2011-04-27  Bruno Haible  <bruno@clisp.org>
10933
10934         mkstemps: Ensure declaration on MacOS X 10.5.
10935         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10936         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10937         MacOS X.
10938
10939 2011-04-27  Bruno Haible  <bruno@clisp.org>
10940
10941         mkstemp: More documentation.
10942         * doc/posix-functions/mkstemp.texi: Document header file problem on
10943         MacOS X.
10944
10945 2011-04-27  Bruno Haible  <bruno@clisp.org>
10946
10947         mkstemp: Tweak configure message when cross-compiling.
10948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10949         result as a guess.
10950
10951 2011-04-27  Bruno Haible  <bruno@clisp.org>
10952
10953         clean-temp: Clarify what it does.
10954         * lib/clean-temp.h: Add more comments.
10955         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10956         module.
10957         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10958         * doc/glibc-functions/mkstemps.texi: Likewise.
10959         * doc/glibc-functions/mkostemps.texi: Likewise.
10960
10961 2011-04-27  Eric Blake  <eblake@redhat.com>
10962
10963         fchdir: avoid extra chdir and fix test
10964         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10965         getcwd-lgpl.
10966         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10967         have to be canonical.
10968         (canonicalize_file_name): Drop unused macro.
10969         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10970
10971         filenamecat-lgpl: fix licence
10972         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10973         when it was first created.
10974
10975         linkat, renameat: add missing dependency
10976         * modules/linkat (Depends-on): Require getcwd-lgpl.
10977         * modules/renameat (Depends-on): Likewise.
10978
10979         tests: reduce dependencies
10980         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10981         * tests/test-renameat.c (main): Likewise.
10982         * modules/linkat-tests (Depends-on): Relax dependency.
10983         * modules/renameat-tests (Depends-on): Likewise.
10984         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10985         dependency explicit.
10986
10987         save-cwd: reduce default dependency
10988         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10989         * lib/save-cwd.c: Update comments.
10990         * NEWS: Document the semantic change.
10991
10992         getcwd: enhance tests
10993         * tests/test-getcwd-lgpl.c: New file, taken from...
10994         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10995         repeat long path stress tests from m4 probe.
10996         * modules/getcwd-lgpl-tests: New module.
10997         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10998         * m4/getcwd-abort-bug.m4: Update comment.
10999         * m4/getcwd-path-max.m4: Likewise.
11000
11001         getcwd-lgpl: new module
11002         * modules/getcwd-lgpl: New module.
11003         * lib/getcwd-lgpl.c: New file.
11004         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11005         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11006         * modules/getcwd (configure.ac): Set C witness.
11007         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11008
11009         getcwd: tweak comments
11010         * m4/getcwd-abort-bug.m4: Fix comments.
11011         * m4/getcwd-path-max.m4: Likewise.
11012         * m4/getcwd.m4: Likewise.
11013
11014 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11015         and Eric Blake  <eblake@redhat.com>
11016
11017         mkstemp: replace if system version uses wrong permissions
11018         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11019         read/write mode bits set in file created by mkstemp.
11020         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11021
11022 2011-04-27  Eric Blake  <eblake@redhat.com>
11023
11024         passfd: avoid compiler warning
11025         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11026         Reported by Laine Stump.
11027
11028 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11029
11030         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11031         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11032
11033 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11034         and Eric Blake  <eblake@redhat.com>
11035
11036         mkstemp: mention clean-temp module
11037         * lib/mkstemp.c: Add comment.
11038         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11039
11040 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11041
11042         inttypes: also provide default values for 32-bit tests
11043         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11044         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11045
11046 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         strtoumax: remove dependency on strtoimax
11049         This is like the strtoull change of yesterday.
11050         * modules/strtoumax (Files): Add lib/strtoimax.c.
11051         (Depends-on): Remove strtoimax and add verify.
11052
11053         inttypes-incomplete: new module
11054         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11055         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11056         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11057         of gl_INTTYPES_H.
11058         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11059         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11060         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11061         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11062         * modules/strtoumax, modules/xstrtol (Depends-on):
11063         Depend on inttypes-incomplete, not inttypes.
11064         * modules/inttypes-incomplete: New module, containing the contents
11065         of the old modules/inttypes module, except that the Files: section
11066         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11067         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11068         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11069         (Depends-on): Depend only on inttypes-incomplete.
11070         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11071
11072         inttypes: omit now-redundant strtoimax and strtoumax work
11073         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11074         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11075
11076         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11077         This supports apps that need pointers to strtoimax and strtoumax,
11078         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11079         nonexistent functions.  See
11080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11081         et seq.
11082         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11083         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11084         a macro.
11085         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11086
11087 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11088
11089         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11090
11091 2011-04-25  Bruno Haible  <bruno@clisp.org>
11092
11093         strtol, strtoul: Mark modules as obsolete.
11094         * modules/strtol (Status, Notice): New sections.
11095         * modules/strtoul (Status, Notice): New sections.
11096
11097 2011-04-25  Bruno Haible  <bruno@clisp.org>
11098
11099         strtod: Remove check for strtod, unless supporting old platforms.
11100         * modules/strtod-obsolete: New file.
11101         * m4/strtod-obsolete.m4: New file.
11102         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11103         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11104         * modules/strtod (Depends-on): Add strtod-obsolete.
11105         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11106
11107 2011-04-25  Bruno Haible  <bruno@clisp.org>
11108
11109         strcase: Make module obsolete.
11110         * modules/strcase (Status, Notice): New sections.
11111
11112 2011-04-25  Bruno Haible  <bruno@clisp.org>
11113
11114         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11115         * modules/dup2-obsolete: New file.
11116         * m4/dup2-obsolete.m4: New file.
11117         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11118         gl_FUNC_DUP2_OBSOLETE is not also defined.
11119         * modules/dup2 (Depends-on): Add dup2-obsolete.
11120         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11121
11122 2011-04-25  Bruno Haible  <bruno@clisp.org>
11123
11124         strnlen: Avoid memchr related link error on old obsolete platforms.
11125         * modules/memchr-obsolete: New file.
11126         * m4/memchr-obsolete.m4: New file.
11127         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11128         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11129         * modules/memchr (Depends-on): Add memchr-obsolete.
11130         * modules/strnlen (Depends-on): Likewise.
11131         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11132
11133 2011-04-25  Jim Meyering  <meyering@redhat.com>
11134
11135         maint.mk: makefile_at_at_check extend and clean up
11136         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11137         in addition to */Makefile.am.
11138         Exempt legitimate uses of @VAR@ notation, e.g.,
11139         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11140         Remove obsolete coreutils-specific comment.
11141         Prompted by discussion here:
11142         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11143
11144 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11145
11146         strtoul: remove dependency on strtol
11147         This is so that 'configure' need not check for strtol merely because
11148         the application needs strtoul.
11149         * modules/strtoul (Files): Add lib/strtol.c.
11150         (Depends-on): Remove strtol.
11151
11152         strtoull: remove dependency on strtoul
11153         This is like the strtoll change.
11154         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11155         (Depends-on): Remove strtoul.
11156
11157         strtoll: remove dependency on strtol
11158         This is so that 'configure' need not check for strtol merely because
11159         the application needs strtoll.
11160         * modules/strtoll (Files): Add lib/strtol.c.
11161         (Depends-on): Remove strtol.
11162
11163 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11164
11165         inttypes: Move some configure check to module 'imaxdiv'.
11166         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11167         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11168         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11169
11170 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11171
11172         inttypes: Move some configure check to module 'imaxabs'.
11173         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11174         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11175         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11176
11177 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11178
11179         inttypes: Remove configure tests that are not needed since 2009-12-31.
11180         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11181         gl_cv_header_working_inttypes_h.
11182
11183 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11184
11185         * modules/strnlen (Depends-on): Remove memchr.
11186         The strnlen implementation doesn't need the memchr module's fixes; see
11187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11188
11189         strtol: remove dependency on wchar
11190         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11191         * modules/strtol (Depends-on): Remove wchar.
11192
11193 2011-04-21  Eric Blake  <eblake@redhat.com>
11194
11195         passfd: fix test regression on Linux
11196         * modules/passfd-tests (configure.ac): Correct socketpair check.
11197
11198         passfd: speed up configure and drop unused code
11199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11200         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11201         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11202         Instead of probing at configure for unix_scm_rights_bsd44_way,
11203         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11204         check to a struct member probe.
11205         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11206         (sendfd, recvfd): Update preprocessor checks.
11207         * modules/passfd (Files): Reflect rename, and drop unused file.
11208         (Depends-on): Drop unused dependency.
11209
11210         passfd: allow compilation on mingw
11211         * modules/sys_socket (Depends-on): Add sys_uio.
11212         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11213         iovec and a minimal struct msghdr.
11214         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11215         * tests/test-sys_socket.c (main): Enhance test.
11216         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11217         guaranteed to provide what we need.
11218         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11219         * modules/passfd-tests (Depends-on): Add sys_wait.
11220         * tests/test-passfd.c (main): Skip test on mingw, for now.
11221         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11222         partial 'struct msghdr' implementation.
11223
11224         sys_uio: new module
11225         * modules/sys_uio: New module.
11226         * modules/sys_uio-tests: Likewise.
11227         * lib/sys_uio.in.h: New file.
11228         * m4/sys_uio_h.m4: Likewise.
11229         * tests/test-sys_uio.c: Likewise.
11230         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11231         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11232
11233 2011-04-20  Jim Meyering  <meyering@redhat.com>
11234
11235         useless-if-before-free: avoid false-positive
11236         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11237         disjunct so that it too requires a terminating ";".  Without that,
11238         this script would identify as useless one statement from gcc that
11239         was not:
11240           if (aligned_ptr)
11241             free (((void **) aligned_ptr) [-1]);
11242
11243 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11244
11245         doc: update users.txt.
11246         * users.txt: Add barcode.
11247
11248 2011-04-19  Bruno Haible  <bruno@clisp.org>
11249
11250         ioctl: Remove link dependency on native Windows.
11251         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11252         (gl_close_fn, gl_ioctl_fn): New types.
11253         (struct fd_hook): Renamed from struct close_hook. Change type of
11254         private_close_fn field. Add private_ioctl_fn field.
11255         (close_hook_fn): Add parameter for primary close method.
11256         (execute_close_hooks, execute_all_close_hooks): Likewise.
11257         (ioctl_hook_fn): New type.
11258         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11259         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11260         argument.
11261         (unregister_fd_hook): Renamed from unregister_close_hook.
11262         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11263         Don't include <unistd.h>.
11264         (close): Remove undef.
11265         (anchor): Update.
11266         (execute_close_hooks): Add argument for primary close method.
11267         (execute_all_close_hooks): Likewise.
11268         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11269         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11270         argument. Allow each argument to be NULL.
11271         (unregister_fd_hook): Renamed from unregister_close_hook.
11272         * lib/close.c (rpl_close): Pass 'close' function pointer to
11273         execute_all_close_hooks.
11274         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11275         (primary_ioctl): New function.
11276         (ioctl): Don't call ioctlsocket here. Instead, call
11277         execute_all_ioctl_hooks.
11278         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11279         close method.
11280         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11281         (fd_sockets_hook): Renamed from close_sockets_hook.
11282         (gl_sockets_startup, gl_sockets_cleanup): Update.
11283         * modules/fd-hook: Renamed from modules/close-hook. Update.
11284         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11285         * modules/sockets (Depends-on): Likewise.
11286         * modules/ioctl (Depends-on): Add fd-hook.
11287         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11288         GNULIB_SOCKET.
11289
11290 2011-04-19  Bruno Haible  <bruno@clisp.org>
11291
11292         Move the support of O_NONBLOCK in open() to the 'open' module.
11293         * modules/nonblocking (Depends-on): Remove 'open'.
11294         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11295         gl_cv_have_open_O_NONBLOCK.
11296         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11297         O_NONBLOCK support.
11298         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11299
11300 2011-04-17  Bruno Haible  <bruno@clisp.org>
11301
11302         pipe2: Simplify code.
11303         * lib/pipe2.c (pipe2): Reduce code duplication.
11304
11305 2011-04-17  Bruno Haible  <bruno@clisp.org>
11306
11307         nonblocking: Add comment.
11308         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11309
11310 2011-04-17  Bruno Haible  <bruno@clisp.org>
11311
11312         nonblocking: Add tests for sockets.
11313         * tests/test-nonblocking-socket.sh: New file.
11314         * tests/test-nonblocking-socket-main.c: New file.
11315         * tests/test-nonblocking-socket-child.c: New file.
11316         * tests/test-nonblocking-socket.h: New file.
11317         * tests/socket-server.h: New file.
11318         * tests/socket-client.h: New file.
11319         * modules/nonblocking-socket-tests: New file.
11320         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11321
11322 2011-04-17  Bruno Haible  <bruno@clisp.org>
11323
11324         nonblocking: Add tests for pipes.
11325         * tests/test-nonblocking-pipe.sh: New file.
11326         * tests/test-nonblocking-pipe-main.c: New file.
11327         * tests/test-nonblocking-pipe-child.c: New file.
11328         * tests/test-nonblocking-pipe.h: New file.
11329         * tests/test-nonblocking-writer.h: New file.
11330         * tests/test-nonblocking-reader.h: New file.
11331         * tests/test-nonblocking-misc.h: New file.
11332         * modules/nonblocking-pipe-tests: New file.
11333         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11334
11335 2011-04-16  Bruno Haible  <bruno@clisp.org>
11336
11337         gettext: Clarify the needed programmer actions.
11338         * modules/gettext (Notice): New field.
11339         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11340
11341 2011-04-16  Bruno Haible  <bruno@clisp.org>
11342
11343         strchrnul: Tweak last commit.
11344         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11345         bug.
11346         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11347         as in _GL_FUNCDECL_SYS.
11348         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11349         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11350
11351 2011-04-15  Eric Blake  <eblake@redhat.com>
11352
11353         strchrnul: work around cygwin bug
11354         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11355         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11357         * modules/string (Makefile.am): Substitute it.
11358         * lib/string.in.h (strchrnul): Use it.
11359
11360 2011-04-15  Bruno Haible  <bruno@clisp.org>
11361
11362         Don't require lib/stdio-write.c when only module 'stdio' is used.
11363         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11364         invocation.
11365         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11366
11367 2011-04-14  Bruno Haible  <bruno@clisp.org>
11368
11369         Support non-blocking pipe I/O in read() on native Windows.
11370         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11371         (read): New declaration.
11372         * lib/read.c: New file.
11373         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11374         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11375         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11376         vscanf): New declarations.
11377         * lib/stdio-read.c: New file.
11378         * m4/read.m4: New file.
11379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11380         REPLACE_READ.
11381         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11382         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11383         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11384         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11385         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11386         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11387         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11388         * modules/read: New file.
11389         * modules/nonblocking (Files): Add lib/stdio-read.c.
11390         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11391         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11392         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11393         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11394         * modules/pread (Depends-on): Add read.
11395         * modules/safe-read (Depends-on): Likewise.
11396         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11397         gets, scanf, vfscanf, vscanf): Verify signatures.
11398         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11399         problem with non-blocking pipes.
11400         * doc/posix-functions/fgetc.texi: Likewise.
11401         * doc/posix-functions/fgets.texi: Likewise.
11402         * doc/posix-functions/fread.texi: Likewise.
11403         * doc/posix-functions/fscanf.texi: Likewise.
11404         * doc/posix-functions/getc.texi: Likewise.
11405         * doc/posix-functions/getchar.texi: Likewise.
11406         * doc/posix-functions/gets.texi: Likewise.
11407         * doc/posix-functions/scanf.texi: Likewise.
11408         * doc/posix-functions/vfscanf.texi: Likewise.
11409         * doc/posix-functions/vscanf.texi: Likewise.
11410
11411 2011-04-14  Bruno Haible  <bruno@clisp.org>
11412
11413         Support non-blocking pipe I/O in write() on native Windows.
11414         * lib/write.c (rpl_write): Split a write request that failed merely
11415         because the byte count was larger than the pipe buffer's size.
11416         * doc/posix-functions/write.texi: Mention the problem with large byte
11417         counts.
11418
11419 2011-04-14  Bruno Haible  <bruno@clisp.org>
11420
11421         wchar: Ensure that wchar_t gets defined on uClibc.
11422         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11423         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11424
11425 2011-04-13  Bruno Haible  <bruno@clisp.org>
11426
11427         safe-write, full-read: Avoid unnecessary compilation units.
11428         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11429         (Depends-on): Remove safe-read. Add ssize_t.
11430         * modules/full-read (Files): Add lib/full-write.c.
11431         (Depends-on): Add full-write.
11432
11433 2011-04-13  Bruno Haible  <bruno@clisp.org>
11434
11435         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11436         * modules/pwrite (Depends-on): Add 'write'.
11437
11438 2011-04-13  Bruno Haible  <bruno@clisp.org>
11439
11440         Support non-blocking pipe I/O in write() on native Windows.
11441         * lib/unistd.in.h (write): Enable replacement also if
11442         GNULIB_UNISTD_H_NONBLOCKING is 1.
11443         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11444         (rpl_write): When failing to write on a non-blocking pipe, change
11445         errno from ENOSPC to EAGAIN.
11446         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11447         putchar, puts, vfprintf, vprintf): Enable replacement also if
11448         GNULIB_STDIO_H_NONBLOCKING is 1.
11449         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11450         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11451         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11452         CALL_WITH_SIGPIPE_EMULATION.
11453         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11454         * m4/nonblocking.m4: New file.
11455         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11456         for non-blocking I/O support.
11457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11458         GNULIB_UNISTD_H_NONBLOCKING.
11459         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11460         required for non-blocking I/O support.
11461         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11462         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11463         lib/stdio-write.c, m4/asm-underscore.m4.
11464         (Depends-on): Add stdio, unistd.
11465         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11466         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11467         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11468         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11469         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11470         problem with non-blocking pipes.
11471         * doc/posix-functions/fputc.texi: Likewise.
11472         * doc/posix-functions/fputs.texi: Likewise.
11473         * doc/posix-functions/fwrite.texi: Likewise.
11474         * doc/posix-functions/printf.texi: Likewise.
11475         * doc/posix-functions/putc.texi: Likewise.
11476         * doc/posix-functions/putchar.texi: Likewise.
11477         * doc/posix-functions/puts.texi: Likewise.
11478         * doc/posix-functions/vfprintf.texi: Likewise.
11479         * doc/posix-functions/vprintf.texi: Likewise.
11480         * doc/posix-functions/write.texi: Likewise.
11481
11482 2011-04-10  Jim Meyering  <meyering@redhat.com>
11483
11484         maint.mk: prohibit doubled words
11485         Detect them also when they're separated by a newline.
11486         There are 3 ways to customize it:
11487           - disable the test on a per file basis, as usual with rules using
11488             $(VC_LIST_EXCEPT)
11489           - replace the default doubled-word-selecting regexp (affects all files)
11490           - ignore a particular file-vs-doubled-word match
11491         I nearly used that last one to ignore the "is is" match in
11492         coreutils' NEWS file, since the text was "ls -is is ..."
11493         To do that, I would have added this line to cfg.mk:
11494           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11495         but it would have ignored any "is is" match in NEWS.
11496         Low probability, but still...
11497         Instead, I changed the text, slightly:
11498           -  ls -is is now consistent with ls -lis in ignoring values returned
11499           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11500         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11501         (prohibit_doubled_word_): Define.
11502         (sc_prohibit_doubled_word): New rule.
11503         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11504
11505 2011-04-10  Jim Meyering  <meyering@redhat.com>
11506
11507         maint: fix doubled-word typo in comment
11508         * m4/gethostname.m4: s/is is/it is/
11509         * m4/getdomainname.m4: Likewise.
11510
11511 2011-04-10  Jim Meyering  <meyering@redhat.com>
11512
11513         maint: remove doubled word: s/it it/it/
11514         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11515
11516 2011-04-10  Jim Meyering  <meyering@redhat.com>
11517
11518         maint.mk: remove useless semicolon and backslash
11519         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11520         semicolon and backslash.
11521
11522 2011-04-10  Bruno Haible  <bruno@clisp.org>
11523
11524         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11525         * modules/stdint-tests (Depends-on): Add wchar.
11526
11527 2011-04-10  Jim Meyering  <meyering@redhat.com>
11528
11529         maint: remove doubled words in comments, e.g., s/a a/a/
11530         * lib/strptime.c (day_of_the_week): s/the the/the/
11531         * tests/test-chown.h (test_chown): s/a a/a/
11532
11533         test-chown.h: correct a cast
11534         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11535         when the destination is a stat.st_gid.
11536
11537 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11538
11539         getaddrinfo: Fix test for sa_len member.
11540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11541         include <sys/types.h> before <sys/socket.h>.
11542
11543 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11544
11545         maint: change "can not" to "cannot"
11546         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11547         boundaries.
11548
11549 2011-04-09  Jim Meyering  <meyering@redhat.com>
11550
11551         maint: change "a a" to "a"
11552         * tests/test-lchown.h (test_lchown): s/a a/a/
11553
11554         maint.mk: prohibit \<the the\>
11555         * top/maint.mk (sc_prohibit_the_the): New rule.
11556
11557         maint: fix "the the" in comment
11558         * lib/count-one-bits.h: s/the the/the/
11559
11560         maint: change "can not" to "cannot"
11561         But do not change the occurrences in maintain.texi or in
11562         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11563         * doc/gnulib-tool.texi: s/can not/cannot/
11564         * doc/posix-functions/accept.texi (accept): Likewise.
11565         * doc/posix-functions/socket.texi (socket): Likewise.
11566         * lib/mbrtowc.c: Likewise.
11567
11568         maint.mk: prohibit use of "can not"
11569         * top/maint.mk (sc_prohibit_can_not): New rule.
11570         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11571
11572 2011-04-09  Bruno Haible  <bruno@clisp.org>
11573
11574         careadlinkat: Guard against misuse of careadlinkatcwd.
11575         * lib/careadlinkat.c: Include <stdlib.h>.
11576         (careadlinkatcwd): Check that the fd argument is as expected.
11577
11578 2011-04-09  Bruno Haible  <bruno@clisp.org>
11579
11580         careadlinkat: Use common coding style.
11581         * lib/careadlinkat.c: Move gnulib includes after system includes.
11582
11583 2011-04-09  Bruno Haible  <bruno@clisp.org>
11584
11585         careadlinkat: Clarify specification.
11586         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11587         (careadlinkatcwd): Add comment.
11588         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11589
11590 2011-04-09  Bruno Haible  <bruno@clisp.org>
11591
11592         areadlinkat: Avoid link error on many platforms.
11593         * modules/areadlinkat (Depends-on): Add areadlink.
11594
11595 2011-04-09  Bruno Haible  <bruno@clisp.org>
11596
11597         allocator, careadlinkat: Fix double-inclusion guard.
11598         * lib/allocator.h: Fix double-inclusion guard.
11599         * lib/careadlinkat.h: Likewise.
11600
11601 2011-04-09  Bruno Haible  <bruno@clisp.org>
11602
11603         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11604         * lib/relocwrapper.c: Update dependencies hierarchy.
11605         * build-aux/install-reloc: Update list of files to be compiled.
11606         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11607         lib/allocator.[hc].
11608
11609 2011-04-08  Eric Blake  <eblake@redhat.com>
11610
11611         strftime: silence gnulib-tool warning
11612         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11613
11614 2011-04-08  Bruno Haible  <bruno@clisp.org>
11615
11616         verify: Fix syntax error with GCC 4.6 in C++ mode.
11617         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11618         (HAVE_STATIC_ASSERT): New macro.
11619         (verify_true, verify): Use 'static_assert' if it is supported and
11620         '_Static_assert' is not supported.
11621
11622 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11623
11624         allocator: New module.
11625         * modules/allocator, lib/allocator.c: New files.
11626         * lib/allocator.h (stdlib_allocator): New decl.
11627         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11628         Remove.  Do not include <stdlib.h>.
11629         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11630         * modules/careadlinkat (Files): Remove lib/allocator.h.
11631         (Depends-on): Add allocator.
11632
11633         stdlib: let modules use system malloc, realloc
11634         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11635         if !_GL_USE_STDLIB_ALLOC.
11636         (malloc, realloc): Limit this change to a smaller scope.
11637
11638         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11639         (malloc, realloc): Don't #undef; no longer needed.
11640         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11641         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11642         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11643         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11644         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11645         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11646         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11647         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11648
11649         careadlinkat: rename members to avoid problem
11650         * lib/allocator.h (struct allocator): Rename members from
11651         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11652         and realloc are #define'd.  Reported by Eric Blake in
11653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11654         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11655
11656 2011-04-08  Eric Blake  <eblake@redhat.com>
11657
11658         nonblocking: reduce dependency
11659         * tests/test-nonblocking.c: Only test sockets when in use.
11660         * modules/nonblocking-tests (Depends-on): Drop socket.
11661         (Makefile.am): Link even if sockets are not present.
11662         * modules/pipe2-tests (Makefile.am): Likewise.
11663         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11664
11665         pipe2: fix O_NONBLOCK support on mingw
11666         * modules/pipe2 (Depends-on): Add nonblocking.
11667         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11668         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11669         * tests/test-nonblocking.c (main): Likewise.
11670         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11671
11672         fcntl-h: fix O_ACCMODE on cygwin
11673         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11674         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11675
11676         pipe-filter: drop O_NONBLOCK workarounds
11677         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11678         * modules/pipe-filter-ii (Depends-on): Likewise.
11679         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11680
11681         nonblocking: provide O_NONBLOCK for mingw
11682         * modules/nonblocking (Depends-on): Add open.
11683         (configure.ac): Set new witness macro.
11684         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11685         * modules/fcntl-h (Makefile.am): Substitute it.
11686         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11687         nonblocking module is in use.
11688         * lib/nonblocking.c: Adjust portability test.
11689         * lib/open.c (open): Don't let native open see gnulib flag.
11690         * tests/test-fcntl-h.c (main): Enhance test.
11691         * tests/test-open.h (test_open): Likewise.
11692         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11693
11694         careadlinkat: fix compilation error on mingw
11695         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11696         within struct allocator.
11697
11698 2011-04-06  Eric Blake  <eblake@redhat.com>
11699
11700         binary-io: relicense under LGPLv2+
11701         * modules/binary-io (License): Relax to LGPLv2+.
11702         Requested for libvirt, and required by pipe2.
11703
11704 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11705
11706         verify: use _Static_assert if available
11707         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11708         (verify_true, verify): Use it if available.  This generates better
11709         diagnostics with GCC 4.6.0 and later.
11710
11711 2011-04-05  Bruno Haible  <bruno@clisp.org>
11712
11713         Remove leftover generated .h files after config.status changed.
11714
11715         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11716         GL_GENERATE_ALLOCA_H.
11717         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11718         GL_GENERATE_ALLOCA_H evaluates to false.
11719
11720         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11721         GL_GENERATE_ARGZ_H.
11722         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11723         evaluates to false.
11724
11725         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11726         GL_GENERATE_BYTESWAP_H.
11727         * modules/byteswap (Makefile.am): Remove byteswap.h if
11728         GL_GENERATE_BYTESWAP_H evaluates to false.
11729
11730         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11731         GL_GENERATE_ERRNO_H.
11732         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11733         evaluates to false.
11734
11735         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11736         GL_GENERATE_FLOAT_H.
11737         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11738         evaluates to false.
11739
11740         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11741         GL_GENERATE_FNMATCH_H.
11742         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11743         GL_GENERATE_FNMATCH_H evaluates to false.
11744
11745         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11746         GL_GENERATE_GLOB_H.
11747         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11748         evaluates to false.
11749
11750         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11751         automake conditional GL_GENERATE_ICONV_H.
11752         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11753         evaluates to false.
11754
11755         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11756         GL_GENERATE_NETINET_IN_H.
11757         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11758         GL_GENERATE_NETINET_IN_H evaluates to false.
11759
11760         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11761         conditional GL_GENERATE_PTHREAD_H.
11762         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11763         * modules/pthread (Makefile.am): Remove pthread.h if
11764         GL_GENERATE_PTHREAD_H evaluates to false.
11765
11766         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11767         GL_GENERATE_SCHED_H.
11768         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11769         evaluates to false.
11770
11771         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11772         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11773         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11774         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11775
11776         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11777         GL_GENERATE_STDARG_H.
11778         * modules/stdarg (Makefile.am): Remove stdarg.h if
11779         GL_GENERATE_STDARG_H evaluates to false.
11780
11781         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11782         GL_GENERATE_STDBOOL_H.
11783         * modules/stdbool (Makefile.am): Remove stdbool.h if
11784         GL_GENERATE_STDBOOL_H evaluates to false.
11785
11786         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11787         conditional GL_GENERATE_STDDEF_H.
11788         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11789         * modules/stddef (Makefile.am): Remove stddef.h if
11790         GL_GENERATE_STDDEF_H evaluates to false.
11791
11792         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11793         GL_GENERATE_STDINT_H.
11794         * modules/stdint (Makefile.am): Remove stdint.h if
11795         GL_GENERATE_STDINT_H evaluates to false.
11796
11797         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11798         GL_GENERATE_SYSEXITS_H.
11799         * modules/sysexits (Makefile.am): Remove sysexits.h if
11800         GL_GENERATE_SYSEXITS_H evaluates to false.
11801
11802         Reported by Karl Berry and Ralf Wildenhues.
11803
11804 2011-04-05  Bruno Haible  <bruno@clisp.org>
11805
11806         Ensure to rebuild generated .h files when config.status has changed.
11807         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11808         config.status.
11809         * modules/ctype (Makefile.am): Likewise.
11810         * modules/dirent (Makefile.am): Likewise.
11811         * modules/errno (Makefile.am): Likewise.
11812         * modules/fcntl-h (Makefile.am): Likewise.
11813         * modules/float (Makefile.am): Likewise.
11814         * modules/getopt-posix (Makefile.am): Likewise.
11815         * modules/glob (Makefile.am): Likewise.
11816         * modules/iconv-h (Makefile.am): Likewise.
11817         * modules/inttypes (Makefile.am): Likewise.
11818         * modules/langinfo (Makefile.am): Likewise.
11819         * modules/locale (Makefile.am): Likewise.
11820         * modules/math (Makefile.am): Likewise.
11821         * modules/netdb (Makefile.am): Likewise.
11822         * modules/netinet_in (Makefile.am): Likewise.
11823         * modules/poll-h (Makefile.am): Likewise.
11824         * modules/pthread (Makefile.am): Likewise.
11825         * modules/pty (Makefile.am): Likewise.
11826         * modules/sched (Makefile.am): Likewise.
11827         * modules/search (Makefile.am): Likewise.
11828         * modules/selinux-h (Makefile.am): Likewise.
11829         * modules/signal (Makefile.am): Likewise.
11830         * modules/spawn (Makefile.am): Likewise.
11831         * modules/stdarg (Makefile.am): Likewise.
11832         * modules/stdbool (Makefile.am): Likewise.
11833         * modules/stddef (Makefile.am): Likewise.
11834         * modules/stdint (Makefile.am): Likewise.
11835         * modules/stdio (Makefile.am): Likewise.
11836         * modules/stdlib (Makefile.am): Likewise.
11837         * modules/string (Makefile.am): Likewise.
11838         * modules/strings (Makefile.am): Likewise.
11839         * modules/sys_file (Makefile.am): Likewise.
11840         * modules/sys_ioctl (Makefile.am): Likewise.
11841         * modules/sys_select (Makefile.am): Likewise.
11842         * modules/sys_socket (Makefile.am): Likewise.
11843         * modules/sys_stat (Makefile.am): Likewise.
11844         * modules/sys_time (Makefile.am): Likewise.
11845         * modules/sys_times (Makefile.am): Likewise.
11846         * modules/sys_utsname (Makefile.am): Likewise.
11847         * modules/sys_wait (Makefile.am): Likewise.
11848         * modules/sysexits (Makefile.am): Likewise.
11849         * modules/termios (Makefile.am): Likewise.
11850         * modules/time (Makefile.am): Likewise.
11851         * modules/unistd (Makefile.am): Likewise.
11852         * modules/wchar (Makefile.am): Likewise.
11853         * modules/wctype-h (Makefile.am): Likewise.
11854         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11855
11856 2011-04-05  Bruno Haible  <bruno@clisp.org>
11857
11858         pipe2: Relicense under LGPLv2+.
11859         * modules/pipe2 (License): Change to LGPLv2+.
11860         Requested by Eric Blake, for libvirt.
11861
11862 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11863
11864         bootstrap: compute gnulib_extra_files after updating build_aux
11865         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11866         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11867
11868 2011-04-05  Eric Blake  <eblake@redhat.com>
11869
11870         bootstrap: preserve git whitelist item sorting
11871         * build-aux/bootstrap (sort_patterns): New function.
11872         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11873
11874 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11875
11876         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11877         sc_space_tab check.
11878
11879 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11880
11881         areadlink, areadlinkat: rewrite in terms of careadlinkat
11882         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11883         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11884         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11885         (malloc, realloc): Remove #undefs.
11886         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11887         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11888         readlink, ssize_t, stdint, unistd.
11889         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11890         areadlink, stdint.
11891
11892         careadlinkat: new module
11893         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11894         * modules/careadlinkat: New files, written by me with
11895         a review and feedback from Ben Pfaff in
11896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11897
11898 2011-04-01  Bruno Haible  <bruno@clisp.org>
11899
11900         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11901         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11902         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11903         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11904         Reported by Bruce Korb <bruce.korb@gmail.com>.
11905
11906 2011-04-01  Bruno Haible  <bruno@clisp.org>
11907
11908         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11909         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11910         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11911         * modules/wcpcpy (Depends-on): Add extensions.
11912         * modules/wcpncpy (Depends-on): Likewise.
11913         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11914         systems.
11915         * doc/posix-functions/wcpncpy.texi: Likewise.
11916         * doc/posix-functions/wcwidth.texi: Likewise.
11917
11918 2011-03-31  Eric Blake  <eblake@redhat.com>
11919
11920         nonblocking: fix mingw test failures
11921         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11922         non-blocking flag on regular file.
11923         (get_nonblocking_flag): Set errno on invalid fd.
11924         * tests/test-nonblocking.c (main): Avoid test failure on
11925         directories if fchdir is not active.
11926         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11927
11928 2011-03-31  Bruno Haible  <bruno@clisp.org>
11929
11930         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11931         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11932         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11933         Reported by Simon Josefsson <simon@josefsson.org>.
11934
11935 2011-03-31  Bruno Haible  <bruno@clisp.org>
11936         and Eric Blake  <eblake@redhat.com>
11937
11938         nonblocking: new module
11939         * modules/nonblocking: New module.
11940         * modules/nonblocking-tests: Likewise.
11941         * lib/nonblocking.h: New file.
11942         * lib/nonblocking.c: Likewise.
11943         * tests/test-nonblocking.c: New test.
11944         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11945
11946 2011-03-30  Bruno Haible  <bruno@clisp.org>
11947
11948         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11949         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11950         instead of 'printf' format for GCC >= 4.4.
11951         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11952         (fprintf, printf, vfprintf, vprintf): Declare with
11953         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11954         the system's vfprintf() function.
11955         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11956
11957 2011-03-30  Eric Blake  <eblake@redhat.com>
11958
11959         passfd: fix scoping bug
11960         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11961         before sendmsg/recvmsg.
11962
11963         passfd: standardize coding conventions
11964         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11965         can be learned at compile time.
11966         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11967         ifdefs.
11968         (sendfd, recvfd): Follow gnulib code conventions.
11969
11970         passfd: fix incorrect sendmsg arguments
11971         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11972         incorrect msg_controllen value.
11973         * modules/passfd-tests (Depends-on): Check for alarm.
11974         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11975         Reported by Bastien ROUCARIES.
11976
11977 2011-03-30  Bruno Haible  <bruno@clisp.org>
11978
11979         c-strcasestr: Relicense under LGPLv2+.
11980         * modules/c-strcasestr (License): Change to LGPLv2+.
11981         Requested by Eric Blake, for libvirt.
11982
11983 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11984
11985         * users.txt: Add libidn2.  Fix libtasn1 link.
11986
11987 2011-03-30  Jim Meyering  <meyering@redhat.com>
11988
11989         tests: readlink* ("",... fails with EINVAL on newer kernels
11990         readlink and readlinkat have typically failed with ENOENT for
11991         the invalid, empty file name,  "".  However, with the advent
11992         of linux-2.6.39, they fail with EINVAL.
11993         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11994         when operating on the empty file name.
11995         * tests/test-readlink.h (test_readlink): Likewise.
11996
11997 2011-03-29  Bruno Haible  <bruno@clisp.org>
11998
11999         Relicense some modules under LGPLv2+, for libidn2.
12000         * modules/array-mergesort (License): Change to LGPLv2+.
12001         * modules/c-strcaseeq (License): Likewise.
12002         * modules/striconveh (License): Likewise.
12003         * modules/striconveha (License): Likewise.
12004         * modules/uniconv/base (License): Likewise.
12005         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12006         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12007         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12008         * modules/unictype/base (License): Likewise.
12009         * modules/unictype/bidiclass-of (License): Likewise.
12010         * modules/unictype/category-M (License): Likewise.
12011         * modules/unictype/category-none (License): Likewise.
12012         * modules/unictype/category-of (License): Likewise.
12013         * modules/unictype/category-test (License): Likewise.
12014         * modules/unictype/category-test-withtable (License): Likewise.
12015         * modules/unictype/combining-class (License): Likewise.
12016         * modules/unictype/joiningtype-of (License): Likewise.
12017         * modules/unictype/scripts (License): Likewise.
12018         * modules/uninorm/base (License): Likewise.
12019         * modules/uninorm/canonical-decomposition (License): Likewise.
12020         * modules/uninorm/composition (License): Likewise.
12021         * modules/uninorm/decompose-internal (License): Likewise.
12022         * modules/uninorm/decomposition-table (License): Likewise.
12023         * modules/uninorm/nfc (License): Likewise.
12024         * modules/uninorm/nfd (License): Likewise.
12025         * modules/uninorm/u32-normalize (License): Likewise.
12026         * modules/unistr/base (License): Likewise.
12027         * modules/unistr/u32-cpy (License): Likewise.
12028         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12029         * modules/unistr/u32-to-u8 (License): Likewise.
12030         * modules/unistr/u32-uctomb (License): Likewise.
12031         * modules/unistr/u8-check (License): Likewise.
12032         * modules/unistr/u8-mblen (License): Likewise.
12033         * modules/unistr/u8-mbtouc (License): Likewise.
12034         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12035         * modules/unistr/u8-mbtoucr (License): Likewise.
12036         * modules/unistr/u8-prev (License): Likewise.
12037         * modules/unistr/u8-strlen (License): Likewise.
12038         * modules/unistr/u8-to-u32 (License): Likewise.
12039         * modules/unistr/u8-uctomb (License): Likewise.
12040         * modules/unitypes (License): Likewise.
12041         Requested by Simon Josefsson.
12042
12043 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12044
12045         lib-symbol-visibility: Add a notice.
12046         * modules/lib-symbol-visibility (Notice): New field.
12047
12048 2011-03-29  Bruno Haible  <bruno@clisp.org>
12049
12050         getaddrinfo: Doc fix.
12051         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12052         section "fixed in Gnulib".
12053
12054 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12055
12056         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12057         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12058
12059 2011-03-26  Bruno Haible  <bruno@clisp.org>
12060
12061         unictype/property-byname: Reduce the number of load-time relocations.
12062         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12063         (UC_PROPERTY_INDEX_*): New enumeration values.
12064         (uc_property_byname): Convert an index from the lookup table to an
12065         uc_property_t.
12066         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12067         values.
12068
12069 2011-03-26  Bruno Haible  <bruno@clisp.org>
12070
12071         unictype/property-byname: Allow omitted word separators and aliases.
12072         * lib/unictype/pr_byname.gperf: Add property names without word
12073         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12074         for 'space'.
12075
12076 2011-03-26  Bruno Haible  <bruno@clisp.org>
12077
12078         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12079         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12080         also hyphens to space.
12081         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12082         without spaces.
12083         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12084
12085 2011-03-26  Bruno Haible  <bruno@clisp.org>
12086
12087         unictype/joiningtype-byname: Recognize long names as well.
12088         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12089         a long name.
12090         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12091         unictype/joiningtype_byname.h.
12092         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12093         * lib/unictype/joiningtype_byname.gperf: New file.
12094         * modules/unictype/joiningtype-byname (Files): Add
12095         lib/unictype/joiningtype_byname.gperf.
12096         (Depends-on): Add gperf.
12097         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12098         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12099         long names.
12100
12101         Tests for module 'unictype/joiningtype-longname'.
12102         * modules/unictype/joiningtype-longname-tests: New file.
12103         * tests/unictype/test-joiningtype_longname.c: New file.
12104
12105         New module 'unictype/joiningtype-longname'.
12106         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12107         * lib/unictype/joiningtype_longname.c: New file.
12108         * modules/unictype/joiningtype-longname: New file.
12109         * modules/unictype/joiningtype-all (Depends-on): Add
12110         unictype/joiningtype-longname.
12111
12112 2011-03-26  Bruno Haible  <bruno@clisp.org>
12113
12114         unictype/bidiclass-byname: Recognize long names as well.
12115         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12116         name.
12117         * lib/unictype/bidi_byname.c: Include <string.h>,
12118         unictype/bidi_byname.h.
12119         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12120         * lib/unictype/bidi_byname.gperf: New file.
12121         * modules/unictype/bidiclass-byname (Files): Add
12122         lib/unictype/bidi_byname.gperf.
12123         (Depends-on): Add gperf.
12124         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12125         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12126         long names.
12127
12128         Tests for module 'unictype/bidiclass-longname'.
12129         * modules/unictype/bidiclass-longname-tests: New file.
12130         * tests/unictype/test-bidi_longname.c: New file.
12131
12132         New module 'unictype/bidiclass-longname'.
12133         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12134         * lib/unictype/bidi_longname.c: New file.
12135         * modules/unictype/bidiclass-longname: New file.
12136         * modules/unictype/bidiclass-all (Depends-on): Add
12137         unictype/bidiclass-longname.
12138
12139 2011-03-26  Bruno Haible  <bruno@clisp.org>
12140
12141         unictype/bidi*: Rename modules.
12142         * modules/unictype/bidiclass-all: Renamed from
12143         modules/unictype/bidicategory-all.
12144         * modules/unictype/bidiclass-name: Renamed from
12145         modules/unictype/bidiclass-name.
12146         (Description): Update.
12147         * modules/unictype/bidiclass-name-tests: Renamed from
12148         modules/unictype/bidicategory-name-tests.
12149         * modules/unictype/bidiclass-byname: Renamed from
12150         modules/unictype/bidicategory-byname.
12151         (Description): Update.
12152         * modules/unictype/bidiclass-byname-tests: Renamed from
12153         modules/unictype/bidicategory-byname-tests.
12154         * modules/unictype/bidiclass-of: Renamed from
12155         modules/unictype/bidicategory-of.
12156         (Description): Update.
12157         * modules/unictype/bidiclass-of-tests: Renamed from
12158         modules/unictype/bidicategory-of-tests.
12159         * modules/unictype/bidiclass-test: Renamed from
12160         modules/unictype/bidicategory-test.
12161         (Description): Update.
12162         * modules/unictype/bidiclass-test-tests: Renamed from
12163         modules/unictype/bidicategory-test-tests.
12164         * modules/unictype/bidicategory-all: New file, a simple redirection.
12165         * modules/unictype/bidicategory-name: Likewise.
12166         * modules/unictype/bidicategory-byname: Likewise.
12167         * modules/unictype/bidicategory-of: Likewise.
12168         * modules/unictype/bidicategory-test: Likewise.
12169         * modules/unictype/property-bidi-* (Dependencies): Update.
12170         * lib/unictype/bidi_*.c: Update comment.
12171
12172 2011-03-26  Bruno Haible  <bruno@clisp.org>
12173
12174         unictype/bidi*: Rename functions, part 2.
12175         * modules/unictype/bidicategory-name (configure.ac): Update required
12176         libunistring version.
12177         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12178
12179 2011-03-25  Bruno Haible  <bruno@clisp.org>
12180
12181         New module 'unictype/combining-class-all'.
12182         * modules/unictype/combining-class-all: New file.
12183
12184         Tests for module 'unictype/combining-class-byname'.
12185         * modules/unictype/combining-class-byname-tests: New file.
12186         * tests/unictype/test-combiningclass_byname.c: New file.
12187
12188         New module 'unictype/combining-class-byname'.
12189         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12190         * lib/unictype/combiningclass_byname.c: New file.
12191         * lib/unictype/combiningclass_byname.gperf: New file.
12192         * modules/unictype/combining-class-byname: New file.
12193
12194         Tests for module 'unictype/combining-class-longname'.
12195         * modules/unictype/combining-class-longname-tests: New file.
12196         * tests/unictype/test-combiningclass_longname.c: New file.
12197
12198         New module 'unictype/combining-class-longname'.
12199         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12200         * lib/unictype/combiningclass_longname.c: New file.
12201         * modules/unictype/combining-class-longname: New file.
12202
12203         Tests for module 'unictype/combining-class-name'.
12204         * modules/unictype/combining-class-name-tests: New file.
12205         * tests/unictype/test-combiningclass_name.c: New file.
12206
12207         New module 'unictype/combining-class-name'.
12208         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12209         * lib/unictype/combiningclass_name.c: New file.
12210         * modules/unictype/combining-class-name: New file.
12211
12212 2011-03-25  Bruno Haible  <bruno@clisp.org>
12213
12214         unictype/combining-class: Rename source files.
12215         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12216         of unictype/combining.h.
12217         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12218         Update.
12219         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12220         * modules/unictype/combining-class (Description): Fix.
12221         (Files, Makefile.am): Update.
12222         * tests/unictype/test-combiningclass.c: Renamed from
12223         tests/unictype/test-combining.c.
12224         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12225
12226 2011-03-25  Bruno Haible  <bruno@clisp.org>
12227
12228         unictype: Update list of canonical combining classes.
12229         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12230
12231 2011-03-25  Bruno Haible  <bruno@clisp.org>
12232
12233         unictype/category-byname: Recognize long names as well.
12234         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12235         a long name.
12236         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12237         unictype/categ_byname.h.
12238         (UC_CATEGORY_INDEX_*): New enumeration values.
12239         (uc_general_category_byname): Use uc_general_category_lookup and
12240         convert from index to value.
12241         * lib/unictype/categ_byname.gperf: New file.
12242         * modules/unictype/category-byname (Files): Add
12243         lib/unictype/categ_byname.gperf.
12244         (Depends-on): Add gperf.
12245         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12246         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12247         long names.
12248
12249         Tests for module 'unictype/category-longname'.
12250         * modules/unictype/category-longname-tests: New file.
12251         * tests/unictype/test-categ_longname.c: New file.
12252
12253         New module 'unictype/category-longname'.
12254         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12255         * lib/unictype/categ_longname.c: New file.
12256         * modules/unictype/category-longname: New file.
12257         * modules/unictype/category-all (Depends-on): Add it.
12258
12259 2011-03-25  Bruno Haible  <bruno@clisp.org>
12260
12261         Tests for module 'unictype/category-LC'.
12262         * modules/unictype/category-LC-tests: New file.
12263         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12264
12265         New module 'unictype/category-LC'.
12266         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12267         (UC_CATEGORY_LC): New declaration.
12268         (UC_CASED_LETTER): New macro.
12269         * lib/gen-uni-tables.c (is_category_LC): New function.
12270         (output_categories): Also handle category LC.
12271         (UC_CATEGORY_MASK_LC): New enumeration value.
12272         (general_category_byname): Also handle category LC.
12273         * lib/unictype/categ_LC.c: New file.
12274         * lib/unictype/categ_LC.h: New file, automatically generated.
12275         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12276         category LC.
12277         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12278         * modules/unictype/category-LC: New file.
12279         * modules/unictype/category-byname (Depends-on): Add
12280         unictype/category-LC.
12281         * modules/unictype/category-all (Depends-on): Likewise.
12282
12283 2011-03-25  Eric Blake  <eblake@redhat.com>
12284
12285         xmalloc: revert yesterday's regression
12286         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12287         realloc's underlying behavior (allowing allocation of zero-size
12288         objects, especially if malloc-gnu is also in use).
12289
12290 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12291
12292         maint.mk: add missing version to VC-tag
12293         * top/maint.mk: git tag was missing actual tag name; add it.
12294
12295         valgrind: do leak checking, and exit with code 1 on error (not 0)
12296         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12297         to VALGRIND.
12298
12299 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12300
12301         posix-modules: say what it does.
12302         * posix-modules: Add a line to the --help output saying what it does.
12303
12304 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12305
12306         xmalloc: Do not leak if underlying realloc is C99 compatible.
12307         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12308         This avoids a leak on C99-based systems.  See
12309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12310
12311 2011-03-24  Eric Blake  <eblake@redhat.com>
12312
12313         realloc: document portability problem
12314         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12315         passing 0 size to realloc.
12316
12317 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12318
12319         doc: update users.txt
12320         * users.txt: Add cvsps, tmpwatch
12321
12322 2011-03-23  Matt Rice  <ratmice@gmail.com>
12323
12324         doc: update users.txt
12325         * users.txt: Add gdb.
12326
12327 2011-03-23  Jim Meyering  <meyering@redhat.com>
12328
12329         doc: update users.txt
12330         Looking through matches up to the following URL (there are still
12331         several more pages), I found several projects that use gnulib:
12332         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12333         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12334         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12335
12336 2011-03-22  Bruno Haible  <bruno@clisp.org>
12337
12338         unictype/bidi*: Rename functions.
12339         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12340         uc_bidi_class, uc_is_bidi_class): New declarations.
12341         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12342         uc_bidi_category_byname.
12343         (uc_bidi_category_byname): New function.
12344         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12345         u_bidi_category_name.
12346         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12347         (uc_bidi_category_name): New function.
12348         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12349         uc_bidi_category.
12350         (uc_bidi_category): New function.
12351         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12352         uc_is_bidi_category. Invoke uc_bidi_class.
12353         (uc_is_bidi_category): New function.
12354         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12355         instead of uc_bidi_category_byname.
12356         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12357         instead of uc_bidi_category_name.
12358         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12359         uc_bidi_category.
12360         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12361         instead of uc_is_bidi_category.
12362
12363 2011-03-21  Bruno Haible  <bruno@clisp.org>
12364
12365         New module 'unictype/joininggroup-all'.
12366         * modules/unictype/joininggroup-all: New file.
12367
12368         Tests for module 'unictype/joininggroup-of'.
12369         * modules/unictype/joininggroup-of-tests: New file.
12370         * tests/unictype/test-joininggroup_of.c: New file.
12371         * tests/unictype/test-joininggroup_of.h: New file, automatically
12372         generated by gen-uni-tables.
12373
12374         New module 'unictype/joininggroup-of'.
12375         * modules/unictype/joininggroup-of: New file.
12376         * lib/unictype/joininggroup_of.c: New file.
12377         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12378         gen-uni-tables.
12379
12380         Tests for module 'unictype/joininggroup-byname'.
12381         * modules/unictype/joininggroup-byname-tests: New file.
12382         * tests/unictype/test-joininggroup_byname.c: New file.
12383
12384         New module 'unictype/joininggroup-byname'.
12385         * modules/unictype/joininggroup-byname: New file.
12386         * lib/unictype/joininggroup_byname.c: New file.
12387         * lib/unictype/joininggroup_byname.gperf: New file.
12388
12389         Tests for module 'unictype/joininggroup-name'.
12390         * modules/unictype/joininggroup-name-tests: New file.
12391         * tests/unictype/test-joininggroup_name.c: New file.
12392
12393         New module 'unictype/joininggroup-name'.
12394         * modules/unictype/joininggroup-name: New file.
12395         * lib/unictype/joininggroup_name.c: New file.
12396         * lib/unictype/joininggroup_name.h: New file.
12397
12398         New module 'unictype/joiningtype-all'.
12399         * modules/unictype/joiningtype-all: New file.
12400
12401         Tests for module 'unictype/joiningtype-of'.
12402         * modules/unictype/joiningtype-of-tests: New file.
12403         * tests/unictype/test-joiningtype_of.c: New file.
12404         * tests/unictype/test-joiningtype_of.h: New file, automatically
12405         generated by gen-uni-tables.
12406
12407         New module 'unictype/joiningtype-of'.
12408         * modules/unictype/joiningtype-of: New file.
12409         * lib/unictype/joiningtype_of.c: New file.
12410         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12411         gen-uni-tables.
12412
12413         Tests for module 'unictype/joiningtype-byname'.
12414         * modules/unictype/joiningtype-byname-tests: New file.
12415         * tests/unictype/test-joiningtype_byname.c: New file.
12416
12417         New module 'unictype/joiningtype-byname'.
12418         * modules/unictype/joiningtype-byname: New file.
12419         * lib/unictype/joiningtype_byname.c: New file.
12420
12421         Tests for module 'unictype/joiningtype-name'.
12422         * modules/unictype/joiningtype-name-tests: New file.
12423         * tests/unictype/test-joiningtype_name.c: New file.
12424
12425         New module 'unictype/joiningtype-name'.
12426         * modules/unictype/joiningtype-name: New file.
12427         * lib/unictype/joiningtype_name.c: New file.
12428
12429         unictype: Add support for Arabic shaping properties.
12430         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12431         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12432         declarations.
12433         (UC_JOINING_GROUP_*): New enumeration values.
12434         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12435         declarations.
12436         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12437         (unicode_joining_type): New variable.
12438         (UC_JOINING_GROUP_*): New enumeration values.
12439         (unicode_joining_group): New variable.
12440         (fill_arabicshaping, joining_type_as_c_identifier,
12441         output_joining_type_test, output_joining_type,
12442         joining_group_as_c_identifier, output_joining_group_test,
12443         output_joining_group): New functions.
12444         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12445         fill_arabicshaping and output_joining_type_test, output_joining_type,
12446         output_joining_group_test, output_joining_group.
12447         Reported by Simon Josefsson.
12448
12449 2011-03-21  Jim Meyering  <meyering@redhat.com>
12450
12451         strftime: fix a bug in yesterday's change
12452         * lib/strftime.c (add): Accommodate width's initial value of -1.
12453         Otherwise, nstrftime would copy uninitialized data into
12454         the result buffer.
12455
12456 2011-03-21  Jim Meyering  <meyering@redhat.com>
12457
12458         tests: add strftime-tests module
12459         * tests/test-strftime.c: New file.
12460         * modules/strftime-tests: New module.
12461
12462 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         strftime: don't assume a byte count fits in 'int'
12465         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12466         found this problem by static analysis, using gcc -Wstrict-overflow
12467         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12468         on an integer overflow having undefined behavior, but it turns out
12469         that the argument is a size, which might not fit in 'int' anyway,
12470
12471 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12472
12473         stdio: don't require ignore_value around fwrite
12474
12475         This patch works around libc bug 11959
12476         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12477         Without this patch, applications must often write
12478         ignore_value (fwrite (...)) even though the ignore_value is
12479         not helpful here.  It's common to write many objects, using
12480         fwrite/printf/etc., and then use ferror to detect output error.
12481
12482         I considered making this patch optional, but decided against it,
12483         because libc is obviously being inconsistent here: there is no
12484         reason libc should insist that user code must inspect fwrite
12485         return's value without also insisting that it inspect printf's,
12486         putchar's, etc.  If user code wants to have a strict style where
12487         all these functions' values are checked (so that ferror need not
12488         be checked), we could add support for that style in a new gnulib
12489         module, but in the meantime it's better to be consistent and to
12490         support common usage.
12491
12492         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12493         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12494         that we are compiling in checking mode, and if not C++, and
12495         if not already wrapping fwrite for some other reason.
12496         (fwrite): #define to rpl_fwrite if the latter is defined.
12497
12498 2011-03-20  Bruno Haible  <bruno@clisp.org>
12499
12500         verror: Fix compilation error introduced on 2011-02-13.
12501         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12502         instead of __attribute__.
12503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12504
12505 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12506             Bruno Haible  <bruno@clisp.org>
12507
12508         socklen: do not depend on sys_socket
12509         While trying to modify Emacs to use gnulib's socklen module,
12510         I discovered a circular dependency: socklen depends on sys_socket
12511         and vice versa.  Emacs can use socklen, but it does not need
12512         sys_socket because it has its own substitute for sys/socket.h.
12513         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12514         gl_TYPE_SOCKLEN_T.
12515         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12516         gl_PREREQ_SYS_H_SOCKET.
12517         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12518         gl_PREREQ_SYS_H_SOCKET.
12519         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12520         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12521         * modules/socklen (Depends-on): Do not depend on sys_socket.
12522         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12523
12524 2011-03-20  Jim Meyering  <meyering@redhat.com>
12525
12526         maint.mk: sort file names *after* new transformation
12527         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12528         prefix would have led to an unwarranted failure in GNU parted.
12529         Sort after that transformation.
12530
12531 2011-03-19  Jim Meyering  <meyering@redhat.com>
12532
12533         maint.mk: fix po-file syntax-check rule
12534         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12535         Patch by Bruno Haible.
12536
12537 2011-03-19  Bruno Haible  <bruno@clisp.org>
12538
12539         socklen: Update comment.
12540         * m4/socklen.m4: Update comment about platforms.
12541
12542 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12543             Bruno Haible  <bruno@clisp.org>
12544
12545         inet_ntop, inet_pton: Simplify.
12546         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12547         documented to provide socklen_t and we already depend on sys_socket.
12548         * modules/inet_pton (Depends-on): Likewise.
12549         * lib/arpa_inet.in.h: Adjust comment.
12550
12551 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12552             Bruno Haible  <bruno@clisp.org>
12553
12554         netdb: Simplify.
12555         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12556         documented to provide socklen_t and we already depend on sys_socket.
12557         * lib/netdb.in.h: Adjust comment.
12558
12559 2011-03-19  Bruno Haible  <bruno@clisp.org>
12560
12561         sys_socket, netdb: Document problem with socklen_t.
12562         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12563         platforms.
12564         * doc/posix-headers/netdb.texi: Likewise.
12565
12566 2011-03-18  Eric Blake  <eblake@redhat.com>
12567
12568         maint.mk: let po check work in VPATH build
12569         * top/maint.mk (po_file): Allow cfg.mk override.
12570         (sc_po_check): Allow VPATH use.
12571         Reported by Jiri Denemark.
12572
12573 2011-03-16  Jim Meyering  <meyering@redhat.com>
12574
12575         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12576         Before, you would have had to create one .x-sc_ file per rule in order
12577         to exempt offending files.  Now, you may instead use a Make variable --
12578         usually defined in cfg.mk -- whose name identifies the affected rule.
12579         * top/maint.mk (_sc_excl): Define.
12580         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12581         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12582
12583 2011-03-13  Bruno Haible  <bruno@clisp.org>
12584
12585         ignore-value tests: Avoid warnings.
12586         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12587         empty for gcc < 3.4.
12588
12589 2011-03-13  Bruno Haible  <bruno@clisp.org>
12590
12591         passfd: Fix link error on Solaris.
12592         * modules/passfd (Description): Correct.
12593         (Depends-on): Add socketlib.
12594         (Link): New section.
12595         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12596
12597 2011-03-13  Bruno Haible  <bruno@clisp.org>
12598
12599         passfd: Fix link error on AIX 5.2.
12600         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12601
12602 2011-03-13  Bruno Haible  <bruno@clisp.org>
12603
12604         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12605         * lib/sys_socket.in.h: Include <stddef.h>.
12606         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12607         CMSG_FIRSTHDR. Remove unused variable.
12608
12609 2011-03-13  Bruno Haible  <bruno@clisp.org>
12610
12611         passfd: Fix compilation error on OpenBSD.
12612         * lib/passfd.c: Include <sys/uio.h>.
12613
12614 2011-03-13  Bruno Haible  <bruno@clisp.org>
12615
12616         passfd test: Fix warnings.
12617         * tests/test-passfd.c: Include <sys/wait.h>.
12618         (main): Fix typo.
12619
12620 2011-03-13  Bruno Haible  <bruno@clisp.org>
12621
12622         passfd module, part 4, tweaks.
12623         * tests/test-passfd.c: Reorder includes.
12624         (main): Fix perror and printf calls.
12625
12626 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12627
12628         passfd module, part 4.
12629         * modules/passfd-tests: New file.
12630         * tests/test-passfd.c: New file.
12631
12632 2011-03-13  Jim Meyering  <meyering@redhat.com>
12633
12634         Makefile: rely on GNU make; derive syntax-check rule names
12635         Rather than requiring that each sc_ rule be listed as a dependent
12636         of "check", use features of GNU make to derive the list.
12637         * Makefile (syntax-check-rules): Define.
12638         (check): Depend on the new variable, not the hard-coded list.
12639
12640 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12641             Bruno Haible  <bruno@clisp.org>
12642
12643         passfd module, part 3.
12644         * lib/passfd.h (recvfd): Add a flags argument.
12645         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12646         (recvfd): Add a flags argument.
12647         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12648         exists.
12649         * modules/passfd (Depends-on): Add cloexec.
12650         Suggested by Eric Blake.
12651
12652 2011-03-13  Bruno Haible  <bruno@clisp.org>
12653
12654         passfd module, part 2, tweaks.
12655         * modules/passfd (Files): Reorder.
12656         (Depends-on): Remove errno.
12657         (Include): Remove <sys/socket.h>, <sys/un.h>.
12658         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12659         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12660         specification header. Include <sys/socket.h> always. Don't include
12661         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12662         (sendfd): Clarify that it sets errno when it fails.
12663         (recvfd): Fix specification.
12664
12665 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12666
12667         passfd module, part 2.
12668         * modules/passfd: New file.
12669         * lib/passfd.h: New file.
12670         * lib/passfd.c: New file.
12671
12672 2011-03-12  Bruno Haible  <bruno@clisp.org>
12673
12674         wcswidth, mbswidth: Avoid integer overflow.
12675         * lib/wcswidth.c: Include <limits.h>.
12676         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12677         * lib/mbswidth.c: Include <limits.h>.
12678         (mbsnwidth): Avoid 'int' overflow.
12679         Reported by Jim Meyering.
12680
12681 2011-03-12  Bruno Haible  <bruno@clisp.org>
12682
12683         futimens, utimensat: Avoid endless recursion on Solaris 10.
12684         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12685         Solaris.
12686         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12687         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12688
12689 2011-03-11  Jim Meyering  <meyering@redhat.com>
12690
12691         maint.mk: relax a regexp to accommodate other formatting styles
12692         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12693         between "ngettext" and the following "(".
12694
12695 2011-03-11  Pádraig Brady <P@draigBrady.com>
12696
12697         maint.mk: suppress a false positive warning
12698         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12699         diagnostics are marked with ngettext.
12700
12701 2011-03-10  Eric Blake  <eblake@redhat.com>
12702
12703         wchar: add explicit dependencies, for Tru64
12704         * modules/mbmemcasecoll (Depends-on): Add wchar.
12705         * modules/mbtowc (Depends-on): Likewise.
12706         * modules/vasnprintf (Depends-on): Likewise.
12707         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12708         * modules/wctomb (Depends-on): Likewise.
12709         Reported by Peter O'Gorman.
12710
12711 2011-03-08  Bruno Haible  <bruno@clisp.org>
12712
12713         passfd module, part 1, tweaks.
12714         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12715         Improve indentation. Improve AC_MSG_CHECKING messages.
12716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12717         gl_SOCKET_FAMILIES.
12718
12719 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12720
12721         passfd module, part 1.
12722         * m4/afunix.m4: New file.
12723         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12724         sockets.
12725
12726 2011-03-08  Bruno Haible  <bruno@clisp.org>
12727
12728         regex-quote: New API.
12729         * lib/regex-quote.h: Include <stdbool.h>.
12730         (struct regex_quote_spec): New type.
12731         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12732         New declarations.
12733         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12734         'const struct regex_quote_spec *' argument.
12735         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12736         (pcre_special): New constant.
12737         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12738         New functions.
12739         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12740         'const struct regex_quote_spec *' argument.
12741         * modules/regex-quote (Depends-on): Add stdbool.
12742         * tests/test-regex-quote.c (check): Update for new API. Add test for
12743         anchored results.
12744         * NEWS: Mention the API change.
12745         Reported by Reuben Thomas and Eric Blake.
12746
12747 2011-03-06  Bruno Haible  <bruno@clisp.org>
12748
12749         regex-quote: Fix creation of POSIX extended regular expressions.
12750         * lib/regex-quote.c (ere_special): Add grouping and alternation
12751         operators.
12752
12753 2011-03-05  Bruno Haible  <bruno@clisp.org>
12754
12755         doc: Improve doc regarding autopoint vs. gnulib.
12756         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12757         disable autopoint while running autoreconf.
12758         Suggested by Ralf Wildenhues.
12759
12760 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12761
12762         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12763         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12764
12765 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12766
12767         parse-duration: remove xalloc.h dependency
12768         * lib/parse-duration.c (parse_period): handle NULL return from
12769         strdup instead of calling xstrdup().
12770         * modules/parse-duration: remove "xalloc" dependency
12771
12772 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12773
12774         bootstrap: honor m4_base when running aclocal
12775         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12776
12777 2011-03-02  Jim Meyering  <meyering@redhat.com>
12778
12779         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12780         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12781         on request from Matt Booth.
12782
12783 2011-03-01  Eric Blake  <eblake@redhat.com>
12784
12785         test-link: work on Hurd
12786         * tests/test-link.h (test_link): Hurd rejects linking directories
12787         with EISDIR instead of the POSIX-mandated EPERM.
12788
12789 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12790
12791         stdio: simplify by moving files to printf-posix, sigpipe
12792         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12793         since this symbol is needed only if printf is replaced.
12794         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12795         Require gl_ASM_SYMBOL_PREFIX.
12796         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12797         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12798         (Depends-on): Add 'raise'.
12799         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12800         * modules/stdio (Files): Remove lib/stdio-write.c,
12801         m4/asm-underscore.m4.
12802         (Depends-on): Remove 'raise'.
12803
12804         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12805         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12806         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12807         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12808
12809 2011-02-28  Bruno Haible  <bruno@clisp.org>
12810
12811         localcharset: Assume ANSI C behaviour of free().
12812         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12813         calling free().
12814         Suggested by Simon Josefsson <simon@josefsson.org>.
12815
12816 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12817             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12818             Bruno Haible  <bruno@clisp.org>  (tiny change)
12819
12820         On Cygwin, use /proc file system instead of win32 API.
12821         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12822         Win32 file names.
12823         (DllMain): Simplify by removing Cygwin specific code.
12824         (find_shared_library_fullname): Use Linux specific implementation also
12825         for Cygwin.
12826         (get_shared_library_fullname): Update accordingly.
12827         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12828         Win32 file names.
12829         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12830         Cygwin specific code.
12831
12832 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12833             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12834
12835         Fix OpenMP flag detection for various Fortran compilers.
12836         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12837         OpenMP-conditional compilation construct, to force compile
12838         failure with missing OpenMP flag.
12839         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12840
12841 2011-02-25  Eric Blake  <eblake@redhat.com>
12842
12843         strstr: expand test coverage
12844         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12845         compilation.
12846         * tests/test-memmem.c (main): Duplicate tests.
12847         * tests/test-strcasestr.c (main): Likewise.
12848         * tests/test-c-strcasestr.c (main): Likewise.
12849
12850 2011-02-25  Jim Meyering  <meyering@redhat.com>
12851
12852         maint.mk: detect missing-NL-at-EOF, too
12853         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12854         it also detects when a file lacks a newline at EOF.
12855         (require_exactly_one_NL_at_EOF_): Renamed from
12856         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12857         since people may well have .x-sc_... file names tied to the
12858         existing name.  Suggested by Eric Blake.
12859
12860 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12861
12862         dirname: move m4/dos.m4 functionality into lib/dosname.h
12863
12864         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12865         extracts symbols from it, puts them into config.h; but it's much
12866         easier to use the symbols directly.  filename.h already does this,
12867         but it disagrees with dos.m4 in some respects.  This patch
12868         introduces a different include file dosname.h that packages up
12869         dos.m4, and then later we can work on merging filename.h and
12870         dosname.h.  Applications that need only the easy-to-configure
12871         symbols should consider including dosname.h rather than dirname.h.
12872         * NEWS: Mention incompatible changes.
12873         * m4/dos.m4: Remove.
12874         * lib/dosname.h, modules/dosname: New files.
12875         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12876         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12877         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12878         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12879         Include dosname.h, not dirname.h.
12880         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12881         Include dosname.h, for definitions of symbols like ISSLASH
12882         that used to be in config.h.
12883         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12884         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12885         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12886         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12887         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12888         * modules/rmdir (Files): Likewise.
12889         * modules/stat (Files): Likewise.
12890         * modules/unlink (Files): Likewise.
12891         * modules/dirname-lgpl (Depends-on): Add dosname.
12892         * modules/lstat (Depends-on): Likewise.
12893         * modules/openat (Depends-on): Likewise.
12894         * modules/rmdir (Depends-on): Likewise.
12895         * modules/savewd (Depends-on): Likewise.
12896         * modules/stat (Depends-on): Likewise.
12897         * modules/unlink (Depends-on): Likewise.
12898         * modules/openat (Depends-on): Remove dirname-lgpl.
12899         * modules/savewd (Depends-on): Likewise.
12900         * tests/test-dirname.c: Do not use removed symbols like
12901         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12902         the remaining symbols, e.g., ISSLASH ('\\').
12903
12904 2011-02-25  Eric Blake  <eblake@redhat.com>
12905
12906         strstr: revert patches that introduced bug and pessimization
12907         * lib/str-two-way.h: Add another reference.
12908         (two_way_short_needle, two_way_long_needle): Revert changes from
12909         2011-02-24; they pessimize search speed.
12910         (critical_factorization): Partially revert changes from
12911         2010-06-22; they violate the requirement that the left half of the
12912         needle be smaller than the period of the needle.
12913
12914 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         filenamecat: remove unnecessary dependency on dirname-lgpl
12917         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12918         is no direct dependency, just an indirect one via filenamecat-lgpl.
12919
12920         remove: remove unnecessary use of m4/dos.m4
12921         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12922         * modules/remove (FILES): Remove m4/dos.m4.
12923
12924         * lib/openat-proc.c: Don't include dirname.h; not needed.
12925
12926         backupfile: remove unnecessary use of m4/dos.m4
12927         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12928         of its symbols are used by the backupfile code.  backupfile.c does
12929         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12930         for the rare case of programs that want all their backup file
12931         names to live within 8+3 limits, and dos.m4 doesn't address that.
12932         * modules/backupfile (Files): Remove m4/dos.m4.
12933
12934 2011-02-24  Jim Meyering  <meyering@redhat.com>
12935
12936         strstr: fix a bug whereby strstr would mistakenly return NULL
12937         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12938         in period calculation.
12939         (two_way_long_needle): Likewise.
12940         The original problem was reported by Mike Stump in
12941         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12942         Ralf Wildenhues provided the short needle and haystack.
12943         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12944         Add a more involved test to trigger the bug in two_way_long_needle.
12945
12946 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12947
12948         gnulib-tool: remove use of bold display in help screen
12949         * gnulib-tool (func_usage): Do not use bold display anymore in the
12950         help screen.  That was just meant to be a temporary emphasis for a
12951         backward-incompatible change.
12952
12953 2011-02-23  Bruno Haible  <bruno@clisp.org>
12954
12955         Fix misindentation of preprocessor directives.
12956         * lib/argp-namefrob.h: Reindent preprocessor directives.
12957         * lib/getopt_int.h (struct _getopt_data): Likewise.
12958         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12959         * lib/vasnprintf.c (decode_long_double): Likewise.
12960         * tests/test-argmatch.c: Insert blank lines, for clarity.
12961         * tests/test-exclude.c: Likewise.
12962
12963 2011-02-22  Bruno Haible  <bruno@clisp.org>
12964
12965         ioctl: Fix for MacOS X in 64-bit mode.
12966         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12967         value.
12968         Suggested by Eric Blake.
12969         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12970
12971 2011-02-22  Jim Meyering  <meyering@redhat.com>
12972
12973         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12974         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12975         in lib/.
12976
12977 2011-02-22  Eric Blake  <eblake@redhat.com>
12978
12979         maint: avoid any CDPATH issue
12980         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12981
12982         maint: adjust cpp indentation for my modules, as well
12983         * Makefile (sc_cpp_indent_check): Add my name.
12984         * lib/fbufmode.c: Filter through cppi.
12985         * lib/fpurge.c: Likewise.
12986         * lib/freadable.c: Likewise.
12987         * lib/freading.c: Likewise.
12988         * lib/fwritable.c: Likewise.
12989         * lib/fwriting.c: Likewise.
12990         * lib/sigaction.c: Likewise.
12991
12992 2011-02-22  Jim Meyering  <meyering@redhat.com>
12993
12994         maint: adjust cpp indentation to reflect nesting depth
12995         I.e., in a block of code that begins with an unnested "#if",
12996         put one space between the "#" in column 1 and following token.
12997         For example,
12998         -#include <sys/vfs.h>
12999         +# include <sys/vfs.h>
13000         Do this only in .c files that are part of a module I maintain.
13001         * lib/linkat.c: Filter through cppi.
13002         * lib/nanosleep.c: Likewise.
13003         * lib/openat.c: Likewise.
13004         * lib/openat-die.c: Likewise.
13005         * lib/dup3.c: Likewise.
13006         * lib/fchownat.c: Likewise.
13007         * lib/flock.c: Likewise.
13008         * lib/fsync.c: Likewise.
13009         * lib/fts.c: Likewise.
13010         * lib/getpass.c: Likewise.
13011         * lib/gettimeofday.c: Likewise.
13012         * lib/userspec.c: Likewise.
13013         * Makefile (sc_cpp_indent_check): New rule, to check this.
13014
13015 2011-02-22  Bruno Haible  <bruno@clisp.org>
13016
13017         New module 'wctomb'.
13018         * lib/stdlib.in.h (wctomb): New declaration.
13019         * lib/wctomb.c: New file.
13020         * lib/wctomb-impl.h: New file.
13021         * m4/wctomb.m4: New file.
13022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13023         REPLACE_WCTOMB.
13024         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13025         REPLACE_WCTOMB.
13026         * modules/wctomb: New file.
13027         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13028         * doc/posix-functions/wctomb.texi: Mention the new module.
13029         * modules/wctob (Depends-on): Add wctomb.
13030
13031 2011-02-22  Bruno Haible  <bruno@clisp.org>
13032
13033         New module 'mbtowc'.
13034         * lib/stdlib.in.h (mbtowc): New declaration.
13035         * lib/mbtowc.c: New file.
13036         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13037         * m4/mbtowc.m4: New file.
13038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13039         REPLACE_MBTOWC.
13040         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13041         REPLACE_MBTOWC.
13042         * modules/mbtowc: New file.
13043         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13044         * doc/posix-functions/mbtowc.texi: Mention the new module.
13045         * modules/btowc (Depends-on): Add mbtowc.
13046
13047 2011-02-22  Bruno Haible  <bruno@clisp.org>
13048
13049         wcrtomb: Add more tests for native Windows platforms.
13050         * tests/test-wcrtomb-w32-1.sh: New file.
13051         * tests/test-wcrtomb-w32-2.sh: New file.
13052         * tests/test-wcrtomb-w32-3.sh: New file.
13053         * tests/test-wcrtomb-w32-4.sh: New file.
13054         * tests/test-wcrtomb-w32-5.sh: New file.
13055         * tests/test-wcrtomb-w32.c: New file.
13056         * modules/wcrtomb-tests (Files): Add them.
13057         (Makefile.am): Arrange to run these tests.
13058         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13059         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13060
13061 2011-02-20  Bruno Haible  <bruno@clisp.org>
13062
13063         wcrtomb: Enhance test.
13064         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13065
13066 2011-02-20  Bruno Haible  <bruno@clisp.org>
13067
13068         mbrtowc: Tiny optimization.
13069         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13070
13071 2011-02-20  Jim Meyering  <meyering@redhat.com>
13072
13073         test-exclude.c: remove unmatched #endif
13074         * tests/test-exclude.c: Remove stray #endif, left over from
13075         the change of a week ago.
13076
13077 2011-02-19  Jim Meyering  <meyering@redhat.com>
13078
13079         git-version-gen: skip "-dirty" check when appropriate
13080         * build-aux/git-version-gen: Don't run any git commands when the
13081         version string comes from .tarball-version.  Prior to this, we
13082         would run git update-index --refresh even from a just-unpacked
13083         tarball directory, and that could affect a .git/ directory in a
13084         parent of the build directory.  Reported by Mike Frysinger.
13085
13086 2011-02-19  Bruno Haible  <bruno@clisp.org>
13087
13088         unictype/property-byname: Reduce the size of the 'data' segment.
13089         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13090
13091 2011-02-19  Bruno Haible  <bruno@clisp.org>
13092
13093         unictype/scripts: Reduce the size of the 'data' segment.
13094         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13095         '%pic'.
13096         * lib/unictype/scripts_byname.gperf: Regenerated.
13097
13098 2011-02-19  Bruno Haible  <bruno@clisp.org>
13099
13100         stdint: Update documentation.
13101         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13102
13103 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         stdint: omit redundant check for wchar.h
13106         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13107         always tests whether wchar.h exists, so remove the now-redundant test.
13108
13109 2011-02-18  Bruno Haible  <bruno@clisp.org>
13110
13111         stdint: Cut dependency to module 'wchar'.
13112         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13113         include the necessary prerequisites.
13114         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13115         * modules/stdint (Depends-on): Remove wchar.
13116         (Makefile.am): Substitute HAVE_WCHAR_H.
13117         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13118
13119 2011-02-18  Eric Blake  <eblake@redhat.com>
13120
13121         longlong: skip, rather than fail, on cross-compilation
13122         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13123         when cross-compiling; regression from 2011-02-16.
13124
13125 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13126
13127         * NEWS: Mention 2011-02-08 change to stdlib.
13128
13129 2011-02-17  Bruno Haible  <bruno@clisp.org>
13130
13131         getloadavg: Add comments about platforms.
13132         * m4/getloadavg.m4: Add comment.
13133         * lib/getloadavg.c: Likewise.
13134
13135 2011-02-17  Bruno Haible  <bruno@clisp.org>
13136
13137         getloadavg: Fix link error on Solaris 2.6.
13138         * modules/getloadavg (Link): New section.
13139         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13140         linking test-getloadavg.
13141         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13142         getloadavg.
13143
13144 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13145
13146         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13147         It was 'int', but this doesn't match the IRIX 6.5 manual.
13148         Suggested by Bruno Haible in
13149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13150
13151 2011-02-17  Bruno Haible  <bruno@clisp.org>
13152
13153         havelib: Fix comments.
13154         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13155         change.
13156
13157 2011-02-17  Bruno Haible  <bruno@clisp.org>
13158
13159         havelib: Update config.rpath.
13160         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13161
13162 2011-02-17  Bruno Haible  <bruno@clisp.org>
13163
13164         getloadavg test: Add some plausibility checks.
13165         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13166         is improbable.
13167
13168 2011-02-16  Eric Blake  <eblake@redhat.com>
13169
13170         maintainer-makefile: make syntax-check a no-op from tarballs
13171         * top/maint.mk (no-vc-detected): New rule.
13172         (local-checks-available): Use it to avoid hanging if someone tries
13173         'make syntax-check' from a tarball.  Also append to any non-syntax
13174         checks already defined in cfg.mk.
13175
13176 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         longlong: tune, particularly for common case of c99
13179
13180         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13181         or running anything if c99, or if unsigned long long int does not
13182         work.  In either case, we know the answer without further tests.
13183         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13184         it at most once, and use its results for both long long int and
13185         unsigned long long int.  This is more likely to be efficient in
13186         the common case where the program wants to check for both long
13187         long int and unsigned long long int.
13188         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13189         since the answer is already known.
13190
13191 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         getloadavg: set errno
13194         * lib/getloadavg.c: Set errno when returning -1.  If no other
13195         error number looks appropriate, set it to ENOSYS if the getloadavg
13196         looks like it can't possibly ever work, ENOTSUP otherwise.
13197         Suggested by Bruno Haible in
13198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13199
13200         getloadavg: trim unused parts and speed up 'configure'
13201         * NEWS: Document this.
13202         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13203         always compiled if getloadavg is absent.
13204         Move test code to ...
13205         * tests/test-getloadavg.c: New file, containing previous
13206         contents of test from lib/getloadavg.c.  It also contains
13207         suggestions by Bruno Haible in
13208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13209         * modules/getloadavg-tests: New file.
13210         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13211         Do tests in the same order as they're needed for getloadavg.c.
13212         Omit setgid-related tests that generate symbols KMEM_GROUP,
13213         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13214         Do only the tests that are needed to see whether the system has
13215         getloadavg, moving the other tests into ...
13216         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13217         NLIST_NAME_UNION; nobody should be using it.  Do not define
13218         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13219         relevant, as the user of this module shouldn't care how getloadavg
13220         is implemented.
13221
13222         getloadavg: omit unused var
13223         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13224
13225 2011-02-15  Jim Meyering  <meyering@redhat.com>
13226
13227         doc: update users.txt
13228         * users.txt: Update iwhd's URL.
13229
13230 2011-02-13  Bruno Haible  <bruno@clisp.org>
13231
13232         Consistent macro naming for macros that use GCC __attribute__.
13233         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13234         _ATTRIBUTE_NONNULL_.
13235         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13236         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13237         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13238         ATTRIBUTE_DEPRECATED.
13239         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13240         ATTRIBUTE_NORETURN.
13241         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13242         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13243         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13244         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13245         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13246         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13247         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13248         ATTRIBUTE_SENTINEL.
13249         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13250         ATTRIBUTE_RETURN_CHECK.
13251         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13252         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13253         ATTRIBUTE_NORETURN.
13254         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13255         Reported by Paul Eggert.
13256
13257 2011-02-13  Bruno Haible  <bruno@clisp.org>
13258
13259         Don't interfere with a program's definition of __attribute__.
13260         * lib/argp.h (__attribute__): Remove definition.
13261         (_GL_ATTRIBUTE_FORMAT): New macro.
13262         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13263         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13264         (_GL_ATTRIBUTE_FORMAT): New macro.
13265         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13266         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13267         GCC 3 or newer.
13268         * lib/error.h (__attribute__): Remove definition.
13269         (_GL_ATTRIBUTE_FORMAT): New macro.
13270         (error, error_at_line): Use it.
13271         * lib/hash.h (__attribute__): Remove definition.
13272         (ATTRIBUTE_WUR): Update definition. Define always.
13273         * lib/openat.h (__attribute__): Remove definition.
13274         (ATTRIBUTE_NORETURN): Update definition. Define always.
13275         * lib/sigpipe-die.h (__attribute__): Remove definition.
13276         (ATTRIBUTE_NORETURN): Update definition. Define always.
13277         * lib/vasnprintf.h (__attribute__): Remove definition.
13278         (_GL_ATTRIBUTE_FORMAT): New macro.
13279         (asnprintf, vasnprintf): Use it.
13280         * lib/xalloc.h (__attribute__): Remove definition.
13281         (ATTRIBUTE_NORETURN): Update definition. Define always.
13282         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13283         * lib/xmemdup0.h (__attribute__): Remove definition.
13284         (ATTRIBUTE_NORETURN): Update definition. Define always.
13285         * lib/xprintf.h (__attribute__): Remove definition.
13286         (_GL_ATTRIBUTE_FORMAT): New macro.
13287         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13288         * lib/xstrtol.h (__attribute__): Remove definition.
13289         (ATTRIBUTE_NORETURN): Update definition. Define always.
13290         * lib/xvasprintf.h (__attribute__): Remove definition.
13291         (_GL_ATTRIBUTE_FORMAT): New macro.
13292         (xasprintf, xvasprintf): Use it.
13293         * tests/test-argmatch.c (__attribute__): Remove definition.
13294         (ATTRIBUTE_NORETURN): Update definition. Define always.
13295         * tests/test-exclude.c (__attribute__): Remove definition.
13296         (ATTRIBUTE_NORETURN): Update definition. Define always.
13297         Reported by Paul Eggert.
13298
13299 2011-02-13  Bruno Haible  <bruno@clisp.org>
13300
13301         mbrtowc: Add more tests for native Windows platforms.
13302         * tests/test-mbrtowc-w32-1.sh: New file.
13303         * tests/test-mbrtowc-w32-2.sh: New file.
13304         * tests/test-mbrtowc-w32-3.sh: New file.
13305         * tests/test-mbrtowc-w32-4.sh: New file.
13306         * tests/test-mbrtowc-w32-5.sh: New file.
13307         * tests/test-mbrtowc-w32.c: New file.
13308         * modules/mbrtowc-tests (Files): Add them.
13309         (Makefile.am): Arrange to run these tests.
13310         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13311         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13312
13313 2011-02-13  Bruno Haible  <bruno@clisp.org>
13314
13315         mbrtowc: Work around native Windows bug.
13316         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13317         guess when no suitable locale for testing was found.
13318         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13319
13320 2011-02-13  Bruno Haible  <bruno@clisp.org>
13321
13322         mbsinit: Work around mingw bug.
13323         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13324         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13325         Windows.
13326         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13327
13328 2011-02-13  Bruno Haible  <bruno@clisp.org>
13329
13330         mbsinit: Don't crash for a NULL argument.
13331         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13332         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13333
13334 2011-02-13  Bruno Haible  <bruno@clisp.org>
13335
13336         Don't interfere with a program's definition of __attribute__.
13337         * lib/stdio.in.h (__attribute__): Remove definition.
13338         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13339         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13340         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13341         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13342         * lib/string.in.h (__attribute__): Remove definition.
13343         Reported by Paul Eggert.
13344
13345 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13346
13347         stdlib: don't get in the way of non-GCC __attribute__
13348         See thread starting at
13349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13350         Revert previous stdlib change, installing the following instead:
13351         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13352         to get in the way of a non-GCC compiler that supports __attribute__.
13353         (_GL_ATTRIBUTE_RETURN): New macro.
13354         (_Exit): Use it instead of __attribute__.
13355
13356 2011-02-12  Bruno Haible  <bruno@clisp.org>
13357
13358         quotearg test: Avoid test failure on mingw.
13359         * tests/test-quotearg.sh: Convert the locale identifier from native
13360         Windows syntax to Unix syntax.
13361
13362 2011-02-12  Bruno Haible  <bruno@clisp.org>
13363
13364         setlocale: Prefer gnulib's override over libintl's override.
13365         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13366         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13367         GNULIB_defined_setlocale is set.
13368
13369 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13370
13371         stdlib: support non-GCC __attribute__
13372
13373         Fix a serious and tricky problem encountered when attempting to
13374         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13375         5.5, but it crashed due to memory corruption on Solaris 10 with
13376         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13377         bits that are otherwise zero.  This tagging is optional inside
13378         Emacs but is preferred and is used when __attribute__ ((__aligned
13379         (8))) works, as it does with both recent-enough GCC and with Sun C
13380         5.11.  However, Sun C 5.11 is not GCC and does not #define
13381         __GNUC__ and __GNUC_MINOR__.
13382
13383         When I added the getloadavg module to Emacs, it brought in
13384         stdlib.in.h, which contained this fragment:
13385
13386            #ifndef __attribute__
13387            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13388            #  define __attribute__(Spec)   /* empty */
13389            # endif
13390            #endif
13391
13392         When files that include <stdlib.h> were compiled with Sun C 5.11,
13393         the above code disabled __attribute__ ((__aligned (8))), which
13394         caused variables to not be properly aligned, which eventually led
13395         to the pointer corruption mentioned above.  (This was a bit hard
13396         to diagnose, unfortunately.)
13397
13398         Several "#define __attribute__(X) /* empty */" code snippets need
13399         to be eradicated from Gnulib to work with non-GCC compilers that
13400         support __attribute__.  The Autoconf way to do this is to test for
13401         each kind of attribute that we want support for, and selectively
13402         enable that in source code.
13403
13404         Fix this problem just for stdlib.h, by adding a test for the
13405         __noreturn__ attribute, and change stdlib.in.h to use that test
13406         when needed.  This technique can be easily generalized to the
13407         other *.in.h files and attributes, and a similar technique can be
13408         used for *.h and *.c files.  This patch is enough to solve the
13409         problem for Emacs + getloadavg, and I thought I'd publish it for
13410         feedback before undertaking further, similar fixes in other
13411         modules.
13412
13413         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13414         because it's not needed for stdlib.h.  It merely substitutes the
13415         value directly into stdlib.h.  We may well need to #define it, or
13416         similar symbols, for other modules, but it's nice to also have an
13417         option to not #define it for applications like Emacs that do not
13418         need it.
13419
13420         * lib/stdlib.in.h (__attribute__): Do not #define.
13421         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13422         be defined only if the _Exit module is also used.
13423         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13425         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13426         platforms.
13427         * modules/_Exit (Files): Add m4/attribute.m4.
13428         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13429         * m4/attribute.m4: New file.
13430
13431 2011-02-12  Bruno Haible  <bruno@clisp.org>
13432
13433         wcsrtombs: Work around bug on native Windows.
13434         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13435         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13436         instead of len.
13437         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13438
13439 2011-02-12  Bruno Haible  <bruno@clisp.org>
13440
13441         mbsrtowcs: Work around bug on native Windows.
13442         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13443         against mingw bug.
13444         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13445
13446 2011-02-12  Bruno Haible  <bruno@clisp.org>
13447
13448         Avoid setlocale bugs in tests.
13449         * modules/btowc (Dependencies): Add setlocale.
13450         * modules/c-strcase (Dependencies): Likewise.
13451         * modules/mbmemcasecmp (Dependencies): Likewise.
13452         * modules/mbmemcasecoll (Dependencies): Likewise.
13453         * modules/mbrtowc (Dependencies): Likewise.
13454         * modules/mbscasecmp (Dependencies): Likewise.
13455         * modules/mbscasestr (Dependencies): Likewise.
13456         * modules/mbschr (Dependencies): Likewise.
13457         * modules/mbscspn (Dependencies): Likewise.
13458         * modules/mbsinit (Dependencies): Likewise.
13459         * modules/mbsncasecmp (Dependencies): Likewise.
13460         * modules/mbsnrtowcs (Dependencies): Likewise.
13461         * modules/mbspbrk (Dependencies): Likewise.
13462         * modules/mbspcasecmp (Dependencies): Likewise.
13463         * modules/mbsrchr (Dependencies): Likewise.
13464         * modules/mbsrtowcs (Dependencies): Likewise.
13465         * modules/mbsspn (Dependencies): Likewise.
13466         * modules/mbsstr (Dependencies): Likewise.
13467         * modules/nl_langinfo (Dependencies): Likewise.
13468         * modules/quotearg (Dependencies): Likewise.
13469         * modules/unicase/locale-language (Dependencies): Likewise.
13470         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13471         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13472         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13473         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13474         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13475         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13476         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13477         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13478         * modules/vasnprintf-posix (Dependencies): Likewise.
13479         * modules/wcrtomb (Dependencies): Likewise.
13480         * modules/wcsnrtombs (Dependencies): Likewise.
13481         * modules/wcsrtombs (Dependencies): Likewise.
13482
13483 2011-02-12  Bruno Haible  <bruno@clisp.org>
13484
13485         setlocale: Workaround native Windows bug.
13486         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13487         succeeds but sets LC_CTYPE to "C", report a failure.
13488         * tests/test-setlocale2.sh: New file.
13489         * tests/test-setlocale2.c: New file.
13490         * modules/setlocale-tests (Files): Add the new files.
13491         (Makefile.am): Enable test-setlocale2.sh test.
13492         * doc/posix-functions/setlocale.texi: Mention workaround.
13493
13494 2011-02-11  Bruno Haible  <bruno@clisp.org>
13495
13496         Tests for module 'setlocale'.
13497         * modules/setlocale-tests: New file.
13498         * tests/test-setlocale1.sh: New file.
13499         * tests/test-setlocale1.c: New file.
13500
13501         New module 'setlocale'.
13502         * lib/locale.in.h (setlocale): New declaration.
13503         * lib/setlocale.c: New file, based on
13504         gettext/gettext-runtime/intl/setlocale.c.
13505         * m4/setlocale.m4: New file.
13506         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13507         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13508         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13509         REPLACE_SETLOCALE.
13510         * modules/setlocale: New file.
13511         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13512         * doc/posix-functions/setlocale.texi: Mention the new module.
13513
13514 2011-02-11  Bruno Haible  <bruno@clisp.org>
13515
13516         Prepare for locale dependent tests on mingw.
13517         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13518         because it has the wrong locale encoding.
13519         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13520         French_France.1252 instead of "fr".
13521         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13522         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13523         because it has the wrong locale encoding.
13524         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13525         native Windows, try Turkish_Turkey.65001.
13526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13527         Chinese_China.54936.
13528
13529         Prepare for locale dependent tests on mingw.
13530         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13531         differently.
13532         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13533         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13534         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13535         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13536
13537 2011-02-11  Eric Blake  <eblake@redhat.com>
13538
13539         strptime: avoid compiler warnings
13540         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13541         compiler warnings about dead code.
13542         Reported by Daniel P. Berrange.
13543
13544 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13545
13546         doc: update users.txt
13547         * users.txt: Add rcs.
13548
13549 2011-02-10  John W. Eaton  <jwe@gnu.org>
13550
13551         doc: update users.txt
13552         * users.txt: Add octave.
13553
13554 2011-02-10  Jim Meyering  <meyering@redhat.com>
13555
13556         doc: update users.txt
13557         * users.txt: Add iwhd.
13558
13559 2011-02-09  Bruno Haible  <bruno@clisp.org>
13560
13561         gnulib-tool: Make copyright notice adjustment more robust.
13562         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13563         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13564         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13565         License".
13566         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13567
13568 2011-02-06  Bruno Haible  <bruno@clisp.org>
13569
13570         New module 'towctrans'.
13571         * modules/towctrans: New file.
13572         * lib/wctype.in.h (towctrans): New declaration.
13573         * lib/towctrans.c: New file.
13574         * lib/towctrans-impl.h: New file.
13575         * m4/towctrans.m4: New file.
13576         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13577         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13578         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13579         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13580         * doc/posix-functions/towctrans.texi: Mention the new module.
13581
13582 2011-02-06  Bruno Haible  <bruno@clisp.org>
13583
13584         New module 'wctrans'.
13585         * modules/wctrans: New file.
13586         * lib/wctype.in.h (wctrans): New declaration.
13587         * lib/wctrans.c: New file.
13588         * lib/wctrans-impl.h: New file.
13589         * m4/wctrans.m4: New file.
13590         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13591         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13592         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13593         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13594         * doc/posix-functions/wctrans.texi: Mention the new module.
13595
13596 2011-02-06  Bruno Haible  <bruno@clisp.org>
13597
13598         New module 'iswctype'.
13599         * modules/iswctype: New file.
13600         * lib/wctype.in.h (iswctype): New declaration.
13601         * lib/iswctype.c: New file.
13602         * lib/iswctype-impl.h: New file.
13603         * m4/iswctype.m4: New file.
13604         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13605         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13606         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13607         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13608         * doc/posix-functions/iswctype.texi: Mention the new module and the
13609         HP-UX 11.00 problem.
13610
13611 2011-02-06  Bruno Haible  <bruno@clisp.org>
13612
13613         New module 'wctype'.
13614         * modules/wctype: Change to represent the wctype() substitute.
13615         * lib/wctype.in.h (wctype): New declaration.
13616         * lib/wctype.c: New file.
13617         * lib/wctype-impl.h: New file.
13618         * m4/wctype.m4: New file.
13619         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13620         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13621         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13622         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13623         * doc/posix-functions/wctype.texi: Mention the new module and the
13624         HP-UX 11.00 problem.
13625
13626 2011-02-06  Bruno Haible  <bruno@clisp.org>
13627
13628         wctype-h: Ensure wctype_t and wctrans_t are defined.
13629         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13630         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13631         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13632         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13633         HAVE_WCTRANS_T.
13634         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13635
13636 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13637
13638         flock: fix license typo
13639
13640         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13641         omitted.
13642
13643 2011-02-08  Bruno Haible  <bruno@clisp.org>
13644
13645         Split large sed scripts, for HP-UX sed.
13646         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13647         to avoid HP-UX limit of 99 commands, in the near future.
13648         * modules/stdlib (Makefile.am): Likewise.
13649         * modules/unistd (Makefile.am): Likewise.
13650         * modules/wchar (Makefile.am): Likewise.
13651         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13652         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13654
13655 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13656             Bruno Haible  <bruno@clisp.org>
13657
13658         stdlib: improve random_r modularization
13659         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13660         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13661         you also need the random_r module to get this material right.
13662         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13663         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13664         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13665
13666 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13667
13668         stdlib: don't depend on stdint
13669         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13670         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13671         be independent of whether stdint.h is needed.
13672         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13673         here, instead of ...
13674         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13675         struct random_data should be using the random_r module, not just
13676         the stdlib module (which wouldn't make sense: what package needs
13677         just struct random_data without also needing random_r?).
13678         * modules/stdlib (Depends-on): Remove stdint.
13679
13680         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13681         See the thread rooted at
13682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13683         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13684         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13685         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13686         __VMS)); previously it was always included (via fcntl--.h).
13687         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13688         hand; this is good enough for load averages.  Also, do not use
13689         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13690         flags directly if available and don't bother otherwise.  (Packages
13691         that need the extra reliability should use the modules that define
13692         these flags on older platforms that lack them.)
13693         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13694         fcntl-safer.
13695
13696 2011-02-08  Jim Meyering  <meyering@redhat.com>
13697
13698         di-set.h, ino-map.h: add multiple-inclusion guard
13699         Technically, the guard is required only for ino-map.h, due to its
13700         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13701         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13702         * lib/ino-map.h: Likewise.
13703
13704 2011-02-06  Bruno Haible  <bruno@clisp.org>
13705
13706         iswblank: Ensure declaration on glibc systems.
13707         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13708         * modules/iswblank (Dependencies): Add 'extensions'.
13709         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13710
13711 2011-02-06  Bruno Haible  <bruno@clisp.org>
13712
13713         New module 'iswblank'.
13714         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13715         * modules/iswblank: New file.
13716         * modules/wctype-h (Files): Remove lib/iswblank.c.
13717         (Makefile.am): Substitute GNULIB_ISWBLANK.
13718         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13719         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13720         (gl_WCTYPE_H_DEFAULTS): New macro.
13721         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13722         * modules/iswblank-tests: New file.
13723         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13724         * tests/test-wctype-h.c (main): Remove iswblank tests.
13725         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13726         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13727         of 'wctype-h'.
13728         * NEWS: Mention the change.
13729         * modules/mbchar (Depends-on): Add iswblank.
13730
13731 2011-02-08  Bruno Haible  <bruno@clisp.org>
13732
13733         di-set tests: Refactor.
13734         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13735         unnecessary includes.
13736         (ASSERT): Remove macro.
13737         (main): Make C90 compliant by avoiding variable declaration after
13738         statement.
13739         * modules/di-set-tests (Files): Add tests/macros.h.
13740
13741 2011-02-08  Bruno Haible  <bruno@clisp.org>
13742
13743         ino-map tests: Refactor.
13744         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13745         unnecessary includes.
13746         (ASSERT): Remove macro.
13747         (main): Make C90 compliant by avoiding variable declaration after
13748         statement.
13749         * modules/ino-map-tests (Files): Add tests/macros.h.
13750
13751 2011-02-08  Jim Meyering  <meyering@redhat.com>
13752
13753         di-set: add "const" to a cast
13754         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13755         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13756
13757 2011-02-06  Bruno Haible  <bruno@clisp.org>
13758
13759         Rename module 'wctype' to 'wctype-h'.
13760         * modules/wctype-h: Renamed from modules/wctype.
13761         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13762         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13763         (Files, Depends-on, Makefile.am): Update.
13764         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13765         (Files, Makefile.am): Update.
13766         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13767         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13768         * doc/posix-headers/wctype.texi: Update.
13769         * doc/posix-functions/iswalnum.texi: Update.
13770         * doc/posix-functions/iswalpha.texi: Update.
13771         * doc/posix-functions/iswblank.texi: Update.
13772         * doc/posix-functions/iswcntrl.texi: Update.
13773         * doc/posix-functions/iswdigit.texi: Update.
13774         * doc/posix-functions/iswgraph.texi: Update.
13775         * doc/posix-functions/iswlower.texi: Update.
13776         * doc/posix-functions/iswprint.texi: Update.
13777         * doc/posix-functions/iswpunct.texi: Update.
13778         * doc/posix-functions/iswspace.texi: Update.
13779         * doc/posix-functions/iswupper.texi: Update.
13780         * doc/posix-functions/iswxdigit.texi: Update.
13781         * doc/posix-functions/towlower.texi: Update.
13782         * doc/posix-functions/towupper.texi: Update.
13783         * NEWS: Mention the change.
13784         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13785         * modules/mbchar (Dependencies): Likewise.
13786         * modules/mbswidth (Dependencies): Likewise.
13787         * modules/quotearg (Dependencies): Likewise.
13788         * modules/regex (Dependencies): Likewise.
13789         * modules/wcscasecmp (Dependencies): Likewise.
13790         * modules/wcsncasecmp (Dependencies): Likewise.
13791         * modules/wcwidth (Dependencies): Likewise.
13792
13793 2011-02-06  Bruno Haible  <bruno@clisp.org>
13794
13795         New module 'wcswidth'.
13796         * modules/wcswidth: New file.
13797         * lib/wchar.in.h (wcswidth): New declaration.
13798         * lib/wcswidth.c: New file.
13799         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13800         * m4/wcswidth.m4: New file.
13801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13803         REPLACE_WCSWIDTH.
13804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13805         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13806         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13807         * doc/posix-functions/wcswidth.texi: Mention the new module.
13808
13809 2011-02-06  Bruno Haible  <bruno@clisp.org>
13810
13811         New module 'wcstok'.
13812         * modules/wcstok: New file.
13813         * lib/wchar.in.h (wcstok): New declaration.
13814         * lib/wcstok.c: New file.
13815         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13816         * m4/wcstok.m4: New file.
13817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13820         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13821         * doc/posix-functions/wcstok.texi: Mention the new module.
13822
13823 2011-02-06  Bruno Haible  <bruno@clisp.org>
13824
13825         New module 'wcsstr'.
13826         * modules/wcsstr: New file.
13827         * lib/wchar.in.h (wcsstr): New declaration.
13828         * lib/wcsstr.c: New file.
13829         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13830         * m4/wcsstr.m4: New file.
13831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13833         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13834         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13835         * doc/posix-functions/wcsstr.texi: Mention the new module.
13836
13837 2011-02-06  Bruno Haible  <bruno@clisp.org>
13838
13839         New module 'wcspbrk'.
13840         * modules/wcspbrk: New file.
13841         * lib/wchar.in.h (wcspbrk): New declaration.
13842         * lib/wcspbrk.c: New file.
13843         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13844         * m4/wcspbrk.m4: New file.
13845         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13846         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13847         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13848         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13849         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13850
13851 2011-02-06  Bruno Haible  <bruno@clisp.org>
13852
13853         New module 'wcsspn'.
13854         * modules/wcsspn: New file.
13855         * lib/wchar.in.h (wcsspn): New declaration.
13856         * lib/wcsspn.c: New file.
13857         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13858         * m4/wcsspn.m4: New file.
13859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13862         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13863         * doc/posix-functions/wcsspn.texi: Mention the new module.
13864
13865 2011-02-06  Bruno Haible  <bruno@clisp.org>
13866
13867         New module 'wcscspn'.
13868         * modules/wcscspn: New file.
13869         * lib/wchar.in.h (wcscspn): New declaration.
13870         * lib/wcscspn.c: New file.
13871         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13872         * m4/wcscspn.m4: New file.
13873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13876         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13877         * doc/posix-functions/wcscspn.texi: Mention the new module.
13878
13879 2011-02-06  Bruno Haible  <bruno@clisp.org>
13880
13881         New module 'wcsrchr'.
13882         * modules/wcsrchr: New file.
13883         * lib/wchar.in.h (wcsrchr): New declaration.
13884         * lib/wcsrchr.c: New file.
13885         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13886         * m4/wcsrchr.m4: New file.
13887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13890         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13891         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13892
13893 2011-02-06  Bruno Haible  <bruno@clisp.org>
13894
13895         New module 'wcschr'.
13896         * modules/wcschr: New file.
13897         * lib/wchar.in.h (wcschr): New declaration.
13898         * lib/wcschr.c: New file.
13899         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13900         * m4/wcschr.m4: New file.
13901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13904         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13905         * doc/posix-functions/wcschr.texi: Mention the new module.
13906
13907 2011-02-06  Bruno Haible  <bruno@clisp.org>
13908
13909         New module 'wcsdup'.
13910         * modules/wcsdup: New file.
13911         * lib/wchar.in.h (wcsdup): New declaration.
13912         * lib/wcsdup.c: New file.
13913         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13914         * m4/wcsdup.m4: New file.
13915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13918         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13919         * doc/posix-functions/wcsdup.texi: Mention the new module.
13920
13921 2011-02-06  Bruno Haible  <bruno@clisp.org>
13922
13923         New module 'wcsxfrm'.
13924         * modules/wcsxfrm: New file.
13925         * lib/wchar.in.h (wcsxfrm): New declaration.
13926         * lib/wcsxfrm.c: New file.
13927         * lib/wcsxfrm-impl.h: New file.
13928         * m4/wcsxfrm.m4: New file.
13929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13932         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13933         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13934
13935 2011-02-06  Bruno Haible  <bruno@clisp.org>
13936
13937         New module 'wcscoll'.
13938         * modules/wcscoll: New file.
13939         * lib/wchar.in.h (wcscoll): New declaration.
13940         * lib/wcscoll.c: New file.
13941         * lib/wcscoll-impl.h: New file.
13942         * m4/wcscoll.m4: New file.
13943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13946         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13947         * doc/posix-functions/wcscoll.texi: Mention the new module.
13948
13949 2011-02-06  Bruno Haible  <bruno@clisp.org>
13950
13951         New module 'wcsncasecmp'.
13952         * modules/wcsncasecmp: New file.
13953         * lib/wchar.in.h (wcsncasecmp): New declaration.
13954         * lib/wcsncasecmp.c: New file.
13955         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13956         * m4/wcsncasecmp.m4: New file.
13957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13960         HAVE_WCSNCASECMP.
13961         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13962         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13963
13964 2011-02-06  Bruno Haible  <bruno@clisp.org>
13965
13966         New module 'wcscasecmp'.
13967         * modules/wcscasecmp: New file.
13968         * lib/wchar.in.h (wcscasecmp): New declaration.
13969         * lib/wcscasecmp.c: New file.
13970         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13971         * m4/wcscasecmp.m4: New file.
13972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13975         HAVE_WCSCASECMP.
13976         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13977         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13978
13979 2011-02-05  Bruno Haible  <bruno@clisp.org>
13980
13981         New module 'wcsncmp'.
13982         * modules/wcsncmp: New file.
13983         * lib/wchar.in.h (wcsncmp): New declaration.
13984         * lib/wcsncmp.c: New file.
13985         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13986         * m4/wcsncmp.m4: New file.
13987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13989         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13990         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13991         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13992
13993 2011-02-05  Bruno Haible  <bruno@clisp.org>
13994
13995         New module 'wcscmp'.
13996         * modules/wcscmp: New file.
13997         * lib/wchar.in.h (wcscmp): New declaration.
13998         * lib/wcscmp.c: New file.
13999         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14000         * m4/wcscmp.m4: New file.
14001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14004         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14005         * doc/posix-functions/wcscmp.texi: Mention the new module.
14006
14007 2011-02-05  Bruno Haible  <bruno@clisp.org>
14008
14009         New module 'wcsncat'.
14010         * modules/wcsncat: New file.
14011         * lib/wchar.in.h (wcsncat): New declaration.
14012         * lib/wcsncat.c: New file.
14013         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14014         * m4/wcsncat.m4: New file.
14015         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14016         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14018         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14019         * doc/posix-functions/wcsncat.texi: Mention the new module.
14020
14021 2011-02-05  Bruno Haible  <bruno@clisp.org>
14022
14023         New module 'wcscat'.
14024         * modules/wcscat: New file.
14025         * lib/wchar.in.h (wcscat): New declaration.
14026         * lib/wcscat.c: New file.
14027         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14028         * m4/wcscat.m4: New file.
14029         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14030         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14031         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14032         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14033         * doc/posix-functions/wcscat.texi: Mention the new module.
14034
14035 2011-02-05  Bruno Haible  <bruno@clisp.org>
14036
14037         New module 'wcpncpy'.
14038         * modules/wcpncpy: New file.
14039         * lib/wchar.in.h (wcpncpy): New declaration.
14040         * lib/wcpncpy.c: New file.
14041         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14042         * m4/wcpncpy.m4: New file.
14043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14045         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14046         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14047         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14048
14049 2011-02-05  Bruno Haible  <bruno@clisp.org>
14050
14051         New module 'wcsncpy'.
14052         * modules/wcsncpy: New file.
14053         * lib/wchar.in.h (wcsncpy): New declaration.
14054         * lib/wcsncpy.c: New file.
14055         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14056         * m4/wcsncpy.m4: New file.
14057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14060         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14061         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14062
14063 2011-02-05  Bruno Haible  <bruno@clisp.org>
14064
14065         New module 'wcpcpy'.
14066         * modules/wcpcpy: New file.
14067         * lib/wchar.in.h (wcpcpy): New declaration.
14068         * lib/wcpcpy.c: New file.
14069         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14070         * m4/wcpcpy.m4: New file.
14071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14073         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14074         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14075         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14076
14077 2011-02-05  Bruno Haible  <bruno@clisp.org>
14078
14079         New module 'wcscpy'.
14080         * modules/wcscpy: New file.
14081         * lib/wchar.in.h (wcscpy): New declaration.
14082         * lib/wcscpy.c: New file.
14083         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14084         * m4/wcscpy.m4: New file.
14085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14088         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14089         * doc/posix-functions/wcscpy.texi: Mention the new module.
14090
14091 2011-02-05  Bruno Haible  <bruno@clisp.org>
14092
14093         New module 'wcsnlen'.
14094         * modules/wcsnlen: New file.
14095         * lib/wchar.in.h (wcsnlen): New declaration.
14096         * lib/wcsnlen.c: New file.
14097         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14098         * m4/wcsnlen.m4: New file.
14099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14102         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14103         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14104
14105 2011-02-05  Bruno Haible  <bruno@clisp.org>
14106
14107         New module 'wcslen'.
14108         * modules/wcslen: New file.
14109         * lib/wchar.in.h (wcslen): New declaration.
14110         * lib/wcslen.c: New file.
14111         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14112         * m4/wcslen.m4: New file.
14113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14116         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14117         * doc/posix-functions/wcslen.texi: Mention the new module.
14118
14119 2011-02-05  Bruno Haible  <bruno@clisp.org>
14120
14121         New module 'wmemset'.
14122         * modules/wmemset: New file.
14123         * lib/wchar.in.h (wmemset): New declaration.
14124         * lib/wmemset.c: New file.
14125         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14126         * m4/wmemset.m4: New file.
14127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14129         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14130         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14131         * doc/posix-functions/wmemset.texi: Mention the new module.
14132
14133 2011-02-05  Bruno Haible  <bruno@clisp.org>
14134
14135         New module 'wmemmove'.
14136         * modules/wmemmove: New file.
14137         * lib/wchar.in.h (wmemmove): New declaration.
14138         * lib/wmemmove.c: New file.
14139         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14140         * m4/wmemmove.m4: New file.
14141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14143         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14144         HAVE_WMEMMOVE.
14145         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14146         * doc/posix-functions/wmemmove.texi: Mention the new module.
14147
14148 2011-02-05  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'wmemcpy'.
14151         * modules/wmemcpy: New file.
14152         * lib/wchar.in.h (wmemcpy): New declaration.
14153         * lib/wmemcpy.c: New file.
14154         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14155         * m4/wmemcpy.m4: New file.
14156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14158         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14159         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14160         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14161
14162 2011-02-05  Bruno Haible  <bruno@clisp.org>
14163
14164         New module 'wmemcmp'.
14165         * modules/wmemcmp: New file.
14166         * lib/wchar.in.h (wmemcmp): New declaration.
14167         * lib/wmemcmp.c: New file.
14168         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14169         * m4/wmemcmp.m4: New file.
14170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14172         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14173         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14174         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14175
14176 2011-02-07  Jim Meyering  <meyering@redhat.com>
14177
14178         di-set, ino-map: new modules, from coreutils
14179         * lib/di-set.c: New file.
14180         * lib/di-set.h: Likewise.
14181         * lib/ino-map.c: Likewise.
14182         * lib/ino-map.h: Likewise.
14183         * modules/di-set: Likewise.
14184         * modules/di-set-tests: Likewise.
14185         * modules/ino-map: Likewise.
14186         * modules/ino-map-tests: Likewise.
14187         * tests/test-di-set.c: Likewise.
14188         * tests/test-ino-map.c: Likewise.
14189
14190 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14191
14192         getloadavg: merge minor changes from Emacs
14193
14194         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14195         (getloadavg): Use memset, not bzero.
14196
14197         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14198         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14199         clash (bug#86).
14200
14201 2010-11-14  Bruno Haible  <bruno@clisp.org>
14202
14203         Allow multiple gnulib generated replacements to coexist.
14204         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14205         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14206         * lib/langinfo.in.h (nl_item): Likewise.
14207         * lib/math.in.h (_NaN, NAN): Likewise.
14208         * lib/netdb.in.h (struct addrinfo): Likewise.
14209         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14210         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14211         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14212         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14213         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14214         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14215         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14216         pthread_mutexattr_init, pthread_mutexattr_settype,
14217         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14218         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14219         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14220         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14221         * lib/sched.in.h (struct sched_param): Likewise.
14222         * lib/se-selinux.in.h (security_class_t, security_context_t,
14223         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14224         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14225         lsetfilecon, fsetfilecon, security_check_context,
14226         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14227         Likewise.
14228         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14229         Likewise.
14230         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14231         _gl_function_taking_int_returning_void_t, union sigval,
14232         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14233         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14234         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14235         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14236         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14237         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14238         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14239         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14240         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14241         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14242         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14243         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14244         socklen_t, rpl_fd_isset): Likewise.
14245         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14246         * lib/sys_time.in.h (struct timeval): Likewise.
14247         * lib/sys_times.in.h (struct tms): Likewise.
14248         * lib/sys_utsname.in.h (struct utsname):
14249         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14250         * lib/unistd.in.h (getpagesize): Likewise.
14251         * lib/wchar.in.h (mbstate_t): Likewise.
14252         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14253         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14254         towlower, towupper): Likewise.
14255         Reported by Sam Steingold <sds@gnu.org>.
14256
14257 2011-02-05  Eric Blake  <eblake@redhat.com>
14258
14259         unsetenv: work around Haiku issues
14260         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14261         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14262
14263 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14264
14265         libposix: avoid calling error() within libposix
14266         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14267         is defined.
14268
14269 2011-02-05  Eric Blake  <eblake@redhat.com>
14270
14271         strerror_r-posix: port to cygwin
14272         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14273         implementation.
14274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14275         * tests/test-strerror_r.c (main): Fix test.
14276         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14277         issue.
14278
14279 2011-02-05  Bruno Haible  <bruno@clisp.org>
14280
14281         New module 'wmemchr'.
14282         * modules/wmemchr: New file.
14283         * lib/wchar.in.h (wmemchr): New declaration.
14284         * lib/wmemchr.c: New file.
14285         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14286         * m4/wmemchr.m4: New file.
14287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14289         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14290         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14291         * doc/posix-functions/wmemchr.texi: Mention the new module.
14292
14293 2011-02-04  Eric Blake  <eblake@redhat.com>
14294
14295         fdopendir: detect FreeBSD bug
14296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14297         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14298
14299 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14300
14301         stdbool: do not define HAVE_STDBOOL_H
14302         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14303         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14304         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14305         imported from the latest Autoconf git.  It was motivated by Emacs,
14306         which uses gnulib but does not need HAVE_STDBOOL_H.
14307
14308 2011-02-04  Bruno Haible  <bruno@clisp.org>
14309
14310         wcsnrtombs: Prepare for new module wwcsnrtombs.
14311         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14312         * lib/wcsnrtombs.c: Include it.
14313         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14314
14315         wcsrtombs: Prepare for new module wwcsrtombs.
14316         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14317         * lib/wcsrtombs.c: Include it.
14318         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14319
14320         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14321         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14322         * lib/mbsnrtowcs.c: Include it.
14323         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14324
14325         mbsrtowcs: Prepare for new module mbsrtowwcs.
14326         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14327         * lib/mbsrtowcs.c: Include it.
14328         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14329
14330 2011-02-04  Bruno Haible  <bruno@clisp.org>
14331
14332         vasnprintf: Reduce use of malloc for small format strings.
14333         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14334         (arguments): Add room for the first 7 arguments.
14335         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14336         (char_directives, u8_directives, u16_directives, u32_directives): Add
14337         room for the first 7 directives.
14338         * lib/printf-parse.c: Include <string.h>.
14339         (PRINTF_PARSE): Change memory handling code so that it uses the first
14340         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14341         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14342         Reported by Pádraig Brady <P@draigbrady.com>.
14343
14344 2011-01-31  Eric Blake  <eblake@redhat.com>
14345
14346         dup2: work around Haiku bug
14347         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14348         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14349         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14350         * tests/test-dup2.c (main): Enhance test.
14351
14352 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14353
14354         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14355         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14356         declared by eglibc 2.11.2.
14357         * lib/stdio.in.h: Likewise.
14358
14359 2011-01-31  Eric Blake  <eblake@redhat.com>
14360
14361         ignore-value: add missing test dependency
14362         * tests/test-ignore-value.c: Revert previous change; stdio.h
14363         provides off_t.
14364         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14365
14366 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         mktime: clarify long_int width checking
14369         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14370         the top level, to make it clearer that the assumption about
14371         long_int width is being checked.  See
14372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14373
14374 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14375
14376         ignore-value: Fix self-test.
14377         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14378
14379 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14380
14381         TYPE_MAXIMUM: avoid theoretically undefined behavior
14382         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14383         negative number, which the C Standard says has undefined behavior.
14384         In practice this is not a problem, but might as well do it by the book.
14385         Reported by Rich Felker and Eric Blake; see
14386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14387         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14388         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14390         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14391         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14392         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14393
14394         mktime: #undef mktime before #defining it
14395         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14396
14397         mktime: systematically normalize tm_isdst comparisons
14398         * lib/mktime.c (isdst_differ): New function.
14399         (__mktime_internal): Use it systematically for all isdst comparisons.
14400         This completes the fix for libc BZ #6723, and removes the need for
14401         normalizing tm_isdst.  See
14402         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14403         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14404
14405         mktime: fix some integer overflow issues and sidestep the rest
14406
14407         This was prompted by a bug report by Benjamin Lindner for MinGW
14408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14409         His bug is due to signed integer overflow (0 - INT_MIN), and I
14410         I scanned through mktime.c looking for other integer overflow
14411         problems, fixing all the bugs I found.
14412
14413         Although the C Standard says the resulting code is still not safe
14414         in the presence of integer overflow, in practice it should be good
14415         enough for all real-world two's-complement implementations, except
14416         for debugging environments that deliberately trap on integer
14417         overflow (e.g., gcc -ftrapv).
14418
14419         * lib/mktime.c (WRAPV): New macro.
14420         (SHR): Also check that long_int and time_t shift right in the
14421         usual way, before using the fast-but-unportable method.
14422         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14423         used.  The code already assumed two's complement, so there's
14424         no need to test for alternatives.  All uses removed.
14425         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14426         the C standard.  Problem reported by Rich Felker in
14427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14428         (twos_complement_arithmetic): Also check long_int and time_t.
14429         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14430         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14431         (__mktime_internal): Avoid integer overflow with unary subtraction
14432         in two instances where -1 - X is an adequate replacement for -X,
14433         since the calculations are approximate.
14434
14435 2011-01-29  Eric Blake  <eblake@redhat.com>
14436
14437         mktime: avoid infinite loop
14438         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14439         type; behavior is still undefined but portable to all known targets.
14440         Reported by Rich Felker.
14441
14442 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14443
14444         rename, unlink, same-inode: Relicense.
14445         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14446         * modules/unlink (License): Likewise.
14447         * modules/same-inode (License): Likewise.
14448
14449 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         mktime: avoid problems on NetBSD 5 / i386
14452         * lib/mktime.c (long_int): New type.  This works around a problem
14453         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14454         but time_t is 64 bits, and where I expect the existing code is
14455         wrong in some cases.
14456         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14457         (ydhms_diff): Bring back the compile-time check for wide-enough
14458         year and yday.
14459
14460         mktime: fix misspelling in comment
14461         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14462         This merges all recent glibc changes of importance.
14463
14464 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14465
14466         move-if-change: cope with concurrent mv of identical file.
14467         * build-aux/move-if-change (CMPPROG): Accept environment
14468         variable as an override for `cmp'.
14469         (usage): Document CMPPROG.
14470         Adjust comparison to drop stdout.  Cope with failure of mv if
14471         the target file exists and is identical to the source, for
14472         parallel builds.
14473         Report from H.J. Lu against binutils in PR binutils/12283.
14474
14475 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14476
14477         * users.txt: Mention sharutils.
14478
14479 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14480
14481         * users.txt: Mention OATH Toolkit.
14482
14483 2011-01-27  Bruno Haible  <bruno@clisp.org>
14484
14485         Prepare for supporting FreeBSD 10.
14486         * build-aux/config.libpath: Remove handling of freebsd1*.
14487
14488 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14489
14490         Prepare for supporting FreeBSD 10.
14491         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14492         match FreeBSD 10.0.
14493
14494 2011-01-27  Bruno Haible  <bruno@clisp.org>
14495
14496         vma-iter, get-rusage-as: Add OpenBSD support.
14497         * modules/vma-iter (configure.ac): Test for mquery.
14498         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14499         * lib/vma-iter.c: Include <sys/mman.h>.
14500         (vma_iterate): Add an implementation based on mquery().
14501         * lib/resource-ext.h (get_rusage_as): Update comments.
14502         * lib/get-rusage-as.c: Likewise.
14503         * lib/get-rusage-data.c: Likewise.
14504
14505 2011-01-26  Karl Berry  <karl@gnu.org>
14506
14507         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14508         variables to make it easier to override the makeinfo program used.
14509
14510 2011-01-26  Eric Blake  <eblake@redhat.com>
14511
14512         fcntl: work around Haiku F_DUPFD bugs
14513         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14514         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14515         cloexec bit on duplication.
14516         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14517
14518 2011-01-26  Bruno Haible  <bruno@clisp.org>
14519
14520         Enable memory leak tests on AIX.
14521         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14522         * tests/test-fprintf-posix3.c (main): Likewise.
14523
14524 2011-01-26  Bruno Haible  <bruno@clisp.org>
14525
14526         Tests for module 'get-rusage-data'.
14527         * modules/get-rusage-data-tests: New file.
14528         * tests/test-get-rusage-data.c: New file.
14529
14530         New module 'get-rusage-data'.
14531         * lib/resource-ext.h (get_rusage_data): New declaration.
14532         * lib/get-rusage-data.c: New file.
14533         * modules/get-rusage-data: New file.
14534
14535 2011-01-25  Bruno Haible  <bruno@clisp.org>
14536
14537         get-rusage-as: Allow for easier testing.
14538         * lib/resource-ext.h (get_rusage_as): Add comment.
14539         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14540         (main): New function for interactive testing.
14541
14542 2011-01-25  Bruno Haible  <bruno@clisp.org>
14543
14544         vma-iter: Treat Haiku like BeOS.
14545         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14546         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14547
14548 2011-01-25  Eric Blake  <eblake@redhat.com>
14549
14550         c-stack: fix regression on cygwin when libsigsegv is present
14551         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14552
14553 2011-01-24  Bruno Haible  <bruno@clisp.org>
14554
14555         vma-iter: Avoid empty intervals.
14556         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14557         on an empty interval.
14558
14559 2011-01-24  Jim Meyering  <meyering@redhat.com>
14560
14561         u64: remove unnecessary #include
14562         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14563
14564 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14565
14566         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14567         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14568
14569 2011-01-23  Bruno Haible  <bruno@clisp.org>
14570
14571         New module 'vma-iter'.
14572         * lib/vma-iter.h: New file.
14573         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14574         * modules/vma-iter: New file.
14575         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14576         for get_rusage_as_via_iterator.
14577         (vma_iterate_callback): New function.
14578         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14579         * modules/get-rusage-as (Depends-on): Add vma-iter.
14580
14581 2011-01-23  Bruno Haible  <bruno@clisp.org>
14582
14583         uninorm: Tweak includes.
14584         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14585         Reported by Jim Meyering.
14586
14587 2011-01-23  Bruno Haible  <bruno@clisp.org>
14588
14589         get-rusage-as: Improve on NetBSD.
14590         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14591         /proc, like on FreeBSD.
14592
14593 2011-01-23  Jim Meyering  <meyering@redhat.com>
14594
14595         xreadlink.h: remove unnecessary #include
14596         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14597
14598         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14599         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14600
14601 2011-01-23  Bruno Haible  <bruno@clisp.org>
14602
14603         get-rusage-as: Fix bug.
14604         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14605         original limit when aborting the first loop.
14606
14607 2011-01-23  Bruno Haible  <bruno@clisp.org>
14608
14609         wctype: Ensure valid C syntax.
14610         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14611         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14612
14613 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14614
14615         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14617         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14618         as they are needed only for configure's test case.
14619         This removes two unnecessary symbols from config.h.
14620
14621         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14622         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14624         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14625         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14626         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14627         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14628         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14629         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14630         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14631         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14635         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14636         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14637         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14638         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14639
14640 2011-01-21  Eric Blake  <eblake@redhat.com>
14641
14642         maintainer-makefile: work with older git for submodule check
14643         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14644         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14645         Reported by Matthias Bolte.
14646
14647         bootstrap: minor portability fixes
14648         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14649         (usage): Omit leading capital and trailing . on help phrases, per
14650         GNU Coding Standards.
14651         (check_versions, top level): Prefix messages with script name.
14652
14653 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14654
14655         bootstrap: support --no-git option
14656         * build-aux/bootstrap: Add --no-git option, to be used when
14657         --gnulib-srcdir points to the exact desired checkout.
14658
14659 2011-01-21  Eric Blake  <eblake@redhat.com>
14660
14661         strerror_r-posix: work with glibc 2.13
14662         * lib/strerror_r.c (strerror_r): Fix return type.
14663
14664 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14665             Bruno Haible  <bruno@clisp.org>
14666
14667         uN_strstr: New unit tests.
14668         * modules/unistr/u8-strstr-tests: New file.
14669         * modules/unistr/u16-strstr-tests: New file.
14670         * modules/unistr/u32-strstr-tests: New file.
14671         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14672         * tests/unistr/test-u8-strstr.c: New file.
14673         * tests/unistr/test-u16-strstr.c: New file.
14674         * tests/unistr/test-u32-strstr.c: New file.
14675
14676 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14677             Bruno Haible  <bruno@clisp.org>
14678
14679         Make uN_strstr functions O(n) worst-case.
14680         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14681         16-bit and 32-bit unit cases, use the unibyte algorithm from
14682         lib/mbsstr.c.
14683         * lib/unistr/u8-strstr.c: Include <string.h>.
14684         (UNIT_IS_UINT8_T): New macro.
14685         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14686         (U_STRLEN, U_STRNLEN): New macros.
14687         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14688         (U_STRLEN, U_STRNLEN): New macros.
14689         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14690         (configure.ac): Update required libunistring version.
14691         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14692         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14693         malloca.
14694         (configure.ac): Update required libunistring version.
14695         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14696         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14697         malloca.
14698         (configure.ac): Update required libunistring version.
14699
14700 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14701             Bruno Haible  <bruno@clisp.org>
14702
14703         Prepare for faster uN_strstr functions.
14704         * lib/str-kmp.h: Support definable UNITs.
14705         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14706         needle_len argument.
14707         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14708         * lib/mbscasestr.c (mbscasestr): Likewise.
14709
14710 2011-01-21  Pádraig Brady <P@draigBrady.com>
14711
14712         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14713         * tests/test-malloca.c (main): Unset the environment variable
14714         to greatly speed up the test.
14715         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14716         * modules/malloca-tests: Depend on unsetenv.
14717
14718 2011-01-21  Pádraig Brady <P@draigBrady.com>
14719
14720         ignore-value: remove stdint dependency
14721         * lib/ignore-value.h: Remove <stdint.h>
14722         * modules/ignore-value: Remove stdint dependency.
14723
14724 2011-01-21  Jim Meyering  <meyering@redhat.com>
14725
14726         maint.mk: adjust variable name to be consistent with other gl_ vars
14727         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14728         to be lower case.
14729
14730 2011-01-20  Jim Meyering  <meyering@redhat.com>
14731
14732         maint.mk: make "check" depend on public-submodule-commit by default
14733         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14734
14735 2011-01-20  Bruno Haible  <bruno@clisp.org>
14736
14737         mbfile, mbiter: Complete change from 2008-12-21.
14738         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14739         * m4/mbiter.m4 (gl_MBITER): Likewise.
14740
14741 2011-01-20  Jim Meyering  <meyering@redhat.com>
14742
14743         init.sh: insert space between each function name and "()"
14744         * tests/init.sh: Make it a little easier to see that a function's
14745         name is "warn_", and not "warn" when looking at the first part of
14746         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14747
14748 2011-01-20  Jim Meyering  <meyering@redhat.com>
14749
14750         mountlist: clean up code formatting
14751         * lib/mountlist.c (read_file_system_list): Split a long line,
14752         correct bracing style, use NULL in place of "(struct statfs *)0",
14753         don't parenthesize return value, add spaces around "=" and after
14754         ";-in-for-stmt".
14755
14756 2011-01-14  Markus Duft <mduft@gentoo.org>
14757
14758         mountlist: add support for Interix
14759         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14760         Apply statvfs to all entries of /dev/fs.
14761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14762         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14763
14764 2011-01-20  Jim Meyering  <meyering@redhat.com>
14765
14766         maint.mk: improve the public-submodule-commit rule
14767         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14768         to suppress printing of its commands... unless V=1.
14769         Add git submodule's --quiet option to suppress printing of e.g.,
14770         "Entering gnulib" output.
14771         "cd" into $(srcdir) before running git submodule.
14772
14773 2011-01-20  Bruno Haible  <bruno@clisp.org>
14774
14775         include_next: Fix bug introduced on 2011-01-18.
14776         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14777         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14778         ac_cv_header_... variable if the second argument is not 'check'.
14779         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14780         gl_NEXT_HEADERS_INTERNAL.
14781
14782 2011-01-20  Bruno Haible  <bruno@clisp.org>
14783
14784         Allow the user to avoid the GNULIB_TEST_* macros.
14785         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14786         Suggested by Paul Eggert.
14787
14788 2011-01-14  Jim Meyering  <meyering@redhat.com>
14789
14790         bootstrap: avoid failure when there is no .gitmodules file
14791         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14792         has been assigned to, even when its value is the empty string.
14793         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14794         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14795         Reported by John W. Eaton <jwe@gnu.org>.
14796
14797 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14798
14799         assume <ctype.h>, ..., <time.h> exist
14800         For years gnulib has been assuming the existence of the headers
14801         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14802         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14803         them, since they don't appear to be needed.
14804         * README (Portability guidelines): Document this.
14805         * lib/flock.c: Assume <fcntl.h> exists.
14806         * lib/regex_internal.h: Assume <locale.h> exists.
14807         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14809         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14810         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14811         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14812         * m4/regex.m4 (gl_REGEX): Likewise.
14813         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14814         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14815         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14816         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14817         * tests/test-argp.c: Likewise.
14818         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14819
14820         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14821         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14822         AA_APPLE_UNIVERSAL_BUILD.  See
14823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14824         * NEWS: Document this.
14825
14826 2011-01-19  Eric Blake  <eblake@redhat.com>
14827
14828         c-stack: assume stack overflow if SA_SIGINFO unsupported
14829         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14830         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14831         sigaction will work.
14832         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14833         behavior match Linux.
14834         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14835
14836         stdbool-tests: accomodate Haiku
14837         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14838
14839         binary-io: fix O_TEXT on Haiku
14840         * modules/binary-io (Depends-on): Add fcntl-h.
14841         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14842         than blindly undefining O_TEXT.
14843         Reported by Scott McCreary.
14844
14845 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14846
14847         include_next: do not check for standard headers like stddef.h
14848
14849         I found this problem when modifying Emacs to use gnulib.
14850         I noticed that it added HAVE_STDDEF_H to config.h, even though
14851         gnulib always assumes <stddef.h> exists as per README and this
14852         symbol is unnecessary.
14853         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14854         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14855         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14856         faster for headers like stddef.h that are known to exist.
14857         (gl_CHECK_NEXT_HEADERS): Use it.
14858         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14859         rather than gl_CHECK_NEXT_HEADERS.
14860         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14861         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14862
14863 2011-01-18  Eric Blake  <eblake@redhat.com>
14864
14865         ansi-c++-opt: skip C++ dependency style if C++ is unused
14866         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14867         tests when we know C++ compilation is not desired.
14868         Reported by Scott McCreary.
14869
14870 2011-01-18  Bruno Haible  <bruno@clisp.org>
14871
14872         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14873         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14874         (main): Perform test also when getrlimit and setrlimit don't exist or
14875         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14876         limiting the address space size using setrlimit, compare the address
14877         space size before and after the the test.
14878         * tests/test-dprintf-posix2.c: Likewise.
14879         * tests/test-fprintf-posix3.sh: Update skip messages.
14880         * tests/test-dprintf-posix2.sh: Likewise.
14881         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14882         * modules/dprintf-posix-tests (Depends-on): Likewise.
14883         Reported by Bruce Korb <bkorb@gnu.org> and
14884         Gary V. Vaughan <gary@gnu.org>.
14885
14886 2011-01-18  Bruno Haible  <bruno@clisp.org>
14887
14888         get-rusage-as: Improvement for Cygwin.
14889         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14890         areas that are merely reserved.
14891
14892 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         strftime: remove dependencies on multibyte modules
14895
14896         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14897         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14898         only if __osf__ is defined, and I suspect OSF doesn't need these
14899         other modules.  If my guess is wrong, we'll need to come up with a
14900         variant of strftime that doesn't need the multibyte modules.
14901
14902         I discovered this problem when attempting modify Emacs to use the
14903         strftime module.  With the previous gnulib, this caused Emacs to
14904         need 31 new files, ranging from lib/config.charset to
14905         m4/wint_t.m4.  This was overkill and I expect would be offputting
14906         to the Emacs maintainers.  After this change, only 6 new files are
14907         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14908         stdbool.m4, and tm_gmtoff.m4.
14909
14910         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14911         Suggested by Bruno Haible in
14912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14914         and do not check for wchar.h.
14915         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14916         (Depends-on): Remove mbrlen, mbsinit, wchar.
14917
14918 2011-01-18  Bruno Haible  <bruno@clisp.org>
14919
14920         Tests for module 'get-rusage-as'.
14921         * modules/get-rusage-as-tests: New file.
14922         * tests/test-get-rusage-as.c: New file.
14923
14924         New module 'get-rusage-as'.
14925         * modules/get-rusage-as: New file.
14926         * lib/resource-ext.h: New file.
14927         * lib/get-rusage-as.c: New file.
14928
14929 2011-01-17  Eric Blake  <eblake@redhat.com>
14930
14931         sigaction: relax license from LGPLv3+ to LGPLv2+
14932         * modules/sigaction (License): Relax to LGPLv2+.
14933
14934 2011-01-14  Bruno Haible  <bruno@clisp.org>
14935
14936         filemode: Make function declarations usable in C++ mode.
14937         * lib/filemode.h: Enclose function declarations in extern "C" block.
14938         Reported by John W. Eaton <jwe@gnu.org>.
14939
14940 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14941
14942         save-cwd: no longer include "xgetcwd.h"
14943         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14944         This avoids a compilation failure in projects that use save-cwd
14945         without also using the xgetcwd module.
14946
14947 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14948
14949         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14950         This is so that a program like Emacs, which needs only dtoastr,
14951         does not have to bother with distributing and compiling ftoastr
14952         and ldtoastr.
14953         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14954         * modules/dtoastr, modules/ldtoastr: New files.
14955         * modules/ftoastr: Now works just for 'float'.
14956         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14957         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14958         dtoastr.c, ldtoastr.c.
14959
14960 2011-01-11  Jim Meyering  <meyering@redhat.com>
14961
14962         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14963         There is no need to work around the lack of the fchdir function,
14964         since gnulib can now provide a replacement when required.
14965         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14966         * modules/save-cwd (Depends-on): Add fchdir.
14967
14968 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14969
14970         openat, save-cwd: avoid xmalloc
14971
14972         This removes a direct (but undocumented) dependency of openat on
14973         xalloc, along with an indirect dependency via save-cwd.  It also
14974         removes a dependency of save-cwd on xgetcwd, and thereby
14975         indirectly on xalloc.  This change causes the openat substitute
14976         to fall back on save_cwd when memory is tight, and for save_cwd to
14977         fail instead of dying when memory is tight, but that's good enough.
14978         Problem and initial idea for fix reported by Bastien Roucaries in
14979         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14980
14981         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14982         xalloc.h (for xmalloc).
14983         (openat_proc_name): Use malloc, not xmalloc.
14984         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14985         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14986
14987         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14988         This avoids heap allocation for file names whose lengths are in
14989         the range 512..1023, with the upper bound increasing to at most
14990         4031 depending on the platform's PATH_MAX.  (We do not want
14991         pathmax.h here as it might supply a non-constant PATH_MAX.)
14992         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14993         Perhaps they should be moved to malloca.h?
14994         (OPENAT_BUFFER_SIZE): Use them.
14995
14996 2011-01-10  Bruno Haible  <bruno@clisp.org>
14997
14998         doc: Update users.txt.
14999         * users.txt: Add recutils.
15000
15001 2011-01-09  Karl Berry  <karl@gnu.org>
15002
15003         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15004
15005         * doc/configmake.texi: New file.
15006         * doc/gnulib.texi: Include it.
15007         * modules/configmake: Move documentation from here.
15008
15009 2011-01-09  Bruno Haible  <bruno@clisp.org>
15010
15011         Update to Unicode 6.0.0.
15012         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15013         (get_lbp): Update for Unicode 6.0.0.
15014         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15015         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15016         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15017         U+11001, U+11038..U+11046. Remove U+06DE.
15018         (uc_width): Fix bounds of planes.
15019         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15020         lib/uniwidth/width.c.
15021         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15022         trailing whitespace removed.
15023         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15024         without comments, but with the original copyright notice.
15025         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15026         * lib/unicase/ignorable.h: Likewise.
15027         * lib/unicase/tocasefold.h: Likewise.
15028         * lib/unicase/tolower.h: Likewise.
15029         * lib/unicase/totitle.h: Likewise.
15030         * lib/unicase/toupper.h: Likewise.
15031         * lib/unictype/bidi_of.h: Likewise.
15032         * lib/unictype/blocks.h: Likewise.
15033         * lib/unictype/categ_C.h: Likewise.
15034         * lib/unictype/categ_Cn.h: Likewise.
15035         * lib/unictype/categ_L.h: Likewise.
15036         * lib/unictype/categ_Ll.h: Likewise.
15037         * lib/unictype/categ_Lm.h: Likewise.
15038         * lib/unictype/categ_Lo.h: Likewise.
15039         * lib/unictype/categ_Lu.h: Likewise.
15040         * lib/unictype/categ_M.h: Likewise.
15041         * lib/unictype/categ_Mc.h: Likewise.
15042         * lib/unictype/categ_Me.h: Likewise.
15043         * lib/unictype/categ_Mn.h: Likewise.
15044         * lib/unictype/categ_N.h: Likewise.
15045         * lib/unictype/categ_Nd.h: Likewise.
15046         * lib/unictype/categ_No.h: Likewise.
15047         * lib/unictype/categ_P.h: Likewise.
15048         * lib/unictype/categ_Po.h: Likewise.
15049         * lib/unictype/categ_S.h: Likewise.
15050         * lib/unictype/categ_Sc.h: Likewise.
15051         * lib/unictype/categ_Sk.h: Likewise.
15052         * lib/unictype/categ_Sm.h: Likewise.
15053         * lib/unictype/categ_So.h: Likewise.
15054         * lib/unictype/categ_of.h: Likewise.
15055         * lib/unictype/combining.h: Likewise.
15056         * lib/unictype/ctype_alnum.h: Likewise.
15057         * lib/unictype/ctype_alpha.h: Likewise.
15058         * lib/unictype/ctype_graph.h: Likewise.
15059         * lib/unictype/ctype_lower.h: Likewise.
15060         * lib/unictype/ctype_print.h: Likewise.
15061         * lib/unictype/ctype_punct.h: Likewise.
15062         * lib/unictype/ctype_upper.h: Likewise.
15063         * lib/unictype/decdigit.h: Likewise.
15064         * lib/unictype/digit.h: Likewise.
15065         * lib/unictype/numeric.h: Likewise.
15066         * lib/unictype/pr_alphabetic.h: Likewise.
15067         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15068         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15069         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15070         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15071         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15072         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15073         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15074         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15075         * lib/unictype/pr_case_ignorable.h: Likewise.
15076         * lib/unictype/pr_cased.h: Likewise.
15077         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15078         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15079         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15080         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15081         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15082         * lib/unictype/pr_combining.h: Likewise.
15083         * lib/unictype/pr_composite.h: Likewise.
15084         * lib/unictype/pr_currency_symbol.h: Likewise.
15085         * lib/unictype/pr_decimal_digit.h: Likewise.
15086         * lib/unictype/pr_deprecated.h: Likewise.
15087         * lib/unictype/pr_format_control.h: Likewise.
15088         * lib/unictype/pr_grapheme_base.h: Likewise.
15089         * lib/unictype/pr_grapheme_extend.h: Likewise.
15090         * lib/unictype/pr_grapheme_link.h: Likewise.
15091         * lib/unictype/pr_id_continue.h: Likewise.
15092         * lib/unictype/pr_id_start.h: Likewise.
15093         * lib/unictype/pr_ideographic.h: Likewise.
15094         * lib/unictype/pr_lowercase.h: Likewise.
15095         * lib/unictype/pr_math.h: Likewise.
15096         * lib/unictype/pr_numeric.h: Likewise.
15097         * lib/unictype/pr_other_alphabetic.h: Likewise.
15098         * lib/unictype/pr_other_id_continue.h: Likewise.
15099         * lib/unictype/pr_other_math.h: Likewise.
15100         * lib/unictype/pr_punctuation.h: Likewise.
15101         * lib/unictype/pr_sentence_terminal.h: Likewise.
15102         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15103         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15104         * lib/unictype/pr_unified_ideograph.h: Likewise.
15105         * lib/unictype/pr_uppercase.h: Likewise.
15106         * lib/unictype/pr_xid_continue.h: Likewise.
15107         * lib/unictype/pr_xid_start.h: Likewise.
15108         * lib/unictype/scripts.h: Likewise.
15109         * lib/unictype/scripts_byname.gperf: Likewise.
15110         * lib/unictype/sy_java_ident.h: Likewise.
15111         * lib/unigbrk/gbrkprop.h: Likewise.
15112         * lib/unilbrk/lbrkprop1.h: Likewise.
15113         * lib/unilbrk/lbrkprop2.h: Likewise.
15114         * lib/uninorm/decomposition-table2.h: Likewise.
15115         * lib/uniwbrk/wbrkprop.h: Likewise.
15116         * tests/unicase/test-cased.c: Likewise.
15117         * tests/unicase/test-ignorable.c: Likewise.
15118         * tests/unicase/test-uc_tolower.c: Likewise.
15119         * tests/unicase/test-uc_totitle.c: Likewise.
15120         * tests/unicase/test-uc_toupper.c: Likewise.
15121         * tests/unictype/test-categ_C.c: Likewise.
15122         * tests/unictype/test-categ_Cn.c: Likewise.
15123         * tests/unictype/test-categ_L.c: Likewise.
15124         * tests/unictype/test-categ_Ll.c: Likewise.
15125         * tests/unictype/test-categ_Lm.c: Likewise.
15126         * tests/unictype/test-categ_Lo.c: Likewise.
15127         * tests/unictype/test-categ_Lu.c: Likewise.
15128         * tests/unictype/test-categ_M.c: Likewise.
15129         * tests/unictype/test-categ_Mc.c: Likewise.
15130         * tests/unictype/test-categ_Me.c: Likewise.
15131         * tests/unictype/test-categ_Mn.c: Likewise.
15132         * tests/unictype/test-categ_N.c: Likewise.
15133         * tests/unictype/test-categ_Nd.c: Likewise.
15134         * tests/unictype/test-categ_No.c: Likewise.
15135         * tests/unictype/test-categ_P.c: Likewise.
15136         * tests/unictype/test-categ_Po.c: Likewise.
15137         * tests/unictype/test-categ_S.c: Likewise.
15138         * tests/unictype/test-categ_Sc.c: Likewise.
15139         * tests/unictype/test-categ_Sk.c: Likewise.
15140         * tests/unictype/test-categ_Sm.c: Likewise.
15141         * tests/unictype/test-categ_So.c: Likewise.
15142         * tests/unictype/test-ctype_alnum.c: Likewise.
15143         * tests/unictype/test-ctype_alpha.c: Likewise.
15144         * tests/unictype/test-ctype_graph.c: Likewise.
15145         * tests/unictype/test-ctype_lower.c: Likewise.
15146         * tests/unictype/test-ctype_print.c: Likewise.
15147         * tests/unictype/test-ctype_punct.c: Likewise.
15148         * tests/unictype/test-ctype_upper.c: Likewise.
15149         * tests/unictype/test-decdigit.h: Likewise.
15150         * tests/unictype/test-digit.h: Likewise.
15151         * tests/unictype/test-numeric.h: Likewise.
15152         * tests/unictype/test-pr_alphabetic.c: Likewise.
15153         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15154         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15155         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15156         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15157         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15158         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15159         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15160         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15161         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15162         * tests/unictype/test-pr_cased.c: Likewise.
15163         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15164         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15165         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15166         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15167         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15168         * tests/unictype/test-pr_combining.c: Likewise.
15169         * tests/unictype/test-pr_composite.c: Likewise.
15170         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15171         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15172         * tests/unictype/test-pr_deprecated.c: Likewise.
15173         * tests/unictype/test-pr_format_control.c: Likewise.
15174         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15175         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15176         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15177         * tests/unictype/test-pr_id_continue.c: Likewise.
15178         * tests/unictype/test-pr_id_start.c: Likewise.
15179         * tests/unictype/test-pr_ideographic.c: Likewise.
15180         * tests/unictype/test-pr_lowercase.c: Likewise.
15181         * tests/unictype/test-pr_math.c: Likewise.
15182         * tests/unictype/test-pr_numeric.c: Likewise.
15183         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15184         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15185         * tests/unictype/test-pr_other_math.c: Likewise.
15186         * tests/unictype/test-pr_punctuation.c: Likewise.
15187         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15188         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15189         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15190         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15191         * tests/unictype/test-pr_uppercase.c: Likewise.
15192         * tests/unictype/test-pr_xid_continue.c: Likewise.
15193         * tests/unictype/test-pr_xid_start.c: Likewise.
15194         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15195         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15196         changes.
15197         * lib/unictype/categ_Cc.h: Likewise.
15198         * lib/unictype/categ_Cf.h: Likewise.
15199         * lib/unictype/categ_Co.h: Likewise.
15200         * lib/unictype/categ_Cs.h: Likewise.
15201         * lib/unictype/categ_Lt.h: Likewise.
15202         * lib/unictype/categ_Nl.h: Likewise.
15203         * lib/unictype/categ_Pc.h: Likewise.
15204         * lib/unictype/categ_Pd.h: Likewise.
15205         * lib/unictype/categ_Pe.h: Likewise.
15206         * lib/unictype/categ_Pf.h: Likewise.
15207         * lib/unictype/categ_Pi.h: Likewise.
15208         * lib/unictype/categ_Ps.h: Likewise.
15209         * lib/unictype/categ_Z.h: Likewise.
15210         * lib/unictype/categ_Zl.h: Likewise.
15211         * lib/unictype/categ_Zp.h: Likewise.
15212         * lib/unictype/categ_Zs.h: Likewise.
15213         * lib/unictype/ctype_blank.h: Likewise.
15214         * lib/unictype/ctype_cntrl.h: Likewise.
15215         * lib/unictype/ctype_digit.h: Likewise.
15216         * lib/unictype/ctype_space.h: Likewise.
15217         * lib/unictype/ctype_xdigit.h: Likewise.
15218         * lib/unictype/mirror.h: Likewise.
15219         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15220         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15221         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15222         * lib/unictype/pr_bidi_control.h: Likewise.
15223         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15224         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15225         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15226         * lib/unictype/pr_bidi_pdf.h: Likewise.
15227         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15228         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15229         * lib/unictype/pr_dash.h: Likewise.
15230         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15231         * lib/unictype/pr_diacritic.h: Likewise.
15232         * lib/unictype/pr_extender.h: Likewise.
15233         * lib/unictype/pr_hex_digit.h: Likewise.
15234         * lib/unictype/pr_hyphen.h: Likewise.
15235         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15236         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15237         * lib/unictype/pr_ignorable_control.h: Likewise.
15238         * lib/unictype/pr_iso_control.h: Likewise.
15239         * lib/unictype/pr_join_control.h: Likewise.
15240         * lib/unictype/pr_left_of_pair.h: Likewise.
15241         * lib/unictype/pr_line_separator.h: Likewise.
15242         * lib/unictype/pr_logical_order_exception.h: Likewise.
15243         * lib/unictype/pr_non_break.h: Likewise.
15244         * lib/unictype/pr_not_a_character.h: Likewise.
15245         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15246         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15247         * lib/unictype/pr_other_id_start.h: Likewise.
15248         * lib/unictype/pr_other_lowercase.h: Likewise.
15249         * lib/unictype/pr_other_uppercase.h: Likewise.
15250         * lib/unictype/pr_paired_punctuation.h: Likewise.
15251         * lib/unictype/pr_paragraph_separator.h: Likewise.
15252         * lib/unictype/pr_pattern_syntax.h: Likewise.
15253         * lib/unictype/pr_pattern_white_space.h: Likewise.
15254         * lib/unictype/pr_private_use.h: Likewise.
15255         * lib/unictype/pr_quotation_mark.h: Likewise.
15256         * lib/unictype/pr_radical.h: Likewise.
15257         * lib/unictype/pr_soft_dotted.h: Likewise.
15258         * lib/unictype/pr_space.h: Likewise.
15259         * lib/unictype/pr_titlecase.h: Likewise.
15260         * lib/unictype/pr_variation_selector.h: Likewise.
15261         * lib/unictype/pr_white_space.h: Likewise.
15262         * lib/unictype/pr_zero_width.h: Likewise.
15263         * lib/unictype/sy_c_ident.h: Likewise.
15264         * lib/unictype/sy_c_whitespace.h: Likewise.
15265         * lib/unictype/sy_java_whitespace.h: Likewise.
15266         * lib/uninorm/composition-table.gperf: Likewise.
15267         * lib/uninorm/decomposition-table1.h: Likewise.
15268         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15269         LB8.
15270         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15271         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15272         * modules/unictype/*: Bump version number of expected libunistring
15273         version.
15274
15275 2011-01-09  Bruno Haible  <bruno@clisp.org>
15276
15277         Update to Unicode 5.2.0.
15278         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15279         trailing whitespace removed.
15280
15281 2011-01-09  Bruno Haible  <bruno@clisp.org>
15282
15283         New Unicode character properties, from Unicode 5.2.0.
15284         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15285         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15286         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15287         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15288         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15289         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15290         uc_is_property_cased, uc_is_property_case_ignorable,
15291         uc_is_property_changes_when_lowercased,
15292         uc_is_property_changes_when_uppercased,
15293         uc_is_property_changes_when_titlecased,
15294         uc_is_property_changes_when_casefolded,
15295         uc_is_property_changes_when_casemapped): New declarations.
15296         * lib/unictype/pr_byname.gperf: Add the new properties.
15297         * modules/unictype/property-byname (Depends-on): Depend on the new
15298         properties modules.
15299         * modules/unictype/property-all (Depends-on): Likewise.
15300         * MODULES.html.sh (Unicode string functions): Add
15301         unictype/property-case-ignorable, unictype/property-cased,
15302         unictype/property-changes-when-casefolded,
15303         unictype/property-changes-when-casemapped,
15304         unictype/property-changes-when-lowercased,
15305         unictype/property-changes-when-titlecased,
15306         unictype/property-changes-when-uppercased.
15307
15308         New module 'unictype/property-changes-when-casemapped'.
15309         * modules/unictype/property-changes-when-casemapped: New file.
15310         * lib/unictype/pr_changes_when_casemapped.c: New file.
15311         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15312         generated by gen-uni-tables.
15313         * modules/unictype/property-changes-when-casemapped-tests: New file.
15314         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15315         automatically generated by gen-uni-tables.
15316
15317         New module 'unictype/property-changes-when-casefolded'.
15318         * modules/unictype/property-changes-when-casefolded: New file.
15319         * lib/unictype/pr_changes_when_casefolded.c: New file.
15320         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15321         generated by gen-uni-tables.
15322         * modules/unictype/property-changes-when-casefolded-tests: New file.
15323         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15324         automatically generated by gen-uni-tables.
15325
15326         New module 'unictype/property-changes-when-titlecased'.
15327         * modules/unictype/property-changes-when-titlecased: New file.
15328         * lib/unictype/pr_changes_when_titlecased.c: New file.
15329         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15330         generated by gen-uni-tables.
15331         * modules/unictype/property-changes-when-titlecased-tests: New file.
15332         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15333         automatically generated by gen-uni-tables.
15334
15335         New module 'unictype/property-changes-when-uppercased'.
15336         * modules/unictype/property-changes-when-uppercased: New file.
15337         * lib/unictype/pr_changes_when_uppercased.c: New file.
15338         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15339         generated by gen-uni-tables.
15340         * modules/unictype/property-changes-when-uppercased-tests: New file.
15341         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15342         automatically generated by gen-uni-tables.
15343
15344         New module 'unictype/property-changes-when-lowercased'.
15345         * modules/unictype/property-changes-when-lowercased: New file.
15346         * lib/unictype/pr_changes_when_lowercased.c: New file.
15347         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15348         generated by gen-uni-tables.
15349         * modules/unictype/property-changes-when-lowercased-tests: New file.
15350         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15351         automatically generated by gen-uni-tables.
15352
15353         New module 'unictype/property-case-ignorable'.
15354         * modules/unictype/property-case-ignorable: New file.
15355         * lib/unictype/pr_case_ignorable.c: New file.
15356         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15357         by gen-uni-tables.
15358         * modules/unictype/property-case-ignorable-tests: New file.
15359         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15360         generated by gen-uni-tables.
15361
15362         New module 'unictype/property-cased'.
15363         * modules/unictype/property-cased: New file.
15364         * lib/unictype/pr_cased.c: New file.
15365         * lib/unictype/pr_cased.h: New file, automatically generated by
15366         gen-uni-tables.
15367         * modules/unictype/property-cased-tests: New file.
15368         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15369         gen-uni-tables.
15370
15371 2011-01-09  Bruno Haible  <bruno@clisp.org>
15372
15373         Update to Unicode 5.2.0.
15374         * lib/gen-uni-tables.c (output_predicate, output_category,
15375         output_combclass, output_bidi_category, output_decimal_digit_test,
15376         output_decimal_digit, output_digit_test, output_digit,
15377         output_numeric_test, output_numeric, output_mirror, output_scripts,
15378         output_scripts_byname, output_blocks, output_ident_category): Fix
15379         comment header.
15380         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15381         get_wbp.
15382         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15383         items.
15384         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15385         Changes_When_Lowercased, Changes_When_Uppercased,
15386         Changes_When_Titlecased, Changes_When_Casefolded,
15387         Changes_When_Casemapped.
15388         (is_property_alphabetic, is_property_default_ignorable_code_point):
15389         Update for Unicode 5.2.0.
15390         (is_property_cased, is_property_case_ignorable,
15391         is_property_changes_when_lowercased,
15392         is_property_changes_when_uppercased,
15393         is_property_changes_when_titlecased,
15394         is_property_changes_when_casefolded,
15395         is_property_changes_when_casemapped): New functions.
15396         (output_properties): Output also the properties cased, case_ignorable,
15397         changes_when_lowercased, changes_when_uppercased,
15398         changes_when_titlecased, changes_when_casefolded,
15399         changes_when_casemapped.
15400         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15401         Unicode TR#11 revision 17 -> 19.
15402         (LBP_CP): New enumeration value.
15403         (LBP_*): Adjust values accordingly.
15404         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15405         TR#14 revision 22 -> 24.
15406         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15407         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15408         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15409         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15410         is_WBP_MIDLETTER.
15411         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15412         the code1 and code2 of each composition rule.
15413         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15414         * lib/unicase/ignorable.h: Likewise.
15415         * lib/unicase/tocasefold.h: Likewise.
15416         * lib/unicase/tolower.h: Likewise.
15417         * lib/unicase/totitle.h: Likewise.
15418         * lib/unicase/toupper.h: Likewise.
15419         * lib/unictype/bidi_of.h: Likewise.
15420         * lib/unictype/blocks.h: Likewise.
15421         * lib/unictype/categ_C.h: Likewise.
15422         * lib/unictype/categ_Cf.h: Likewise.
15423         * lib/unictype/categ_Cn.h: Likewise.
15424         * lib/unictype/categ_L.h: Likewise.
15425         * lib/unictype/categ_Ll.h: Likewise.
15426         * lib/unictype/categ_Lm.h: Likewise.
15427         * lib/unictype/categ_Lo.h: Likewise.
15428         * lib/unictype/categ_Lu.h: Likewise.
15429         * lib/unictype/categ_M.h: Likewise.
15430         * lib/unictype/categ_Mc.h: Likewise.
15431         * lib/unictype/categ_Mn.h: Likewise.
15432         * lib/unictype/categ_N.h: Likewise.
15433         * lib/unictype/categ_Nd.h: Likewise.
15434         * lib/unictype/categ_Nl.h: Likewise.
15435         * lib/unictype/categ_No.h: Likewise.
15436         * lib/unictype/categ_P.h: Likewise.
15437         * lib/unictype/categ_Pd.h: Likewise.
15438         * lib/unictype/categ_Po.h: Likewise.
15439         * lib/unictype/categ_S.h: Likewise.
15440         * lib/unictype/categ_Sc.h: Likewise.
15441         * lib/unictype/categ_So.h: Likewise.
15442         * lib/unictype/categ_of.h: Likewise.
15443         * lib/unictype/combining.h: Likewise.
15444         * lib/unictype/ctype_alnum.h: Likewise.
15445         * lib/unictype/ctype_alpha.h: Likewise.
15446         * lib/unictype/ctype_graph.h: Likewise.
15447         * lib/unictype/ctype_lower.h: Likewise.
15448         * lib/unictype/ctype_print.h: Likewise.
15449         * lib/unictype/ctype_punct.h: Likewise.
15450         * lib/unictype/ctype_upper.h: Likewise.
15451         * lib/unictype/decdigit.h: Likewise.
15452         * lib/unictype/digit.h: Likewise.
15453         * lib/unictype/numeric.h: Likewise.
15454         * lib/unictype/pr_alphabetic.h: Likewise.
15455         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15456         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15457         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15458         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15459         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15460         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15461         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15462         * lib/unictype/pr_combining.h: Likewise.
15463         * lib/unictype/pr_composite.h: Likewise.
15464         * lib/unictype/pr_currency_symbol.h: Likewise.
15465         * lib/unictype/pr_dash.h: Likewise.
15466         * lib/unictype/pr_decimal_digit.h: Likewise.
15467         * lib/unictype/pr_deprecated.h: Likewise.
15468         * lib/unictype/pr_diacritic.h: Likewise.
15469         * lib/unictype/pr_extender.h: Likewise.
15470         * lib/unictype/pr_grapheme_base.h: Likewise.
15471         * lib/unictype/pr_grapheme_extend.h: Likewise.
15472         * lib/unictype/pr_grapheme_link.h: Likewise.
15473         * lib/unictype/pr_id_continue.h: Likewise.
15474         * lib/unictype/pr_id_start.h: Likewise.
15475         * lib/unictype/pr_ideographic.h: Likewise.
15476         * lib/unictype/pr_ignorable_control.h: Likewise.
15477         * lib/unictype/pr_logical_order_exception.h: Likewise.
15478         * lib/unictype/pr_lowercase.h: Likewise.
15479         * lib/unictype/pr_numeric.h: Likewise.
15480         * lib/unictype/pr_other_alphabetic.h: Likewise.
15481         * lib/unictype/pr_punctuation.h: Likewise.
15482         * lib/unictype/pr_sentence_terminal.h: Likewise.
15483         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15484         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15485         * lib/unictype/pr_unified_ideograph.h: Likewise.
15486         * lib/unictype/pr_uppercase.h: Likewise.
15487         * lib/unictype/pr_xid_continue.h: Likewise.
15488         * lib/unictype/pr_xid_start.h: Likewise.
15489         * lib/unictype/pr_zero_width.h: Likewise.
15490         * lib/unictype/scripts.h: Likewise.
15491         * lib/unictype/scripts_byname.gperf: Likewise.
15492         * lib/unictype/sy_java_ident.h: Likewise.
15493         * lib/unigbrk/gbrkprop.h: Likewise.
15494         * lib/unilbrk/lbrkprop1.h: Likewise.
15495         * lib/unilbrk/lbrkprop2.h: Likewise.
15496         * lib/unilbrk/lbrktables.h: Likewise.
15497         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15498         LBP_CP. Implement rule LB30.
15499         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15500         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15501         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15502         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15503         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15504         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15505         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15506         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15507         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15508         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15509         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15510         bits instead of 16 bits in the code1 and code2 of each composition
15511         rule.
15512         (uc_composition): Update for Unicode 5.2.0.
15513         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15514         * lib/uninorm/decomposition-table2.h: Likewise.
15515         * lib/uniwbrk/wbrkprop.h: Likewise.
15516         * tests/unicase/test-cased.c: Likewise.
15517         * tests/unicase/test-ignorable.c: Likewise.
15518         * tests/unicase/test-uc_tolower.c: Likewise.
15519         * tests/unicase/test-uc_totitle.c: Likewise.
15520         * tests/unicase/test-uc_toupper.c: Likewise.
15521         * tests/unictype/test-categ_C.c: Likewise.
15522         * tests/unictype/test-categ_Cf.c: Likewise.
15523         * tests/unictype/test-categ_Cn.c: Likewise.
15524         * tests/unictype/test-categ_L.c: Likewise.
15525         * tests/unictype/test-categ_Ll.c: Likewise.
15526         * tests/unictype/test-categ_Lm.c: Likewise.
15527         * tests/unictype/test-categ_Lo.c: Likewise.
15528         * tests/unictype/test-categ_Lu.c: Likewise.
15529         * tests/unictype/test-categ_M.c: Likewise.
15530         * tests/unictype/test-categ_Mc.c: Likewise.
15531         * tests/unictype/test-categ_Mn.c: Likewise.
15532         * tests/unictype/test-categ_N.c: Likewise.
15533         * tests/unictype/test-categ_Nd.c: Likewise.
15534         * tests/unictype/test-categ_Nl.c: Likewise.
15535         * tests/unictype/test-categ_No.c: Likewise.
15536         * tests/unictype/test-categ_P.c: Likewise.
15537         * tests/unictype/test-categ_Pd.c: Likewise.
15538         * tests/unictype/test-categ_Po.c: Likewise.
15539         * tests/unictype/test-categ_S.c: Likewise.
15540         * tests/unictype/test-categ_Sc.c: Likewise.
15541         * tests/unictype/test-categ_So.c: Likewise.
15542         * tests/unictype/test-ctype_alnum.c: Likewise.
15543         * tests/unictype/test-ctype_alpha.c: Likewise.
15544         * tests/unictype/test-ctype_graph.c: Likewise.
15545         * tests/unictype/test-ctype_lower.c: Likewise.
15546         * tests/unictype/test-ctype_print.c: Likewise.
15547         * tests/unictype/test-ctype_punct.c: Likewise.
15548         * tests/unictype/test-ctype_upper.c: Likewise.
15549         * tests/unictype/test-decdigit.h: Likewise.
15550         * tests/unictype/test-digit.h: Likewise.
15551         * tests/unictype/test-numeric.h: Likewise.
15552         * tests/unictype/test-pr_alphabetic.c: Likewise.
15553         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15554         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15555         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15556         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15557         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15558         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15559         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15560         * tests/unictype/test-pr_combining.c: Likewise.
15561         * tests/unictype/test-pr_composite.c: Likewise.
15562         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15563         * tests/unictype/test-pr_dash.c: Likewise.
15564         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15565         * tests/unictype/test-pr_deprecated.c: Likewise.
15566         * tests/unictype/test-pr_diacritic.c: Likewise.
15567         * tests/unictype/test-pr_extender.c: Likewise.
15568         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15569         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15570         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15571         * tests/unictype/test-pr_id_continue.c: Likewise.
15572         * tests/unictype/test-pr_id_start.c: Likewise.
15573         * tests/unictype/test-pr_ideographic.c: Likewise.
15574         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15575         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15576         * tests/unictype/test-pr_lowercase.c: Likewise.
15577         * tests/unictype/test-pr_numeric.c: Likewise.
15578         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15579         * tests/unictype/test-pr_punctuation.c: Likewise.
15580         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15581         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15582         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15583         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15584         * tests/unictype/test-pr_uppercase.c: Likewise.
15585         * tests/unictype/test-pr_xid_continue.c: Likewise.
15586         * tests/unictype/test-pr_xid_start.c: Likewise.
15587         * tests/unictype/test-pr_zero_width.c: Likewise.
15588         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15589         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15590         changed behaviour: line breaking is now disallowed between a letter
15591         or '=' and '('.
15592         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15593         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15594         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15595         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15596         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15597         lib/uniwidth/width.c.
15598         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15599         without comments, but with the original copyright notice.
15600         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15601         changes.
15602         * lib/unictype/categ_Cc.h: Likewise.
15603         * lib/unictype/categ_Co.h: Likewise.
15604         * lib/unictype/categ_Cs.h: Likewise.
15605         * lib/unictype/categ_Lt.h: Likewise.
15606         * lib/unictype/categ_Me.h: Likewise.
15607         * lib/unictype/categ_Pc.h: Likewise.
15608         * lib/unictype/categ_Pe.h: Likewise.
15609         * lib/unictype/categ_Pf.h: Likewise.
15610         * lib/unictype/categ_Pi.h: Likewise.
15611         * lib/unictype/categ_Ps.h: Likewise.
15612         * lib/unictype/categ_Sk.h: Likewise.
15613         * lib/unictype/categ_Sm.h: Likewise.
15614         * lib/unictype/categ_Z.h: Likewise.
15615         * lib/unictype/categ_Zl.h: Likewise.
15616         * lib/unictype/categ_Zp.h: Likewise.
15617         * lib/unictype/categ_Zs.h: Likewise.
15618         * lib/unictype/ctype_blank.h: Likewise.
15619         * lib/unictype/ctype_cntrl.h: Likewise.
15620         * lib/unictype/ctype_digit.h: Likewise.
15621         * lib/unictype/ctype_space.h: Likewise.
15622         * lib/unictype/ctype_xdigit.h: Likewise.
15623         * lib/unictype/mirror.h: Likewise.
15624         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15625         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15626         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15627         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15628         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15629         * lib/unictype/pr_bidi_control.h: Likewise.
15630         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15631         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15632         * lib/unictype/pr_bidi_pdf.h: Likewise.
15633         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15634         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15635         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15636         * lib/unictype/pr_format_control.h: Likewise.
15637         * lib/unictype/pr_hex_digit.h: Likewise.
15638         * lib/unictype/pr_hyphen.h: Likewise.
15639         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15640         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15641         * lib/unictype/pr_iso_control.h: Likewise.
15642         * lib/unictype/pr_join_control.h: Likewise.
15643         * lib/unictype/pr_left_of_pair.h: Likewise.
15644         * lib/unictype/pr_line_separator.h: Likewise.
15645         * lib/unictype/pr_math.h: Likewise.
15646         * lib/unictype/pr_non_break.h: Likewise.
15647         * lib/unictype/pr_not_a_character.h: Likewise.
15648         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15649         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15650         * lib/unictype/pr_other_id_continue.h: Likewise.
15651         * lib/unictype/pr_other_id_start.h: Likewise.
15652         * lib/unictype/pr_other_lowercase.h: Likewise.
15653         * lib/unictype/pr_other_math.h: Likewise.
15654         * lib/unictype/pr_other_uppercase.h: Likewise.
15655         * lib/unictype/pr_paired_punctuation.h: Likewise.
15656         * lib/unictype/pr_paragraph_separator.h: Likewise.
15657         * lib/unictype/pr_pattern_syntax.h: Likewise.
15658         * lib/unictype/pr_pattern_white_space.h: Likewise.
15659         * lib/unictype/pr_private_use.h: Likewise.
15660         * lib/unictype/pr_quotation_mark.h: Likewise.
15661         * lib/unictype/pr_radical.h: Likewise.
15662         * lib/unictype/pr_soft_dotted.h: Likewise.
15663         * lib/unictype/pr_space.h: Likewise.
15664         * lib/unictype/pr_titlecase.h: Likewise.
15665         * lib/unictype/pr_variation_selector.h: Likewise.
15666         * lib/unictype/pr_white_space.h: Likewise.
15667         * lib/unictype/sy_c_ident.h: Likewise.
15668         * lib/unictype/sy_c_whitespace.h: Likewise.
15669         * lib/unictype/sy_java_whitespace.h: Likewise.
15670         * modules/uni*/*: Bump version number of expected libunistring version.
15671         Reported by Simon Josefsson.
15672
15673 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15674
15675         useless-if-before-free: fix typo in --help and make the internal,
15676         automatic version date update process work once again.
15677         --help output contained a NUL character instead of the
15678         backslash-zero that was intended.  Also, the "must lie within
15679         the first 8 lines" line is on line 9, and hence not getting
15680         automatically updated.
15681         * build-aux/useless-if-before-free: Fix the former by adding a
15682         backslash, and the latter by condensing the three lines of what-it-does
15683         to a single line, leaving one line of slack for the future.
15684
15685 2011-01-09  Bruno Haible  <bruno@clisp.org>
15686
15687         uniwidth/width: Fix width of U+1D173..U+1D17A.
15688         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15689         symbolic_width, output_width_property_test): New functions.
15690         (main): Invoke output_nonspacing_property, output_width_property_test.
15691         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15692         U+1D173..U+1D17A.
15693         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15694         1.
15695         * modules/uniwidth/*: Bump version number of expected libunistring
15696         version.
15697         * modules/unilbrk/*: Likewise.
15698
15699 2011-01-08  Bruno Haible  <bruno@clisp.org>
15700
15701         uninorm tests: Preserve copyright of Unicode data file.
15702         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15703         Mention modifications.
15704
15705 2011-01-08  Bruno Haible  <bruno@clisp.org>
15706
15707         gen-uni-tables: Prepare for Unicode 5.2.0.
15708         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15709         (debug_output_lbp, output_lbp): Update.
15710
15711 2011-01-08  Bruno Haible  <bruno@clisp.org>
15712
15713         unilbrk: Clarify gen-uni-tables.c code.
15714         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15715         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15716         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15717
15718 2011-01-07  Bruno Haible  <bruno@clisp.org>
15719
15720         strtod: Restore errno when successfully parsing Infinity or NaN.
15721         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15722         restore the original errno.
15723
15724 2011-01-07  Bruno Haible  <bruno@clisp.org>
15725
15726         remove test: Avoid failure on HP-UX 11.
15727         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15728
15729 2011-01-07  Bruno Haible  <bruno@clisp.org>
15730
15731         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15732         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15733         error code.
15734
15735 2011-01-07  Pádraig Brady <P@draigBrady.com>
15736
15737         ignore-value: fixup comments, and add Eric Blake
15738         as an author since he rewrote the macros.
15739         * lib/ignore-value.h (ignore_value):  State that
15740         we now support aggregates.  Also specify exactly
15741         when the GCC warn_unused_result feature was added.
15742
15743 2011-01-06  Eric Blake  <eblake@redhat.com>
15744
15745         ignore-value: support aggregate types
15746         * lib/ignore-value.h (ignore_value): Provide separate gcc
15747         definition.
15748         * modules/ignore-value-tests: New test module.
15749         * tests/test-ignore-value.c: New test.
15750
15751         maint.mk: improve sc_prohibit_strcmp regex
15752         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15753         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15754         definition of STRNEQ.
15755
15756         signal: work around Haiku issue with SIGBUS
15757         * lib/siglist.h: Add comment.
15758         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15759         strsignal's favoring of SIGSEGV.
15760         * tests/test-signal.c (main): Avoid test failure.
15761         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15762         Reported by Scott McCreary.
15763
15764         maint.mk: add pre-release check to ensure submodule commits are public
15765         * top/maint.mk (public-submodule-commit): New rule.
15766         (submodule-checks): New variable.
15767         (alpha beta stable): Depend on the variable.
15768
15769 2011-01-05  Pádraig Brady <P@draigBrady.com>
15770         and Jim Meyering  <meyering@redhat.com>
15771
15772         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15773         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15774         (ATTRIBUTE_DEPRECATED): Define.
15775         (_ignore_case): New function.
15776         (ignore_value): New macro, to replace the old function.
15777         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15778         * modules/ignore-value (Depends-on): Add stdint.
15779
15780 2011-01-04  Eric Blake  <eblake@redhat.com>
15781
15782         doc: regenerate INSTALL
15783         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15784         @firstparagraphindent support, now that autoconf dropped it.
15785         (INSTALL_PRELUDE): Reinstate old macro.
15786         * doc/install.texi: Resync from autoconf.
15787         * doc/INSTALL: Reflect recent autoconf update.
15788         * doc/INSTALL.ISO: Likewise.
15789         * doc/INSTALL.UTF-8: Likewise.
15790         Reported by Karl Berry.
15791
15792 2011-01-04  Bruce Korb  <address@hidden>
15793
15794         git-version-gen: avoid a sub-shell
15795         * build-aux/git-version-gen: Redirect stderr in `...` via
15796         "exec 2>...", rather than via an added sub-shell.
15797
15798 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15799
15800         git-version-gen: use (...) rather than sh -c '...'
15801         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15802         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15803
15804 2011-01-03  Jim Meyering  <meyering@redhat.com>
15805
15806         git-version-gen: convert leading TABs to spaces
15807         * build-aux/git-version-gen: Expand leading TABs.
15808
15809         git-version-gen: handle failed "git rev-list"
15810         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15811         from git and proceeding as if it had succeeded but printed no SHA1
15812         checksums, suppress the diagnostic and handle the failure.
15813         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15814
15815         git-version-gen: include command name in one more diagnostic
15816         * build-aux/git-version-gen: When the required .tarball-version file
15817         was missing or unreadable, you might see the diagnostic from "cat",
15818         but no trace of the name of the invoking script.  Now, you still see
15819         the diagnostic from cat, but also get one from "git-version-gen: ".
15820         Inspired by a patch from Bruce Korb.
15821
15822         update-copyright: adjust test to match changed code
15823         * tests/test-update-copyright.sh: Change test's expected output
15824         to match new actual output.
15825
15826 2011-01-02  Bruno Haible  <bruno@clisp.org>
15827
15828         getlogin_r: Avoid test failure on HP-UX 11.
15829         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15830         ERANGE when the second argument is zero.
15831         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15832         portability problem.
15833
15834 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15835
15836         * build-aux/update-copyright: doc Simon's changes
15837
15838 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15839
15840         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15841         environment variable.
15842
15843 2011-01-02  Bruno Haible  <bruno@clisp.org>
15844
15845         unigbrk: Avoid gcc warnings.
15846         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15847         unused variable.
15848         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15849         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15850         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15851         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15852         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15853         Change type of first argument to 'const char *'.
15854         (main): Remove unused variable.
15855         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15856         type of first argument to 'const char *'.
15857         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15858         Likewise.
15859         (main): Change type of variable 's'.
15860         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15861         to 'int'.
15862
15863 2011-01-02  Bruno Haible  <bruno@clisp.org>
15864
15865         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15866         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15867         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15868         bug.
15869         * lib/pwrite.c: Undo 2010-12-31 patch.
15870         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15871
15872 2011-01-02  Bruno Haible  <bruno@clisp.org>
15873
15874         pread: Fix test whether it works.
15875         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15876
15877 2011-01-02  Bruno Haible  <bruno@clisp.org>
15878
15879         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15880         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15881         ends in "6". Don't require a specific month name. Try also the locale
15882         names found on HP-UX 11 and Solaris 7.
15883
15884 2011-01-02  Bruno Haible  <bruno@clisp.org>
15885
15886         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15887         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15888         C linkage.
15889         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15890
15891 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15892
15893         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15894         for consistency, since the "cluster" term is not used elsewhere.
15895         * lib/unigbrk.in.h: Update name.
15896         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15897         * lib/unigbrk/u16-grapheme-next.c: Update name.
15898         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15899         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15900         * lib/unigbrk/u32-grapheme-next.c: Update name.
15901         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15902         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15903         * lib/unigbrk/u8-grapheme-next.c: Update name.
15904         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15905         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15906         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15907         Suggested by Bruno Haible.
15908
15909 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15910
15911         Remove module 'u8-grapheme-len' as too redundant with
15912         'u8-grapheme-next'.
15913         * modules/unigbrk/u8-grapheme-len: Delete file.
15914         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15915         * lib/unigbrk.in.h: Remove prototype for deleted function.
15916         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15917         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15918
15919         Remove module 'u16-grapheme-len' as too redundant with
15920         'u16-grapheme-next'.
15921         * modules/unigbrk/u16-grapheme-len: Delete file.
15922         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15923         * lib/unigbrk.in.h: Remove prototype for deleted function.
15924         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15925         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15926
15927         Remove module 'u32-grapheme-len' as too redundant with
15928         'u32-grapheme-next'.
15929         * modules/unigbrk/u32-grapheme-len: Delete file.
15930         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15931         * lib/unigbrk.in.h: Remove prototype for deleted function.
15932         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15933         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15934
15935         Suggested by Bruno Haible.
15936
15937 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15938
15939         * unigbrk.in.h: Fix typo: "ben" => "been".
15940         Reported by Bruno Haible.
15941
15942 2011-01-01  Jim Meyering  <meyering@redhat.com>
15943
15944         maint: update almost all copyright ranges to include 2011
15945         Run the new "make update-copyright" rule.
15946
15947 2011-01-01  Jim Meyering  <meyering@redhat.com>
15948
15949         maint: update-copyright: exempt doc/INSTALL*
15950         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15951         since they are generated.  Suggested by Bruno Haible.
15952
15953 2011-01-01  Jim Meyering  <meyering@redhat.com>
15954
15955         maint: refine the update-copyright rule
15956         * Makefile (update-copyright): Also exclude any file that includes
15957         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15958         code that merely generates the comment.
15959
15960 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15961
15962         New module 'u8-grapheme-len'.
15963         * modules/unigbrk/u8-grapheme-len: New file.
15964         * modules/unigbrk/u8-grapheme-len-tests: New file.
15965         * lib/unigbrk.in.h: Add prototype for new function.
15966         * lib/unigbrk/u8-grapheme-len.c: New file.
15967         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15968
15969         New module 'u16-grapheme-len'.
15970         * modules/unigbrk/u16-grapheme-len: New file.
15971         * modules/unigbrk/u16-grapheme-len-tests: New file.
15972         * lib/unigbrk.in.h: Add prototype for new function.
15973         * lib/unigbrk/u16-grapheme-len.c: New file.
15974         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15975
15976         New module 'u32-grapheme-len'.
15977         * modules/unigbrk/u32-grapheme-len: New file.
15978         * modules/unigbrk/u32-grapheme-len-tests: New file.
15979         * lib/unigbrk.in.h: Add prototype for new function.
15980         * lib/unigbrk/u32-grapheme-len.c: New file.
15981         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15982
15983         New module 'u8-grapheme-next'.
15984         * modules/unigbrk/u8-grapheme-next: New file.
15985         * modules/unigbrk/u8-grapheme-next-tests: New file.
15986         * lib/unigbrk.in.h: Add prototype for new function.
15987         * lib/unigbrk/u8-grapheme-next.c: New file.
15988         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15989
15990         New module 'u16-grapheme-next'.
15991         * modules/unigbrk/u16-grapheme-next: New file.
15992         * modules/unigbrk/u16-grapheme-next-tests: New file.
15993         * lib/unigbrk.in.h: Add prototype for new function.
15994         * lib/unigbrk/u16-grapheme-next.c: New file.
15995         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15996
15997         New module 'u32-grapheme-next'.
15998         * modules/unigbrk/u32-grapheme-next: New file.
15999         * modules/unigbrk/u32-grapheme-next-tests: New file.
16000         * lib/unigbrk.in.h: Add prototype for new function.
16001         * lib/unigbrk/u32-grapheme-next.c: New file.
16002         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16003
16004         New module 'u8-grapheme-prev'.
16005         * modules/unigbrk/u8-grapheme-prev: New file.
16006         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16007         * lib/unigbrk.in.h: Add prototype for new function.
16008         * lib/unigbrk/u8-grapheme-prev.c: New file.
16009         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16010
16011         New module 'u16-grapheme-prev'.
16012         * modules/unigbrk/u16-grapheme-prev: New file.
16013         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16014         * lib/unigbrk.in.h: Add prototype for new function.
16015         * lib/unigbrk/u16-grapheme-prev.c: New file.
16016         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16017
16018         New module 'u32-grapheme-prev'.
16019         * modules/unigbrk/u32-grapheme-prev: New file.
16020         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16021         * lib/unigbrk.in.h: Add prototype for new function.
16022         * lib/unigbrk/u32-grapheme-prev.c: New file.
16023         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16024
16025         New module 'u8-grapheme-breaks'.
16026         * modules/unigbrk/u8-grapheme-breaks: New file.
16027         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16028         * lib/unigbrk.in.h: Add prototype for new function.
16029         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16030         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16031
16032         New module 'u16-grapheme-breaks'.
16033         * modules/unigbrk/u16-grapheme-breaks: New file.
16034         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16035         * lib/unigbrk.in.h: Add prototype for new function.
16036         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16037         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16038
16039         New module 'u32-grapheme-breaks'.
16040         * modules/unigbrk/u32-grapheme-breaks: New file.
16041         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16042         * lib/unigbrk.in.h: Add prototype for new function.
16043         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16044         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16045
16046         New module 'ulc-grapheme-breaks'.
16047         * modules/unigbrk/ulc-grapheme-breaks: New file.
16048         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16049         * m4/locale-ar.m4: New file.
16050         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16051         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16052         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16053
16054 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16055
16056         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16057         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16058         modified how this file was generated before I initially submitted
16059         the module, but failed to regenerate it.  This meant that several
16060         of the level2 entries were wrong.
16061         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16062         Remove the division-by-2 that is folded into the table now that
16063         gbrkprop.h has been regenerated properly.  Now -1 entries are
16064         handled correctly.
16065
16066         New module 'unigbrk/uc-gbrk-prop-tests'.
16067         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16068         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16069         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16070         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16071
16072 2011-01-01  Bruno Haible  <bruno@clisp.org>
16073
16074         Avoid use of hexadecimal escapes.
16075         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16076         instead of hexadecimal escapes.
16077
16078 2011-01-01  Jim Meyering  <meyering@redhat.com>
16079
16080         maint: new rule to update copyright year ranges
16081         * Makefile (update-copyright): New rule.
16082
16083         maint: indent with TABs in Makefile
16084         * Makefile: Expand leading sequences of spaces to TABs
16085
16086         version-etc: update the copyright year it reports
16087         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16088
16089 2010-12-31  Bruno Haible  <bruno@clisp.org>
16090
16091         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16092         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16093         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16094         zero.
16095
16096 2010-12-31  Bruno Haible  <bruno@clisp.org>
16097
16098         pwrite: Work around HP-UX 11.11 bug.
16099         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16100         works and set REPLACE_PWRITE if not.
16101         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16102         function.
16103         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16104
16105 2010-12-31  Bruno Haible  <bruno@clisp.org>
16106
16107         pread: Work around HP-UX 11 bugs.
16108         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16109         and set REPLACE_PREAD if not.
16110         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16111
16112 2010-12-31  Eric Blake  <eblake@redhat.com>
16113
16114         nl_langinfo: fix YESEXPR on Irix 6.5
16115         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16116         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16117         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16118         it.
16119
16120 2010-12-31  Bruno Haible  <bruno@clisp.org>
16121
16122         iconv: Document HP-UX 11 bug.
16123         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16124
16125 2010-12-31  Bruno Haible  <bruno@clisp.org>
16126
16127         ldexpl: Fix link error on HP-UX 11.
16128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16129         LDEXPL_LIBM, using $ISNANL_LIBM.
16130
16131 2010-12-31  Eric Blake  <eblake@redhat.com>
16132
16133         ftello: avoid compilation failure with SunStudio c89
16134         * lib/ftello.c (ftello): Use lseek, not llseek.
16135
16136         tests: avoid failing coreutils tests on cygwin
16137         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16138         (create_exe_shims_): Return 0 when skipping.
16139
16140 2010-12-31  Bruno Haible  <bruno@clisp.org>
16141
16142         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16143         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16144
16145 2010-12-31  Bruno Haible  <bruno@clisp.org>
16146
16147         waitpid: Fix link error in C++ mode.
16148         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16149
16150 2010-12-31  Bruno Haible  <bruno@clisp.org>
16151
16152         isnan: Use GCC built-ins when possible.
16153         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16154         __builtin_isnan.
16155         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16156         (isnan): Define using GCC built-ins for GCC >= 4.0.
16157
16158 2010-12-31  Bruno Haible  <bruno@clisp.org>
16159
16160         isnand: Fix mistake.
16161         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16162         __builtin_isnand.
16163
16164 2010-12-31  Bruno Haible  <bruno@clisp.org>
16165
16166         open: Avoid C++ error on HP-UX 11.
16167         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16168
16169 2010-12-31  Bruno Haible  <bruno@clisp.org>
16170
16171         time_r: Add missing declarations on HP-UX 11.
16172         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16173         instead of HAVE_LOCALTIME_R.
16174         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16175         HAVE_LOCALTIME_R always.
16176         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16177         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16178         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16179         HAVE_LOCALTIME_R.
16180         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16181         * doc/posix-functions/localtime_r.texi: Likewise.
16182
16183 2010-12-29  Eric Blake  <eblake@redhat.com>
16184
16185         mountlist: tweak previous commit
16186         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16187         Reported by Paul Eggert.
16188
16189         mountlist: fix local drive detection on cygwin
16190         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16191         that works for cygwin.
16192
16193 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         ftoastr, snprintf: ftoastr + snprintf module
16196         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16197         since the snprintf module now should be good enough here.
16198         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16199         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16200         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16201         GNULIB_SNPRINTF only for the test directory, and the latter
16202         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16203         seems to suffice by itself.
16204
16205 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16206
16207         alloca: one step towards thread-safety
16208         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16209         need for a static variable.  All callers changed.  This does not
16210         make the alloca replacement thread-safe, but it's one step.
16211
16212         tests: minor indenting change
16213         * tests/init.sh: Sync from coreutils housekeeping patch
16214         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16215         to keep lines within 80 columns.
16216
16217 2010-12-28  Jim Meyering  <meyering@redhat.com>
16218
16219         regex: don't infloop on persistent failing calloc
16220         * lib/regexec.c (build_trtable): Return failure indication upon
16221         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16222         In glibc, this was fixed for version 2.13:
16223         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16224
16225 2010-12-28  Bruno Haible  <bruno@clisp.org>
16226             Paul Eggert <eggert@cs.ucla.edu>
16227
16228         linkat: Make implementation robust against system behaviour variations.
16229         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16230         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16231         way, and to -2 if it needs a generic runtime test.
16232         * lib/linkat.c (solaris_optimized_link_immediate,
16233         solaris_optimized_link_follow): New functions.
16234         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16235         (check_same_link): Use it.
16236
16237 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16238
16239         New module 'unigbrk/base'.
16240         * modules/unigbrk/base: New file.
16241         * lib/unigbrk.in.h: New file.
16242
16243         New module 'unigbrk/uc-gbrk-prop'.
16244         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16245         * modules/unigbrk/uc-gbrk-prop: New file.
16246         * lib/unigbrk/gbrkprop.h: New file.
16247         * lib/unigbrk/uc-gbrk-prop.c: New file.
16248
16249         New module 'unigbrk/uc-is-grapheme-break'.
16250         * modules/unigbrk/uc-is-grapheme-break: New file.
16251         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16252         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16253         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16254         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16255         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16256
16257         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16258
16259 2010-12-27  Bruno Haible  <bruno@clisp.org>
16260
16261         linkat test: Avoid failure on Solaris 11 2010-11.
16262         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16263
16264 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16265
16266         utimens: work around glibc rounding bug on more platforms
16267         * lib/utimens.c (fdutimens): Work around rounding bug even if
16268         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16270
16271 2010-12-27  Bruno Haible  <bruno@clisp.org>
16272
16273         select tests: Improve comments.
16274         * tests/test-select.c (do_select): Add comments.
16275
16276 2010-12-27  Bruno Haible  <bruno@clisp.org>
16277
16278         select tests: Safer way of handling timeout.
16279         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16280         at every invocation.
16281
16282 2010-12-27  Bruno Haible  <bruno@clisp.org>
16283
16284         select tests: Use 'bool' where appropriate.
16285         * tests/test-select.c (connect_to_socket): Change argument type to
16286         'bool'.
16287
16288 2010-12-27  Bruno Haible  <bruno@clisp.org>
16289
16290         select tests: Use existing modules.
16291         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16292         (configure.ac): Don't test for unistd.h.
16293         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16294         declared in <unistd.h>.
16295
16296 2010-12-27  Bruno Haible  <bruno@clisp.org>
16297
16298         mbrtowc: Work around a Solaris 7 bug.
16299         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16300         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16301         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16302         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16303         MBRTOWC_NULL_ARG1_BUG.
16304         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16305         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16306         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16307         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16308
16309 2010-12-27  Jim Meyering  <meyering@redhat.com>
16310
16311         read-file.c: tweak syntax
16312         * lib/read-file.c (fread_file): Remove space after "*" in function
16313         definitions.
16314
16315 2010-12-27  Bruno Haible  <bruno@clisp.org>
16316
16317         times test: Avoid gcc warnings on OSF/1.
16318         * tests/test-times.c (main): Cast printf arguments from clock_t to
16319         'long int'.
16320
16321 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16322
16323         utimens: work around glibc rounding bug on older Linux kernels
16324         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16325         on Linux with a glibc whose utimes might not work, then work
16326         around a longstanding glibc bug involving rounding rather than
16327         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16328         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16329
16330 2010-12-26  Bruno Haible  <bruno@clisp.org>
16331
16332         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16333         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16334         _GL_CXXALIAS_SYS.
16335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16336
16337 2010-12-26  Bruno Haible  <bruno@clisp.org>
16338
16339         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16340         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16341         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16342         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16343         looking for the declaration.
16344         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16345         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16346         problem.
16347         * doc/posix-functions/inet_pton.texi: Likewise.
16348
16349 2010-12-26  Bruno Haible  <bruno@clisp.org>
16350
16351         arpa_inet: Use the common idioms with C++ support.
16352         * lib/arpa_inet.in.h: Include c++defs.h.
16353         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16354         support.
16355         * modules/arpa_inet (Depends-on): Add c++defs.
16356         (Makefile.am): Substitute the contents of c++defs.h.
16357         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16358         * modules/arpa_inet-c++-tests: New file.
16359         * tests/test-arpa_inet-c++.cc: New file.
16360
16361 2010-12-25  Bruno Haible  <bruno@clisp.org>
16362
16363         Fix more C++ link errors on Solaris 8.
16364         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16365         $(LIB_EACCESS).
16366         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16367         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16368         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16369         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16370         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16371
16372 2010-12-25  Bruno Haible  <bruno@clisp.org>
16373
16374         printf-posix: Fix link error when a non-GCC compiler is used.
16375         * lib/stdio.in.h (printf): When not using GCC, override printf
16376         correctly.
16377         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16378
16379 2010-12-25  Bruno Haible  <bruno@clisp.org>
16380
16381         strerror_r-posix: Update doc.
16382         * doc/posix-functions/strerror_r.texi: Update doc about the return
16383         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16384
16385 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         utimens: simplify the logic of the previous change
16388         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16389         This should not affect whether the test succeeds or fails.
16390
16391         utimens: configure better on hosts with NFS clock skew
16392         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16393         uses the clock of the local host.  It might use the clock of the
16394         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16396
16397 2010-12-25  Bruno Haible  <bruno@clisp.org>
16398
16399         ptsname test: Avoid failure on Solaris.
16400         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16401         open a pseudo-terminal; don't use BSD-style ptys.
16402         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16403
16404 2010-12-25  Bruno Haible  <bruno@clisp.org>
16405
16406         ptsname: Avoid ERANGE failure on some systems.
16407         * lib/ptsname.c (buffer): Increase size.
16408
16409 2010-12-25  Bruno Haible  <bruno@clisp.org>
16410
16411         rename, renameat: Avoid test failures at NFS mounted locations.
16412         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16413         so that subsequent mkdir calls succeed.
16414
16415 2010-12-25  Bruno Haible  <bruno@clisp.org>
16416
16417         iswblank: Fix C++ link error on Solaris 8.
16418         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16419         _GL_FUNCDECL_SYS.
16420
16421 2010-12-25  Bruno Haible  <bruno@clisp.org>
16422
16423         unistd: Fix C++ link error on Solaris 8.
16424         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16425
16426 2010-12-25  Bruno Haible  <bruno@clisp.org>
16427
16428         readlink doc: Mention an old glibc bug.
16429         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16430
16431 2010-12-25  Bruno Haible  <bruno@clisp.org>
16432
16433         fcntl-h: Fix for use of C++ on glibc systems.
16434         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16435         also on glibc systems in C++ mode.
16436         Reported by Gary V. Vaughan <gary@gnu.org>.
16437
16438 2010-12-25  Bruno Haible  <bruno@clisp.org>
16439
16440         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16441         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16442
16443 2010-12-25  Bruno Haible  <bruno@clisp.org>
16444
16445         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16446         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16447         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16448         test whether truncl works according to ISO C 99 with IEC 60559.
16449         * m4/truncl-ieee.m4: New file.
16450         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16451         m4/signbit.m4.
16452         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16453
16454 2010-12-25  Bruno Haible  <bruno@clisp.org>
16455
16456         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16457         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16458         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16459         test whether ceill works according to ISO C 99 with IEC 60559.
16460         * m4/ceill-ieee.m4: New file.
16461         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16462         m4/signbit.m4.
16463         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16464
16465 2010-12-25  Bruno Haible  <bruno@clisp.org>
16466
16467         Ensure all prerequisites of <wchar.h> are included.
16468         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16469         before <wchar.h>.
16470         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16471         gl_MBRLEN_NUL_RETVAL): Likewise.
16472         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16473         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16474         AC_FUNC_MBRTOWC): Likewise.
16475         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16476         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16477         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16478         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16479         Likewise.
16480         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16481         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16482         (gl_WCHAR_H): Improve comments.
16483         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16484
16485 2010-12-25  Bruno Haible  <bruno@clisp.org>
16486
16487         strtok_r: Fix C syntax error in autoconf macro.
16488         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16489         characters in test program.
16490
16491 2010-12-24  Bruno Haible  <bruno@clisp.org>
16492
16493         ceil, trunc, round: Fix gcc warnings.
16494         * lib/ceil.c (MIN): Undefine before redefining.
16495         * lib/trunc.c (MIN): Likewise.
16496         * lib/round.c (MIN): Likewise.
16497         Include <math.h> first.
16498
16499 2010-12-24  Bruno Haible  <bruno@clisp.org>
16500
16501         select tests: Avoid failures on OSF/1 5.1.
16502         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16503         failure of closing the last socket; it may fail with ECONNRESET.
16504
16505 2010-12-24  Eric Blake  <eblake@redhat.com>
16506
16507         stdint: avoid HP-UX 10.20 preprocessor bug
16508         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16509         than #if.
16510         * tests/test-floor2.c (main): Likewise.
16511         Reported by Peter O'Gorman.
16512
16513         pipe: make obsoletion transition easier
16514         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16515         * modules/pipe (Files): Include revived file.
16516         (Include): Drop reference, to mirror getdate's behavior.
16517
16518 2010-12-24  Bruno Haible  <bruno@clisp.org>
16519
16520         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16521         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16522         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16523         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16524
16525 2010-12-24  Bruno Haible  <bruno@clisp.org>
16526
16527         gethostname: Ensure declaration on NonStop Kernel.
16528         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16530
16531 2010-12-24  Bruno Haible  <bruno@clisp.org>
16532
16533         sys_select: Ensure all necessary types on NonStop Kernel.
16534         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16535         include <sys/time.h>.
16536         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16537         NonStop Kernel.
16538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16539
16540 2010-12-24  Bruno Haible  <bruno@clisp.org>
16541
16542         sys_select: Remove unneeded include.
16543         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16544         have <sys/select.h>.
16545
16546 2010-12-24  Bruno Haible  <bruno@clisp.org>
16547
16548         gethostname: Provide a fallback for HOST_NAME_MAX.
16549         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16550         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16551         instead.
16552         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16553
16554 2010-12-24  Bruno Haible  <bruno@clisp.org>
16555
16556         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16557         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16558         (SA_RESTART): Likewise.
16559         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16560
16561 2010-12-24  Bruno Haible  <bruno@clisp.org>
16562
16563         signal: Define NSIG.
16564         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16565         * tests/test-signal.c (nsig): New variable.
16566         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16567
16568 2010-12-24  Bruno Haible  <bruno@clisp.org>
16569
16570         rename, renameat: Avoid test failures on OSF/1 5.1.
16571         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16572         alternative error codes.
16573         * tests/test-renameat.c (main): Likewise.
16574
16575 2010-12-24  Bruno Haible  <bruno@clisp.org>
16576
16577         *printf: Detect large precisions bug on Solaris 10/SPARC.
16578         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16579         by Paul Eggert.
16580         * tests/test-snprintf-posix.h (test_function): Add this test code here
16581         too.
16582         * tests/test-sprintf-posix.h (test_function): Likewise.
16583         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16584         * tests/test-vasprintf-posix.c (test_function): Likewise.
16585         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16586         around by gnulib.
16587         * doc/posix-functions/printf.texi: Likewise.
16588         * doc/posix-functions/snprintf.texi: Likewise.
16589         * doc/posix-functions/sprintf.texi: Likewise.
16590         * doc/posix-functions/vfprintf.texi: Likewise.
16591         * doc/posix-functions/vprintf.texi: Likewise.
16592         * doc/posix-functions/vsnprintf.texi: Likewise.
16593         * doc/posix-functions/vsprintf.texi: Likewise.
16594         * doc/posix-functions/dprintf.texi: Undo last commit.
16595         * doc/posix-functions/vdprintf.texi: Likewise.
16596
16597 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16598
16599         tests: port test-fdutimensat.c to Solaris 8
16600         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16601         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16602         On Solaris 8, it fails with errno == ENOSYS, because there is no
16603         futimens (so it can't use the fd), and there is no lutimens (so it
16604         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16605
16606         vsnprintf: make more consistent with snprintf; doc fixes
16607
16608         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16609         the byte count return problem was promoted from the snprintf-posix
16610         to the snprintf module.
16611         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16612         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16613         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16614         * tests/test-snprintf.c (main): Check the byte count returned.
16615         * tests/test-vsnprintf.c (main): Likewise.
16616
16617 2010-12-23  Eric Blake  <eblake@redhat.com>
16618
16619         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16620         * modules/sigpipe (License): Relax license.
16621
16622 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16623
16624         doc: document Solaris printf bug with large float precisions
16625         * doc/posix-functions/dprintf.texi (dprintf):
16626         * doc/posix-functions/fprintf.texi (fprintf):
16627         * doc/posix-functions/printf.texi (printf):
16628         * doc/posix-functions/snprintf.texi (snprintf):
16629         * doc/posix-functions/sprintf.texi (sprintf):
16630         * doc/posix-functions/vdprintf.texi (vdprintf):
16631         * doc/posix-functions/vfprintf.texi (vfprintf):
16632         * doc/posix-functions/vprintf.texi (vprintf):
16633         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16634         * doc/posix-functions/vsprintf.texi (vsprintf):
16635         Mention that these functions mishandle large floating point
16636         precisions on Solaris 10.  The same bug is also present in Solaris
16637         8, and I assume earlier.  This causes "cd gnulib-tests; make
16638         check" to fail on Solaris 8 (and I assume, later) when building
16639         the latest coreutils, in test-vasprintf-posix's call to
16640         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16641         the wide flavors (e.g., wprintf) so this patch just updates the
16642         documentation for the narrow ones.
16643
16644         test-posixtm.c: add two tests
16645         * tests/test-posixtm.c: Add two tests, to highlight the
16646         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16647         around this bug; this is merely to document it.
16648
16649 2010-12-22  Bruno Haible  <bruno@clisp.org>
16650
16651         getlogin_r: Work around portability problem on OSF/1.
16652         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16653         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16654         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16655         test for a truncated result.
16656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16657         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16658         * modules/getlogin_r (Depends-on): Add memchr.
16659         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16660
16661 2010-12-22  Bruno Haible  <bruno@clisp.org>
16662
16663         ptsname: Avoid test failure on OSF/1 5.1.
16664         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16665         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16666         (same_slave): New function.
16667         (main): Use it to compare ptsname's result with the expected file name.
16668
16669 2010-12-22  Bruno Haible  <bruno@clisp.org>
16670
16671         Port extended stdio modules to HP NonStop Kernel.
16672         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16673         macros.
16674         * lib/fbufmode.c: Update comments.
16675         * lib/fflush.c: Likewise.
16676         * lib/fpurge.c: Likewise.
16677         * lib/freadable.c: Likewise.
16678         * lib/freadahead.c: Likewise.
16679         * lib/freading.c: Likewise.
16680         * lib/freadptr.c: Likewise.
16681         * lib/freadseek.c: Likewise.
16682         * lib/fseeko.c: Likewise.
16683         * lib/fseterr.c: Likewise.
16684         * lib/fwritable.c: Likewise.
16685         * lib/fwriting.c: Likewise.
16686         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16687
16688 2010-12-22  Bruno Haible  <bruno@clisp.org>
16689
16690         ttyname_r: Work around bug on OSF/1 5.1.
16691         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16692         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16693         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16694         present.
16695         * lib/ttyname_r.c (ttyname_r): Update comments.
16696
16697 2010-12-22  Bruno Haible  <bruno@clisp.org>
16698
16699         round: Implement result sign according to IEEE 754.
16700         * lib/round.c (MIN, MINUS_ZERO): New macros.
16701         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16702         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16703         * tests/test-round-ieee.c (main): Likewise.
16704         * tests/test-roundl-ieee.c (main): Likewise.
16705
16706         trunc: Implement result sign according to IEEE 754.
16707         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16708         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16709         * tests/test-trunc2.c: Include minus-zero.h.
16710         (MINUS_ZERO): New macro.
16711         (trunc_reference): Keep in sync with lib/trunc.c.
16712         * tests/test-truncf2.c: Include minus-zero.h.
16713         (MINUS_ZERO): New macro.
16714         (truncf_reference): Keep in sync with lib/trunc.c.
16715         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16716         * tests/test-trunc-ieee.c (main): Likewise.
16717         * tests/test-truncl-ieee.c (main): Likewise.
16718
16719         ceil: Implement result sign according to IEEE 754.
16720         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16721         (FUNC): Return -0.0 for -1 < x < 0.
16722         * tests/test-ceil2.c: Include minus-zero.h.
16723         (MINUS_ZERO): New macro.
16724         (ceil_reference): Keep in sync with lib/ceil.c.
16725         * tests/test-ceilf2.c: Include minus-zero.h.
16726         (MINUS_ZERO): New macro.
16727         (ceilf_reference): Keep in sync with lib/ceil.c.
16728         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16729         * tests/test-ceil-ieee.c (main): Likewise.
16730         * tests/test-ceill-ieee.c (main): Likewise.
16731
16732         floor: Implement result sign according to IEEE 754.
16733         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16734         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16735         * tests/test-floorf2.c (floorf_reference): Likewise.
16736         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16737         * tests/test-floor-ieee.c (main): Likewise.
16738         * tests/test-floorl-ieee.c (main): Likewise.
16739
16740 2010-12-22  Bruno Haible  <bruno@clisp.org>
16741
16742         getaddrinfo: Update doc.
16743         * doc/posix-functions/gai_strerror.texi: Return type is also different
16744         on AIX and HP-UX.
16745
16746 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16747
16748         getaddrinfo, inet_ntop: Update doc for Solaris.
16749         * doc/posix-functions/gai_strerror.texi: Return type is also an
16750         issue on Solaris 9 and earlier.
16751         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16752         on Solaris 10 and earlier.
16753
16754 2010-12-21  Bruno Haible  <bruno@clisp.org>
16755
16756         New module 'roundl-ieee'.
16757         * modules/roundl-ieee: New file.
16758         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16759         test whether roundl works according to ISO C 99 with IEC 60559.
16760         * m4/roundl-ieee.m4: New file.
16761         * modules/roundl-ieee-tests: New file.
16762         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16763         * tests/test-roundl.c (main): Remove signbit tests.
16764         * modules/roundl-tests (Depends-on): Remove signbit.
16765         * doc/posix-functions/roundl.texi: Mention the new module.
16766
16767 2010-12-21  Bruno Haible  <bruno@clisp.org>
16768
16769         New module 'truncl-ieee'.
16770         * modules/truncl-ieee: New file.
16771         * modules/truncl-ieee-tests: New file.
16772         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16773         * tests/test-truncl.c (main): Remove signbit tests.
16774         * modules/truncl-tests (Depends-on): Remove signbit.
16775         * doc/posix-functions/truncl.texi: Mention the new module.
16776
16777 2010-12-21  Bruno Haible  <bruno@clisp.org>
16778
16779         New module 'ceill-ieee'.
16780         * modules/ceill-ieee: New file.
16781         * modules/ceill-ieee-tests: New file.
16782         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16783         * tests/test-ceill.c (main): Remove signbit tests.
16784         * modules/ceill-tests (Depends-on): Remove signbit.
16785         * doc/posix-functions/ceill.texi: Mention the new module.
16786
16787 2010-12-21  Bruno Haible  <bruno@clisp.org>
16788
16789         New module 'floorl-ieee'.
16790         * modules/floorl-ieee: New file.
16791         * modules/floorl-ieee-tests: New file.
16792         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16793         * tests/test-floorl.c (main): Remove signbit tests.
16794         * modules/floorl-tests (Depends-on): Remove signbit.
16795         * doc/posix-functions/floorl.texi: Mention the new module.
16796
16797 2010-12-21  Bruno Haible  <bruno@clisp.org>
16798
16799         New module 'round-ieee'.
16800         * modules/round-ieee: New file.
16801         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16802         whether round works according to ISO C 99 with IEC 60559.
16803         * m4/round-ieee.m4: New file.
16804         * modules/round-ieee-tests: New file.
16805         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16806         * tests/test-round1.c (main): Remove signbit tests.
16807         * modules/round-tests (Depends-on): Remove 'signbit'.
16808         * doc/posix-functions/round.texi: Mention the new module.
16809
16810 2010-12-21  Bruno Haible  <bruno@clisp.org>
16811
16812         New module 'trunc-ieee'.
16813         * modules/trunc-ieee: New file.
16814         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16815         whether trunc works according to ISO C 99 with IEC 60559.
16816         * m4/trunc-ieee.m4: New file.
16817         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16819         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16820         * modules/trunc-ieee-tests: New file.
16821         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16822         * tests/test-trunc1.c (main): Remove signbit tests.
16823         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16824         * doc/posix-functions/trunc.texi: Mention the new module.
16825
16826 2010-12-21  Bruno Haible  <bruno@clisp.org>
16827
16828         New module 'ceil-ieee'.
16829         * modules/ceil-ieee: New file.
16830         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16831         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16832         ISO C 99 with IEC 60559.
16833         * m4/ceil-ieee.m4: New file.
16834         * modules/ceil (Files): Add lib/ceil.c.
16835         (Depends-on): Add 'float'.
16836         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16837         * lib/math.in.h (ceil): New declaration.
16838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16839         REPLACE_CEIL.
16840         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16841         * modules/ceil-ieee-tests: New file.
16842         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16843         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16844         * doc/posix-functions/ceil.texi: Mention the new module.
16845
16846 2010-12-21  Bruno Haible  <bruno@clisp.org>
16847
16848         New module 'floor-ieee'.
16849         * modules/floor-ieee: New file.
16850         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16851         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16852         ISO C 99 with IEC 60559.
16853         * m4/floor-ieee.m4: New file.
16854         * modules/floor (Files): Add lib/floor.c.
16855         (Depends-on): Add 'float'.
16856         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16857         * lib/math.in.h (floor): New declaration.
16858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16859         REPLACE_FLOOR.
16860         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16861         * modules/floor-ieee-tests: New file.
16862         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16863         * tests/test-math-c++.cc: Check the signature of 'floor'.
16864         * doc/posix-functions/floor.texi: Mention the new module.
16865
16866 2010-12-21  Bruno Haible  <bruno@clisp.org>
16867
16868         New module 'roundf-ieee'.
16869         * modules/roundf-ieee: New file.
16870         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16871         test whether roundf works according to ISO C 99 with IEC 60559.
16872         * m4/roundf-ieee.m4: New file.
16873         * modules/roundf-ieee-tests: New file.
16874         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16875         * tests/test-roundf1.c (main): Remove signbit tests.
16876         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16877         * doc/posix-functions/roundf.texi: Mention the new module.
16878
16879 2010-12-21  Bruno Haible  <bruno@clisp.org>
16880
16881         New module 'truncf-ieee'.
16882         * modules/truncf-ieee: New file.
16883         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16884         test whether truncf works according to ISO C 99 with IEC 60559.
16885         * m4/truncf-ieee.m4: New file.
16886         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16888         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16889         * modules/truncf-ieee-tests: New file.
16890         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16891         * tests/test-truncf1.c (main): Remove signbit tests.
16892         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16893         * doc/posix-functions/truncf.texi: Mention the new module.
16894
16895 2010-12-21  Bruno Haible  <bruno@clisp.org>
16896
16897         New module 'ceilf-ieee'.
16898         * modules/ceilf-ieee: New file.
16899         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16900         test whether ceilf works according to ISO C 99 with IEC 60559.
16901         * m4/ceilf-ieee.m4: New file.
16902         * modules/ceilf-ieee-tests: New file.
16903         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16904         * tests/test-ceilf1.c (main): Remove signbit tests.
16905         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16906         * doc/posix-functions/ceilf.texi: Mention the new module.
16907
16908 2010-12-21  Bruno Haible  <bruno@clisp.org>
16909
16910         New module 'floorf-ieee'.
16911         * modules/floorf-ieee: New file.
16912         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16913         test whether floorf works according to ISO C 99 with IEC 60559.
16914         * m4/floorf-ieee.m4: New file.
16915         * modules/floorf-ieee-tests: New file.
16916         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16917         * tests/test-floorf1.c (main): Remove signbit tests.
16918         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16919         * doc/posix-functions/floorf.texi: Mention the new module.
16920
16921 2010-12-21  Bruno Haible  <bruno@clisp.org>
16922
16923         Support for minus zero in autoconf macros.
16924         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16925         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16926         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16927         * tests/minus-zero.h: Update comments.
16928
16929 2010-12-21  Bruno Haible  <bruno@clisp.org>
16930
16931         Tests for module 'ceil'.
16932         * modules/ceil-tests: New file.
16933         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16934         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16935
16936 2010-12-21  Bruno Haible  <bruno@clisp.org>
16937
16938         Tests for module 'floor'.
16939         * modules/floor-tests: New file.
16940         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16941         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16942
16943 2010-12-21  Bruno Haible  <bruno@clisp.org>
16944
16945         math: Fix indentation.
16946         * lib/math.in.h (floorf): Fix indentation.
16947
16948 2010-12-21  Bruno Haible  <bruno@clisp.org>
16949
16950         Fix cross-compilation guesses on Solaris.
16951         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16952         not match "solaris2.10".
16953         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16954         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16955         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16956
16957 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16958
16959         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16960         This fixes a problem observed with the latest coreutils snapshot
16961         that caused a test to fail on Solaris 8.  src/csplit.c's call
16962         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16963         earlier, instead of returning the number of bytes that would have
16964         been generated; this causes csplit to incorrectly report memory
16965         exhaustion.
16966         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16967         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16968         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16969         comments to match.
16970         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16971         Fix typo in matching older versions of Solaris: "solaris2.10"
16972         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16973         only for guessing while cross-compiling.
16974         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16975
16976 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16977
16978         ftoastr: fix comment again
16979         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16981         Also, simplify example a bit by using flags = 0.
16982
16983 2010-12-20  Bruno Haible  <bruno@clisp.org>
16984
16985         round*, trunc*: Update documentation regarding glibc.
16986         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16987         * doc/posix-functions/round.texi: Likewise.
16988         * doc/posix-functions/roundl.texi: Likewise.
16989         * doc/posix-functions/truncf.texi: Likewise.
16990         * doc/posix-functions/trunc.texi: Likewise.
16991         * doc/posix-functions/truncl.texi: Likewise.
16992
16993 2010-12-20  Bruno Haible  <bruno@clisp.org>
16994
16995         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16996         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16997         * doc/posix-functions/round.texi: Likewise.
16998         * doc/posix-functions/roundl.texi: Likewise.
16999
17000 2010-12-20  Bruno Haible  <bruno@clisp.org>
17001
17002         ttyname_r: Add missing declaration on HP-UX 11.
17003         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17004         HAVE_TTYNAME_R.
17005         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17006         declared. Set HAVE_TTYNAME_R always.
17007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17008         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17010         HAVE_TTYNAME_R.
17011         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17012
17013 2010-12-20  Bruno Haible  <bruno@clisp.org>
17014
17015         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17016         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17017         * doc/posix-functions/getlogin_r.texi: Likewise.
17018         * tests/test-getlogin.c: Include <errno.h>.
17019         (main): Avoid test failure on HP-UX 11.11.
17020         * tests/test-getlogin_r.c (main): Likewise.
17021
17022 2010-12-20  Bruno Haible  <bruno@clisp.org>
17023
17024         getlogin_r: Add missing declaration on HP-UX 11.
17025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17026         declared also when it exists as a function.
17027         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17028
17029 2010-12-20  Bruno Haible  <bruno@clisp.org>
17030
17031         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17032         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17033         through wcrtomb.
17034
17035 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17036
17037         ftoastr: fix comment
17038         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17040
17041 2010-12-19  Bruno Haible  <bruno@clisp.org>
17042
17043         isnan: Ensure it is a macro.
17044         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17045         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17046         Solaris.
17047
17048 2010-12-19  Bruno Haible  <bruno@clisp.org>
17049
17050         ldexpl test: Fix link error on OSF/1 5.1.
17051         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17052
17053 2010-12-19  Bruno Haible  <bruno@clisp.org>
17054
17055         wctype: Make it work in C++ mode on OSF/1 5.1.
17056         * lib/wctype.in.h (iswblank): Declare but not define here.
17057         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17058         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17059         * modules/wctype (Files): Add lib/iswblank.c.
17060
17061 2010-12-19  Bruno Haible  <bruno@clisp.org>
17062
17063         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17064         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17065         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17066
17067 2010-12-19  Bruno Haible  <bruno@clisp.org>
17068
17069         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17071         _POSIX_PII_SOCKET.
17072         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17073         * doc/posix-functions/recvfrom.texi: Likewise.
17074         * doc/posix-functions/send.texi: Likewise.
17075         * doc/posix-functions/sendto.texi: Likewise.
17076
17077 2010-12-19  Bruno Haible  <bruno@clisp.org>
17078
17079         tcgetsid: Add missing declaration on OSF/1 5.1.
17080         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17081         HAVE_TCGETSID.
17082         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17083         Don't set HAVE_TCGETSID.
17084         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17085         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17086         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17087         HAVE_TCGETSID.
17088         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17089
17090 2010-12-19  Bruno Haible  <bruno@clisp.org>
17091
17092         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17093         * lib/stdio.in.h: During the include_next statement, let recursive
17094         includes of this file include only the system header file.
17095
17096 2010-12-19  Bruno Haible  <bruno@clisp.org>
17097
17098         iconv_open: Fix regression from 2010-12-04.
17099         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17100         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17101
17102 2010-12-19  Bruno Haible  <bruno@clisp.org>
17103
17104         stdbool test: Avoid a gcc warning.
17105         * tests/test-stdbool.c (main): Fail if e1 is false.
17106         Reported by Jim Meyering.
17107
17108 2010-12-19  Jim Meyering  <meyering@redhat.com>
17109
17110         setenv: restore to working order
17111         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17112         mistakenly removed.
17113         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17114         HAVE_SETENV.
17115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17116         HAVE_SETENV.
17117
17118 2010-12-19  Bruno Haible  <bruno@clisp.org>
17119
17120         Document some different function declarations on OSF/1 5.1.
17121         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17122         * doc/posix-functions/inet_ntop.texi: Likewise.
17123         * doc/posix-functions/gethostname.texi: Likewise.
17124         * lib/unistd.in.h (gethostname): Update comment.
17125
17126 2010-12-19  Bruno Haible  <bruno@clisp.org>
17127
17128         doc: Mention vasprintf-posix module.
17129         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17130         the 'vasprintf-posix' module.
17131         * doc/glibc-functions/vasprintf.texi: Likewise.
17132
17133 2010-12-19  Bruno Haible  <bruno@clisp.org>
17134
17135         unsetenv: Add missing declaration on OSF/1 5.1.
17136         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17137         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17138         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17140         not HAVE_UNSETENV.
17141         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17142         HAVE_UNSETENV.
17143         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17144
17145 2010-12-19  Bruno Haible  <bruno@clisp.org>
17146
17147         setenv: Add missing declaration on OSF/1 5.1.
17148         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17149         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17150         declared. Don't set HAVE_SETENV.
17151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17152         not HAVE_SETENV.
17153         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17154         HAVE_SETENV.
17155         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17156
17157 2010-12-19  Bruno Haible  <bruno@clisp.org>
17158
17159         nl_langinfo tests: Avoid gcc warning.
17160         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17161
17162 2010-12-19  Bruno Haible  <bruno@clisp.org>
17163
17164         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17165         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17166         _GL_CXXALIAS_SYS.
17167
17168 2010-12-19  Bruno Haible  <bruno@clisp.org>
17169
17170         stdbool: Relax test.
17171         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17172         address to 'bool' work in static initializer, for compilers other than
17173         GCC.
17174
17175 2010-12-19  Bruno Haible  <bruno@clisp.org>
17176
17177         ftello: Add missing declaration on OSF/1 5.1.
17178         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17179         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17181         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17182         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17183
17184 2010-12-19  Bruno Haible  <bruno@clisp.org>
17185
17186         fseeko: Add missing declaration on OSF/1 5.1.
17187         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17190         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17191         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17192
17193 2010-12-19  Bruno Haible  <bruno@clisp.org>
17194
17195         fchdir: Add missing declaration on OSF/1 5.1.
17196         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17199         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17200         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17201
17202 2010-12-19  Bruno Haible  <bruno@clisp.org>
17203
17204         relocatable-prog-wrapper: Separate from relocatable-prog.
17205         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17206         uninstall-relocwrapper rule here.
17207         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17208         Reported by Ian Beckwith <ianb@erislabs.net>.
17209
17210 2010-12-19  Bruno Haible  <bruno@clisp.org>
17211
17212         unistr/u8-mbsnlen: Add missing dependency.
17213         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17214         Reported by Ian Beckwith <ianb@erislabs.net>.
17215
17216 2010-12-19  Bruno Haible  <bruno@clisp.org>
17217
17218         iconv: Make it possible again to use this module without 'iconv-h'.
17219         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17220         if it is not defined.
17221         Reported by Ian Beckwith <ianb@erislabs.net>.
17222
17223 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17224
17225         acl: port to Solaris 8 when copying from tmpfs to ufs
17226         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17227         error number.  Problem observed on Solaris 8 with latest
17228         coreutils, with "mv A B", where A is on a tmpfs file system and B
17229         is on a ufs file system.  This caused coreutils' mv/part-symlink
17230         test to fail.
17231
17232         tests: set fail=0 at start
17233         * tests/init.sh (setup_): Move fail=0 initialization here ...
17234         (mktempd_): ... from here, so that tests can rely on fail being
17235         set to 0 initially.  This fixes a problem in coreutils; see:
17236         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17237
17238 2010-12-18  Bruno Haible  <bruno@clisp.org>
17239
17240         memmem-simple: Stylistic changes.
17241         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17242         Fix preprocessor directive indentation.
17243
17244 2010-12-15  Pádraig Brady <P@draigBrady.com>
17245
17246         memmem, memmem-simple: reorganize and expand empty needle check
17247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17248         functional checks to memmem-simple so that one has a fully functional
17249         memmem by using just this module.
17250         Restrict the performance only check to the memmem module.
17251         Also expand the empty needle check to ensure the correct
17252         pointer is returned, not just a non NULL pointer.
17253         * doc/glibc-functions/memmem.texi: Rearrange the portability
17254         documentation to correlate with the rearranged checks.
17255         Clarify exactly how the memmem and memmem-simple modules
17256         relate to each other.
17257
17258 2010-12-15  Pádraig Brady <P@draigBrady.com>
17259             Bruno Haible  <bruno@clisp.org>
17260
17261         Improve cross-compilation guesses for uClibc.
17262         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17263         that uClibc does not have the glibc bug.
17264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17265         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17266
17267 2010-12-14  Eric Blake  <eblake@redhat.com>
17268
17269         configmake: provide fallbacks for oldest supported autotools
17270         * m4/configmake.m4: New file.
17271         * modules/configmake (Files): Ship it.
17272         (configure.ac): Use it to guarantee fallbacks.
17273
17274 2010-12-13  Pádraig Brady <P@draigBrady.com>
17275
17276         read-file: Improve handling of large files
17277         * lib/read-file.c (fread_file): Minimize realloc()s
17278         for regular files, and better manage sizes around SIZE_MAX.
17279
17280 2010-12-13  Eric Blake  <eblake@redhat.com>
17281
17282         cloexec, fcntl: relax license
17283         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17284         consent from all contributors.
17285         * modules/fcntl (License): Likewise.
17286
17287 2010-12-10  Bruno Haible  <bruno@clisp.org>
17288
17289         Tests for module 'pipe-posix'.
17290         * modules/pipe-posix-tests: New file.
17291         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17292
17293 2010-12-10  Bruno Haible  <bruno@clisp.org>
17294
17295         pipe-posix: Make it work in C++ mode.
17296         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17297         (pipe): Use common idiom, not a macro definition.
17298         * lib/pipe.c: New file.
17299         * m4/pipe.m4: New file.
17300         * modules/pipe-posix (Description): Enhance.
17301         (Files): Add lib/pipe.c, m4/pipe.m4.
17302         (configure.ac): Invoke gl_FUNC_PIPE.
17303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17304         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17305         * tests/test-unistd-c++.cc: Check the signature of pipe.
17306
17307 2010-12-10  Bruno Haible  <bruno@clisp.org>
17308
17309         Rename module 'pipe' to 'spawn-pipe'.
17310         * modules/spawn-pipe: New file, renamed from modules/pipe.
17311         (Files, configure.ac, Makefile.am): Update.
17312         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17313         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17314         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17315         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17316         "spawn-pipe.h" instead of "pipe.h".
17317         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17318         to gl_SPAWN_PIPE.
17319         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17320         (Files, Makefile.am): Update.
17321         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17322         Update.
17323         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17324         Include "spawn-pipe.h" instead of "pipe.h".
17325         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17326         * lib/javacomp.c: Likewise.
17327         * lib/javaversion.c: Likewise.
17328         * lib/pipe-filter-gi.c: Likewise.
17329         * lib/pipe-filter-ii.c: Likewise.
17330         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17331         * modules/javacomp (Depends-on): Likewise.
17332         * modules/javaversion (Depends-on): Likewise.
17333         * modules/pipe-filter-gi (Depends-on): Likewise.
17334         * modules/pipe-filter-ii (Depends-on): Likewise.
17335         * MODULES.html.sh (Executing programs): Update.
17336         * NEWS: Mention the change.
17337
17338 2010-12-10  Eric Blake  <eblake@redhat.com>
17339
17340         pipe-posix: new module
17341         * modules/pipe-posix: New file.
17342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17343         (gl_UNISTD_H): Check for declaration.
17344         * modules/unistd (Makefile.am): Substitute it.
17345         * lib/unistd.in.h (pipe): Provide it for mingw.
17346         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17347         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17348
17349 2010-12-07  Bruno Haible  <bruno@clisp.org>
17350
17351         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17352         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17353         u8_strcmp_gnu.
17354         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17355
17356 2010-12-06  Bruno Haible  <bruno@clisp.org>
17357
17358         Update internal documentation.
17359         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17360
17361 2010-12-04  Bruno Haible  <bruno@clisp.org>
17362
17363         Put more information about failed tests into the test return codes.
17364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17365         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17366         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17367         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17368         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17369         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17370         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17371         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17372         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17374         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17375         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17376         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17377         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17378         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17379         returns a bit mask.
17380         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17381         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17382         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17383         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17384         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17385         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17388         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17390         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17391         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17393         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17394         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17395         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17396         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17397         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17398         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17399         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17401         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17403         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17404         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17405         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17406         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17407         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17408         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17409         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17410         gl_PRINTF_PRECISION): Likewise.
17411         * m4/regex.m4 (gl_REGEX): Likewise.
17412         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17414         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17415         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17418         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17419         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17420         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17421         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17423         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17424         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17425         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17426         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17427         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17428         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17431         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17432         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17433         enumerated value.
17434         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17435
17436 2010-12-04  Bruno Haible  <bruno@clisp.org>
17437
17438         Update for Solaris 11 2010-11.
17439         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17440         Express, released in November 2010.
17441
17442 2010-12-04  Bruno Haible  <bruno@clisp.org>
17443
17444         nproc: Relax license.
17445         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17446         and Paul Eggert.
17447         Requested by Ludovic Courtès <ludo@gnu.org>.
17448
17449 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         utimecmp: fine-grained src to nearby coarse-grained dest
17452
17453         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17454         and the source is on a file system with higher-resolution time
17455         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17456         not work, and the time stamps are close together, the algorithm to
17457         determine the exact resolution from the read-back mtime was buggy:
17458         it had a "!=" where it should have had an "==".  This bug has been
17459         in the code ever since it was introduced to gnulib.
17460         Problem reported by Dan Jacobson in
17461         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17462
17463 2010-11-30  Bruno Haible  <bruno@clisp.org>
17464
17465         strerror_r-posix: Fix autoconf test.
17466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17467
17468 2010-11-28  Bruno Haible  <bruno@clisp.org>
17469             Paul Eggert  <eggert@cs.ucla.edu>
17470
17471         Tests for module 'getdomainname'.
17472         * modules/getdomainname-tests: New file.
17473         * tests/test-getdomainname.c: New file, based on
17474         tests/test-gethostname.c.
17475
17476 2010-11-28  Bruno Haible  <bruno@clisp.org>
17477             Paul Eggert  <eggert@cs.ucla.edu>
17478
17479         getdomainname: Use the system function when possible.
17480         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17481         (getdomainname): Replace if needed. Provide the declaration if it is
17482         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17483         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17484         (getdomainname): When the system has getdomainname, call the system
17485         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17486         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17487         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17488         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17489         the function if its second argument is of type 'int' or if it is found
17490         in libnsl.
17491         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17492         <sys/systeminfo.h> and sysinfo().
17493         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17495         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17496         HAVE_GETDOMAINNAME.
17497         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17498         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17499         * doc/glibc-functions/getdomainname.texi: Document the problems with
17500         the getdomainname declaration.
17501
17502 2010-11-28  Bruno Haible  <bruno@clisp.org>
17503
17504         sys_socket: Ensure ss_family field on AIX.
17505         * lib/sys_socket.in.h (ss_family): New macro definition.
17506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17507         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17508         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17509         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17510         * modules/sys_socket (Makefile.am): Substitute
17511         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17512         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17513
17514 2010-11-27  Bruno Haible  <bruno@clisp.org>
17515
17516         readline: Improve configure output.
17517         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17518         "checking for readline..." result understandable.
17519
17520 2010-11-27  Bruno Haible  <bruno@clisp.org>
17521
17522         *printf-posix: Detect a bug on Solaris 10/x86.
17523         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17524         for floating-point output.
17525         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17526         directive.
17527         * tests/test-snprintf-posix.h (test_function): Likewise.
17528         * tests/test-sprintf-posix.h (test_function): Likewise.
17529         * tests/test-vasprintf-posix.c (test_function): Likewise.
17530         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17531         * doc/posix-functions/printf.texi: Likewise.
17532         * doc/posix-functions/snprintf.texi: Likewise.
17533         * doc/posix-functions/sprintf.texi: Likewise.
17534         * doc/posix-functions/vfprintf.texi: Likewise.
17535         * doc/posix-functions/vprintf.texi: Likewise.
17536         * doc/posix-functions/vsnprintf.texi: Likewise.
17537         * doc/posix-functions/vsprintf.texi: Likewise.
17538         * doc/glibc-functions/obstack_printf.texi: Likewise.
17539         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17540
17541 2010-11-27  Bruno Haible  <bruno@clisp.org>
17542
17543         Fix link error when module libunistring-optional is in use.
17544         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17545         * modules/striconveha-tests (Makefile.am): Likewise.
17546
17547 2010-11-27  Bruno Haible  <bruno@clisp.org>
17548
17549         regex: Mention link dependencies.
17550         * modules/regex (Link): New section.
17551         * modules/rpmatch (Link): Likewise.
17552         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17553
17554 2010-11-27  Bruno Haible  <bruno@clisp.org>
17555
17556         ftoastr: Fix compilation error on Solaris.
17557         * lib/ftoastr.c: Include <config.h>.
17558
17559 2010-11-27  Bruno Haible  <bruno@clisp.org>
17560
17561         getloadavg: Update documentation.
17562         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17563
17564 2010-11-27  Bruno Haible  <bruno@clisp.org>
17565
17566         sys_socket: Fix test whether the functions are declared.
17567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17568         not <sys/select.h>.
17569
17570 2010-11-27  Bruno Haible  <bruno@clisp.org>
17571
17572         getpass: Make sure to get system declaration on some platforms.
17573         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17574         gl_USE_SYSTEM_EXTENSIONS.
17575         * modules/getpass (Depends-on): Add extensions.
17576
17577 2010-11-26  Bruno Haible  <bruno@clisp.org>
17578
17579         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17580         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17581         'iconv' module is present.
17582         (ICONV_CONST): New macro.
17583         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17584         ICONV_CONST.
17585         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17586         set ICONV_CONST.
17587         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17588         here.
17589         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17590         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17591         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17592         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17593         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17594         present.
17595
17596 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         ftoastr: comment fix
17599         * lib/ftoastr.c: "little" -> "little or no" in comment
17600
17601 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17602
17603         stdint: port to GCC 4.3 + OSX + Octave
17604         On this platform, stdint.h is buggy and defines int64_t to long
17605         long int.  The replacement defined it to long int, causing
17606         problems with C++ style name mangling.  Instead, trust the system
17607         definition if INT64_MAX is defined, and likewise for the unsigned
17608         variant.   Problem reported by Jarno Rajahalme in
17609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17610         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17611         and don't mess with int64_t and INT64_MAX in this case.
17612         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17613
17614 2010-11-24  Bruno Haible  <bruno@clisp.org>
17615
17616         doc: Corrections regarding MacOS X 10.4 and 10.5.
17617         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17618         MacOS X.
17619         Reported by Simon Josefsson.
17620
17621 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17622
17623         Uninstall ".bin" files installed by relocwrapper.
17624         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17625         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17626         unless it is already there.
17627
17628 2010-11-21  Bruno Haible  <bruno@clisp.org>
17629
17630         Update for NetBSD 5.0.
17631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17632         NetBSD; the test fails on NetBSD 5.0.
17633         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17634         about NetBSD.
17635
17636 2010-11-21  Bruno Haible  <bruno@clisp.org>
17637
17638         Update for HP-UX 11.23 and HP-UX 11.31.
17639         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17640         HP-UX.
17641
17642 2010-11-21  Bruno Haible  <bruno@clisp.org>
17643
17644         Update for MacOS X 10.5.
17645         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17646         MacOS X; the test fails on MacOS X 10.5.8.
17647         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17648         about MacOS X.
17649
17650 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17651
17652         bootstrap: add bootstrap_sync option.
17653         See discussion at
17654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17655         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17656         * build-aux/bootstrap: Accept --bootstrap-sync to update
17657         bootstrap if it is not identical to the local gnulib's
17658         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17659         enable this by default.  Accept --no-bootstrap-sync to disable
17660         it.
17661
17662 2010-11-20  Bruno Haible  <bruno@clisp.org>
17663
17664         Ensure that <features.h> is included before __GLIBC__ is tested.
17665         * lib/printf-parse.h: Include <features.h>.
17666         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17667         Reported by Mike Frysinger <vapier@gentoo.org>.
17668
17669         Ensure that <features.h> is included before __GLIBC__ is tested.
17670         * lib/wchar.in.h: Include <features.h>.
17671         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17672         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17673         Reported by Mike Frysinger <vapier@gentoo.org>.
17674
17675         Ensure that <features.h> is included before __GLIBC__ is tested.
17676         * lib/arpa_inet.in.h: Include <features.h>.
17677         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17678         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17679         Reported by Mike Frysinger <vapier@gentoo.org>.
17680
17681         Ensure that <features.h> is included before __GLIBC__ is tested.
17682         * build-aux/link-warning.h: Include <features.h>.
17683         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17684         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17685         Reported by Mike Frysinger <vapier@gentoo.org>.
17686
17687         Ensure that <features.h> is included before __GLIBC__ is tested.
17688         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17689         Reported by Mike Frysinger <vapier@gentoo.org>.
17690
17691 2010-11-20  Bruno Haible  <bruno@clisp.org>
17692
17693         memmem: Fix autoconf test.
17694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17695
17696 2010-11-20  Bruno Haible  <bruno@clisp.org>
17697
17698         Port to uClibc.
17699         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17700         * lib/fcntl.in.h: Likewise.
17701         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17702         * lib/mbrtowc.c (mbrtowc): Likewise.
17703         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17704         * lib/strerror_r.c: Likewise.
17705         * lib/unistr/u8-strnlen.c: Likewise.
17706         * lib/vasnprintf.c (decimal_point_char): Likewise.
17707         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17708         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17709         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17710         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17711         * tests/test-sigaction.c (handler, main): Likewise.
17712         * lib/freading.h: Treat uClibc like a non-glibc platform.
17713         * lib/freading.c: Likewise.
17714         * lib/gettext.h: Likewise.
17715         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17716         Likewise.
17717         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17718         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17719         * lib/propername.c (proper_name_utf8): Likewise.
17720         * lib/spawn.in.h: Likewise.
17721         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17722         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17723         mem_cd_iconveh_internal): Likewise.
17724         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17725         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17726         strstr, strcasestr): Likewise.
17727         * lib/unicodeio.c (unicode_to_mb): Likewise.
17728         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17729         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17730         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17731         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17732         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17733         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17734         * lib/unistr/u8-stpncpy.c: Likewise.
17735         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17736         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17737         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17738         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17739         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17740         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17744         Likewise.
17745         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17746         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17747         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17748         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17749         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17750         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17751         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17752         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17753         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17754         * tests/test-striconveha.c (main): Likewise.
17755         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17756         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17757         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17758         * doc/posix-functions/getline.texi: Likewise.
17759         Reported by Mike Frysinger <vapier@gentoo.org>.
17760
17761 2010-11-20  Bruno Haible  <bruno@clisp.org>
17762
17763         nproc: Fix condition.
17764         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17765         HAVE_PTHREAD_AFFINITY_NP.
17766
17767 2010-11-20  Bruno Haible  <bruno@clisp.org>
17768
17769         Fix a comment.
17770         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17771
17772 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17773
17774         ftoastr: don't assume snprintf
17775         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17776         Implement a subset of snprintf here, by using sprintf safely.
17777         * modules/ftoastr (Depends-on): Remove snprintf.
17778
17779 2010-11-19  Jim Meyering  <meyering@redhat.com>
17780
17781         test-rename.h: fix compilation failure
17782         * tests/test-rename.h (test_rename): Add omitted "}".
17783
17784 2010-11-17  Jim Meyering  <meyering@redhat.com>
17785
17786         maint.mk: add a URL discussing the no-@acronym policy
17787         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17788
17789 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17790
17791         ftoastr: depend on snprintf, improve comments
17792         * lib/ftoastr.c: Also mention Loitsch's draft.
17793         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17794         needed in the current implementation, but it might simplify
17795         speeding up the code later.
17796         * modules/ftoastr: Depend on snprintf; this improves portability.
17797         Suggested by Bruno Haible in the same email.
17798
17799         ftoastr: port to hosts lacking strtof and strtold
17800         Problem reported by Bruno Haible in
17801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17802         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17803         environment and strtold (and presumably strtof) are not available.
17804         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17805         (configure.ac): Require gl_C99_STRTOLD.
17806
17807 2010-11-18  Bruno Haible  <bruno@clisp.org>
17808
17809         c-strtold: Avoid link error on AIX 7.
17810         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17811         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17812         (gl_C_STRTOLD): Test whether strtold_l exists.
17813         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17814
17815 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17816
17817         intprops: new macro INT_BITS_STRLEN_BOUND
17818         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17819         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17820         not exposed.  Also, it uses a slightly tighter bound than before;
17821         though this makes no practical difference, we might as well be as
17822         tight as we easily can.
17823
17824         ftoastr: new module, for lossless conversion of floats to short strings
17825         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17826         * modules/ftoastr: New files.
17827
17828 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17829
17830         bootstrap: port to Solaris sed
17831         * build-aux/bootstrap (get_version): Port to Solaris sed.
17832         See Ralf Wildenhues's note in
17833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17834
17835 2010-11-14  Jim Meyering  <meyering@redhat.com>
17836
17837         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17838         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17839         and move definition closer to sole use.
17840
17841 2010-11-13  Jim Meyering  <meyering@redhat.com>
17842
17843         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17844         Now we require at least autoconf-2.59, which means the work-around
17845         is no longer needed.
17846         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17848         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17849         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17850         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17851
17852 2010-11-13  Bruno Haible  <bruno@clisp.org>
17853
17854         rename, renameat: Avoid test failures at NFS mounted locations.
17855         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17856         functions.
17857         (test_rename): Use assert_nonexistent.
17858         * tests/test-rename.c: Include <dirent.h>.
17859         * tests/test-renameat.c: Likewise.
17860         Reported by Gary V. Vaughan <gary@gnu.org>.
17861
17862         rename, renameat: Document Linux bug with NFS
17863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17864         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17865         * doc/posix-functions/renameat.texi: Likewise.
17866         Suggested by Eric Blake.
17867
17868 2010-11-13  Bruno Haible  <bruno@clisp.org>
17869
17870         rename test: Add comments.
17871         * tests/test-rename.h (test_rename): Add structure and comments.
17872
17873 2010-11-13  Eric Blake  <eblake@redhat.com>
17874
17875         maintainer-makefile: cover a few more files
17876         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17877         scripts generated within C files, for libvirt.
17878
17879 2010-11-13  Bruno Haible  <bruno@clisp.org>
17880
17881         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17882         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17883         character, return the number of bytes that belong together, not always
17884         1.
17885         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17886         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17887         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17888         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17889         number of bytes of an invalid character.
17890         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17891         (main): Invoke it.
17892         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17893         results.
17894         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17895         malformed byte sequences.
17896         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17897         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17898         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17899         Reported by Ben Pfaff and Paolo Bonzini.
17900
17901 2010-11-13  Bruno Haible  <bruno@clisp.org>
17902
17903         openat: Work around glibc bug with fchownat() and empty file names.
17904         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17905         (gl_FUNC_FCHOWNAT): Invoke it.
17906         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17907         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17908         Reported by Gary V. Vaughan <gary@gnu.org>.
17909
17910 2010-11-13  Bruno Haible  <bruno@clisp.org>
17911
17912         openat: Ensure autoconf macro ordering.
17913         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17914         gl_USE_SYSTEM_EXTENSIONS.
17915         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17916
17917 2010-11-13  Bruno Haible  <bruno@clisp.org>
17918
17919         Update comments.
17920         * lib/unistr/u8-check.c: Update file name in comments.
17921         * lib/unistr/u8-mblen.c: Likewise.
17922         * lib/unistr/u8-prev.c: Likewise.
17923         * lib/unistr/u8-strmblen.c: Likewise.
17924         * lib/unistr/u8-strmbtouc.c: Likewise.
17925
17926 2010-11-13  Jim Meyering  <meyering@redhat.com>
17927
17928         tests: avoid test failure on Solaris 10 due to lack of PATH export
17929         * tests/test-update-copyright.sh: Don't forget to export PATH.
17930
17931         init.sh: ensure that IFS is defined, just in case...
17932         * tests/init.sh (setup_): Ensure that IFS is defined,
17933         so that saving and restoring it works as expected.  This
17934         appears to be useful at least for an old version of dash
17935         from a long time ago (RH 6).  See here for details:
17936         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17937
17938         maint.mk: tighten "test a == b" check
17939         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17940         test to files that contain something like #!/bin/sh.
17941         Without this, coreutils would get two false positives in
17942         the comments of C source files.
17943
17944 2010-11-12  Eric Blake  <eblake@redhat.com>
17945
17946         bootstrap: fix typo in previous attempt
17947         * build-aux/bootstrap (buildreq): Correct the grouping.
17948         Reported by Paul Eggert.
17949
17950         maintainer-makefile: prohibit test x == x
17951         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17952         Based on a report by Matthias Bolte.
17953
17954         bootstrap: allow FreeBSD gzip
17955         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17956         which has no '.' and goes to stderr.
17957         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17958         Reported by Matthias Bolte.
17959
17960         maintainer-makefile: check for i18n setup
17961         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17962         will likely work.
17963
17964 2010-11-12  Bruno Haible  <bruno@clisp.org>
17965
17966         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17967         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17968         * lib/nanosleep.c (nanosleep): Likewise.
17969
17970 2010-11-11  Bruno Haible  <bruno@clisp.org>
17971
17972         fcntl-h: Fix for use of C++ on glibc systems.
17973         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17974         also on glibc systems in C++ mode.
17975         Reported by Gary V. Vaughan <gary@gnu.org>.
17976
17977 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17978
17979         mknod: avoid false failure with dash
17980         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17981
17982 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         unlink: Fix "is it should" typo in diagnostic.
17985         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17987
17988 2010-11-11  Bruno Haible  <bruno@clisp.org>
17989
17990         Tests for module 'strerror_r-posix'.
17991         * modules/strerror_r-posix-tests: New file.
17992         * tests/test-strerror_r.c: New file.
17993         * tests/test-string-c++.cc: Check the signature of strerror_r.
17994
17995         New module 'strerror_r-posix'.
17996         * lib/string.in.h (strerror_r): New declaration.
17997         * lib/strerror_r.c: New file.
17998         * m4/strerror_r.m4: New file.
17999         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18000         of strerror_r.
18001         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18002         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18003         * modules/strerror_r-posix: New file.
18004         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18005         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18006         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18007         portability problems.
18008
18009 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18010
18011         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18012         line is also considered for output. Quoted function name in shell
18013         command, so temporary files for functions like MyClass::operator()
18014         are removed correctly without errors.
18015
18016 2010-11-09  Bruno Haible  <bruno@clisp.org>
18017
18018         * doc/posix-functions/strerror.texi: List more failing platforms.
18019
18020         * doc/posix-functions/strerror.texi: Add a comment.
18021
18022 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18023
18024         fdopendir: fix bug on MacOS X when low on file descriptors
18025
18026         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18027         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18028         All callers changed.
18029         (fdopendir): Invoke save_cwd at the top level, not after using
18030         multiple dup() calls to use up file descriptors.  Then retry
18031         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18032         less than the maximum number of open file descriptors, because
18033         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18034         on Mac OS X 10.6.4 for tar 1.24
18035         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18036         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18037         and for tar 1.25
18038         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18039
18040 2010-11-07  Bruno Haible  <bruno@clisp.org>
18041
18042         vasnprintf: Support I flag on glibc systems.
18043         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18044         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18045         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18046         snprintf function.
18047         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18048         glibc systems.
18049         * tests/test-vasnprintf-posix3.c: New file.
18050         * modules/vasnprintf-posix-tests (Files): Add it.
18051         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18052
18053 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18054
18055         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18056         * MODULES.html.sh: For compiler warnings, use name
18057         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18058
18059 2010-11-05  Eric Blake  <eblake@redhat.com>
18060
18061         ceil, floor: avoid spurious failure with icc
18062         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18063         [denormals-as-zero] when optimizing without -mieee-fp option.
18064         * tests/test-floorf2.c (floorf_reference): Likewise.
18065         * tests/test-ceilf1.c (dummy): New function.
18066         (main): Use it to outsmart icc's optimization.
18067         * tests/test-floorf1.c (dummy, main): Likewise.
18068
18069         tests: require working signbit
18070         * modules/ceilf-tests (Depends-on): Add signbit.
18071         * modules/ceill-tests (Depends-on): Likewise.
18072         * modules/floorf-tests (Depends-on): Likewise.
18073         * modules/floorl-tests (Depends-on): Likewise.
18074         * modules/round-tests (Depends-on): Likewise.
18075         * modules/roundf-tests (Depends-on): Likewise.
18076         * modules/roundl-tests (Depends-on): Likewise.
18077         * modules/trunc-tests (Depends-on): Likewise.
18078         * modules/truncf-tests (Depends-on): Likewise.
18079         * modules/truncl-tests (Depends-on): Likewise.
18080
18081         strtod: work around icc bug
18082         * lib/strtod.c (minus_zero): Define to working value.
18083         (strtod): Use it to avoid icc bug.
18084
18085         copysign: enhance tests
18086         * modules/copysign-tests (Files): Add minus-zero.h.
18087         * tests/test-copysign.c (main): Also test zeros.
18088
18089 2010-11-04  Eric Blake  <eblake@redhat.com>
18090
18091         ceil, floor, round, trunc: enhance tests of -0
18092         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18093         * tests/test-ceill.c (main): Likewise.
18094         * tests/test-floorf1.c (main): Likewise.
18095         * tests/test-floorl.c (main): Likewise.
18096         * tests/test-round1.c (main): Likewise.
18097         * tests/test-roundf1.c (main): Likewise.
18098         * tests/test-roundl.c (main): Likewise.
18099         * tests/test-trunc1.c (main): Likewise.
18100         * tests/test-truncf1.c (main): Likewise.
18101         * tests/test-truncl.c (main): Likewise.
18102
18103 2010-11-04  Eric Blake  <eblake@redhat.com>
18104
18105         frexp, tests: work around ICC bug with -zero
18106         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18107         works with more compilers.
18108         * tests/minus-zero.h: New file.
18109         * modules/ceilf-tests (Files): Include it.
18110         * modules/ceill-tests (Files): Likewise.
18111         * modules/floorf-tests (Files): Likewise.
18112         * modules/floorl-tests (Files): Likewise.
18113         * modules/frexp-nolibm-tests (Files): Likewise.
18114         * modules/frexp-tests (Files): Likewise.
18115         * modules/frexpl-nolibm-tests (Files): Likewise.
18116         * modules/frexpl-tests (Files): Likewise.
18117         * modules/isnan-tests (Files): Likewise.
18118         * modules/isnand-nolibm-tests (Files): Likewise.
18119         * modules/isnand-tests (Files): Likewise.
18120         * modules/isnanf-nolibm-tests (Files): Likewise.
18121         * modules/isnanf-tests (Files): Likewise.
18122         * modules/isnanl-nolibm-tests (Files): Likewise.
18123         * modules/isnanl-tests (Files): Likewise.
18124         * modules/round-tests (Files): Likewise.
18125         * modules/roundf-tests (Files): Likewise.
18126         * modules/roundl-tests (Files): Likewise.
18127         * modules/ldexpl-tests (Files): Likewise.
18128         * modules/signbit-tests (Files): Likewise.
18129         * modules/snprintf-posix-tests (Files): Likewise.
18130         * modules/sprintf-posix-tests (Files): Likewise.
18131         * modules/strtod-tests (Files): Likewise.
18132         * modules/trunc-tests (Files): Likewise.
18133         * modules/truncf-tests (Files): Likewise.
18134         * modules/truncl-tests (Files): Likewise.
18135         * modules/vsnprintf-posix-tests (Files): Likewise.
18136         * modules/vsprintf-posix-tests (Files): Likewise.
18137         * modules/vasnprintf-posix-tests (Files): Likewise.
18138         * modules/vasprintf-posix-tests (Files): Likewise.
18139         * tests/test-ceilf1.c (main): Use it.
18140         * tests/test-ceill.c (main): Likewise.
18141         * tests/test-floorf1.c (main): Likewise.
18142         * tests/test-floorl.c (main): Likewise.
18143         * tests/test-frexp.c (main): Likewise.
18144         * tests/test-frexpl.c (main): Likewise.
18145         * tests/test-isnan.c (main): Likewise.
18146         * tests/test-isnand.h (main): Likewise.
18147         * tests/test-isnanf.h (main): Likewise.
18148         * tests/test-isnanl.h (main): Likewise.
18149         * tests/test-ldexpl.c (main): Likewise.
18150         * tests/test-round.c (main): Likewise.
18151         * tests/test-roundf.c (main): Likewise.
18152         * tests/test-roundl.c (main): Likewise.
18153         * tests/test-signbit.c (test_signbitf, test_signbitd)
18154         (test_signbitl): Likewise.
18155         * tests/test-snprintf-posix.h (test_function): Likewise.
18156         * tests/test-sprintf-posix.h (test_function): Likewise.
18157         * tests/test-strtod.c (main): Likewise.
18158         * tests/test-trunc1.c (main): Likewise.
18159         * tests/test-truncf1.c (main): Likewise.
18160         * tests/test-truncl.c (main): Likewise.
18161
18162         isnanl: work around icc bug
18163         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18164
18165 2010-11-03  Eric Blake  <eblake@redhat.com>
18166
18167         tests: fix compiler warnings
18168         * tests/test-getopt.h (test_getopt): Fix condition.
18169         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18170         * tests/test-pipe2.c (main): Likewise.
18171         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18172
18173         utimens: fix broken m4 test
18174         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18175
18176 2010-10-28  Bruno Haible  <bruno@clisp.org>
18177
18178         posix_spawn*, getdtablesize: Relax license.
18179         * modules/posix_spawn (License): Change to LGPLv2+.
18180         * modules/posix_spawnp (License): Likewise.
18181         * modules/posix_spawn-internal (License): Likewise.
18182         * modules/posix_spawnattr_init (License): Likewise.
18183         * modules/posix_spawnattr_getflags (License): Likewise.
18184         * modules/posix_spawnattr_setflags (License): Likewise.
18185         * modules/posix_spawnattr_getpgroup (License): Likewise.
18186         * modules/posix_spawnattr_setpgroup (License): Likewise.
18187         * modules/posix_spawnattr_getschedparam (License): Likewise.
18188         * modules/posix_spawnattr_setschedparam (License): Likewise.
18189         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18190         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18191         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18192         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18193         * modules/posix_spawnattr_getsigmask (License): Likewise.
18194         * modules/posix_spawnattr_setsigmask (License): Likewise.
18195         * modules/posix_spawnattr_destroy (License): Likewise.
18196         * modules/posix_spawn_file_actions_init (License): Likewise.
18197         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18198         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18199         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18200         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18201         * modules/getdtablesize (License): Likewise.
18202         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18203
18204 2010-10-26  Bruno Haible  <bruno@clisp.org>
18205
18206         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18207         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18208         Cygwin and mingw.
18209         Suggested by Eric Blake.
18210
18211 2010-10-26  Bruno Haible  <bruno@clisp.org>
18212
18213         stdio: Work around compilation error due to renameat() on Solaris 10.
18214         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18215         * lib/renameat.c: Don't include <unistd.h> here.
18216         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18217         Reported by Paul Eggert and Eric Blake.
18218
18219 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18220
18221         renameat: port to Solaris 10, which declares renameat in unistd.h
18222
18223         * lib/renameat.c: Include unistd.h before stdio.h, because
18224         Solaris 10 declares renameat in unistd.h.  Problem encountered
18225         when building GNU tar 1.24 on Solaris 10.
18226
18227 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18228
18229         fdopendir: fix C89 compilation
18230         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18231         compilers.
18232
18233 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         inttostr: simplify by removing unnecessary redundancy
18236         * lib/anytostr.c: Don't include verify.h.
18237         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18238         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18239         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18240         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18241         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18242         Likewise.
18243         * modules/inttostr (Depends-on): Remove 'verify'.
18244
18245 2010-10-23  Bruno Haible  <bruno@clisp.org>
18246
18247         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18248         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18249         Reported by Eric Blake.
18250
18251 2010-10-23  Bruno Haible  <bruno@clisp.org>
18252
18253         Tests: Fix LOCALE_JA on MirBSD 10.
18254         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18255         to an UTF-8 locale.
18256         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18257         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18258         Reported by Eric Blake.
18259
18260 2010-10-21  Bruno Haible  <bruno@clisp.org>
18261
18262         nl_langinfo test: Avoid test failure on NetBSD 5.
18263         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18264         Reported by Eric Blake.
18265
18266 2010-10-21  Eric Blake  <eblake@redhat.com>
18267
18268         c-stack: work around libsigsegv 2.8 bug
18269         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18270         overflow on at least PowerPC64.
18271
18272 2010-10-17  Bruno Haible  <bruno@clisp.org>
18273
18274         userspec: Drop redundant file.
18275         * modules/userspec (Files): Remove lib/inttostr.h.
18276
18277 2010-10-17  Bruno Haible  <bruno@clisp.org>
18278
18279         nl_langinfo tests: Silence some warnings.
18280         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18281         Reported by Jim Meyering.
18282
18283 2010-10-17  Bruno Haible  <bruno@clisp.org>
18284
18285         Make use of GCC's attribute __alloc_size__.
18286         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18287         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18288         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18289         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18290         __alloc_size__.
18291         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18292         Suggested by Jim Meyering.
18293
18294 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18295
18296         bootstrap: anchor .gitignore entries.
18297         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18298         with...
18299         (insert_vc_ignore): ... this new function, which prepends `/' to
18300         all .gitignore entries before passing them to
18301         insert_sorted_if_absent.
18302
18303 2010-10-16  Bruno Haible  <bruno@clisp.org>
18304
18305         nextafter: Fix configure check.
18306         * modules/nextafter (configure.ac): Correct expected prototype.
18307
18308 2010-10-16  Bruno Haible  <bruno@clisp.org>
18309
18310         termios: Update documentation.
18311         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18312
18313 2010-10-16  Bruno Haible  <bruno@clisp.org>
18314
18315         tests: Make them compile with TinyCC.
18316         * tests/test-strstr.c (main): Remove parentheses around array
18317         initializer.
18318
18319 2010-10-15  Eric Blake  <eblake@redhat.com>
18320
18321         ignore-value: make header idempotent
18322         * lib/ignore-value.h: Add double-inclusion guards.
18323         Reported by Stefan Berger.
18324
18325 2010-10-15  Jim Meyering  <meyering@redhat.com>
18326
18327         GNUmakefile: handle "stable" target, not "major"
18328         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18329         lists in maint.mk and announce-gen.  Without this, "make stable"
18330         would fail to ensure that $(VERSION) is up to date.
18331
18332 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18333
18334         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18335         & co.
18336
18337 2010-10-14  Bruno Haible  <bruno@clisp.org>
18338
18339         vasnprintf: Don't set errno to 0.
18340         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18341         block that sets it to 0.
18342         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18343
18344 2010-10-14  Bruno Haible  <bruno@clisp.org>
18345
18346         socketlib: Fix.
18347         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18348         gl_PREREQ_SYS_H_WINSOCK2.
18349         Reported by Ian Beckwith <ianb@erislabs.net>.
18350
18351 2010-10-13  Jim Meyering  <meyering@redhat.com>
18352
18353         test-select-stdin.c: avoid warn_unused_result warnings
18354         * tests/test-select-stdin.c: Include "macros.h".
18355         ASSERT that read and fflush succeed.
18356
18357 2010-10-13  Jim Meyering  <meyering@redhat.com>
18358
18359         git-version-gen: do require git-VC'd files in cwd
18360         * build-aux/git-version-gen: Reject a git version string
18361         if there are no commits associated with the current directory.
18362         This avoids an unlikely false-positive (unrelated dir whose parent
18363         repository also contains a tag matching v*), as pointed out
18364         by Giuseppe Scrivano in
18365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18366
18367 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18368
18369         argv-iter: omit nonconforming declaration
18370         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18371         enum arg_iter_err declaration, which doesn't conform to C99.
18372         Solaris 10 cc warns about this.
18373
18374 2010-10-13  Eric Blake  <eblake@redhat.com>
18375
18376         termios: fix compilation on mingw
18377         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18378         (gl_TERMIOS_H): Adjust it on mingw.
18379         * modules/termios (Makefile.am): Substitute new key.
18380         * lib/termios.in.h (includes): Make include_next conditional.
18381         * doc/posix-headers/termios.texi (termios.h): Update
18382         documentation.
18383         Reported by Daniel P. Berrange.
18384
18385 2010-10-13  Jim Meyering  <meyering@redhat.com>
18386
18387         git-version-gen: don't require that .git/ be in the current dir
18388         * build-aux/git-version-gen: Adjust this script so that it works
18389         when run from any working directory beneath the top-level .git/-
18390         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18391         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18392
18393         test-select: avoid warn_unused_result warnings
18394         * tests/test-select.c: Include "macros.h".
18395         ASSERT that each call to read, write, and pipe succeeds.
18396         While not technically required, also check each "close".
18397         * modules/select-tests (Files): Add tests/macros.h.
18398
18399         test-symlinkat: remove declaration of unused local
18400         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18401
18402         test-inttostr: avoid shadowing warnings
18403         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18404         and use malloc rather than the stack for the same reason as
18405         mentioned in the comment justifying the other allocation.
18406
18407 2010-10-11  Bruno Haible  <bruno@clisp.org>
18408
18409         stdlib: Allow multiple gnulib generated replacements to coexist.
18410         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18411         Reported by Sam Steingold <sds@gnu.org>.
18412
18413 2010-10-11  Jim Meyering  <meyering@redhat.com>
18414
18415         fix a documentation typo
18416         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18417
18418 2010-10-11  Eric Blake  <eblake@redhat.com>
18419
18420         futimens: work around Solaris 11 bug
18421         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18422         * tests/test-futimens.h (test_futimens): Enhance, rather than
18423         weaken test.
18424         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18425
18426 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         Indentation.
18429         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18430         higher-level operators more to the left.
18431
18432 2010-10-11  Jim Meyering  <meyering@redhat.com>
18433
18434         test-futimens: avoid unwarranted test failure on Solaris 5.11
18435         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18436         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18437         because it tries to dereference the NULL name argument.
18438
18439 2010-10-11  Bruno Haible  <bruno@clisp.org>
18440
18441         Indentation.
18442         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18443         indentation.
18444
18445 2010-10-11  Jim Meyering  <meyering@redhat.com>
18446
18447         spawn.in.h: make indentation consistent with parentheses
18448         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18449         Make indentation consistent with parentheses.
18450
18451 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18452
18453         Fix mismatched parens in previous commit
18454         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18455         parens.
18456
18457 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18458
18459         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18460
18461         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18462         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18463         * lib/malloca.c: Include "verify.h".
18464         (verify1): Remove, replacing with a verify call.
18465         * lib/relocwrapper.c (verify1): Likewise.
18466         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18467         Likewise.
18468         * modules/malloca (Depends-on): Add 'verify'.
18469         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18470         * modules/vasnprintf (Depends-on): Add 'verify'.
18471         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18472         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18473         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18474         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18475         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18476         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18477         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18478
18479         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18480
18481         Formerly the style was sometimes 2*X - 1, because the C standard
18482         was wrongly thought to disallow ?: in integral constant expressions.
18483         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18484         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18485         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18486         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18487         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18488         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18489         verify that time_t cannot be floating.
18490
18491 2010-10-08  Eric Blake  <eblake@redhat.com>
18492
18493         time: enforce recent POSIX ruling that time_t is integral
18494         * lib/time.in.h (__time_t_must_be_integral): Detect any
18495         problematic systems, allowing the rest of gnulib to assume POSIX.
18496
18497 2010-10-08  Jim Meyering  <meyering@redhat.com>
18498
18499         fdopendir: fix a bug on systems lacking openat and /proc support
18500         OpenBSD 4.7 is one such system.  The most noticeable effect was
18501         failure of any application making nontrivial use of fts: rm, du,
18502         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18503           ./rm: traversal failed: `a': Bad file descriptor
18504         Debugging that, you see that even though FD 6 was closed just
18505         prior to the opendir call in fd_clone_opendir, its resulting
18506         dir->dd_fd was 8, rather than the expected value of 6:
18507
18508         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18509         93                close (fd);
18510         (gdb) n
18511         94                dir = fd_clone_opendir (dupfd);
18512         (gdb) n
18513         95                saved_errno = errno;
18514         (gdb) p dir->dd_fd
18515         $11 = 8
18516
18517         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18518         The problem is that on OpenBSD, fd_clone_opendir has to resort
18519         to using the old-style save/restore CWD mechanism, due to its
18520         lack of openat/proc support, and *that* would steal the FD (6)
18521         that opendir was supposed to use.
18522
18523         The fix is to squirrel away the desired FD so that save_cwd uses a
18524         different one, and then free the dest FD right before calling opendir.
18525         That guarantees opendir will use the required file descriptor.
18526
18527         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18528
18529 2010-10-08  Bruno Haible  <bruno@clisp.org>
18530
18531         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18532         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18533
18534 2010-10-08  Bruno Haible  <bruno@clisp.org>
18535
18536         nanosleep: Make replacement POSIX compliant.
18537         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18538         is out of range.
18539         Reported by Jim Meyering.
18540
18541 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18542
18543         bootstrap: add hook for altering gnulib.mk, for Bison
18544         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18545         the Bison bootstrapping process can rewrite file names and variables
18546         in this file before later parts of 'bootstrap' use the file.
18547         Bison wants to include lib/gnulib.mk from the top-level makefile,
18548         so it needs the file names in this file to be relative to the top
18549         level, not relative to lib; plus it needs variable names to be
18550         rewritten.
18551         (slurp): Use the new function.
18552
18553         bootstrap: reformat for readability
18554         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18555
18556 2010-10-08  Eric Blake  <eblake@redhat.com>
18557
18558         docs: update cygwin progress
18559         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18560         1.7.7.
18561         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18562         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18563         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18564         * doc/posix-functions/carg.texi (carg): Likewise.
18565         * doc/posix-functions/cargf.texi (cargf): Likewise.
18566         * doc/posix-functions/casin.texi (casin): Likewise.
18567         * doc/posix-functions/casinf.texi (casinf): Likewise.
18568         * doc/posix-functions/casinh.texi (casinh): Likewise.
18569         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18570         * doc/posix-functions/catan.texi (catan): Likewise.
18571         * doc/posix-functions/catanf.texi (catanf): Likewise.
18572         * doc/posix-functions/catanh.texi (catanh): Likewise.
18573         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18574         * doc/posix-functions/ccos.texi (ccos): Likewise.
18575         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18576         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18577         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18578         * doc/posix-functions/cexp.texi (cexp): Likewise.
18579         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18580         * doc/posix-functions/cimag.texi (cimag): Likewise.
18581         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18582         * doc/posix-functions/clog.texi (clog): Likewise.
18583         * doc/posix-functions/clogf.texi (clogf): Likewise.
18584         * doc/posix-functions/conj.texi (conj): Likewise.
18585         * doc/posix-functions/conjf.texi (conjf): Likewise.
18586         * doc/posix-functions/cpow.texi (cpow): Likewise.
18587         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18588         * doc/posix-functions/cproj.texi (cproj): Likewise.
18589         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18590         * doc/posix-functions/creal.texi (creal): Likewise.
18591         * doc/posix-functions/crealf.texi (crealf): Likewise.
18592         * doc/posix-functions/csin.texi (csin): Likewise.
18593         * doc/posix-functions/csinf.texi (csinf): Likewise.
18594         * doc/posix-functions/csinh.texi (csinh): Likewise.
18595         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18596         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18597         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18598         * doc/posix-functions/ctan.texi (ctan): Likewise.
18599         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18600         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18601         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18602         * doc/posix-headers/complex.texi (complex.h): Likewise.
18603
18604 2010-10-07  Jim Meyering  <meyering@redhat.com>
18605
18606         parse-datetime: avoid compilation failure on OpenBSD 4.7
18607         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18608         This works around a compilation failure on OpenBSD 4.7:
18609         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18610
18611 2010-10-07  Eric Blake  <eblake@redhat.com>
18612
18613         docs: update cygwin progress
18614         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18615         1.7.6.
18616         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18617         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18618         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18619         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18620         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18621         Likewise.
18622         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18623         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18624         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18625         Likewise.
18626         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18627         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18628         Likewise.
18629         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18630         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18631         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18632         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18633         Likewise.
18634         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18635         Likewise.
18636         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18637
18638         docs: update parse-datetime history
18639         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18640         documentation of this function's history and alternatives.
18641
18642         cygwin: use more robust version check
18643         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18644         exclude an eventual cygwin 1.9.1.
18645         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18647         (gl_FUNC_STRCASESTR): Likewise.
18648         Reported by Bruno Haible.
18649
18650 2010-10-06  Bruno Haible  <bruno@clisp.org>
18651
18652         string, sys_select: Avoid #including large headers unless necessary.
18653         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18654         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18655         OSF/1, BeOS, Haiku.
18656         Reported by Jim Meyering.
18657
18658 2010-10-05  Eric Blake  <eblake@redhat.com>
18659
18660         memmem, strstr, strcasestr: fix bug with long periodic needle
18661         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18662         periodic needle having false positive.
18663         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18664         and cygwin 1.7.7.
18665         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18667         (gl_FUNC_STRCASESTR): Likewise.
18668         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18669         * tests/test-memmem.c (main): Expose the bug.
18670         * tests/test-strcasestr.c (main): Likewise.
18671         * tests/test-strstr.c (main): Likewise.
18672         * tests/test-c-strcasestr.c (main): Likewise.
18673         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18674         * doc/posix-functions/strstr.texi (strstr): Likewise.
18675         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18676         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18677
18678 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18679
18680         parse-datetime: do some more renaming
18681         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18682         parse_datetime, not get_date.  Mention the renaming.
18683         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18684         in comments.
18685         * m4/bison.m4: Likewise.
18686
18687 2010-10-05  Eric Blake  <eblake@redhat.com>
18688
18689         parse-datetime: better name than get_date
18690         * NEWS: Reword the deprecation notice.
18691         * modules/get_date: Rename to modules/parse-datetime.
18692         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18693         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18694         * lib/get_date.y: Rename to lib/parse-datetime.y.
18695         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18696         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18697         * doc/getdate.texi: Provide fallback wrapper.
18698         * lib/getdate.h: Move guts, and wrap...
18699         * lib/parse-datetime.h: ...new file.
18700         * lib/parse-datetime.y (get_date): Rename...
18701         (parse_datetime): ...to this.
18702         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18703         (gl_PARSE_DATETIME): ...to this.
18704         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18705         documentation.
18706         * modules/getdate (Files): Provide fallback docs and header.
18707         (Notice, Depends-on): Update references.
18708         * tests/test-parse-datetime.c: Likewise.
18709         * DEPENDENCIES: Likewise.
18710         * MODULES.html.sh (Date and time <time.h>): Likewise.
18711         * doc/parse-datetime.texi (Date input formats)
18712         (Authors of parse_datetime): Likewise.
18713         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18714         (Include): Likewise.
18715         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18716         * gnulib-tool: Likewise.
18717         * m4/bison.m4 (gl_BISON): Likewise.
18718         Suggested by Bruno Haible.
18719
18720 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18721
18722         more ports to Solaris tr, which needs [] around ranges
18723         * gnulib-tool: Solaris tr needs [] around ranges.
18724         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18725         * tests/test-pipe-filter-gi1.c (main): Likewise.
18726         * tests/test-pipe-filter-ii1.c (main): Likewise.
18727
18728 2010-10-05  Eric Blake  <eblake@redhat.com>
18729
18730         bootstrap: fix Solaris regression
18731         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18732         around ranges.
18733         Reported by Pádraig Brady.
18734
18735         bootstrap: work with pkg-config
18736         * build-aux/bootstrap (check_versions): Also transliterate - in
18737         prerequisite name.
18738         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18739         prerequisites that were already found, to avoid confusion.
18740         Reported by Justin Clift.
18741
18742         faccessat: remove unused wrappers
18743         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18744         presence of these wrappers dragged in -lgen on Solaris.
18745         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18746
18747 2010-10-05  Jim Meyering  <meyering@redhat.com>
18748
18749         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18750         * Makefile (sc_pragma_columns): New syntax-check rule.
18751
18752 2010-10-04  Bruno Haible  <bruno@clisp.org>
18753
18754         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18755         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18756         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18757         Reported by Bruce Korb and Eric Blake.
18758
18759 2010-10-04  Bruno Haible  <bruno@clisp.org>
18760
18761         threadlib: Make option --with-libpth-prefix work.
18762         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18763         use $LIBPTH, not just -lpth.
18764
18765 2010-10-04  Bruno Haible  <bruno@clisp.org>
18766
18767         Avoid line length limitation from HP NonStop system header files.
18768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18769         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18770         * lib/ctype.in.h: Likewise.
18771         * lib/dirent.in.h: Likewise.
18772         * lib/errno.in.h: Likewise.
18773         * lib/fcntl.in.h: Likewise.
18774         * lib/float.in.h: Likewise.
18775         * lib/getopt.in.h: Likewise.
18776         * lib/iconv.in.h: Likewise.
18777         * lib/inttypes.in.h: Likewise.
18778         * lib/langinfo.in.h: Likewise.
18779         * lib/locale.in.h: Likewise.
18780         * lib/math.in.h: Likewise.
18781         * lib/netdb.in.h: Likewise.
18782         * lib/netinet_in.in.h: Likewise.
18783         * lib/poll.in.h: Likewise.
18784         * lib/pthread.in.h: Likewise.
18785         * lib/pty.in.h: Likewise.
18786         * lib/sched.in.h: Likewise.
18787         * lib/se-selinux.in.h: Likewise.
18788         * lib/search.in.h: Likewise.
18789         * lib/signal.in.h: Likewise.
18790         * lib/spawn.in.h: Likewise.
18791         * lib/stdarg.in.h: Likewise.
18792         * lib/stddef.in.h: Likewise.
18793         * lib/stdint.in.h: Likewise.
18794         * lib/stdio.in.h: Likewise.
18795         * lib/stdlib.in.h: Likewise.
18796         * lib/string.in.h: Likewise.
18797         * lib/strings.in.h: Likewise.
18798         * lib/sys_file.in.h: Likewise.
18799         * lib/sys_ioctl.in.h: Likewise.
18800         * lib/sys_select.in.h: Likewise.
18801         * lib/sys_socket.in.h: Likewise.
18802         * lib/sys_stat.in.h: Likewise.
18803         * lib/sys_time.in.h: Likewise.
18804         * lib/sys_times.in.h: Likewise.
18805         * lib/sys_utsname.in.h: Likewise.
18806         * lib/sys_wait.in.h: Likewise.
18807         * lib/sysexits.in.h: Likewise.
18808         * lib/termios.in.h: Likewise.
18809         * lib/time.in.h: Likewise.
18810         * lib/unistd.in.h: Likewise.
18811         * lib/wchar.in.h: Likewise.
18812         * lib/wctype.in.h: Likewise.
18813         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18814         * modules/ctype (Makefile.am): Likewise.
18815         * modules/dirent (Makefile.am): Likewise.
18816         * modules/errno (Makefile.am): Likewise.
18817         * modules/fcntl-h (Makefile.am): Likewise.
18818         * modules/float (Makefile.am): Likewise.
18819         * modules/getopt-posix (Makefile.am): Likewise.
18820         * modules/iconv-h (Makefile.am): Likewise.
18821         * modules/inttypes (Makefile.am): Likewise.
18822         * modules/langinfo (Makefile.am): Likewise.
18823         * modules/locale (Makefile.am): Likewise.
18824         * modules/math (Makefile.am): Likewise.
18825         * modules/netdb (Makefile.am): Likewise.
18826         * modules/netinet_in (Makefile.am): Likewise.
18827         * modules/poll-h (Makefile.am): Likewise.
18828         * modules/pthread (Makefile.am): Likewise.
18829         * modules/pty (Makefile.am): Likewise.
18830         * modules/sched (Makefile.am): Likewise.
18831         * modules/search (Makefile.am): Likewise.
18832         * modules/selinux-h (Makefile.am): Likewise.
18833         * modules/signal (Makefile.am): Likewise.
18834         * modules/spawn (Makefile.am): Likewise.
18835         * modules/stdarg (Makefile.am): Likewise.
18836         * modules/stddef (Makefile.am): Likewise.
18837         * modules/stdint (Makefile.am): Likewise.
18838         * modules/stdio (Makefile.am): Likewise.
18839         * modules/stdlib (Makefile.am): Likewise.
18840         * modules/string (Makefile.am): Likewise.
18841         * modules/strings (Makefile.am): Likewise.
18842         * modules/sys_file (Makefile.am): Likewise.
18843         * modules/sys_ioctl (Makefile.am): Likewise.
18844         * modules/sys_select (Makefile.am): Likewise.
18845         * modules/sys_socket (Makefile.am): Likewise.
18846         * modules/sys_stat (Makefile.am): Likewise.
18847         * modules/sys_time (Makefile.am): Likewise.
18848         * modules/sys_times (Makefile.am): Likewise.
18849         * modules/sys_utsname (Makefile.am): Likewise.
18850         * modules/sys_wait (Makefile.am): Likewise.
18851         * modules/sysexits (Makefile.am): Likewise.
18852         * modules/termios (Makefile.am): Likewise.
18853         * modules/time (Makefile.am): Likewise.
18854         * modules/unistd (Makefile.am): Likewise.
18855         * modules/wchar (Makefile.am): Likewise.
18856         * modules/wctype (Makefile.am): Likewise.
18857
18858 2010-10-04  Bruno Haible  <bruno@clisp.org>
18859
18860         read-file tests: Avoid a test failure on NonStop Kernel.
18861         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18862         a regular file.
18863         Reported by Joachim Schmitz <schmitz@hp.com>.
18864
18865 2010-10-03  Bruno Haible  <bruno@clisp.org>
18866
18867         gnulib-tool: Fixes for --create-testdir with --libtool.
18868         * gnulib-tool (func_get_automake_snippet): Don't augment
18869         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18870         an executable.
18871         (func_create_testdir): Handle module 'alloca' like func_import.
18872         Reported by Bruce Korb <bruce.korb@gmail.com>.
18873
18874 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18875
18876         Avoid some lines longer than 80 characters.
18877         * lib/stdint.in.h: Break long comment lines.
18878         * lib/math.in.h: Likewise.
18879         (_GL_NUM_UINT_WORDS): New macro, for readability.
18880         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18881         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18882         * lib/stdlib.in.h: Likewise.
18883         * lib/spawn.in.h: Likewise.
18884         * lib/sys_socket.in.h: Update an URL.
18885         * lib/sys_stat.in.h: Break long line.
18886
18887 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18888
18889         Improve pmccabe2html.
18890         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18891         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18892         when the sources change. Remove the line in the HTML about "Used
18893         ranges" (which implied that there might be other unused ranges),
18894         rename "Resume" to "Summary" (easier to understand for more users).
18895         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18896         styles, and some unnecessary blank lines.
18897
18898 2010-10-03  Bruno Haible  <bruno@clisp.org>
18899             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18900
18901         acl: Add support for ACLs on NonStop Kernel.
18902         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18903         Check whether the function aclsort() exists.
18904         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18905         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18906         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18907         (acl_nontrivial [HAVE_ACLSORT]: New function.
18908         (file_has_acl): Implement for NonStop Kernel.
18909         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18910         (qset_acl): Implement for NonStop Kernel.
18911         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18912         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18913         (main): Implement for NonStop Kernel.
18914         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18915         Kernel. Handle this flavor.
18916         * tests/test-set-mode-acl.sh: Likewise.
18917         * tests/test-copy-acl.sh: Likewise.
18918         * tests/test-copy-file.sh: Likewise.
18919
18920 2010-10-03  Bruno Haible  <bruno@clisp.org>
18921
18922         Info about ACLs on NonStop Kernel.
18923         * doc/acl-resources.txt: Add info about NonStop Kernel.
18924         References by Joachim Schmitz <schmitz@hp.com>.
18925
18926 2010-10-02  Bruno Haible  <bruno@clisp.org>
18927
18928         Define missing EDQUOT on NonStop Kernel.
18929         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18930         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18931         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18932         missing.
18933         * doc/posix-headers/errno.texi: Mention the NSK bug.
18934         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18935         Reported by Joachim Schmitz <schmitz@hp.com>.
18936
18937 2010-10-02  Bruno Haible  <bruno@clisp.org>
18938
18939         Update doc for POSIX:2008.
18940         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18941         Update URL of POSIX specification.
18942
18943 2010-10-02  Bruno Haible  <bruno@clisp.org>
18944
18945         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18946         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18947         from gnulib, not from Automake.
18948
18949 2010-10-02  Bruno Haible  <bruno@clisp.org>
18950
18951         New module 'system-posix'.
18952         * modules/system-posix: New file.
18953         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18954         module is present.
18955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18956         GNULIB_SYSTEM_POSIX.
18957         * modules/stdlib (Depends-on): Remove sys_wait.
18958         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18959         * doc/posix-functions/system.texi: Mention the new module.
18960         * doc/posix-headers/stdlib.texi: Likewise.
18961         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18962         define test_sys_wait_macros to a no-op.
18963         Reported by Sam Steingold <sds@gnu.org>.
18964
18965 2010-09-30  Bruno Haible  <bruno@clisp.org>
18966
18967         More renaming from 'getdate' to 'get_date'.
18968         * doc/get_date.texi: Renamed from doc/getdate.texi.
18969         * modules/get_date (Files): Update.
18970         * MODULES.html.sh (Date and time <time.h>): Update.
18971         * DEPENDENCIES: Update.
18972         * gnulib-tool: Update comment.
18973         * m4/bison.m4 (gl_BISON): Likewise.
18974         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18975
18976 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18977
18978         bootstrap: support ACLOCAL_FLAGS during aclocal
18979         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18980         can add additional -I dir for third-party .m4 files.
18981
18982 2010-09-30  Eric Blake  <eblake@redhat.com>
18983
18984         bootstrap: use glibtoolize on MacOS
18985         * build-aux/bootstrap (check_versions): Convert libtool into
18986         libtoolize.
18987         (tool search): Move libtool check earlier, and look for
18988         glibtoolize for MacOS.
18989         (gnulib_tool_options): Auto-add --libtool when appropriate.
18990         Reported by Justin Clift.
18991
18992         poll: fix typo that broke test on MacOS
18993         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18994         Reported by Justin Clift.
18995
18996         getdate: rename to get_date
18997         Note: getdate.h is not renamed, to minimize client impact.
18998         * modules/getdate: Mark obsolete.  Move old contents...
18999         * modules/get_date: ...to new module name.
19000         * modules/getdate-tests: Move...
19001         * modules/get_date-tests: ...here.
19002         * m4/getdate.m4: Move...
19003         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19004         * lib/getdate.y: Move...
19005         * lib/get_date.y: ...here.
19006         * tests/test-getdate.c: Move...
19007         * tests/test-get_date.c: ...here.
19008         * doc/posix-functions/getdate.texi (getdate): Update name.
19009         * NEWS: Mention the change.
19010
19011 2010-09-29  Bruno Haible  <bruno@clisp.org>
19012
19013         Separate the module 'waitpid' from the module 'sys_wait'.
19014         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19015         present.
19016         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19017         gl_MODULE_INDICATOR_FOR_TESTS.
19018         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19019         * modules/sys_wait (Depends-on): Remove waitpid.
19020         (Makefile.am): Substitute GNULIB_WAITPID.
19021         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19022         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19023         signature only if the 'waitpid' module is present.
19024         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19025         * NEWS: Mention the change.
19026         * modules/grantpt (Depends-on): Add waitpid.
19027         * modules/wait-process (Depends-on): Likewise.
19028
19029 2010-09-29  Bruno Haible  <bruno@clisp.org>
19030
19031         More tests for module 'sys_wait'.
19032         * modules/sys_wait-c++-tests: New file.
19033         * tests/test-sys_wait-c++.cc: New file.
19034         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19035         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19036
19037 2010-09-29  Bruno Haible  <bruno@clisp.org>
19038
19039         New module 'waitpid'.
19040         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19041         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19042         Don't include <process.h>.
19043         (waitpid): Declare only, using modern idiom.
19044         * m4/waitpid.m4: New file.
19045         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19046         * modules/waitpid: New file.
19047         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19048         (Makefile.am): Update.
19049         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19050
19051 2010-09-28  Bruno Haible  <bruno@clisp.org>
19052
19053         poll: Assume ANSI C.
19054         * lib/poll.c (poll): Use an ANSI C declaration.
19055
19056 2010-09-28  Bruno Haible  <bruno@clisp.org>
19057
19058         poll-h: Create poll.h on all platforms.
19059         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19060         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19061         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19062         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19063         (gl_REPLACE_POLL_H): Don't set POLL_H.
19064         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19065         * modules/poll-h (Depends-on): Add include_next.
19066         (Makefile.am): Create poll.h unconditionally. Substitute also
19067         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19068
19069 2010-09-28  Bruno Haible  <bruno@clisp.org>
19070
19071         Tests for module 'poll-h'.
19072         * modules/poll-h-c++-tests: New file.
19073         * tests/test-poll-h-c++.cc: New file.
19074
19075         Tests for module 'poll-h'.
19076         * modules/poll-h-tests: New file.
19077         * tests/test-poll-h.c: New file.
19078
19079 2010-09-28  Bruno Haible  <bruno@clisp.org>
19080
19081         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19082         * modules/poll-h (Depends-on): Add 'extensions'.
19083
19084 2010-09-28  Bruno Haible  <bruno@clisp.org>
19085
19086         New module 'poll-h'.
19087         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19088         (poll): Use modern idiom.
19089         * modules/poll-h: New file.
19090         * modules/poll (Files): Remove lib/poll.in.h.
19091         (Depends-on): Add poll-h.
19092         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19093         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19094         * m4/poll_h.m4: New file.
19095         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19096         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19097         and invoke gl_REPLACE_POLL_H.
19098         * lib/poll.c: Use common idiom.
19099         * tests/test-poll.c: Likewise.
19100         * doc/posix-headers/poll.texi: Mention the poll-h module.
19101         Suggested by Eric Blake.
19102
19103 2010-09-26  Bruno Haible  <bruno@clisp.org>
19104
19105         sys_wait: Implement WSTOPSIG.
19106         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19107         Reported by Simon Josefsson.
19108
19109 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19110
19111         stdlib, sys_wait: Avoid compilation error on mingw.
19112         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19113
19114 2010-09-26  Bruno Haible  <bruno@clisp.org>
19115
19116         stdlib tests: Avoid code duplication.
19117         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19118         * modules/sys_wait-tests (Files): Likewise.
19119         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19120         * tests/test-stdlib.c: Include test-sys_wait.h.
19121         (main): Invoke test_sys_wait_macros.
19122         * tests/test-sys_wait.c: Include test-sys_wait.h.
19123         (main): Invoke test_sys_wait_macros.
19124
19125 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19126
19127         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19128         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19129         sure Windows sockets are working before calling getaddrinfo.
19130         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19131         * doc/gnulib.texi (Windows sockets): Fix typo.
19132
19133 2010-09-25  Bruno Haible  <bruno@clisp.org>
19134
19135         Tests for module 'regex-quote'.
19136         * modules/regex-quote-tests: New file.
19137         * tests/test-regex-quote.c: New file.
19138
19139         New module 'regex-quote'.
19140         * lib/regex-quote.h: New file.
19141         * lib/regex-quote.c: New file.
19142         * modules/regex-quote: New file.
19143         Suggested by Reuben Thomas <rrt@sc3d.org>.
19144
19145 2010-09-24  Bruno Haible  <bruno@clisp.org>
19146
19147         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19148         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19149
19150 2010-09-23  Bruno Haible  <bruno@clisp.org>
19151
19152         setenv: Relax license.
19153         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19154         Blake.
19155         Requested by Eric Blake.
19156
19157 2010-09-22  Bruno Haible  <bruno@clisp.org>
19158
19159         termios: Relax license.
19160         * modules/termios (License): Change to LGPLv2+.
19161         Requested by Eric Blake.
19162
19163 2010-09-22  Bruno Haible  <bruno@clisp.org>
19164
19165         threadlib: Allow the package to change the default to 'no'.
19166         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19167         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19168         Reported by Paul Eggert.
19169
19170 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19171             Bruno Haible  <bruno@clisp.org>
19172
19173         Fix endless loop in mbmemcasecoll.
19174         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19175         byte.
19176         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19177
19178 2010-09-22  Bruno Haible  <bruno@clisp.org>
19179
19180         Tests for module 'memcoll'.
19181         * modules/memcoll-tests: New file.
19182         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19183
19184         memcoll, xmemcoll: Clarify size vs. length.
19185         * modules/memcoll.c (memcoll0): Clarify specification.
19186         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19187         passed to collate_error.
19188
19189 2010-09-22  Bruno Haible  <bruno@clisp.org>
19190
19191         Tests for module 'memcasecmp'.
19192         * modules/memcasecmp-tests: New file.
19193         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19194
19195 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19196
19197         * lib/pthread.in.h: Add split double-inclusion guard, and include
19198         system <pthread.h> if there is one.  Use @@-style as in other
19199         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19200         pthread.h doesn't.
19201         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19202         (pthread_mutexattr_settype, pthread_mutex_trylock):
19203         New static inline functions, if there's no system <pthread.h>.
19204         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19205         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19206         Approximate with mutexes if the system lacks spinlocks, as in
19207         MacOS.
19208         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19209         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19210         @@-style.  Check for spinlocks separately.
19211         (gl_PTHREAD_DEFAULTS): New macro.
19212         * modules/pthread: Redo to use a more typical style for in.h files.
19213
19214 2010-09-21  Eric Blake  <eblake@redhat.com>
19215
19216         net_if: enhance tests
19217         * tests/test-net_if.c (main): Move signature checks earlier.
19218         Print failures to stderr.
19219         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19220         Document the bug that we do not yet fix.
19221
19222 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19223
19224         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19225         about gnulib, not GSS.
19226
19227 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19228
19229         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19230         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19231         for Emacs.
19232         * build-aux/pmccabe2html: Make Makefile.am example code more
19233         cut-and-paste friendly.
19234
19235 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19236
19237         * tests/test-net_if.c: New file.
19238         * modules/net_if-tests: New file.
19239
19240 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         pthread: add pthread_spin_destroy
19243         * lib/pthread.in.h (pthread_spin_destroy): New function.
19244
19245 2010-09-19  Bruno Haible  <bruno@clisp.org>
19246
19247         gnulib-tool: Fix --help output.
19248         * gnulib-tool (func_usage): Fix help message.
19249         Reported by Reuben Thomas <rrt@sc3d.org>.
19250
19251 2010-09-18  Jim Meyering  <meyering@redhat.com>
19252
19253         maint.mk: avoid unexpanded \n in two diagnostics
19254         * top/maint.mk (sc_prohibit_always_true_header_tests):
19255         Don't use a literal \n in a halt=... assignment.  It would not be
19256         expanded, and the two \n bytes would appear in the diagnostic output
19257         rather than the desired newline.  Use halt=$$(printf ... instead.
19258         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19259
19260 2010-09-18  Bruno Haible  <bruno@clisp.org>
19261
19262         netinet_in: Doc tweak.
19263         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19264         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19265
19266 2010-09-18  Jim Meyering  <meyering@redhat.com>
19267
19268         init.sh: correct an outdated comment
19269         * tests/init.sh (create_exe_shims_):  s/function/alias/
19270
19271         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19272         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19273         a file named "*.exe" is removed between the glob expansion and the
19274         processing of that oddly named file.
19275
19276 2010-09-17  Eric Blake  <eblake@redhat.com>
19277
19278         mirbsd: add some more support
19279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19280         in BSD family.
19281         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19282         devices as OpenBSD.
19283         * m4/host-os.m4 (mirbsd): Add MirBSD.
19284
19285         tests: fix unportable assumption on sys/wait.h
19286         * tests/test-sys_wait.c (main): Relax test.
19287         * tests/test-stdlib.c (main): Likewise.
19288
19289         init.sh: accomodate directory with no .exes
19290         * tests/init.sh: Accomodate directory containing only scripts.
19291
19292         tests: avoid compiler warning
19293         * tests/test-stdlib.c (main): Use the variable.
19294
19295         fdutimens, fdutimensat: update signature, again
19296         * lib/utimens.h (gl_futimens): Delete, and move signature...
19297         (fdutimens): ...here.
19298         (fdutimensat): Rearrange signature.
19299         (lutimensat): Rename variable for clarity.
19300         * lib/fdutimensat.c (fdutimensat): Update signature.
19301         * lib/utimens.c (fdutimens): Likewise.
19302         (gl_futimens): Delete.
19303         (utimens, lutimens): Update callers.
19304         * lib/futimens.c (futimens): Likewise.
19305         * tests/test-fdutimensat.c: Likewise.
19306         * tests/test-utimens.c: Likewise.
19307         * tests/test-futimens.h: Update comment.
19308         * NEWS: Mention this.
19309         Suggested by Paul Eggert.
19310
19311 2010-09-17  Bruno Haible  <bruno@clisp.org>
19312
19313         Take over the maintenance of some older macros from Autoconf.
19314         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19315         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19316         GNU Autoconf.
19317         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19318         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19319
19320 2010-09-17  Eric Blake  <eblake@redhat.com>
19321
19322         fdutimensat: drop atflag validation
19323         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19324         with valid fd, to close a race scenario where futimens is
19325         unsupported and FILE was replaced by a symlink.
19326         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19327         accordingly.
19328         Suggested by Paul Eggert.
19329
19330 2010-09-16  Bruno Haible  <bruno@clisp.org>
19331
19332         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19333         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19334
19335 2010-09-16  Bruno Haible  <bruno@clisp.org>
19336
19337         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19338         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19339         login_tty exists.
19340         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19341
19342 2010-09-16  Bruno Haible  <bruno@clisp.org>
19343
19344         login_tty: Make the replacement code work on BSD systems.
19345         * lib/login_tty.c: Include <sys/ioctl.h>.
19346         (login_tty): Use ioctl TIOCSCTTY when available.
19347         * modules/login_tty (Depends-on): Add sys_ioctl.
19348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19349
19350 2010-09-16  Bruno Haible  <bruno@clisp.org>
19351
19352         login_tty: Stricter unit test.
19353         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19354         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19355         and tcgetsid() after login_tty.
19356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19357
19358 2010-09-16  Bruno Haible  <bruno@clisp.org>
19359
19360         New module 'tcgetsid'.
19361         * lib/tcgetsid.c: New file.
19362         * m4/tcgetsid.m4: New file.
19363         * modules/tcgetsid: New file.
19364         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19365         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19366         GNULIB_TCGETSID, HAVE_TCGETSID.
19367         * lib/termios.in.h: Include <sys/types.h>.
19368         (tcgetsid): New declaration.
19369         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19370         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19371         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19372         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19373
19374 2010-09-16  Bruno Haible  <bruno@clisp.org>
19375
19376         Tests for module 'termios'.
19377         * modules/termios-c++-tests: New file.
19378         * modules/termios-tests: New file.
19379         * tests/test-termios-c++.cc: New file.
19380         * tests/test-termios.c: New file.
19381
19382         New module 'termios'.
19383         * modules/termios: New file.
19384         * lib/termios.in.h: New file.
19385         * m4/termios_h.m4: New file.
19386         * doc/posix-headers/termios.texi: Mention the new module.
19387
19388 2010-09-16  Eric Blake  <eblake@redhat.com>
19389
19390         fdutimensat: add an atflag parameter
19391         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19392         * lib/utimens.h (fdutimensat): Update prototype.
19393         * tests/test-fdutimensat.c: Adjust test to match.
19394         * NEWS: Document the change.
19395         Suggested by Paul Eggert.
19396
19397 2010-09-16  Bruno Haible  <bruno@clisp.org>
19398
19399         Fix typos in comments.
19400         * lib/striconveh.h: Fix typo in comment.
19401         * lib/login_tty.c (login_tty): Likewise.
19402
19403 2010-09-15  Bruno Haible  <bruno@clisp.org>
19404
19405         stdlib: clarify MirBSD WEXITSTATUS bug
19406         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19407         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19408
19409 2010-09-15  Eric Blake  <eblake@redhat.com>
19410
19411         stdlib: work around MirBSD WEXITSTATUS bug
19412         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19413         * modules/stdlib (Depends-on): Add sys_wait.
19414         * tests/test-sys_wait.c (main): Enhance test.
19415         * tests/test-stdlib.c (main): Likewise.
19416         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19417
19418         docs: mention MacOS issue with WEXITSTATUS(constant)
19419         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19420         issue.
19421         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19422
19423         strnlen: add tests
19424         * modules/strnlen-tests: New file.
19425         * tests/test-strnlen.c: Likewise.
19426
19427 2010-09-14  Bruno Haible  <bruno@clisp.org>
19428
19429         unistr/base: Avoid link errors when module 'libunistring' is also used.
19430         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19431         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19432         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19433         Declare also when HAVE_LIBUNISTRING is set.
19434         Reported by Pádraig Brady <P@draigbrady.com>.
19435
19436 2010-09-14  Eric Blake  <eblake@redhat.com>
19437
19438         test-rawmemchr: make more robust
19439         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19440         (Depends-on, configure.ac): Add needed prerequisites to use it.
19441         * modules/memchr-tests (Files, Depends-on, configure.ac):
19442         Likewise, to avoid implicit reliance on memchr module prereqs.
19443         * tests/test-memchr.c (main): Ensure proper masking.
19444         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19445         reads.
19446
19447         memchr: detect glibc Alpha bug
19448         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19449         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19450         Alpha.
19451         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19452         * tests/test-memchr.c (main): Enhance test.
19453         Reported by Nelson H. F. Beebe.
19454
19455 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19456
19457         fts, getcwd, glob: audit for dirfd returning -1
19458         * lib/fts.c (opendir): Remove #define; no longer used.
19459         (opendirat): New arg PDIR_FD.  All callers changed.
19460         (fts_build, _opendir2): Use new opendirat to avoid the need for
19461         dirfd, or for checking whether dirfd returns a negative value.
19462         Don't use opendir; always use openat followed by fdopendir.
19463         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19464         it.
19465         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19466         returns -1 here.
19467         * modules/fts (Depends-on): Remove dirfd.
19468         * modules/getcwd (Depends-on): Likewise.
19469
19470 2010-09-13  Eric Blake  <eblake@redhat.com>
19471
19472         float: fix broken MirBSD header
19473         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19474         * doc/posix-headers/float.texi (float.h): Document it.
19475
19476 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19477
19478         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19479         * lib/fts.c (opendirat): New arg extra_flags.
19480         (__opendir2): Use it to avoid following symlinks when opening
19481         a directory, if symlinks are not supposed to be followed.  See
19482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19483
19484         fdopendir: preserve argument fd before returning
19485         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19486         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19487         (fdopendir): Use them, arranging for FD to be open to the same
19488         directory that it was when it started.  (It might be temporarily
19489         closed while fdopendir is running, so this not thread- or
19490         signal-safe.)  Be careful to do the right thing even when file
19491         descriptors are scarce and dup fails with errno == EMFILE.  See
19492         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19493
19494 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19495
19496         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19497         * NEWS: Document change.
19498         * m4/regex.m4: Disable test for regoff_t size.
19499
19500 2010-09-13  Jim Meyering  <meyering@redhat.com>
19501
19502         fts: don't operate on an invalid file descriptor after failed dup
19503         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19504         negative file descriptor.
19505
19506 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19507
19508         savedir: add streamsavedir, deprecate fdsavedir
19509         * NEWS: Mention deprecation of fdsavedir.
19510         * lib/savedir.c (streamsavedir): New extern function, whose name
19511         ends in "savedir" to be consistent with the others.  This differs
19512         from savedirstream in that it doesn't close its argument.  The
19513         next version of GNU tar will use this instead of fdsavedir, to
19514         avoid some race conditions and conserve file descriptors.
19515         (savedirstream): Reimplement as a wrapper around streamsavedir.
19516         (fdsavedir): Add a comment deprecating this function.  As far as
19517         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19518         * lib/savedir.h (streamsavedir): New decl.
19519         (fdsavedir): Add a comment deprecating this.
19520
19521 2010-09-10  Bruno Haible  <bruno@clisp.org>
19522
19523         langinfo: Fix last commit.
19524         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19525         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19527
19528 2010-09-10  Bruno Haible  <bruno@clisp.org>
19529
19530         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19531         * lib/progreloc.c (O_EXEC): Define fallback.
19532
19533 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19534
19535         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19536         * NEWS: Document recent changes to fcntl-h.
19537         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19538         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19539         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19540         Similarly for O_SEARCH; this last was already true, but not documented.
19541         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19542         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19543         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19544         Likewise.
19545         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19546         is zero, not whether it is defined.
19547         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19548         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19549         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19550
19551 2010-09-10  Bruno Haible  <bruno@clisp.org>
19552
19553         langinfo, nl_langinfo: Fix for IRIX 5.3.
19554         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19555         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19556         HAVE_LANGINFO_YESEXPR.
19557         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19558         HAVE_LANGINFO_YESEXPR.
19559         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19560         HAVE_LANGINFO_T_FMT_AMPM is 0.
19561         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19562         HAVE_LANGINFO_YESEXPR is 0.
19563         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19564         NOEXPR.
19565         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19566         * doc/posix-functions/nl_langinfo.texi: Likewise.
19567         Reported by Eric Blake.
19568
19569 2010-09-10  Bruno Haible  <bruno@clisp.org>
19570
19571         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19572         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19573         on FreeBSD 8.0 and OpenBSD 4.6.
19574         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19575         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19576         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19577         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19578         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19579         ac_includes_default.
19580         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19581
19582 2010-09-09  Eric Blake  <eblake@redhat.com>
19583
19584         strsignal: work around NetBSD bug
19585         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19586         * lib/string.in.h (includes): Likewise.
19587         * doc/posix-functions/strsignal.texi (strsignal): Document the
19588         bug.
19589         Reported by Nelson H. F. Beebe.
19590
19591         gnulib-tool: work with NetBSD /bin/sh
19592         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19593         (func_get_description, func_get_comment, func_get_status)
19594         (func_get_notice, func_get_applicability, func_get_filelist)
19595         (func_get_dependencies, func_get_autoconf_early_snippet)
19596         (func_get_autoconf_snippet, func_get_automake_snippet)
19597         (func_get_include_directive, func_get_link_directive)
19598         (func_get_license, func_get_maintainer, func_import): Avoid
19599         shell syntax errors from parsing syntax extensions.
19600
19601 2010-09-09  Bruno Haible  <bruno@clisp.org>
19602
19603         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19604         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19605         a reliable way to determine whether the 'alias' command works.
19606
19607 2010-09-08  Jim Meyering  <meyering@redhat.com>
19608
19609         init.sh: penalize a set-x-impaired shell; don't disqualify it
19610         * tests/init.sh: Too many shells corrupt application stderr when
19611         you set -x, so we can't afford to disqualify them, since at least
19612         on Irix-6.5, that would disqualify all bourne shells.
19613         Instead, use a two-pass approach.
19614         On the first pass, try to find a shell that meets the stricter
19615         condition that set -x does not corrupt stderr.
19616         If no shell meets the stricter condition, retest each candidate
19617         shell, but without that extra condition.  Finally, when
19618         VERBOSE=yes is requested and set -x might cause trouble, simply
19619         issue a warning and refrain from enabling debug output.
19620
19621 2010-09-08  Eric Blake  <eblake@redhat.com>
19622
19623         unsetenv: fix OpenBSD bug
19624         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19625         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19626         documentation.
19627         Reported by Jim Meyering.
19628
19629         strtod: work around IRIX 6.5 bug
19630         * lib/strtod.c (strtod): Reparse number on shorter string if
19631         exponent parse was invalid.
19632         * tests/test-strtod.c (main): Add check for "0x1p 2".
19633         Reported by Tom G. Christensen.
19634
19635         getopt: optimize previous patch
19636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19637         empty variable.  Speed up awk script.
19638         Reported by Paolo Bonzini.
19639
19640 2010-09-08  Jim Meyering  <meyering@redhat.com>
19641
19642         test.sh: disqualify shells for which set -x corrupts stderr
19643         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19644         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19645         appear in stderr output.  For example, this command:
19646             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19647         prints "P=1" on those two systems:
19648
19649 2010-09-08  Bruno Haible  <bruno@clisp.org>
19650
19651         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19652         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19653         commands, because some shells ignore redirections when there is an
19654         error in the command lookup.
19655         Reported by Eric Blake.
19656
19657 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19658
19659         * lib/regex.h: Fix a mention of `regex_compile' (should be
19660         `re_compile_pattern').
19661         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19662         (re_set_registers): Correct name of parameter in comment.
19663
19664         * doc/regex.texi: Add documentation for missing syntax flags.
19665         Remove commented-out documentation of defunct syntax option
19666         RE_NO_EMPTY_ALTS.
19667         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19668         Add documentation of re_set_registers.
19669         Document trick to re-use a pattern buffer by setting fastmap manually.
19670         Update documentation of struct re_pattern_buffer per public members.
19671         Uncomment documentation of equivalence class operators and
19672         collating symbol operators, since they are now implemented,
19673         Explain leftmost-longest matching in relation to alternatives.
19674         Tidy documentation of substring matching.
19675         Remove POSIX documentation, which is done better in
19676         glibc, and refer the reader there. Keep BSD API documentation, as
19677         that is not readily available elsewhere.
19678
19679 2010-09-07  Eric Blake  <eblake@redhat.com>
19680
19681         getopt: handle POSIXLY_CORRECT set but not exported
19682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19683         export state of POSIXLY_CORRECT, due to bash set -o posix.
19684         Reported by Dustin J. Mitchell.
19685
19686 2010-09-05  Bruno Haible  <bruno@clisp.org>
19687
19688         gnulib-tool: Highlight the changed options.
19689         * gnulib-tool (func_usage): Display the --import, --add-import,
19690         --remove-import explanations in bold font.
19691
19692 2010-09-06  Karl Berry  <karl@gnu.org>
19693
19694         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19695
19696 2010-09-05  Bruno Haible  <bruno@clisp.org>
19697
19698         uniwidth/width: Update comment.
19699         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19700         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19701
19702 2010-09-05  Bruno Haible  <bruno@clisp.org>
19703
19704         isinf, isnan: Relax license.
19705         * modules/isinf (License): Change from GPL to LGPL, with consent from
19706         Ben Pfaff.
19707         * modules/isnan (License): Likewise.
19708         Requested by Ludovic Courtès.
19709
19710 2010-09-04  Bruno Haible  <bruno@clisp.org>
19711
19712         gnulib-tool: Help migration from --import to --add-import or --update.
19713         * gnulib-tool: Emit a verbose error message when --import is used
19714         without any module name.
19715
19716 2010-09-04  Bruno Haible  <bruno@clisp.org>
19717
19718         Update doc about gnulib-tool.
19719         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19720         'gnulib-tool --update' in more detail.
19721         Reported by Eric Blake.
19722
19723 2010-09-04  Bruno Haible  <bruno@clisp.org>
19724
19725         gnulib-tool: Change --import. New options --add/remove-import.
19726         * gnulib-tool: New options --add-import, --remove-import.
19727         (func_usage): Document them.
19728         (have_associative): Define always.
19729         (func_import): In import mode, don't merge the specified settings with
19730         the cached settings. Implement remove-import mode.
19731         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19732         Explain when to use them versus --import.
19733         (Simple update): Use --add-import instead of --import.
19734         * NEWS: Mention the change.
19735
19736 2010-09-04  Bruno Haible  <bruno@clisp.org>
19737
19738         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19739         separate gnulib.mk.
19740
19741 2010-09-04  Bruno Haible  <bruno@clisp.org>
19742
19743         gnulib-tool: Don't talk about CVS any more.
19744         * gnulib-tool (func_usage, func_import): Write "version control"
19745         instead of CVS.
19746
19747 2010-09-04  Jim Meyering  <meyering@redhat.com>
19748
19749         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19750         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19751         false positives (whose names may be ill-chosen) when searching
19752         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19753         would cause a false-positive.
19754
19755         avoid coreutils "make distcheck" failure
19756         Coreutils tests with an absolute build directory name that contains
19757         a space.  Not quoting this directory name caused a failure.
19758         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19759         * tests/test-vc-list-files-cvs.sh: Likewise.
19760
19761 2010-09-04  Bruno Haible  <bruno@clisp.org>
19762
19763         gnulib-tool: Avoid error when run in a package without Makefile.am.
19764         * gnulib-tool: When collecting the m4dirs in a package that does not
19765         have a Makefile.am, eliminate those directories that contain no
19766         gnulib-cache.m4. Fix expression that counts these directories.
19767
19768 2010-09-04  Bruno Haible  <bruno@clisp.org>
19769
19770         update-copyright test: Improve output when perl is missing or too old.
19771         * tests/test-update-copyright.sh: Move test of Perl version down after
19772         the test whether Perl exists. Provide an explanation relating Perl's
19773         error message to Automake's SKIP: message.
19774
19775 2010-09-04  Bruno Haible  <bruno@clisp.org>
19776
19777         Don't augment PATH in TESTS_ENVIRONMENT.
19778         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19779         set abs_aux_dir instead of augmenting PATH.
19780         * modules/vc-list-files-tests (Makefile.am): Likewise.
19781         * tests/test-update-copyright.sh: Augment PATH here.
19782         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19783         path_prepend_.
19784         * tests/test-vc-list-files-git.sh: Likewise.
19785
19786 2010-09-04  Jim Meyering  <meyering@redhat.com>
19787
19788         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19789         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19790
19791 2010-09-04  Bruno Haible  <bruno@clisp.org>
19792
19793         strdup: Fix compilation error in C++ mode.
19794         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19795         the macro.
19796
19797 2010-09-04  Bruno Haible  <bruno@clisp.org>
19798
19799         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19800         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19801         macro into a function.
19802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19803
19804 2010-09-04  Bruno Haible  <bruno@clisp.org>
19805
19806         Set PATH_SEPARATOR the same way autoconf does.
19807         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19808         the value of PATH_SEPARATOR the same way autoconf-generated configure
19809         scripts do.
19810         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19811         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19812
19813 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19814
19815         Set PATH_SEPARATOR the same way autoconf does.
19816         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19817         the same way autoconf-generated configure scripts do.
19818         * posix-modules: Likewise.
19819
19820 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19821
19822         hash: fix safe_hasher const typo
19823         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19824         const; otherwise, there is a type error later.
19825
19826 2010-09-02  Jim Meyering  <meyering@redhat.com>
19827
19828         test-update-copyright.sh: require perl 5.8.0
19829         * tests/test-update-copyright.sh: Require 5.8.0,
19830         which Tom G. Christensen has confirmed is adequate,
19831         while 5.6.1 is not.
19832
19833 2010-09-02  Eric Blake  <eblake@redhat.com>
19834
19835         tests: init.sh improvements for re-exec'ing with zsh
19836         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19837         -vx through shell re-exec.
19838         Reported by Tom G. Christensen.
19839
19840         wctype: fix typo in previous commit
19841         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19842         Reported by Ludovic Courtès.
19843
19844 2010-09-02  Jim Meyering  <meyering@redhat.com>
19845
19846         test-update-copyright.sh: skip test if Perl is too old
19847         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19848         Reported by Tom G. Christensen.
19849
19850 2010-09-02  Bruno Haible  <bruno@clisp.org>
19851
19852         wctype: Avoid compilation error on IRIX 6.5.30.
19853         * lib/wctype.in.h (iswblank): Declare with a replacement if
19854         REPLACE_ISWBLANK is set.
19855         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19856         declared. Set REPLACE_ISWBLANK.
19857         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19858         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19859         * doc/posix-headers/wctype.texi: Likewise.
19860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19861
19862 2010-09-01  Bruno Haible  <bruno@clisp.org>
19863
19864         New module 'socketlib'.
19865         * modules/socketlib: New file.
19866         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19867         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19868         * modules/sockets (Depends-on): Add socketlib.
19869         Suggested by Sam Steingold <sds@gnu.org>.
19870
19871 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19872
19873         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19874
19875         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19876         when one needs search access to a directory but not read access.
19877         On systems where it is available, it works in some cases where
19878         O_RDONLY does not, namely on directories that are searchable but
19879         not readable, and which need only to be searchable.  If O_SEARCH
19880         is not available, fall back to the traditional method of using
19881         O_RDONLY.
19882
19883         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19884         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19885         when opening a directory that needs only to be searchable.
19886         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19887         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19888         * lib/openat-proc.c (openat_proc_name): Likewise.
19889         * lib/openat.c (openat_needs_fchdir): Likewise.
19890         * lib/save-cwd.c (save_cwd): Likewise.
19891         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19892
19893 2010-08-28  Bruno Haible  <bruno@clisp.org>
19894
19895         New module 'host-cpu-c-abi'.
19896         * modules/host-cpu-c-abi: New file.
19897         * m4/host-cpu-c-abi.m4: New file, based on part of
19898         clisp/src/m4/general.m4.
19899         Requested by Sam Steingold <sds@gnu.org>.
19900
19901 2010-08-31  Eric Blake  <eblake@redhat.com>
19902         and Jim Meyering  <meyering@redhat.com>
19903
19904         hash: factor, and guard against misbehaving hasher function
19905         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19906         of table->hasher's return value.  Also protect against a hash value
19907         so large that adding it to table->bucket results in a NULL pointer.
19908         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19909         Use it in place of open-coded check-and-abort.
19910
19911 2010-08-30  Bruno Haible  <bruno@clisp.org>
19912
19913         hash: silence spurious clang warning
19914         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19915         Reported by Eric Blake.
19916
19917 2010-08-30  Eric Blake  <eblake@redhat.com>
19918
19919         strstr, memmem, strcasestr: avoid leaked shell message
19920         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19921         FreeBSD.
19922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19924
19925         tests: silence clang warning
19926         * tests/test-malloca.c (do_allocation): Avoid dead store.
19927
19928 2010-08-29  Bruno Haible  <bruno@clisp.org>
19929
19930         gettext: Fix recent mistake.
19931         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19932
19933 2010-08-29  Bruno Haible  <bruno@clisp.org>
19934
19935         selinux-h: Offer a --without-selinux option.
19936         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19937         --without-selinux was specified, skip all tests and define
19938         HAVE_SELINUX_SELINUX_H to 0.
19939         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19940         set LIB_SELINUX to empty.
19941         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19942         gl_LIBSELINUX. If --without-selinux was specified, replace
19943         selinux/context.h.
19944         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19945
19946 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19947             Bruno Haible  <bruno@clisp.org>
19948
19949         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19950         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19951         of HAVE_REALLOC.
19952         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19953         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19954         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19955         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19956
19957 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19958             Bruno Haible  <bruno@clisp.org>
19959
19960         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19961         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19962         HAVE_CALLOC.
19963         * lib/xmalloc.c: Update accordingly.
19964         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19965         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19966         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19967
19968 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19969             Bruno Haible  <bruno@clisp.org>
19970
19971         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19972         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19973         HAVE_MALLOC.
19974         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19975         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19976         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19977
19978 2010-08-29  Bruno Haible  <bruno@clisp.org>
19979
19980         Update modules list.
19981         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19982         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19983         (String handling <string.h>): Add astrxfrm.
19984         (File system functions): Add readlinkat.
19985
19986 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19987
19988         Tests for module 'realloc-gnu'.
19989         * modules/realloc-gnu-tests: New file.
19990         * tests/test-realloc-gnu.c: New file.
19991
19992         Tests for module 'calloc-gnu'.
19993         * modules/calloc-gnu-tests: New file.
19994         * tests/test-calloc-gnu.c: New file.
19995
19996         Tests for module 'malloc-gnu'.
19997         * modules/malloc-gnu-tests: New file.
19998         * tests/test-malloc-gnu.c: New file.
19999
20000 2010-08-28  Bruno Haible  <bruno@clisp.org>
20001
20002         Rename module 'realloc' -> 'realloc-gnu'.
20003         * modules/realloc-gnu: New file, copied from modules/realloc.
20004         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20005         obsolete.
20006         * modules/mgetgroups (Depends-on): Update.
20007         * doc/posix-functions/realloc.texi: Update.
20008         * NEWS: Mention the change.
20009
20010         Rename module 'calloc' -> 'calloc-gnu'.
20011         * modules/calloc-gnu: New file, copied from modules/calloc.
20012         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20013         obsolete.
20014         * doc/posix-functions/calloc.texi: Update.
20015         * NEWS: Mention the change.
20016
20017         Rename module 'malloc' -> 'malloc-gnu'.
20018         * modules/malloc-gnu: New file, copied from modules/malloc.
20019         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20020         obsolete.
20021         * modules/argp (Depends-on): Update.
20022         * modules/regex (Depends-on): Update.
20023         * doc/posix-functions/malloc.texi: Update.
20024         * NEWS: Mention the change.
20025
20026 2010-08-28  Eric Blake  <eblake@redhat.com>
20027
20028         pread, pwrite: add missing dependency
20029         * modules/pread (Depends-on): Add extensions.
20030         * modules/pwrite (Depends-on): Likewise.
20031
20032 2010-08-28  Bruno Haible  <bruno@clisp.org>
20033
20034         unistr/u*-strchr: Fix tests dependencies.
20035         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20036         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20037         Reported by Ian Beckwith <ianb@erislabs.net>.
20038
20039 2010-08-28  Bruno Haible  <bruno@clisp.org>
20040
20041         read-file: Don't occupy too much unused memory.
20042         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20043
20044 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20045             Eric Blake  <eblake@redhat.com>
20046             Bruno Haible  <bruno@clisp.org>
20047
20048         read-file: Avoid memory reallocations with regular files.
20049         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20050         (fread_file): With regular files, use the remaining length as the
20051         initial buffer size.  Check against overflow.
20052         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20053         sys_stat.
20054
20055 2010-08-28  Bruno Haible  <bruno@clisp.org>
20056
20057         ftello: Relax license.
20058         * modules/ftello (License): Relax to LGPLv2+.
20059         Reported by Eric Blake.
20060
20061 2010-08-28  Bruno Haible  <bruno@clisp.org>
20062
20063         Avoid relocwrapper link errors due to gnulib replacement functions.
20064         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20065         function.
20066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20067
20068 2010-08-28  Bruno Haible  <bruno@clisp.org>
20069
20070         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20071         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20072         defined.
20073         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20074         Suggested by Eric Blake.
20075
20076 2010-08-28  Bruno Haible  <bruno@clisp.org>
20077
20078         sys_socket, netdb: Ensure socklen_t gets defined.
20079         * modules/sys_socket (Depends-on): Add socklen.
20080         * modules/netdb (Depends-on): Likewise.
20081         * modules/getaddrinfo (Depends-on): Remove socklen.
20082         * modules/getsockopt (Depends-on): Likewise.
20083         * modules/setsockopt (Depends-on): Likewise.
20084         * tests/test-sys_socket.c: Check that socklen_t is defined.
20085         * tests/test-netdb.c: Likewise.
20086         * m4/socklen.m4: Update comments.
20087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20088
20089 2010-08-27  Eric Blake  <eblake@redhat.com>
20090
20091         login_tty: add missing dependency
20092         * modules/login_tty (Depends-on): Add pty.
20093
20094 2010-08-26  Eric Blake  <eblake@redhat.com>
20095
20096         lib-symbol-versions: fix m4 quoting
20097         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20098         format for AC_LINK_IFELSE.
20099
20100         glob: fix compile test
20101         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20102
20103         btowc: fix missing file
20104         * modules/btowc (Files): Also ship locale-fr.m4.
20105
20106         lseek: fix link test
20107         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20108         AC_LINK_IFELSE.
20109
20110         include_next: silence autoconf 2.68 warning
20111         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20112         AC_COMPILE_IFELSE as special.
20113         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20114         autoconf < 2.68.
20115
20116         acl: fix compilation test
20117         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20118         AC_COMPILE_IFELSE.
20119
20120 2010-08-26  Bruno Haible  <bruno@clisp.org>
20121
20122         Modernize AC_TRY_RUN invocations.
20123         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20124         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20125         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20126         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20127         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20128         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20131         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20132         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20134         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20136         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20138         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20139         gl_MBRLEN_NUL_RETVAL): Likewise.
20140         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20141         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20142         Likewise.
20143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20144         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20145         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20146         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20147         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20148         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20149         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20150         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20151         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20152         Likewise.
20153         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20154         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20156         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20157         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20158         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20159         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20160         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20161         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20163
20164 2010-08-26  Bruno Haible  <bruno@clisp.org>
20165
20166         Modernize AC_TRY_LINK invocations.
20167         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20168         AC_TRY_LINK.
20169         * m4/argp.m4 (gl_ARGP): Likewise.
20170         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20171         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20172         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20173         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20174         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20175         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20176         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20177         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20178         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20179         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20180         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20181         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20182         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20183         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20184         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20185         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20186         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20187         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20188         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20189         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20190         Likewise.
20191         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20192         Likewise.
20193         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20194         Likewise.
20195         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20197         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20198         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20199         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20200         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20201         * m4/servent.m4 (gl_SERVENT): Likewise.
20202         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20203         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20204         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20205         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20206         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20207         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20208         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20209         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20210         * modules/tsearch-tests (configure.ac): Likewise.
20211
20212 2010-08-26  Bruno Haible  <bruno@clisp.org>
20213
20214         Modernize AC_TRY_COMPILE invocations.
20215         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20216         AC_TRY_COMPILE.
20217         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20218         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20219         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20220         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20221         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20222         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20223         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20224         * m4/lock.m4 (gl_LOCK): Likewise.
20225         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20227         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20228         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20229         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20230         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20231         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20232         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20233         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20234         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20235         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20236         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20237         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20238         extraneous semicolon.
20239
20240 2010-08-26  Jim Meyering  <meyering@redhat.com>
20241
20242         stat-time: relax license LGPL
20243         * modules/stat-time (License): Change from GPL to LGPL,
20244         with consent from all contributors, for use in libguile.
20245         Requested by Ludovic Courtès.
20246
20247 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20248
20249         poll: return immediately on POLLHUP.
20250         * lib/poll.c (poll): Always set timeout before wait_timeout is
20251         computed.
20252
20253 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20254
20255         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20256         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20257         rmdir ("dir/.//"), unlinkat.
20258
20259 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20260
20261         stdbool: avoid spurious failure with modern xlc
20262         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20263
20264 2010-08-24  Bruno Haible  <bruno@clisp.org>
20265
20266         getloadavg: simplify code
20267         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20268         gl_have_func. Update comments.
20269
20270 2010-08-24  Eric Blake  <eblake@redhat.com>
20271
20272         getloadavg: don't define SVR4 on cygwin
20273         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20274         only define SVR4 when -lkvm is required.
20275         Reported by Yaakov Selkowitz.
20276
20277 2010-08-24  Bruno Haible  <bruno@clisp.org>
20278
20279         priv-set: fix comment
20280         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20281
20282 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20283
20284         priv-set: fix comments
20285         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20286         to match code, as suggested by David Bartley in:
20287         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20288
20289 2010-08-23  Eric Blake  <eblake@redhat.com>
20290
20291         stdbool: avoid rejecting clang
20292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20293         * tests/test-stdbool.c: Enable more tests if using the system
20294         <stdbool.h> instead of the gnulib replacement.
20295         (main): Move xlc bug test to a runtime test for all compilers.
20296         Reported by Anders Kaseorg.
20297
20298         argz: fix shell quoting issue
20299         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20300         Reported by Charles Wilson.
20301
20302 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20303             Erik Faye-Lund <kusmabite@gmail.com>
20304
20305         poll, select: handle ERROR_BROKEN_PIPE.
20306         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20307         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20308         * lib/select.c (win32_compute_revents): Do not mark a pipe
20309         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20310
20311 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20312
20313         fts: allow compilation with C++
20314         * lib/fts_.h: Specify extern "C" linkage with C++.
20315
20316 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20317
20318         Fix gnulib-tool sed script de-commentation for AIX sed.
20319         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20320         sed.
20321
20322 2010-08-17  Eric Blake  <eblake@redhat.com>
20323
20324         test-stddef: test for (some) offsetof bugs
20325         * tests/test-stddef.c: Enhance test to ensure correct type of
20326         offsetof.
20327         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20328         that we are not fixing at this time.
20329
20330 2010-08-15  Bruno Haible  <bruno@clisp.org>
20331
20332         stpncpy: Allow stpncpy to be defined as a macro.
20333         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20334         if it's already correctly declared.
20335         * lib/string.in.h (stpncpy): Undefine before redefining.
20336         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20337
20338 2010-08-14  Bruno Haible  <bruno@clisp.org>
20339
20340         Rename module 'memxfrm' to 'amemxfrm'.
20341         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20342         (amemxfrm): Renamed from memxfrm.
20343         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20344         (amemxfrm): Renamed from memxfrm.
20345         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20346         * NEWS: Mention the change.
20347         * MODULES.html.sh (String handling <string.h>): Update.
20348         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20349         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20350         * lib/unicase/u16-casexfrm.c: Likewise.
20351         * lib/unicase/u32-casexfrm.c: Likewise.
20352         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20353         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20354         * lib/uninorm/u16-normxfrm.c: Likewise.
20355         * lib/uninorm/u32-normxfrm.c: Likewise.
20356         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20357         memxfrm.
20358         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20359         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20360         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20361         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20362         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20363         Suggested by Paul Eggert.
20364
20365 2010-08-14  Bruno Haible  <bruno@clisp.org>
20366
20367         Tests for module 'astrxfrm'.
20368         * modules/astrxfrm-tests: New file.
20369         * tests/test-astrxfrm.c: New file.
20370
20371         New module 'astrxfrm'.
20372         * lib/astrxfrm.h: New file.
20373         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20374         * modules/astrxfrm: New file.
20375
20376 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20377
20378         regex: Tweak doc.
20379         * doc/regex.texi (Overview): Don't mention regex.c.
20380         (GNU Regular Expression Compiling): Likewise.
20381         (Match-end-of-line Operator): Mention 'not_eol'.
20382
20383 2010-08-14  Brian Gough  <bjg@gnu.org>
20384             Bruno Haible  <bruno@clisp.org>
20385
20386         git-merge-changelog: add doc relating to use with bzr and hg.
20387         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20388
20389 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20390
20391         pthread: fix pthread.h creation for srcdir != builddir
20392         * modules/pthread (Makefile.am): Fix the rule to work also in a
20393         non-srcdir build.
20394
20395 2010-08-13  Karl Berry  <karl@gnu.org>
20396
20397         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20398         * doc/posix-*/*: force line break before @url of POSIX
20399         specifications.
20400         Suggested by Werner Lemberg.
20401
20402 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20403
20404         strtod: fix const diagnostic
20405         * lib/strtod.c (strtod): Don't assign const char * to char *,
20406         as this elicits a warning from GCC when warnings are enabled.
20407
20408 2010-08-10  Pádraig Brady <P@draigbrady.com>
20409         and Eric Blake  <eblake@redhat.com>
20410
20411         copy-acl: ignore ENOTSUP on HP-UX
20412         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20413         so that it is available for HP-UX.
20414         * lib/copy-acl.c (qcopy_acl): Use it.
20415         Reported by Patrick M. Callahan.
20416
20417 2010-08-10  Eric Blake  <eblake@redhat.com>
20418
20419         open, chown: relax license
20420         * modules/open (License): Change to LGPLv2+, with consent by all
20421         authors, for use in augeas.
20422         * modules/chown (License): Likewise.
20423         * modules/lchown (Likewise): Likewise.
20424         Requested by Adam Stokes.
20425
20426 2010-08-09  Karl Berry  <karl@gnu.org>
20427
20428         * build-aux/ar-lib: new file, import from Automake.
20429         * config/srclist.txt: autocheck for updates.
20430
20431 2010-08-09  Eric Blake  <eblake@redhat.com>
20432
20433         readlinkat: adjust client modules
20434         * modules/areadlinkat (Depends-on): Use readlinkat, not
20435         symlinkat.
20436         * modules/areadlinkat-with-size (Depends-on): Likewise.
20437
20438         mknod: be more vocal about danger of running tests as root
20439         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20440         root, since that is just asking for problems.
20441         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20442
20443         readlinkat: split into its own module
20444         * modules/symlinkat: Split readlinkat...
20445         * modules/readlinkat: ...into separate module.
20446         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20447         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20448         * lib/symlinkat.c (readlinkat): Move...
20449         * lib/readlinkat.c: ...into new file.
20450         * modules/symlinkat-tests: Split readlinkat test...
20451         * modules/readlinkat-tests: ...into separate module.
20452         * tests/test-symlinkat.c: Split...
20453         * tests/test-readlinkat.c: ...into new file.
20454         * NEWS: Document the split.
20455         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20456         * lib/unistd.in.h (readlinkat): Likewise.
20457         Suggested by Bruno Haible.
20458
20459 2010-08-08  Bruno Haible  <bruno@clisp.org>
20460
20461         memxfrm: Speed up.
20462         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20463         that usually only one call to strxfrm is necessary for each string
20464         part.
20465         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20466
20467 2010-08-07  Karl Berry  <karl@gnu.org>
20468
20469         * doc/posix-headers/limits.texi,
20470         * doc/posix-functions/malloc.texi,
20471         * doc/posix-functions/strsignal.texi: missing @item.
20472         * doc/ld-version-script.texi: spurious leading i.
20473         * doc/regex.texi (Interval Operators): no commas inside @var.
20474
20475 2010-08-01  Bruno Haible  <bruno@clisp.org>
20476
20477         Integrate the regex documentation.
20478         * doc/gnulib.texi: Define 'cn' index.
20479         (Regular expressions): New a chapter that includes regex.texi and
20480         regexprops-generic.texi.
20481         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20482         syntax.
20483
20484         Whitespace cleanup.
20485         * doc/regex.texi: Remove trailing spaces.
20486
20487         Add regex documentation.
20488         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20489         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20490         Written by Kathy A. Hargreaves and Karl Berry.
20491
20492 2010-08-01  Bruno Haible  <bruno@clisp.org>
20493
20494         link: Update documentation.
20495         * doc/posix-functions/link.texi: Update regarding Solaris.
20496
20497 2010-07-31  Bruno Haible  <bruno@clisp.org>
20498
20499         Update modules list.
20500         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20501         (String handling <string.h>): Add memcmp2, memxfrm.
20502         (Container data structures): Add xlist, xsublist, xoset.
20503         (Core language properties): Add alignof, unused-parameter.
20504         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20505         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20506         (Unibyte characters <ctype.h>): New section.
20507         (String handling <string.h>): New section.
20508         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20509         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20510         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20511         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20512         tan, tanh, tanl, y0, y1, yn.
20513         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20514         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20515         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20516         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20517         unlockpt, vdprintf, vdprintf-posix.
20518         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20519         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20520         xconcat-filename.
20521         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20522         getdtablesize, pipe2, pipe2-safer.
20523         (Security): New section.
20524         (Networking functions): Add accept4.
20525         (Signal handling): Add sigpipe.
20526         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20527         mbmemcasecoll.
20528         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20529         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20530         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20531         pipe-filter-ii.
20532         (Misc): Add argp-version-etc, login_tty, parse-duration.
20533
20534 2010-07-31  Bruno Haible  <bruno@clisp.org>
20535
20536         Improve doc in MODULES.html.
20537         * modules/linkat (Description): Add the word "function".
20538         * modules/mkfifo (Description): Likewise.
20539         * modules/mknod (Description): Likewise.
20540         * modules/remove (Description): Likewise.
20541         * modules/renameat (Description): Likewise.
20542         * modules/stat (Description): Likewise.
20543         * modules/symlink (Description): Likewise.
20544         * modules/unlink (Description): Likewise.
20545
20546 2010-07-31  Bruno Haible  <bruno@clisp.org>
20547
20548         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20549         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20550         option --enable/disable-c++ instead of --enable/disable-cxx.
20551         * NEWS: Mention the change.
20552
20553 2010-07-31  Bruno Haible  <bruno@clisp.org>
20554
20555         readlink, areadlink: Relax test a bit.
20556         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20557         alternative to ENOTDIR.
20558         * tests/test-areadlink.h (test_areadlink): Likewise.
20559         Reported by Rainer Tammer.
20560
20561 2010-07-31  Bruno Haible  <bruno@clisp.org>
20562
20563         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20564         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20565         character, perform the search using U_STRCHR.
20566         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20567         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20568         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20569         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20570         Suggested by Paolo Bonzini.
20571
20572 2010-07-31  Bruno Haible  <bruno@clisp.org>
20573
20574         unistr/u*-strstr: Fix dependencies.
20575         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20576         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20577         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20578
20579 2010-07-31  Bruno Haible  <bruno@clisp.org>
20580
20581         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20582         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20583         the beginning of the loop.
20584         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20585         cases in 'switch' statement.
20586
20587         unistr/u8-strchr: Fix several bugs.
20588         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20589         the string. When not found, return NULL, not a pointer near the end.
20590
20591         More tests for unistr/u8-strchr.
20592         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20593         that the function does not read past the first occurrence of the byte
20594         being searched.
20595         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20596         * tests/unistr/test-u16-strchr.c (main): New function.
20597         * tests/unistr/test-u32-strchr.c (main): New function.
20598
20599 2010-07-31  Bruno Haible  <bruno@clisp.org>
20600
20601         posix-modules: Ignore backup files of documentation files.
20602         * posix-modules: grep only through files named *.texi.
20603
20604 2010-07-31  Bruno Haible  <bruno@clisp.org>
20605
20606         symlinkat: Fix documentation.
20607         * doc/posix-functions/readlinkat.texi: Fix module name.
20608
20609 2010-07-31  Bruno Haible  <bruno@clisp.org>
20610
20611         fchownat: Replace also when chown has the trailing slash bug.
20612         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20613         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20614         introduced on 2010-04-10.
20615         Reported by Rainer Tammer.
20616
20617 2010-07-31  Bruno Haible  <bruno@clisp.org>
20618
20619         linkat: Work around AIX 7.1 bug.
20620         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20621         whether linkat handles trailing slash correctly. If not, replace linkat
20622         and define LINKAT_TRAILING_SLASH_BUG.
20623         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20624         check whether (fd1,file1) points to a directory if file1 or file2 ends
20625         in a slash. Code taken from lib/link.c.
20626         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20627         Reported by Rainer Tammer.
20628
20629 2010-07-31  Bruno Haible  <bruno@clisp.org>
20630
20631         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20632         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20633         This disables an xlc optimization that was causing wrong test results.
20634         Reported by Rainer Tammer.
20635
20636 2010-07-31  Bruno Haible  <bruno@clisp.org>
20637
20638         iconv: Work around AIX 6.1..7.1 bug.
20639         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20640         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20641         cross-compiling, guess no on all versions of AIX.
20642         Reported by Rainer Tammer.
20643
20644 2010-07-31  Bruno Haible  <bruno@clisp.org>
20645
20646         readlink: Relax test a bit.
20647         * tests/test-readlink.h (test_readlink): Allow different errno value
20648         when readlink is called with a file name that ends in / and refers to
20649         a file.
20650         Suggested by Eric Blake.
20651         Reported by Rainer Tammer.
20652
20653 2010-07-31  Bruno Haible  <bruno@clisp.org>
20654
20655         copysign: Does not require -lm on glibc systems.
20656         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20657         gl_COMMON_DOUBLE_MATHFUNC.
20658         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20659
20660 2010-07-31  Bruno Haible  <bruno@clisp.org>
20661
20662         duplocale: Work around AIX 7.1 bug.
20663         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20664         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20665         * lib/duplocale.c (rpl_duplocale): Update comment.
20666         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20667         Reported by Rainer Tammer.
20668
20669 2010-07-30  Bruno Haible  <bruno@clisp.org>
20670
20671         dirfd: Avoid link error on AIX 7.1.
20672         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20673         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20674         exist, set REPLACE_DIRFD.
20675         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20676         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20677         * doc/posix-functions/dirfd.texi: Update.
20678         Reported by Rainer Tammer.
20679
20680 2010-07-30  Eric Blake  <eblake@redhat.com>
20681
20682         strtod: next round of AIX fixes
20683         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20684         exponent.
20685         * tests/test-strtod.c (main): Enhance tests.
20686         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20687         Reported by Rainer Tammer.
20688
20689         futimens: fix configure check
20690         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20691         Reported by Bruno Haible.
20692
20693 2010-07-30  Bruno Haible  <bruno@clisp.org>
20694
20695         getline: Update regarding AIX.
20696         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20697         Reported by Rainer Tammer.
20698
20699 2010-07-30  Bruno Haible  <bruno@clisp.org>
20700
20701         wcwidth: Drop replacement on AIX 7.
20702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20703         AIX 7.
20704         Reported by Rainer Tammer.
20705
20706 2010-07-30  Bruno Haible  <bruno@clisp.org>
20707
20708         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20710         a 'char *'.
20711         Reported by Rainer Tammer.
20712
20713 2010-07-30  Bruno Haible  <bruno@clisp.org>
20714
20715         unlink: Update regarding AIX.
20716         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20717         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20718         Reported by Rainer Tammer.
20719
20720 2010-07-30  Bruno Haible  <bruno@clisp.org>
20721
20722         symlink: Update regarding AIX.
20723         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20724         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20725         Reported by Rainer Tammer.
20726
20727 2010-07-30  Bruno Haible  <bruno@clisp.org>
20728
20729         strndup: Update regarding AIX.
20730         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20731         AIX 7.
20732         Reported by Rainer Tammer.
20733
20734 2010-07-30  Bruno Haible  <bruno@clisp.org>
20735
20736         stat: Update regarding AIX.
20737         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20738         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20739         Reported by Rainer Tammer.
20740
20741 2010-07-30  Bruno Haible  <bruno@clisp.org>
20742
20743         truncl: Fix autoconf test.
20744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20745         whether truncl works.
20746         Reported by Rainer Tammer.
20747
20748 2010-07-30  Bruno Haible  <bruno@clisp.org>
20749
20750         round: Update regarding AIX.
20751         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20752         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20753         Reported by Rainer Tammer.
20754
20755 2010-07-30  Bruno Haible  <bruno@clisp.org>
20756
20757         rename: Update regarding AIX.
20758         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20759         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20760         Reported by Rainer Tammer.
20761
20762 2010-07-30  Bruno Haible  <bruno@clisp.org>
20763
20764         printf.m4: Update regarding AIX.
20765         * m4/printf.m4: Update comments regarding AIX.
20766         Reported by Rainer Tammer.
20767
20768 2010-07-30  Bruno Haible  <bruno@clisp.org>
20769
20770         iconv: Update regarding AIX.
20771         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20772         AIX 7.
20773         Reported by Rainer Tammer.
20774
20775 2010-07-30  Bruno Haible  <bruno@clisp.org>
20776
20777         getopt: Update regarding AIX.
20778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20779         no on AIX.
20780         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20781         Reported by Rainer Tammer.
20782
20783 2010-07-30  Bruno Haible  <bruno@clisp.org>
20784
20785         ldexpl; Update regarding AIX.
20786         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20787         on AIX 7.
20788         Reported by Rainer Tammer.
20789
20790 2010-07-30  Bruno Haible  <bruno@clisp.org>
20791
20792         frexpl: Update regarding AIX.
20793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20794         on AIX 7.
20795         Reported by Rainer Tammer.
20796
20797 2010-07-30  Bruno Haible  <bruno@clisp.org>
20798
20799         open, fopen: Update regarding AIX.
20800         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20801         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20802         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20803         * doc/posix-functions/fopen.texi: Likewise.
20804         Reported by Rainer Tammer.
20805
20806 2010-07-30  Bruno Haible  <bruno@clisp.org>
20807
20808         chown: Update doc regarding AIX.
20809         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20810         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20811         Reported by Rainer Tammer.
20812
20813 2010-07-30  Eric Blake  <eblake@redhat.com>
20814
20815         strtod: fix bug in replacement function on AIX
20816         * lib/strtod.c (strtod): Special case broken "0x" parse in
20817         underlying strtod.
20818         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20819         * doc/posix-functions/strtod.texi (strtod): Likewise.
20820         Reported by Rainer Tammer.
20821
20822 2010-07-30  Bruno Haible  <bruno@clisp.org>
20823
20824         mbrlen: Fix cross-compilation guess for AIX.
20825         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20826         guess. Leftover from 2008-12-22.
20827
20828 2010-07-30  Bruno Haible  <bruno@clisp.org>
20829
20830         mbrtowc: Fix cross-compilation guess for AIX.
20831         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20832         guess. Leftover from 2008-12-21.
20833
20834 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20835
20836         init.sh: work around trap limitation of some shells
20837         * tests/init.sh (setup_): Move exit trap outside of shell function.
20838
20839 2010-07-29  Eric Blake  <eblake@redhat.com>
20840
20841         strtod: aid debugging
20842         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20843         understanding why strtod is rejected.
20844
20845 2010-07-28  Bruno Haible  <bruno@clisp.org>
20846
20847         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20848         * lib/unistr/u8-chr.c: Include <string.h>.
20849         * tests/unistr/test-u8-chr.c: Likewise.
20850         * tests/unistr/test-u16-chr.c: Likewise.
20851         * tests/unistr/test-u32-chr.c: Likewise.
20852         * tests/unistr/test-u8-strchr.c: Likewise.
20853         * tests/unistr/test-u16-strchr.c: Likewise.
20854         * tests/unistr/test-u32-strchr.c: Likewise.
20855         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20856         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20857         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20858         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20859
20860 2010-07-28  Bruno Haible  <bruno@clisp.org>
20861
20862         Use spaces for indentation, not tabs.
20863         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20864
20865 2010-07-27  Bruno Haible  <bruno@clisp.org>
20866
20867         mbspcasecmp: Fix function specification.
20868         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20869         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20870         Reported by Eric Blake <eblake@redhat.com>.
20871
20872 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20873
20874         timespec: use cast and not conditional, as truncation isn't possible
20875         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20876         instead of a conditional.  Comment about the situation in more detail.
20877         This undoes most of the 2009-10-29 patch.
20878
20879 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20880
20881         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20882         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20883         * lib/unistr/u8-strchr.c: Likewise.
20884         * modules/unistr/u8-chr: Depend on memchr.
20885
20886         unistr/u*-strchr: add tests
20887         * modules/unistr/u8-strchr-tests: New file.
20888         * modules/unistr/u16-strchr-tests: New file.
20889         * modules/unistr/u32-strchr-tests: New file.
20890         * tests/unistr/test-strchr.h: New file.
20891         * tests/unistr/test-u8-strchr.c: New file.
20892         * tests/unistr/test-u16-strchr.c: New file.
20893         * tests/unistr/test-u32-strchr.c: New file.
20894
20895         unistr/u*-chr: test multibyte sequences more
20896         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20897         test vector.
20898         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20899         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20900         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20901
20902         unistr/u*-chr: test multibyte sequences
20903         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20904
20905         unistr/u*-chr: prepare for multibyte tests
20906         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20907         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20908         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20909         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20910         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20911         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20912
20913 2010-07-18  Bruno Haible  <bruno@clisp.org>
20914
20915         unistr/u8-strchr: Optimize non-ASCII argument case.
20916         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20917         because the first byte often matches anyway.
20918         Reported by Pádraig Brady <P@draigbrady.com>.
20919
20920 2010-07-15  Karl Berry  <karl@gnu.org>
20921
20922         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20923
20924 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20925
20926         getcwd: on Solaris, work better if ancestors are inaccessible
20927         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20928         buffer and size, try again with a large buffer.  This works better
20929         on Solaris, since its getcwd succeeds even if the path to the root
20930         is inaccessible, and this is helpful in common cases such as .zfs
20931         hidden directories.  Problem reported by J Chapman Flack in
20932         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20933         Use system getcwd if it's declared, not merely if it's partly
20934         working; use the partly-working test only to avoid needless effort
20935         if the system getcwd fails.
20936         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20937         comment that was already obsolete and is now even more obsolete.
20938         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20939         now might call strdup.
20940
20941 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20942
20943         pthread: Add enough so that coreutils/src/sort.c compiles.
20944         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20945         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20946         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20947         Include <sys/types.h>, in case it defines pthread_t.
20948         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20949         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20950         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20951         (pthread_rwlockattr_t, pthread_spinlock_t):
20952         New typedefs, if HAVE_PTHREAD_T is not defined.
20953         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20954         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20955         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20956         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20957         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20958         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20959         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20960         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20961         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20962         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20963         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20964         New macros.
20965         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20966         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20967         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20968         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20969         (pthread_spin_unlock): New dummy functions.
20970         (pthread_create): Return EAGAIN; don't set errno.
20971         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20972         require AC_C_INLINE.
20973         * modules/pthread (Depends-on): Add sched, time.
20974         (pthread.h): Use AM_V_GEN.
20975
20976 2010-07-13  Bruno Haible  <bruno@clisp.org>
20977
20978         striconveh: Don't malloc memory if the result buffer is sufficient.
20979         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20980         buffer if its size is sufficient.
20981         Reported by Ludovic Courtès <ludo@gnu.org>.
20982
20983 2010-07-13  Bruno Haible  <bruno@clisp.org>
20984
20985         strtod: Add safety check.
20986         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20987
20988 2010-07-12  Bruno Haible  <bruno@clisp.org>
20989
20990         Unify tests that set gl_cv_func_ldexpl_no_libm.
20991         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20992         gl_FUNC_LDEXPL.
20993         (gl_FUNC_LDEXPL): Invoke it.
20994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20995
20996 2010-07-12  Bruno Haible  <bruno@clisp.org>
20997
20998         Unify tests that set gl_cv_func_ldexp_no_libm.
20999         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21000         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21001         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21002         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21003         * modules/strtod (Files): Add m4/ldexp.m4.
21004
21005 2010-07-12  Bruno Haible  <bruno@clisp.org>
21006
21007         Unify tests that set gl_cv_func_frexpl_no_libm.
21008         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21009         gl_FUNC_FREXPL_NO_LIBM.
21010         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21012
21013 2010-07-12  Bruno Haible  <bruno@clisp.org>
21014
21015         Unify tests that set gl_cv_func_frexp_no_libm.
21016         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21017         gl_FUNC_FREXP_NO_LIBM.
21018         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21019         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21020
21021 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21022
21023         memcoll: clarify sizes versus lengths, document better, and tweak perf
21024         * lib/memcoll.c (strcoll_loop, memcoll0):
21025         Improve quality of descriptive comments.  Name variables
21026         consistently as to whether they are lengths (which do not include
21027         terminating null) versus sizes (which do).
21028         * lib/xmemcoll.c (xmemcoll0): Likewise.
21029         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21030         returned when s1size == 0; this is easier to compile and saves
21031         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21032
21033 2010-07-12  Bruno Haible  <bruno@clisp.org>
21034
21035         Tests for module '_Exit'.
21036         * modules/_Exit-tests: New file.
21037         * tests/test-_Exit.sh: New file.
21038         * tests/test-_Exit.c: New file.
21039
21040         New module '_Exit'.
21041         * lib/stdlib.in.h (__attribute__): New macro.
21042         (_Exit): New declaration.
21043         * lib/_Exit.c: New file.
21044         * m4/_Exit.m4: New file.
21045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21047         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21048         * modules/_Exit: New file.
21049         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21050         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21051
21052 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21053
21054         strtod: make it more-accurate typically, and don't require libm
21055         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21056         Include limits.h.  Don't include string.h.
21057         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21058         (locale_isspace): New function, so that no casts are needed to
21059         check whether *s is a space.
21060         (ldexp): Provide an unused dummy if not available.
21061         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21062         (strtod): Use them.  This implementation prefers to use the
21063         underlying strtod if available, falling back on our own code
21064         only to fix known bugs.  This is more likely to produce an
21065         accurate result.  Also, it avoids the use of libm functions.
21066         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21067         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21068         was absent, but it caused a test failure with coreutils.
21069         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21070         with libm.
21071         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21072         * modules/strtod-tests (Makefile.am): Likewise.
21073
21074 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21075             Bruno Haible  <bruno@clisp.org>
21076
21077         unistr/u8-strchr: Optimize ASCII argument case.
21078         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21079
21080 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         (x)memcoll: minor tweaks
21083         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21084         is after the type that it qualifies.
21085         (memcoll0): Likewise.
21086         * lib/memcoll.h (memcoll0): Likewise.
21087         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21088         * lib/xmemcoll.h (xmemcoll0): Likewise.
21089         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21090         differs from memcoll in that the NUL byte is part of the argument.
21091         Omit the abort-checks, as performance is a real issue here.  Plus,
21092         the checks were wrong anyway (an off-by-one error).  Omit local
21093         variable 'diff', as it's a bit clearer that way.
21094         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21095         no longer needed.
21096
21097 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21098
21099         (x)memcoll: speedup when input is known to be NUL delimited
21100         * lib/memcoll.c: Include stdlib.
21101         (memcoll0): New function.
21102         (strcoll_loop): New function, refactored for use in both memcoll
21103         and memcoll0.
21104         * lib/memcoll.h (memcoll0): Add prototype.
21105         * lib/xmemcoll.c (xmemcoll0): New function.
21106         (collate_error): New function, refactored for use in both xmemcoll
21107         and xmemcoll0.
21108         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21109         * m4/memcoll.m4: add inline invocation.
21110
21111 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21112
21113         * build-aux/bootstrap: Remove any local translations
21114         from the translation project synchronization directory,
21115         so that local only translations are not distributed.
21116
21117 2010-07-04  Bruno Haible  <bruno@clisp.org>
21118
21119         fsusage: Clarify which code applies to which platforms.
21120         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21121         platform.
21122         * lib/fsusage.c (get_fs_usage): Likewise.
21123
21124 2010-07-04  Bruno Haible  <bruno@clisp.org>
21125
21126         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21127         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21128         Reported by Martin Lambers <marlam@marlam.de>.
21129
21130 2010-07-04  Jim Meyering  <meyering@redhat.com>
21131
21132         hash: once again explicitly disallow insertion of NULL
21133         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21134         inserting a NULL pointer cannot work with these functions.
21135         Add a comment with details.
21136         This reverts part of the 2010-07-01 commit, 5bef1a35
21137         "hash: extend module to deal with non-pointer keys".
21138
21139 2010-07-01  Bruno Haible  <bruno@clisp.org>
21140
21141         stdbool: Update doc.
21142         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21143         Info from Christian Weisgerber <naddy@mips.inka.de>.
21144
21145 2010-07-01  Jim Meyering  <meyering@redhat.com>
21146
21147         hash: extend module to deal with non-pointer keys
21148         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21149         but that allows insertion of non-pointer entries.
21150         Do not disallow an ENTRY value of NULL.
21151         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21152         * lib/hash.h (hash_insert0): Declare.
21153
21154 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21155
21156         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21157         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21158         not present (i.e. with autoconf 2.59 and when using gettextize, not
21159         gnulib), require AC_GNU_SOURCE instead.
21160
21161 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21162
21163         idpriv-drop: Fix tests.
21164         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21165         not to the test-idpriv-droptemp program.
21166
21167 2010-06-29  Bruno Haible  <bruno@clisp.org>
21168
21169         string: Fix syntax error with g++ 2.96.
21170         * lib/string.in.h (__pure__): Remove definition.
21171         (_GL_ATTRIBUTE_PURE): New macro.
21172         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21173         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21174         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21175
21176 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21177
21178         unitypes: Fix bug introduced on 2010-05-18.
21179         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21180
21181 2010-06-22  Eric Blake  <eblake@redhat.com>
21182
21183         memmem: slight optimization
21184         * lib/str-two-way.h (critical_factorization): Update comments.
21185         Reduce work during factorization phase.
21186         Reported by Carlos Bueno <carlos@bueno.org>.
21187
21188 2010-06-21  Bruno Haible  <bruno@clisp.org>
21189
21190         Fix HAVE_CALLOC_POSIX misnomer.
21191         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21192         !HAVE_CALLOC_POSIX.
21193         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21194         HAVE_CALLOC_POSIX.
21195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21196         instead of HAVE_CALLOC_POSIX.
21197         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21198         HAVE_CALLOC_POSIX.
21199
21200         Use modern idiom for calloc() replacement.
21201         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21202         AC_FUNC_CALLOC.
21203         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21204         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21205         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21206         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21207         (gl_REPLACE_CALLOC): New macro.
21208
21209 2010-06-21  Bruno Haible  <bruno@clisp.org>
21210
21211         Fix HAVE_REALLOC_POSIX misnomer.
21212         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21213         !HAVE_REALLOC_POSIX.
21214         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21215         HAVE_REALLOC_POSIX.
21216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21217         instead of HAVE_REALLOC_POSIX.
21218         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21219         HAVE_REALLOC_POSIX.
21220
21221         Use modern idiom for realloc() replacement.
21222         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21223         AC_FUNC_REALLOC.
21224         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21225         Autoconf's AC_FUNC_REALLOC.
21226         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21227         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21228         (gl_REPLACE_REALLOC): New macro.
21229         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21230
21231 2010-06-21  Bruno Haible  <bruno@clisp.org>
21232
21233         Fix HAVE_MALLOC_POSIX misnomer.
21234         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21235         !HAVE_MALLOC_POSIX.
21236         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21237         HAVE_MALLOC_POSIX.
21238         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21239         instead of HAVE_MALLOC_POSIX.
21240         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21241         HAVE_MALLOC_POSIX.
21242
21243         Use modern idiom for malloc() replacement.
21244         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21245         AC_FUNC_MALLOC.
21246         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21247         Autoconf's AC_FUNC_MALLOC.
21248         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21249         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21250         (gl_REPLACE_MALLOC): New macro.
21251         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21252
21253 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21254
21255         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21256         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21257         This macro takes 3 arguments, not 4.
21258
21259 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21260
21261         ipv6: fix detection under mingw
21262         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21263         in6_addr.
21264
21265 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21266
21267         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21268         that strtod() works when cross-compiling to a glibc version known
21269         to work.
21270
21271 2010-06-15  Bruno Haible  <bruno@clisp.org>
21272
21273         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21274
21275 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21276
21277         select: Correct timeout.
21278         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21279
21280 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21281
21282         git-version-gen: init shell var to avoid env var influence
21283         * build-aux/git-version-gen (v): Init shell var to empty.
21284
21285 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         priv-set: Don't assume that priv.h exists merely because getppriv does.
21288         See Jan Andersen's bug report about AIX 5L in
21289         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21290         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21291         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21292         * lib/priv-set.h: Likewise.
21293         * tests/test-priv-set.c: Likewise.
21294
21295 2010-06-13  Bruno Haible  <bruno@clisp.org>
21296
21297         relocatable: Make it easier to test whether to install wrappers.
21298         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21299         RELOCATABLE_VIA_WRAPPER.
21300
21301 2010-06-13  Bruno Haible  <bruno@clisp.org>
21302
21303         gnulib-tool: Display specified modules and dependencies differently.
21304         * gnulib-tool (func_show_module_list): New function.
21305         (func_import, func_create_testdir): Invoke it.
21306         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21307
21308 2010-06-13  Bruno Haible  <bruno@clisp.org>
21309
21310         gnulib-tool: Align code of func_import and func_create_testdir.
21311         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21312         specified_modules.
21313
21314 2010-06-12  Jim Meyering  <meyering@redhat.com>
21315
21316         test-inttostr: avoid spurious failure on Solaris 9
21317         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21318         to accept "%ju".  Reported by Bruno Haible.
21319
21320 2010-06-11  Jim Meyering  <meyering@redhat.com>
21321
21322         test-sys_socket: mark variables as used more readably
21323         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21324         as "used" explicitly via (void) statement casts.  This is more
21325         readable than using them in an artificial return expression.
21326         Suggestion from Bruno Haible.
21327
21328 2010-06-11  Bruno Haible  <bruno@clisp.org>
21329
21330         Avoid some more warnings from "gcc -Wwrite-strings".
21331         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21332         to 'const char *'.
21333         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21334         * tests/test-c-strcasestr.c (main): Likewise.
21335         * tests/test-mbscasestr1.c (main): Likewise.
21336         * tests/test-mbscasestr2.c (main): Likewise.
21337         * tests/test-memmem.c (main): Likewise.
21338         * tests/test-strstr.c (main): Likewise.
21339         * tests/test-strcasestr.c (main): Likewise.
21340
21341 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21342
21343         init.sh: change framework_failure_ to fail with status 99, not 1
21344         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21345         automake's parallel-tests rule that this is an unexpected failure,
21346         even if the test is listed in XFAIL_TESTS.
21347
21348 2010-06-11  Jim Meyering  <meyering@redhat.com>
21349
21350         test-inttostr: avoid warnings about 4-6KB literal strings
21351         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21352         Include "macros.h", for its definition of ASSERT.
21353         (CK): s/assert/ASSERT/
21354         * modules/inttostr-tests (Files): Add macros.h.
21355
21356         init.sh: don't use $ME_ or skip_ before they are defined
21357         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21358         their first uses.  Also hoist their companions: warn_, fail_,
21359         framework_failure_, $stderr_fileno.  Prompted by a patch from
21360         Stefano Lattarini.
21361
21362         test-sys_socket: avoid set-but-not-used warnings from gcc
21363         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21364         avoid warning about set-but-not-used variables.
21365
21366         test-xvasprintf: avoid 'const' discard warnings
21367         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21368         "const" when assigning from literal strings.
21369         (test_xasprintf): Add "void" in function argument list to placate
21370         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21371
21372         tests: avoid compilation warnings in argmatch and exclude tests...
21373         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21374         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21375         Since it always exits, declare with the "noreturn" attribute.
21376         * tests/test-argmatch.c: Likewise.
21377
21378         tests: avoid 'const' discard warnings in mbsstr tests
21379         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21380         * tests/test-mbsstr2.c (main): Likewise.
21381
21382         test-verify: avoid warning from gcc's -Wmissing-declarations
21383         * tests/test-verify.c (function): Declare to be static.
21384
21385         test-inttostr.c: include <string.h> for use of strcmp
21386         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21387
21388         test-linkat: avoid failed assertion on "other" architectures
21389         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21390         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21391         sparc: https://bugs.launchpad.net/bugs/591968
21392
21393 2010-06-11  Jim Meyering  <meyering@redhat.com>
21394
21395         printf.m4: avoid autoconf's "Expanded Before Required" warning
21396         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21397         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21398         autoconf warning.
21399
21400 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21401
21402         Replacement header templates are now named with ".in", not "_".
21403         * doc/gnulib-intro.texi: Correct.
21404
21405 2010-06-10  Jim Meyering  <meyering@redhat.com>
21406
21407         inttostr-tests: depend on snprintf, not snprintf-posix
21408         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21409         snprintf-posix, to avoid this aclocal failure:
21410           missing file gnulib-tests/vasnprintf.c
21411           configure.ac:45: error: expected source file, required through \
21412           AC_LIBSOURCES, not found
21413
21414 2010-06-10  Jim Meyering  <meyering@redhat.com>
21415
21416         inttostr: add a new function, inttostr, and tests
21417         The namesake function was not available.  The existence of the
21418         template file, inttostr.c makes its addition nontrivial.
21419         * lib/anytostr.c: Rename from inttostr.c.
21420         (anytostr): Rename from inttostr.
21421         * lib/inttostr.c: New file.
21422         * modules/inttostr (Files): Add anytostr.c.
21423         (Makefile.am): Set lib_SOURCES instead of ...
21424         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21425         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21426         * lib/offtostr.c: Likewise.
21427         * lib/uinttostr.c: Likewise.
21428         * lib/umaxtostr.c: Likewise.
21429         * modules/inttostr-tests: New file.
21430         * tests/test-inttostr.c: New file.  Test these functions.
21431
21432 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21433             Bruno Haible  <bruno@clisp.org>
21434
21435         Add "Extending Gnulib" chapter to manual.
21436         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21437         chapter.
21438         (Extending Gnulib): New chapter.
21439         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21440         chapter.
21441
21442 2010-06-09  Bruno Haible  <bruno@clisp.org>
21443
21444         Avoid relocwrapper link errors due to gnulib replacement functions.
21445         * lib/areadlink.c: Use the system's malloc, realloc functions.
21446         (areadlink): Set errno to ENOMEM explicitly.
21447         * modules/areadlink (Depends-on): Remove malloc-posix.
21448         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21449
21450 2010-06-09  Bruno Haible  <bruno@clisp.org>
21451
21452         Avoid relocwrapper link errors due to gnulib replacement functions.
21453         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21454         * lib/malloca.c: Likewise.
21455         * lib/relocatable.c: Likewise.
21456         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21457         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21458         * lib/setenv.c: Use the system's malloc, realloc functions.
21459         * lib/strerror.c: Use the system's sprintf function.
21460         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21461
21462 2010-06-04  Bruno Haible  <bruno@clisp.org>
21463
21464         Prefer documented low-level autoconf macro names.
21465         * m4/lib-link.m4: Use m4_translit instead of translit.
21466         * m4/environ.m4: Likewise.
21467         * m4/mathfunc.m4: Likewise.
21468         * m4/onceonly.m4: Likewise.
21469         * m4/stdint.m4: Likewise.
21470         Suggested by Eric Blake.
21471
21472 2010-06-04  Martin Lambers  <marlam@marlam.de>
21473             Bruno Haible  <bruno@clisp.org>
21474
21475         havelib: Allow library names with '+' characters.
21476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21477         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21478
21479 2010-06-09  Bruno Haible  <bruno@clisp.org>
21480
21481         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21482         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21483         realloc failed.
21484
21485 2010-06-08  Peter Simons  <simons@cryp.to>
21486
21487         maint.mk: make the news-check rule more configurable
21488         * top/maint.mk (news-check-lines-spec): New variable.
21489         (news-check): Use "sed -n 1,10p" in place of "head".
21490
21491 2010-06-07  Jim Meyering  <meyering@redhat.com>
21492
21493         do-release-commit-and-tag: fix typo in --help
21494         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21495
21496         regex: avoid new dead-code warning with gcc-4.6.0
21497         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21498         if-block containing a while-loop.  It's been unused for at least
21499         5 years.
21500
21501 2010-06-05  Bruno Haible  <bruno@clisp.org>
21502
21503         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21504         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21505
21506 2010-06-04  Bruno Haible  <bruno@clisp.org>
21507
21508         Update to GNU gettext 0.18.1.
21509         * modules/gettext (configure.ac): Require gettext infrastructure from
21510         version 0.18.1.
21511
21512 2010-06-03  Bruno Haible  <bruno@clisp.org>
21513
21514         Don't use AC_LIBOBJ with file names in subdirectories.
21515         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21516         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21517         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21518         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21519         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21520         gl_LIBUNISTRING_LIBSOURCE.
21521         (Makefile.am): Augment lib_SOURCES here, conditionally.
21522         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21523
21524 2010-06-03  Bruno Haible  <bruno@clisp.org>
21525
21526         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21527         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21528         expansion does not end with a newline.
21529         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21530         unnecessary newline.
21531
21532 2010-06-03  Bruno Haible  <bruno@clisp.org>
21533
21534         Reduce dependencies.
21535         * tests/test-quotearg.h: New file, extracted from
21536         tests/test-quotearg.c.
21537         * tests/test-quotearg-simple.c: New file, extracted from
21538         tests/test-quotearg.c.
21539         * tests/test-quotearg.c: Don't include <ctype.h>.
21540         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21541         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21542         use_quote_double_quotes, use_quotearg_colon): Moved to
21543         tests/test-quotearg.h.
21544         (results_g, flag_results, custom_quotes, custom_results): Moved
21545         to tests/test-quotearg-simple.c.
21546         (main): Moved the part that does not depend on gettext to
21547         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21548         performed.
21549         * modules/quotearg-simple: New file.
21550         * modules/quotearg-simple-tests: New file.
21551         * modules/quotearg (Depends-on): Add quotearg-simple.
21552         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21553         (Files): Add tests/test-quotearg.h.
21554         Reported by Paolo Bonzini.
21555
21556 2010-06-03  Bruno Haible  <bruno@clisp.org>
21557
21558         Reduce dependencies.
21559         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21560
21561 2010-06-03  Bruno Haible  <bruno@clisp.org>
21562
21563         time: Undefine more broken macros.
21564         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21565         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21566         Reported by Eric Blake.
21567
21568 2010-06-03  Bruno Haible  <bruno@clisp.org>
21569
21570         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21571         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21572         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21573         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21574         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21575         Reported by Ludovic Courtès <ludo@gnu.org>.
21576
21577 2010-06-02  Eric Blake  <eblake@redhat.com>
21578
21579         time: work with mingw + pthreads-win32 library
21580         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21581         if timespec is defined only in pthread.h.
21582         * modules/time (Makefile.am): Substitute it.
21583         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21584         <pthread.h>, when needed.
21585         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21586         from the library.
21587
21588 2010-05-31  Bruno Haible  <bruno@clisp.org>
21589
21590         Avoid expanding two macros in the wrong order.
21591         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21592         gl_LIBUNISTRING if it is defined.
21593         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21594         autoconf >= 2.64.
21595         Reported by Ludovic Courtès <ludo@gnu.org>.
21596
21597 2010-05-27  Jim Meyering  <meyering@redhat.com>
21598
21599         maint.mk: also prohibit "#undef" of always-defined symbols
21600         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21601         Allow more than one space before the symbol name.
21602         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21603         the regexp uses alternation.
21604
21605 2010-05-26  Eric Blake  <eblake@redhat.com>
21606
21607         maint.mk: avoid echo -e
21608         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21609         Convert all uses of echo -* to printf.
21610         Reported by Matthias Bolte.
21611
21612 2010-05-25  Bruno Haible  <bruno@clisp.org>
21613
21614         Update to GNU gettext 0.18, part 2.
21615         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21616         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21617
21618 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21619
21620         Add missing include in test-pwrite.c.
21621         * tests/test-pwrite.c: Include string.h, for strcmp.
21622
21623 2010-05-24  Bruno Haible  <bruno@clisp.org>
21624
21625         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21626
21627 2010-05-24  Bruno Haible  <bruno@clisp.org>
21628
21629         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21630         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21631         iconveh_error argument.
21632         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21633         U_STRCONV_TO_LOCALE.
21634         * lib/unistr/u16-strcoll.c: Likewise.
21635         * lib/unistr/u32-strcoll.c: Likewise.
21636         * modules/unistr/u8-strcoll (Depends-on): Add
21637         uniconv/u8-strconv-to-enc, localcharset. Remove
21638         uniconv/u8-strconv-to-locale.
21639         (configure.ac): Bump version number.
21640         * modules/unistr/u16-strcoll (Depends-on): Add
21641         uniconv/u16-strconv-to-enc, localcharset. Remove
21642         uniconv/u16-strconv-to-locale.
21643         (configure.ac): Bump version number.
21644         * modules/unistr/u32-strcoll (Depends-on): Add
21645         uniconv/u32-strconv-to-enc, localcharset. Remove
21646         uniconv/u32-strconv-to-locale.
21647         (configure.ac): Bump version number.
21648
21649 2010-05-24  Bruno Haible  <bruno@clisp.org>
21650
21651         Avoid a test failure on NetBSD 5.0.
21652         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21653         an iconv() bug.
21654
21655 2010-05-24  Bruno Haible  <bruno@clisp.org>
21656
21657         Adjust #include directive style.
21658         * modules/regex (Includes): Recommend to write <regex.h>.
21659
21660 2010-05-24  Bruno Haible  <bruno@clisp.org>
21661
21662         regex: Don't require alloca.
21663         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21664         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21665         only inside if (0).
21666
21667 2010-05-23  Jim Meyering  <meyering@redhat.com>
21668
21669         test-renameat.c: include <sys/stat.h>
21670         * tests/test-renameat.c: Include <sys/stat.h>; required for
21671         definition of S_IS* macros.
21672
21673 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21674
21675         Update maintainer documentation for 'relocatable-prog' module.
21676         * doc/relocatable-maint.texi: Update.
21677         Comments by Bruno Haible.
21678
21679 2010-05-23  Bruno Haible  <bruno@clisp.org>
21680
21681         git-merge-changelog: Enable --split-merged-entry by default.
21682         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21683         (usage): Don't mention this option any more.
21684         Reported by Ralf Wildenhues.
21685
21686 2010-05-23  Jim Meyering  <meyering@redhat.com>
21687
21688         test-pwrite: do not leave behind a test file named "out"
21689         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21690         The trivial-looking use of init.sh is really necessary.
21691         It ensures that the temporary file, "out", is created in
21692         a temporary directory, and removed upon termination.
21693         * tests/test-pwrite.sh: Re-add file.
21694         * modules/pwrite-tests: Reference it.
21695
21696 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21697
21698         Fix output redirection buglet in init.sh.
21699         * tests/init.sh: Fix redirection of stderr.
21700
21701 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21702
21703         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21704
21705 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21706
21707         * modules/valgrind-tests: New file.
21708         * m4/valgrind-tests.m4: New file.
21709         * doc/valgrind-tests.texi: New file.
21710         * doc/gnulib.texi (Running self-tests under valgrind): New
21711         section.
21712
21713 2010-05-19  Bruno Haible  <bruno@clisp.org>
21714
21715         Clean up dead code in recent commit.
21716         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21717         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21718         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21719         Suggested by Paolo Bonzini.
21720
21721 2010-05-19  Bruno Haible  <bruno@clisp.org>
21722
21723         Avoid valgrind error reports from libunistring.
21724         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21725         * modules/libunistring (Files): Add it.
21726         * modules/libunistring-optional (Files): Likewise.
21727
21728 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21729             Bruno Haible  <bruno@clisp.org>
21730
21731         New module 'libunistring-optional'.
21732         * modules/libunistring-optional: New file.
21733         * m4/libunistring-base.m4: New file.
21734         * m4/libunistring-optional.m4: New file.
21735         * lib/unicase.in.h: Renamed from lib/unicase.h.
21736         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21737         * lib/unictype.in.h: Renamed from lib/unictype.h.
21738         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21739         * lib/uniname.in.h: Renamed from lib/uniname.h.
21740         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21741         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21742         * lib/unistr.in.h: Renamed from lib/unistr.h.
21743         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21744         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21745         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21746         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21747         gl_LIBUNISTRING. If the library was found, determine the installed
21748         version and set LIBUNISTRING_VERSION.
21749         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21750         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21751         handle a configuration option --with-included-libunistring.
21752         * modules/libunistring (Files): Add m4/absolute-header.m4.
21753         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21754         Add m4/libunistring-base.m4.
21755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21756         (Makefile.am): Build unicase.h from unicase.in.h.
21757         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21758         Add m4/libunistring-base.m4.
21759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21760         (Makefile.am): Build uniconv.h from uniconv.in.h.
21761         * modules/unictype/base (Files): Use unictype.in.h instead of
21762         unictype.h. Add m4/libunistring-base.m4.
21763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21764         (Makefile.am): Build unictype.h from unictype.in.h.
21765         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21766         Add m4/libunistring-base.m4.
21767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21768         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21769         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21770         Add m4/libunistring-base.m4.
21771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21772         (Makefile.am): Build uniname.h from uniname.in.h.
21773         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21774         Add m4/libunistring-base.m4.
21775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21776         (Makefile.am): Build uninorm.h from uninorm.in.h.
21777         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21778         unistdio.h. Add m4/libunistring-base.m4.
21779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21780         (Makefile.am): Build unistdio.h from unistdio.in.h.
21781         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21782         Add m4/libunistring-base.m4.
21783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21784         (Makefile.am): Build unistr.h from unistr.in.h.
21785         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21786         Add m4/libunistring-base.m4.
21787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21788         (Makefile.am): Build unitypes.h from unitypes.in.h.
21789         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21790         Add m4/libunistring-base.m4.
21791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21792         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21793         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21794         uniwidth.h. Add m4/libunistring-base.m4.
21795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21796         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21797         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21798         instead of augmenting lib_SOURCES.
21799         * modules/unicase/empty-suffix-context: Likewise.
21800         * modules/unicase/locale-language: Likewise.
21801         * modules/unicase/tolower: Likewise.
21802         * modules/unicase/totitle: Likewise.
21803         * modules/unicase/toupper: Likewise.
21804         * modules/unicase/u8-casecmp: Likewise.
21805         * modules/unicase/u8-casecoll: Likewise.
21806         * modules/unicase/u8-casefold: Likewise.
21807         * modules/unicase/u8-casexfrm: Likewise.
21808         * modules/unicase/u8-ct-casefold: Likewise.
21809         * modules/unicase/u8-ct-tolower: Likewise.
21810         * modules/unicase/u8-ct-totitle: Likewise.
21811         * modules/unicase/u8-ct-toupper: Likewise.
21812         * modules/unicase/u8-is-cased: Likewise.
21813         * modules/unicase/u8-is-casefolded: Likewise.
21814         * modules/unicase/u8-is-lowercase: Likewise.
21815         * modules/unicase/u8-is-titlecase: Likewise.
21816         * modules/unicase/u8-is-uppercase: Likewise.
21817         * modules/unicase/u8-prefix-context: Likewise.
21818         * modules/unicase/u8-suffix-context: Likewise.
21819         * modules/unicase/u8-tolower: Likewise.
21820         * modules/unicase/u8-totitle: Likewise.
21821         * modules/unicase/u8-toupper: Likewise.
21822         * modules/unicase/u16-casecmp: Likewise.
21823         * modules/unicase/u16-casecoll: Likewise.
21824         * modules/unicase/u16-casefold: Likewise.
21825         * modules/unicase/u16-casexfrm: Likewise.
21826         * modules/unicase/u16-ct-casefold: Likewise.
21827         * modules/unicase/u16-ct-tolower: Likewise.
21828         * modules/unicase/u16-ct-totitle: Likewise.
21829         * modules/unicase/u16-ct-toupper: Likewise.
21830         * modules/unicase/u16-is-cased: Likewise.
21831         * modules/unicase/u16-is-casefolded: Likewise.
21832         * modules/unicase/u16-is-lowercase: Likewise.
21833         * modules/unicase/u16-is-titlecase: Likewise.
21834         * modules/unicase/u16-is-uppercase: Likewise.
21835         * modules/unicase/u16-prefix-context: Likewise.
21836         * modules/unicase/u16-suffix-context: Likewise.
21837         * modules/unicase/u16-tolower: Likewise.
21838         * modules/unicase/u16-totitle: Likewise.
21839         * modules/unicase/u16-toupper: Likewise.
21840         * modules/unicase/u32-casecmp: Likewise.
21841         * modules/unicase/u32-casecoll: Likewise.
21842         * modules/unicase/u32-casefold: Likewise.
21843         * modules/unicase/u32-casexfrm: Likewise.
21844         * modules/unicase/u32-ct-casefold: Likewise.
21845         * modules/unicase/u32-ct-tolower: Likewise.
21846         * modules/unicase/u32-ct-totitle: Likewise.
21847         * modules/unicase/u32-ct-toupper: Likewise.
21848         * modules/unicase/u32-is-cased: Likewise.
21849         * modules/unicase/u32-is-casefolded: Likewise.
21850         * modules/unicase/u32-is-lowercase: Likewise.
21851         * modules/unicase/u32-is-titlecase: Likewise.
21852         * modules/unicase/u32-is-uppercase: Likewise.
21853         * modules/unicase/u32-prefix-context: Likewise.
21854         * modules/unicase/u32-suffix-context: Likewise.
21855         * modules/unicase/u32-tolower: Likewise.
21856         * modules/unicase/u32-totitle: Likewise.
21857         * modules/unicase/u32-toupper: Likewise.
21858         * modules/unicase/ulc-casecmp: Likewise.
21859         * modules/unicase/ulc-casecoll: Likewise.
21860         * modules/unicase/ulc-casexfrm: Likewise.
21861         * modules/uniconv/u8-conv-from-enc: Likewise.
21862         * modules/uniconv/u8-conv-to-enc: Likewise.
21863         * modules/uniconv/u8-strconv-from-enc: Likewise.
21864         * modules/uniconv/u8-strconv-from-locale: Likewise.
21865         * modules/uniconv/u8-strconv-to-enc: Likewise.
21866         * modules/uniconv/u8-strconv-to-locale: Likewise.
21867         * modules/uniconv/u16-conv-from-enc: Likewise.
21868         * modules/uniconv/u16-conv-to-enc: Likewise.
21869         * modules/uniconv/u16-strconv-from-enc: Likewise.
21870         * modules/uniconv/u16-strconv-from-locale: Likewise.
21871         * modules/uniconv/u16-strconv-to-enc: Likewise.
21872         * modules/uniconv/u16-strconv-to-locale: Likewise.
21873         * modules/uniconv/u32-conv-from-enc: Likewise.
21874         * modules/uniconv/u32-conv-to-enc: Likewise.
21875         * modules/uniconv/u32-strconv-from-enc: Likewise.
21876         * modules/uniconv/u32-strconv-from-locale: Likewise.
21877         * modules/uniconv/u32-strconv-to-enc: Likewise.
21878         * modules/uniconv/u32-strconv-to-locale: Likewise.
21879         * modules/unictype/bidicategory-byname: Likewise.
21880         * modules/unictype/bidicategory-name: Likewise.
21881         * modules/unictype/bidicategory-of: Likewise.
21882         * modules/unictype/bidicategory-test: Likewise.
21883         * modules/unictype/block-list: Likewise.
21884         * modules/unictype/block-test: Likewise.
21885         * modules/unictype/category-C: Likewise.
21886         * modules/unictype/category-Cc: Likewise.
21887         * modules/unictype/category-Cf: Likewise.
21888         * modules/unictype/category-Cn: Likewise.
21889         * modules/unictype/category-Co: Likewise.
21890         * modules/unictype/category-Cs: Likewise.
21891         * modules/unictype/category-L: Likewise.
21892         * modules/unictype/category-Ll: Likewise.
21893         * modules/unictype/category-Lm: Likewise.
21894         * modules/unictype/category-Lo: Likewise.
21895         * modules/unictype/category-Lt: Likewise.
21896         * modules/unictype/category-Lu: Likewise.
21897         * modules/unictype/category-M: Likewise.
21898         * modules/unictype/category-Mc: Likewise.
21899         * modules/unictype/category-Me: Likewise.
21900         * modules/unictype/category-Mn: Likewise.
21901         * modules/unictype/category-N: Likewise.
21902         * modules/unictype/category-Nd: Likewise.
21903         * modules/unictype/category-Nl: Likewise.
21904         * modules/unictype/category-No: Likewise.
21905         * modules/unictype/category-P: Likewise.
21906         * modules/unictype/category-Pc: Likewise.
21907         * modules/unictype/category-Pd: Likewise.
21908         * modules/unictype/category-Pe: Likewise.
21909         * modules/unictype/category-Pf: Likewise.
21910         * modules/unictype/category-Pi: Likewise.
21911         * modules/unictype/category-Po: Likewise.
21912         * modules/unictype/category-Ps: Likewise.
21913         * modules/unictype/category-S: Likewise.
21914         * modules/unictype/category-Sc: Likewise.
21915         * modules/unictype/category-Sk: Likewise.
21916         * modules/unictype/category-Sm: Likewise.
21917         * modules/unictype/category-So: Likewise.
21918         * modules/unictype/category-Z: Likewise.
21919         * modules/unictype/category-Zl: Likewise.
21920         * modules/unictype/category-Zp: Likewise.
21921         * modules/unictype/category-Zs: Likewise.
21922         * modules/unictype/category-and: Likewise.
21923         * modules/unictype/category-and-not: Likewise.
21924         * modules/unictype/category-byname: Likewise.
21925         * modules/unictype/category-name: Likewise.
21926         * modules/unictype/category-none: Likewise.
21927         * modules/unictype/category-of: Likewise.
21928         * modules/unictype/category-or: Likewise.
21929         * modules/unictype/category-test: Likewise.
21930         * modules/unictype/combining-class: Likewise.
21931         * modules/unictype/ctype-alnum: Likewise.
21932         * modules/unictype/ctype-alpha: Likewise.
21933         * modules/unictype/ctype-blank: Likewise.
21934         * modules/unictype/ctype-cntrl: Likewise.
21935         * modules/unictype/ctype-digit: Likewise.
21936         * modules/unictype/ctype-graph: Likewise.
21937         * modules/unictype/ctype-lower: Likewise.
21938         * modules/unictype/ctype-print: Likewise.
21939         * modules/unictype/ctype-punct: Likewise.
21940         * modules/unictype/ctype-space: Likewise.
21941         * modules/unictype/ctype-upper: Likewise.
21942         * modules/unictype/ctype-xdigit: Likewise.
21943         * modules/unictype/decimal-digit: Likewise.
21944         * modules/unictype/digit: Likewise.
21945         * modules/unictype/mirror: Likewise.
21946         * modules/unictype/numeric: Likewise.
21947         * modules/unictype/property-alphabetic: Likewise.
21948         * modules/unictype/property-ascii-hex-digit: Likewise.
21949         * modules/unictype/property-bidi-arabic-digit: Likewise.
21950         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21951         * modules/unictype/property-bidi-block-separator: Likewise.
21952         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21953         * modules/unictype/property-bidi-common-separator: Likewise.
21954         * modules/unictype/property-bidi-control: Likewise.
21955         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21956         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21957         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21958         * modules/unictype/property-bidi-european-digit: Likewise.
21959         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21960         * modules/unictype/property-bidi-left-to-right: Likewise.
21961         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21962         * modules/unictype/property-bidi-other-neutral: Likewise.
21963         * modules/unictype/property-bidi-pdf: Likewise.
21964         * modules/unictype/property-bidi-segment-separator: Likewise.
21965         * modules/unictype/property-bidi-whitespace: Likewise.
21966         * modules/unictype/property-byname: Likewise.
21967         * modules/unictype/property-combining: Likewise.
21968         * modules/unictype/property-composite: Likewise.
21969         * modules/unictype/property-currency-symbol: Likewise.
21970         * modules/unictype/property-dash: Likewise.
21971         * modules/unictype/property-decimal-digit: Likewise.
21972         * modules/unictype/property-default-ignorable-code-point: Likewise.
21973         * modules/unictype/property-deprecated: Likewise.
21974         * modules/unictype/property-diacritic: Likewise.
21975         * modules/unictype/property-extender: Likewise.
21976         * modules/unictype/property-format-control: Likewise.
21977         * modules/unictype/property-grapheme-base: Likewise.
21978         * modules/unictype/property-grapheme-extend: Likewise.
21979         * modules/unictype/property-grapheme-link: Likewise.
21980         * modules/unictype/property-hex-digit: Likewise.
21981         * modules/unictype/property-hyphen: Likewise.
21982         * modules/unictype/property-id-continue: Likewise.
21983         * modules/unictype/property-id-start: Likewise.
21984         * modules/unictype/property-ideographic: Likewise.
21985         * modules/unictype/property-ids-binary-operator: Likewise.
21986         * modules/unictype/property-ids-trinary-operator: Likewise.
21987         * modules/unictype/property-ignorable-control: Likewise.
21988         * modules/unictype/property-iso-control: Likewise.
21989         * modules/unictype/property-join-control: Likewise.
21990         * modules/unictype/property-left-of-pair: Likewise.
21991         * modules/unictype/property-line-separator: Likewise.
21992         * modules/unictype/property-logical-order-exception: Likewise.
21993         * modules/unictype/property-lowercase: Likewise.
21994         * modules/unictype/property-math: Likewise.
21995         * modules/unictype/property-non-break: Likewise.
21996         * modules/unictype/property-not-a-character: Likewise.
21997         * modules/unictype/property-numeric: Likewise.
21998         * modules/unictype/property-other-alphabetic: Likewise.
21999         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22000         * modules/unictype/property-other-grapheme-extend: Likewise.
22001         * modules/unictype/property-other-id-continue: Likewise.
22002         * modules/unictype/property-other-id-start: Likewise.
22003         * modules/unictype/property-other-lowercase: Likewise.
22004         * modules/unictype/property-other-math: Likewise.
22005         * modules/unictype/property-other-uppercase: Likewise.
22006         * modules/unictype/property-paired-punctuation: Likewise.
22007         * modules/unictype/property-paragraph-separator: Likewise.
22008         * modules/unictype/property-pattern-syntax: Likewise.
22009         * modules/unictype/property-pattern-white-space: Likewise.
22010         * modules/unictype/property-private-use: Likewise.
22011         * modules/unictype/property-punctuation: Likewise.
22012         * modules/unictype/property-quotation-mark: Likewise.
22013         * modules/unictype/property-radical: Likewise.
22014         * modules/unictype/property-sentence-terminal: Likewise.
22015         * modules/unictype/property-soft-dotted: Likewise.
22016         * modules/unictype/property-space: Likewise.
22017         * modules/unictype/property-terminal-punctuation: Likewise.
22018         * modules/unictype/property-test: Likewise.
22019         * modules/unictype/property-titlecase: Likewise.
22020         * modules/unictype/property-unassigned-code-value: Likewise.
22021         * modules/unictype/property-unified-ideograph: Likewise.
22022         * modules/unictype/property-uppercase: Likewise.
22023         * modules/unictype/property-variation-selector: Likewise.
22024         * modules/unictype/property-white-space: Likewise.
22025         * modules/unictype/property-xid-continue: Likewise.
22026         * modules/unictype/property-xid-start: Likewise.
22027         * modules/unictype/property-zero-width: Likewise.
22028         * modules/unictype/scripts: Likewise.
22029         * modules/unictype/syntax-c-ident: Likewise.
22030         * modules/unictype/syntax-c-whitespace: Likewise.
22031         * modules/unictype/syntax-java-ident: Likewise.
22032         * modules/unictype/syntax-java-whitespace: Likewise.
22033         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22034         * modules/unilbrk/u8-width-linebreaks: Likewise.
22035         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22036         * modules/unilbrk/u16-width-linebreaks: Likewise.
22037         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22038         * modules/unilbrk/u32-width-linebreaks: Likewise.
22039         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22040         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22041         * modules/uniname/uniname: Likewise.
22042         * modules/uninorm/canonical-decomposition: Likewise.
22043         * modules/uninorm/composition: Likewise.
22044         * modules/uninorm/decomposing-form: Likewise.
22045         * modules/uninorm/decomposition: Likewise.
22046         * modules/uninorm/filter: Likewise.
22047         * modules/uninorm/nfc: Likewise.
22048         * modules/uninorm/nfd: Likewise.
22049         * modules/uninorm/nfkc: Likewise.
22050         * modules/uninorm/nfkd: Likewise.
22051         * modules/uninorm/u8-normalize: Likewise.
22052         * modules/uninorm/u8-normcmp: Likewise.
22053         * modules/uninorm/u8-normcoll: Likewise.
22054         * modules/uninorm/u8-normxfrm: Likewise.
22055         * modules/uninorm/u16-normalize: Likewise.
22056         * modules/uninorm/u16-normcmp: Likewise.
22057         * modules/uninorm/u16-normcoll: Likewise.
22058         * modules/uninorm/u16-normxfrm: Likewise.
22059         * modules/uninorm/u32-normalize: Likewise.
22060         * modules/uninorm/u32-normcmp: Likewise.
22061         * modules/uninorm/u32-normcoll: Likewise.
22062         * modules/uninorm/u32-normxfrm: Likewise.
22063         * modules/unistdio/u8-asnprintf: Likewise.
22064         * modules/unistdio/u8-asprintf: Likewise.
22065         * modules/unistdio/u8-snprintf: Likewise.
22066         * modules/unistdio/u8-sprintf: Likewise.
22067         * modules/unistdio/u8-u8-asnprintf: Likewise.
22068         * modules/unistdio/u8-u8-asprintf: Likewise.
22069         * modules/unistdio/u8-u8-snprintf: Likewise.
22070         * modules/unistdio/u8-u8-sprintf: Likewise.
22071         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22072         * modules/unistdio/u8-u8-vasprintf: Likewise.
22073         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22074         * modules/unistdio/u8-u8-vsprintf: Likewise.
22075         * modules/unistdio/u8-vasnprintf: Likewise.
22076         * modules/unistdio/u8-vasprintf: Likewise.
22077         * modules/unistdio/u8-vsnprintf: Likewise.
22078         * modules/unistdio/u8-vsprintf: Likewise.
22079         * modules/unistdio/u16-asnprintf: Likewise.
22080         * modules/unistdio/u16-asprintf: Likewise.
22081         * modules/unistdio/u16-snprintf: Likewise.
22082         * modules/unistdio/u16-sprintf: Likewise.
22083         * modules/unistdio/u16-u16-asnprintf: Likewise.
22084         * modules/unistdio/u16-u16-asprintf: Likewise.
22085         * modules/unistdio/u16-u16-snprintf: Likewise.
22086         * modules/unistdio/u16-u16-sprintf: Likewise.
22087         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22088         * modules/unistdio/u16-u16-vasprintf: Likewise.
22089         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22090         * modules/unistdio/u16-u16-vsprintf: Likewise.
22091         * modules/unistdio/u16-vasnprintf: Likewise.
22092         * modules/unistdio/u16-vasprintf: Likewise.
22093         * modules/unistdio/u16-vsnprintf: Likewise.
22094         * modules/unistdio/u16-vsprintf: Likewise.
22095         * modules/unistdio/u32-asnprintf: Likewise.
22096         * modules/unistdio/u32-asprintf: Likewise.
22097         * modules/unistdio/u32-snprintf: Likewise.
22098         * modules/unistdio/u32-sprintf: Likewise.
22099         * modules/unistdio/u32-u32-asnprintf: Likewise.
22100         * modules/unistdio/u32-u32-asprintf: Likewise.
22101         * modules/unistdio/u32-u32-snprintf: Likewise.
22102         * modules/unistdio/u32-u32-sprintf: Likewise.
22103         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22104         * modules/unistdio/u32-u32-vasprintf: Likewise.
22105         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22106         * modules/unistdio/u32-u32-vsprintf: Likewise.
22107         * modules/unistdio/u32-vasnprintf: Likewise.
22108         * modules/unistdio/u32-vasprintf: Likewise.
22109         * modules/unistdio/u32-vsnprintf: Likewise.
22110         * modules/unistdio/u32-vsprintf: Likewise.
22111         * modules/unistdio/ulc-asnprintf: Likewise.
22112         * modules/unistdio/ulc-asprintf: Likewise.
22113         * modules/unistdio/ulc-fprintf: Likewise.
22114         * modules/unistdio/ulc-snprintf: Likewise.
22115         * modules/unistdio/ulc-sprintf: Likewise.
22116         * modules/unistdio/ulc-vasnprintf: Likewise.
22117         * modules/unistdio/ulc-vasprintf: Likewise.
22118         * modules/unistdio/ulc-vfprintf: Likewise.
22119         * modules/unistdio/ulc-vsnprintf: Likewise.
22120         * modules/unistdio/ulc-vsprintf: Likewise.
22121         * modules/unistr/u8-check: Likewise.
22122         * modules/unistr/u8-chr: Likewise.
22123         * modules/unistr/u8-cmp: Likewise.
22124         * modules/unistr/u8-cmp2: Likewise.
22125         * modules/unistr/u8-cpy: Likewise.
22126         * modules/unistr/u8-cpy-alloc: Likewise.
22127         * modules/unistr/u8-endswith: Likewise.
22128         * modules/unistr/u8-mblen: Likewise.
22129         * modules/unistr/u8-mbsnlen: Likewise.
22130         * modules/unistr/u8-mbtouc: Likewise.
22131         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22132         * modules/unistr/u8-mbtoucr: Likewise.
22133         * modules/unistr/u8-move: Likewise.
22134         * modules/unistr/u8-next: Likewise.
22135         * modules/unistr/u8-prev: Likewise.
22136         * modules/unistr/u8-set: Likewise.
22137         * modules/unistr/u8-startswith: Likewise.
22138         * modules/unistr/u8-stpcpy: Likewise.
22139         * modules/unistr/u8-stpncpy: Likewise.
22140         * modules/unistr/u8-strcat: Likewise.
22141         * modules/unistr/u8-strchr: Likewise.
22142         * modules/unistr/u8-strcmp: Likewise.
22143         * modules/unistr/u8-strcoll: Likewise.
22144         * modules/unistr/u8-strcpy: Likewise.
22145         * modules/unistr/u8-strcspn: Likewise.
22146         * modules/unistr/u8-strdup: Likewise.
22147         * modules/unistr/u8-strlen: Likewise.
22148         * modules/unistr/u8-strmblen: Likewise.
22149         * modules/unistr/u8-strmbtouc: Likewise.
22150         * modules/unistr/u8-strncat: Likewise.
22151         * modules/unistr/u8-strncmp: Likewise.
22152         * modules/unistr/u8-strncpy: Likewise.
22153         * modules/unistr/u8-strnlen: Likewise.
22154         * modules/unistr/u8-strpbrk: Likewise.
22155         * modules/unistr/u8-strrchr: Likewise.
22156         * modules/unistr/u8-strspn: Likewise.
22157         * modules/unistr/u8-strstr: Likewise.
22158         * modules/unistr/u8-strtok: Likewise.
22159         * modules/unistr/u8-to-u16: Likewise.
22160         * modules/unistr/u8-to-u32: Likewise.
22161         * modules/unistr/u8-uctomb: Likewise.
22162         * modules/unistr/u16-check: Likewise.
22163         * modules/unistr/u16-chr: Likewise.
22164         * modules/unistr/u16-cmp: Likewise.
22165         * modules/unistr/u16-cmp2: Likewise.
22166         * modules/unistr/u16-cpy: Likewise.
22167         * modules/unistr/u16-cpy-alloc: Likewise.
22168         * modules/unistr/u16-endswith: Likewise.
22169         * modules/unistr/u16-mblen: Likewise.
22170         * modules/unistr/u16-mbsnlen: Likewise.
22171         * modules/unistr/u16-mbtouc: Likewise.
22172         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22173         * modules/unistr/u16-mbtoucr: Likewise.
22174         * modules/unistr/u16-move: Likewise.
22175         * modules/unistr/u16-next: Likewise.
22176         * modules/unistr/u16-prev: Likewise.
22177         * modules/unistr/u16-set: Likewise.
22178         * modules/unistr/u16-startswith: Likewise.
22179         * modules/unistr/u16-stpcpy: Likewise.
22180         * modules/unistr/u16-stpncpy: Likewise.
22181         * modules/unistr/u16-strcat: Likewise.
22182         * modules/unistr/u16-strchr: Likewise.
22183         * modules/unistr/u16-strcmp: Likewise.
22184         * modules/unistr/u16-strcoll: Likewise.
22185         * modules/unistr/u16-strcpy: Likewise.
22186         * modules/unistr/u16-strcspn: Likewise.
22187         * modules/unistr/u16-strdup: Likewise.
22188         * modules/unistr/u16-strlen: Likewise.
22189         * modules/unistr/u16-strmblen: Likewise.
22190         * modules/unistr/u16-strmbtouc: Likewise.
22191         * modules/unistr/u16-strncat: Likewise.
22192         * modules/unistr/u16-strncmp: Likewise.
22193         * modules/unistr/u16-strncpy: Likewise.
22194         * modules/unistr/u16-strnlen: Likewise.
22195         * modules/unistr/u16-strpbrk: Likewise.
22196         * modules/unistr/u16-strrchr: Likewise.
22197         * modules/unistr/u16-strspn: Likewise.
22198         * modules/unistr/u16-strstr: Likewise.
22199         * modules/unistr/u16-strtok: Likewise.
22200         * modules/unistr/u16-to-u32: Likewise.
22201         * modules/unistr/u16-to-u8: Likewise.
22202         * modules/unistr/u16-uctomb: Likewise.
22203         * modules/unistr/u32-check: Likewise.
22204         * modules/unistr/u32-chr: Likewise.
22205         * modules/unistr/u32-cmp: Likewise.
22206         * modules/unistr/u32-cmp2: Likewise.
22207         * modules/unistr/u32-cpy: Likewise.
22208         * modules/unistr/u32-cpy-alloc: Likewise.
22209         * modules/unistr/u32-endswith: Likewise.
22210         * modules/unistr/u32-mblen: Likewise.
22211         * modules/unistr/u32-mbsnlen: Likewise.
22212         * modules/unistr/u32-mbtouc: Likewise.
22213         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22214         * modules/unistr/u32-mbtoucr: Likewise.
22215         * modules/unistr/u32-move: Likewise.
22216         * modules/unistr/u32-next: Likewise.
22217         * modules/unistr/u32-prev: Likewise.
22218         * modules/unistr/u32-set: Likewise.
22219         * modules/unistr/u32-startswith: Likewise.
22220         * modules/unistr/u32-stpcpy: Likewise.
22221         * modules/unistr/u32-stpncpy: Likewise.
22222         * modules/unistr/u32-strcat: Likewise.
22223         * modules/unistr/u32-strchr: Likewise.
22224         * modules/unistr/u32-strcmp: Likewise.
22225         * modules/unistr/u32-strcoll: Likewise.
22226         * modules/unistr/u32-strcpy: Likewise.
22227         * modules/unistr/u32-strcspn: Likewise.
22228         * modules/unistr/u32-strdup: Likewise.
22229         * modules/unistr/u32-strlen: Likewise.
22230         * modules/unistr/u32-strmblen: Likewise.
22231         * modules/unistr/u32-strmbtouc: Likewise.
22232         * modules/unistr/u32-strncat: Likewise.
22233         * modules/unistr/u32-strncmp: Likewise.
22234         * modules/unistr/u32-strncpy: Likewise.
22235         * modules/unistr/u32-strnlen: Likewise.
22236         * modules/unistr/u32-strpbrk: Likewise.
22237         * modules/unistr/u32-strrchr: Likewise.
22238         * modules/unistr/u32-strspn: Likewise.
22239         * modules/unistr/u32-strstr: Likewise.
22240         * modules/unistr/u32-strtok: Likewise.
22241         * modules/unistr/u32-to-u16: Likewise.
22242         * modules/unistr/u32-to-u8: Likewise.
22243         * modules/unistr/u32-uctomb: Likewise.
22244         * modules/uniwbrk/u8-wordbreaks: Likewise.
22245         * modules/uniwbrk/u16-wordbreaks: Likewise.
22246         * modules/uniwbrk/u32-wordbreaks: Likewise.
22247         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22248         * modules/uniwbrk/wordbreak-property: Likewise.
22249         * modules/uniwidth/u8-strwidth: Likewise.
22250         * modules/uniwidth/u8-width: Likewise.
22251         * modules/uniwidth/u16-strwidth: Likewise.
22252         * modules/uniwidth/u16-width: Likewise.
22253         * modules/uniwidth/u32-strwidth: Likewise.
22254         * modules/uniwidth/u32-width: Likewise.
22255         * modules/uniwidth/width: Likewise.
22256         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22257         with $(LIBUNISTRING).
22258         * modules/unicase/ignorable-tests: Likewise.
22259         * modules/unicase/locale-language-tests: Likewise.
22260         * modules/unicase/tolower-tests: Likewise.
22261         * modules/unicase/totitle-tests: Likewise.
22262         * modules/unicase/toupper-tests: Likewise.
22263         * modules/unicase/u8-casecmp-tests: Likewise.
22264         * modules/unicase/u8-casecoll-tests: Likewise.
22265         * modules/unicase/u8-casefold-tests: Likewise.
22266         * modules/unicase/u8-is-cased-tests: Likewise.
22267         * modules/unicase/u8-is-casefolded-tests: Likewise.
22268         * modules/unicase/u8-is-lowercase-tests: Likewise.
22269         * modules/unicase/u8-is-titlecase-tests: Likewise.
22270         * modules/unicase/u8-is-uppercase-tests: Likewise.
22271         * modules/unicase/u8-tolower-tests: Likewise.
22272         * modules/unicase/u8-totitle-tests: Likewise.
22273         * modules/unicase/u8-toupper-tests: Likewise.
22274         * modules/unicase/u16-casecmp-tests: Likewise.
22275         * modules/unicase/u16-casecoll-tests: Likewise.
22276         * modules/unicase/u16-casefold-tests: Likewise.
22277         * modules/unicase/u16-is-cased-tests: Likewise.
22278         * modules/unicase/u16-is-casefolded-tests: Likewise.
22279         * modules/unicase/u16-is-lowercase-tests: Likewise.
22280         * modules/unicase/u16-is-titlecase-tests: Likewise.
22281         * modules/unicase/u16-is-uppercase-tests: Likewise.
22282         * modules/unicase/u16-tolower-tests: Likewise.
22283         * modules/unicase/u16-totitle-tests: Likewise.
22284         * modules/unicase/u16-toupper-tests: Likewise.
22285         * modules/unicase/u32-casecmp-tests: Likewise.
22286         * modules/unicase/u32-casecoll-tests: Likewise.
22287         * modules/unicase/u32-casefold-tests: Likewise.
22288         * modules/unicase/u32-is-cased-tests: Likewise.
22289         * modules/unicase/u32-is-casefolded-tests: Likewise.
22290         * modules/unicase/u32-is-lowercase-tests: Likewise.
22291         * modules/unicase/u32-is-titlecase-tests: Likewise.
22292         * modules/unicase/u32-is-uppercase-tests: Likewise.
22293         * modules/unicase/u32-tolower-tests: Likewise.
22294         * modules/unicase/u32-totitle-tests: Likewise.
22295         * modules/unicase/u32-toupper-tests: Likewise.
22296         * modules/unicase/ulc-casecmp-tests: Likewise.
22297         * modules/unicase/ulc-casecoll-tests: Likewise.
22298         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22299         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22300         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22301         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22302         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22303         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22304         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22305         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22306         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22307         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22308         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22309         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22310         * modules/unictype/bidicategory-byname-tests: Likewise.
22311         * modules/unictype/bidicategory-name-tests: Likewise.
22312         * modules/unictype/bidicategory-of-tests: Likewise.
22313         * modules/unictype/bidicategory-test-tests: Likewise.
22314         * modules/unictype/block-list-tests: Likewise.
22315         * modules/unictype/block-of-tests: Likewise.
22316         * modules/unictype/block-test-tests: Likewise.
22317         * modules/unictype/category-C-tests: Likewise.
22318         * modules/unictype/category-Cc-tests: Likewise.
22319         * modules/unictype/category-Cf-tests: Likewise.
22320         * modules/unictype/category-Cn-tests: Likewise.
22321         * modules/unictype/category-Co-tests: Likewise.
22322         * modules/unictype/category-Cs-tests: Likewise.
22323         * modules/unictype/category-L-tests: Likewise.
22324         * modules/unictype/category-Ll-tests: Likewise.
22325         * modules/unictype/category-Lm-tests: Likewise.
22326         * modules/unictype/category-Lo-tests: Likewise.
22327         * modules/unictype/category-Lt-tests: Likewise.
22328         * modules/unictype/category-Lu-tests: Likewise.
22329         * modules/unictype/category-M-tests: Likewise.
22330         * modules/unictype/category-Mc-tests: Likewise.
22331         * modules/unictype/category-Me-tests: Likewise.
22332         * modules/unictype/category-Mn-tests: Likewise.
22333         * modules/unictype/category-N-tests: Likewise.
22334         * modules/unictype/category-Nd-tests: Likewise.
22335         * modules/unictype/category-Nl-tests: Likewise.
22336         * modules/unictype/category-No-tests: Likewise.
22337         * modules/unictype/category-P-tests: Likewise.
22338         * modules/unictype/category-Pc-tests: Likewise.
22339         * modules/unictype/category-Pd-tests: Likewise.
22340         * modules/unictype/category-Pe-tests: Likewise.
22341         * modules/unictype/category-Pf-tests: Likewise.
22342         * modules/unictype/category-Pi-tests: Likewise.
22343         * modules/unictype/category-Po-tests: Likewise.
22344         * modules/unictype/category-Ps-tests: Likewise.
22345         * modules/unictype/category-S-tests: Likewise.
22346         * modules/unictype/category-Sc-tests: Likewise.
22347         * modules/unictype/category-Sk-tests: Likewise.
22348         * modules/unictype/category-Sm-tests: Likewise.
22349         * modules/unictype/category-So-tests: Likewise.
22350         * modules/unictype/category-Z-tests: Likewise.
22351         * modules/unictype/category-Zl-tests: Likewise.
22352         * modules/unictype/category-Zp-tests: Likewise.
22353         * modules/unictype/category-Zs-tests: Likewise.
22354         * modules/unictype/category-and-not-tests: Likewise.
22355         * modules/unictype/category-and-tests: Likewise.
22356         * modules/unictype/category-byname-tests: Likewise.
22357         * modules/unictype/category-name-tests: Likewise.
22358         * modules/unictype/category-none-tests: Likewise.
22359         * modules/unictype/category-of-tests: Likewise.
22360         * modules/unictype/category-or-tests: Likewise.
22361         * modules/unictype/category-test-withtable-tests: Likewise.
22362         * modules/unictype/combining-class-tests: Likewise.
22363         * modules/unictype/ctype-alnum-tests: Likewise.
22364         * modules/unictype/ctype-alpha-tests: Likewise.
22365         * modules/unictype/ctype-blank-tests: Likewise.
22366         * modules/unictype/ctype-cntrl-tests: Likewise.
22367         * modules/unictype/ctype-digit-tests: Likewise.
22368         * modules/unictype/ctype-graph-tests: Likewise.
22369         * modules/unictype/ctype-lower-tests: Likewise.
22370         * modules/unictype/ctype-print-tests: Likewise.
22371         * modules/unictype/ctype-punct-tests: Likewise.
22372         * modules/unictype/ctype-space-tests: Likewise.
22373         * modules/unictype/ctype-upper-tests: Likewise.
22374         * modules/unictype/ctype-xdigit-tests: Likewise.
22375         * modules/unictype/decimal-digit-tests: Likewise.
22376         * modules/unictype/digit-tests: Likewise.
22377         * modules/unictype/mirror-tests: Likewise.
22378         * modules/unictype/numeric-tests: Likewise.
22379         * modules/unictype/property-alphabetic-tests: Likewise.
22380         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22381         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22382         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22383         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22384         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22385         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22386         * modules/unictype/property-bidi-control-tests: Likewise.
22387         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22388         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22389         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22390         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22391         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22392         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22393         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22394         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22395         * modules/unictype/property-bidi-pdf-tests: Likewise.
22396         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22397         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22398         * modules/unictype/property-byname-tests: Likewise.
22399         * modules/unictype/property-combining-tests: Likewise.
22400         * modules/unictype/property-composite-tests: Likewise.
22401         * modules/unictype/property-currency-symbol-tests: Likewise.
22402         * modules/unictype/property-dash-tests: Likewise.
22403         * modules/unictype/property-decimal-digit-tests: Likewise.
22404         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22405         * modules/unictype/property-deprecated-tests: Likewise.
22406         * modules/unictype/property-diacritic-tests: Likewise.
22407         * modules/unictype/property-extender-tests: Likewise.
22408         * modules/unictype/property-format-control-tests: Likewise.
22409         * modules/unictype/property-grapheme-base-tests: Likewise.
22410         * modules/unictype/property-grapheme-extend-tests: Likewise.
22411         * modules/unictype/property-grapheme-link-tests: Likewise.
22412         * modules/unictype/property-hex-digit-tests: Likewise.
22413         * modules/unictype/property-hyphen-tests: Likewise.
22414         * modules/unictype/property-id-continue-tests: Likewise.
22415         * modules/unictype/property-id-start-tests: Likewise.
22416         * modules/unictype/property-ideographic-tests: Likewise.
22417         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22418         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22419         * modules/unictype/property-ignorable-control-tests: Likewise.
22420         * modules/unictype/property-iso-control-tests: Likewise.
22421         * modules/unictype/property-join-control-tests: Likewise.
22422         * modules/unictype/property-left-of-pair-tests: Likewise.
22423         * modules/unictype/property-line-separator-tests: Likewise.
22424         * modules/unictype/property-logical-order-exception-tests: Likewise.
22425         * modules/unictype/property-lowercase-tests: Likewise.
22426         * modules/unictype/property-math-tests: Likewise.
22427         * modules/unictype/property-non-break-tests: Likewise.
22428         * modules/unictype/property-not-a-character-tests: Likewise.
22429         * modules/unictype/property-numeric-tests: Likewise.
22430         * modules/unictype/property-other-alphabetic-tests: Likewise.
22431         * modules/unictype/property-other-default-ignorable-code-point-tests:
22432         Likewise.
22433         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22434         * modules/unictype/property-other-id-continue-tests: Likewise.
22435         * modules/unictype/property-other-id-start-tests: Likewise.
22436         * modules/unictype/property-other-lowercase-tests: Likewise.
22437         * modules/unictype/property-other-math-tests: Likewise.
22438         * modules/unictype/property-other-uppercase-tests: Likewise.
22439         * modules/unictype/property-paired-punctuation-tests: Likewise.
22440         * modules/unictype/property-paragraph-separator-tests: Likewise.
22441         * modules/unictype/property-pattern-syntax-tests: Likewise.
22442         * modules/unictype/property-pattern-white-space-tests: Likewise.
22443         * modules/unictype/property-private-use-tests: Likewise.
22444         * modules/unictype/property-punctuation-tests: Likewise.
22445         * modules/unictype/property-quotation-mark-tests: Likewise.
22446         * modules/unictype/property-radical-tests: Likewise.
22447         * modules/unictype/property-sentence-terminal-tests: Likewise.
22448         * modules/unictype/property-soft-dotted-tests: Likewise.
22449         * modules/unictype/property-space-tests: Likewise.
22450         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22451         * modules/unictype/property-test-tests: Likewise.
22452         * modules/unictype/property-titlecase-tests: Likewise.
22453         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22454         * modules/unictype/property-unified-ideograph-tests: Likewise.
22455         * modules/unictype/property-uppercase-tests: Likewise.
22456         * modules/unictype/property-variation-selector-tests: Likewise.
22457         * modules/unictype/property-white-space-tests: Likewise.
22458         * modules/unictype/property-xid-continue-tests: Likewise.
22459         * modules/unictype/property-xid-start-tests: Likewise.
22460         * modules/unictype/property-zero-width-tests: Likewise.
22461         * modules/unictype/scripts-tests: Likewise.
22462         * modules/unictype/syntax-c-ident-tests: Likewise.
22463         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22464         * modules/unictype/syntax-java-ident-tests: Likewise.
22465         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22466         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22467         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22468         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22469         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22470         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22471         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22472         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22473         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22474         * modules/uniname/uniname-tests: Likewise.
22475         * modules/uninorm/canonical-decomposition-tests: Likewise.
22476         * modules/uninorm/compat-decomposition-tests: Likewise.
22477         * modules/uninorm/composition-tests: Likewise.
22478         * modules/uninorm/decomposing-form-tests: Likewise.
22479         * modules/uninorm/decomposition-tests: Likewise.
22480         * modules/uninorm/filter-tests: Likewise.
22481         * modules/uninorm/nfc-tests: Likewise.
22482         * modules/uninorm/nfd-tests: Likewise.
22483         * modules/uninorm/nfkc-tests: Likewise.
22484         * modules/uninorm/nfkd-tests: Likewise.
22485         * modules/uninorm/u8-normcmp-tests: Likewise.
22486         * modules/uninorm/u8-normcoll-tests: Likewise.
22487         * modules/uninorm/u16-normcmp-tests: Likewise.
22488         * modules/uninorm/u16-normcoll-tests: Likewise.
22489         * modules/uninorm/u32-normcmp-tests: Likewise.
22490         * modules/uninorm/u32-normcoll-tests: Likewise.
22491         * modules/unistdio/u8-asnprintf-tests: Likewise.
22492         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22493         * modules/unistdio/u8-vasprintf-tests: Likewise.
22494         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22495         * modules/unistdio/u8-vsprintf-tests: Likewise.
22496         * modules/unistdio/u16-asnprintf-tests: Likewise.
22497         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22498         * modules/unistdio/u16-vasprintf-tests: Likewise.
22499         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22500         * modules/unistdio/u16-vsprintf-tests: Likewise.
22501         * modules/unistdio/u32-asnprintf-tests: Likewise.
22502         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22503         * modules/unistdio/u32-vasprintf-tests: Likewise.
22504         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22505         * modules/unistdio/u32-vsprintf-tests: Likewise.
22506         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22507         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22508         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22509         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22510         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22511         * modules/unistr/u8-check-tests: Likewise.
22512         * modules/unistr/u8-chr-tests: Likewise.
22513         * modules/unistr/u8-cmp-tests: Likewise.
22514         * modules/unistr/u8-cmp2-tests: Likewise.
22515         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22516         * modules/unistr/u8-cpy-tests: Likewise.
22517         * modules/unistr/u8-mblen-tests: Likewise.
22518         * modules/unistr/u8-mbsnlen-tests: Likewise.
22519         * modules/unistr/u8-mbtouc-tests: Likewise.
22520         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22521         * modules/unistr/u8-mbtoucr-tests: Likewise.
22522         * modules/unistr/u8-move-tests: Likewise.
22523         * modules/unistr/u8-next-tests: Likewise.
22524         * modules/unistr/u8-prev-tests: Likewise.
22525         * modules/unistr/u8-set-tests: Likewise.
22526         * modules/unistr/u8-stpcpy-tests: Likewise.
22527         * modules/unistr/u8-stpncpy-tests: Likewise.
22528         * modules/unistr/u8-strcat-tests: Likewise.
22529         * modules/unistr/u8-strcmp-tests: Likewise.
22530         * modules/unistr/u8-strcoll-tests: Likewise.
22531         * modules/unistr/u8-strcpy-tests: Likewise.
22532         * modules/unistr/u8-strdup-tests: Likewise.
22533         * modules/unistr/u8-strlen-tests: Likewise.
22534         * modules/unistr/u8-strmblen-tests: Likewise.
22535         * modules/unistr/u8-strmbtouc-tests: Likewise.
22536         * modules/unistr/u8-strncat-tests: Likewise.
22537         * modules/unistr/u8-strncmp-tests: Likewise.
22538         * modules/unistr/u8-strncpy-tests: Likewise.
22539         * modules/unistr/u8-strnlen-tests: Likewise.
22540         * modules/unistr/u8-to-u16-tests: Likewise.
22541         * modules/unistr/u8-to-u32-tests: Likewise.
22542         * modules/unistr/u8-uctomb-tests: Likewise.
22543         * modules/unistr/u16-check-tests: Likewise.
22544         * modules/unistr/u16-chr-tests: Likewise.
22545         * modules/unistr/u16-cmp-tests: Likewise.
22546         * modules/unistr/u16-cmp2-tests: Likewise.
22547         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22548         * modules/unistr/u16-cpy-tests: Likewise.
22549         * modules/unistr/u16-mblen-tests: Likewise.
22550         * modules/unistr/u16-mbsnlen-tests: Likewise.
22551         * modules/unistr/u16-mbtouc-tests: Likewise.
22552         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22553         * modules/unistr/u16-mbtoucr-tests: Likewise.
22554         * modules/unistr/u16-move-tests: Likewise.
22555         * modules/unistr/u16-next-tests: Likewise.
22556         * modules/unistr/u16-prev-tests: Likewise.
22557         * modules/unistr/u16-set-tests: Likewise.
22558         * modules/unistr/u16-stpcpy-tests: Likewise.
22559         * modules/unistr/u16-stpncpy-tests: Likewise.
22560         * modules/unistr/u16-strcat-tests: Likewise.
22561         * modules/unistr/u16-strcmp-tests: Likewise.
22562         * modules/unistr/u16-strcoll-tests: Likewise.
22563         * modules/unistr/u16-strcpy-tests: Likewise.
22564         * modules/unistr/u16-strdup-tests: Likewise.
22565         * modules/unistr/u16-strlen-tests: Likewise.
22566         * modules/unistr/u16-strmblen-tests: Likewise.
22567         * modules/unistr/u16-strmbtouc-tests: Likewise.
22568         * modules/unistr/u16-strncat-tests: Likewise.
22569         * modules/unistr/u16-strncmp-tests: Likewise.
22570         * modules/unistr/u16-strncpy-tests: Likewise.
22571         * modules/unistr/u16-strnlen-tests: Likewise.
22572         * modules/unistr/u16-to-u32-tests: Likewise.
22573         * modules/unistr/u16-to-u8-tests: Likewise.
22574         * modules/unistr/u16-uctomb-tests: Likewise.
22575         * modules/unistr/u32-check-tests: Likewise.
22576         * modules/unistr/u32-chr-tests: Likewise.
22577         * modules/unistr/u32-cmp-tests: Likewise.
22578         * modules/unistr/u32-cmp2-tests: Likewise.
22579         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22580         * modules/unistr/u32-cpy-tests: Likewise.
22581         * modules/unistr/u32-mblen-tests: Likewise.
22582         * modules/unistr/u32-mbsnlen-tests: Likewise.
22583         * modules/unistr/u32-mbtouc-tests: Likewise.
22584         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22585         * modules/unistr/u32-mbtoucr-tests: Likewise.
22586         * modules/unistr/u32-move-tests: Likewise.
22587         * modules/unistr/u32-next-tests: Likewise.
22588         * modules/unistr/u32-prev-tests: Likewise.
22589         * modules/unistr/u32-set-tests: Likewise.
22590         * modules/unistr/u32-stpcpy-tests: Likewise.
22591         * modules/unistr/u32-stpncpy-tests: Likewise.
22592         * modules/unistr/u32-strcat-tests: Likewise.
22593         * modules/unistr/u32-strcmp-tests: Likewise.
22594         * modules/unistr/u32-strcoll-tests: Likewise.
22595         * modules/unistr/u32-strcpy-tests: Likewise.
22596         * modules/unistr/u32-strdup-tests: Likewise.
22597         * modules/unistr/u32-strlen-tests: Likewise.
22598         * modules/unistr/u32-strmblen-tests: Likewise.
22599         * modules/unistr/u32-strmbtouc-tests: Likewise.
22600         * modules/unistr/u32-strncat-tests: Likewise.
22601         * modules/unistr/u32-strncmp-tests: Likewise.
22602         * modules/unistr/u32-strncpy-tests: Likewise.
22603         * modules/unistr/u32-strnlen-tests: Likewise.
22604         * modules/unistr/u32-to-u16-tests: Likewise.
22605         * modules/unistr/u32-to-u8-tests: Likewise.
22606         * modules/unistr/u32-uctomb-tests: Likewise.
22607         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22608         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22609         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22610         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22611         * modules/uniwidth/u8-strwidth-tests: Likewise.
22612         * modules/uniwidth/u8-width-tests: Likewise.
22613         * modules/uniwidth/u16-strwidth-tests: Likewise.
22614         * modules/uniwidth/u16-width-tests: Likewise.
22615         * modules/uniwidth/u32-strwidth-tests: Likewise.
22616         * modules/uniwidth/u32-width-tests: Likewise.
22617         * modules/uniwidth/width-tests: Likewise.
22618
22619 2010-05-18  Richard Jones  <rjones@redhat.com>
22620
22621         doc: users.txt: list hivex
22622         * users.txt: Add hivex.
22623
22624 2010-05-18  Richard Jones  <rjones@redhat.com>
22625
22626         doc: users.txt: list febootstrap
22627         * users.txt: Add febootstrap.
22628
22629 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22630
22631         bootstrap: fix an error when gnulib is not used as a git submodule
22632         * build-aux/bootstrap (gnulib_path): If its length is zero then
22633         assign "gnulib" to it.
22634         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22635
22636 2010-05-16  Bruno Haible  <bruno@clisp.org>
22637
22638         Avoid autoconf warnings about AM_ICONV.
22639         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22640         2.64.
22641
22642 2010-05-16  Bruno Haible  <bruno@clisp.org>
22643
22644         absolute-header: Make the macro usable in more situations.
22645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22646         from gl_ABSOLUTE_HEADER.
22647         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22648
22649 2010-05-16  James Youngman  <jay@gnu.org>
22650
22651         doc: update users.txt
22652         * users.txt: Add CSSC.
22653
22654 2010-05-16  Jim Meyering  <meyering@redhat.com>
22655
22656         init.sh: fix an error in the previous change; add more comments
22657         * tests/init.sh: Compare exit code in loop against 9, not 2.
22658         Patch by Bruno Haible.
22659         Make the two tests more similar by adding an empty "then" clause.
22660         Add comments.
22661
22662         init.sh: avoid unnecessary shell re-exec
22663         * tests/init.sh: Improve the re-exec-required check to first test the
22664         current shell.  If it passes the test, do not search for a shell that
22665         does pass, and do not re-exec.  This test is particularly contorted to
22666         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22667         of $(...) evokes a syntax error and causes immediate shell exit with
22668         status 2.  Bruno Haible reported that the re-exec made it impossible
22669         to single-step through any init.sh-using script.
22670
22671 2010-05-16  Bruno Haible  <bruno@clisp.org>
22672
22673         Fix collision between gnulib's and libintl's printf replacements.
22674         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22675         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22676         (printf): When using GNU C, map the __printf__ function to rpl_printf
22677         via __asm__. When not using GNU C, define rpl_printf instead of
22678         __printf__.
22679         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22680         commit.
22681         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22682         commit.
22683         * m4/asm-underscore.m4: New file.
22684         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22685         * modules/stdio (Files): Add m4/asm-underscore.m4.
22686         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22687         Reported by Ben Pfaff.
22688
22689 2010-05-16  Bruno Haible  <bruno@clisp.org>
22690
22691         verify: Avoid skipping the test on openSUSE 11.0.
22692         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22693
22694 2010-05-13  Bruno Haible  <bruno@clisp.org>
22695
22696         Avoid useless warnings from G++.
22697         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22698         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22700
22701 2010-05-11  Jim Meyering  <meyering@redhat.com>
22702
22703         maint.mk: tweak preceding change
22704         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22705         regexps tighter by anchoring at EOL, and make the new group "shy"
22706         for slightly decreased overhead.
22707
22708 2010-05-11  Eric Blake  <eblake@redhat.com>
22709
22710         maint.mk: gnulib doesn't guarantee NSIG
22711         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22712
22713 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22714
22715         test-pwrite.c: Remove unused variable declaration.
22716         * tests/test-pwrite.c (main): Remove read_buf declaration.
22717
22718         Remove useless test-pwrite.sh file.
22719         * tests/test-pwrite.sh: Delete file.
22720         * modules/pwrite-tests: Remove references.
22721         Reported by Bruno Haible.
22722
22723 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22724
22725         init.sh: fix a typo
22726         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22727
22728 2010-05-10  Jim Meyering  <meyering@redhat.com>
22729
22730         maint.mk: avoid using a temporary file in the always-defined-macros check
22731         * top/maint.mk (.re-defmac): Remove rule.
22732         (gl_trap_): Remove definition.
22733         (sc_prohibit_always-defined_macros): Rewrite not to create and
22734         depend on a temporary file.  Instead, depend on GNU grep's ability
22735         to read a list of regular expressions from stdin when given "-f -".
22736
22737 2010-05-09  Bruno Haible  <bruno@clisp.org>
22738
22739         Update to GNU gettext 0.18, part 1.
22740         * m4/gettext.m4: Update to GNU gettext 0.18.
22741         * m4/intl.m4: Likewise.
22742         * m4/po.m4: Likewise.
22743         * modules/gettext (Files): Add m4/fcntl-o.m4.
22744         (configure.ac): Require gettext infrastructure from version 0.18.
22745
22746 2010-05-09  Jim Meyering  <meyering@redhat.com>
22747
22748         init.sh: enable MALLOC_PERTURB_
22749         * tests/init.sh: Enable glibc's malloc-perturbing option.
22750
22751         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22752         With my recent change in init.sh from the two-line form:
22753             -#   : ${srcdir=.}
22754             -#   . "$srcdir/init.sh"; path_prepend_ .
22755             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22756         I noticed that using the one-line form would cause this test
22757         to fail with a false-positive, or to stop working altogether,
22758         depending on whether help-version changed or all the tests did.
22759         * top/maint.mk (_hv_regex): Remove this definition.
22760         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22761         (_hv_regex_strong): Use a stronger regex to check for conformance.
22762         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22763         Give a separate diagnostic for lack of conforming use.
22764
22765         maint.mk: prohibit definition of symbols defined by gnulib
22766         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22767         definition of symbols defined by gnulib.
22768
22769 2010-05-09  Bruno Haible  <bruno@clisp.org>
22770
22771         acl: Avoid test failure on Cygwin-hosted mingw.
22772         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22773
22774 2010-05-09  Bruno Haible  <bruno@clisp.org>
22775
22776         error: Use system's fcntl function.
22777         * lib/error.c (fcntl): Undefine.
22778
22779 2010-05-09  Jim Meyering  <meyering@redhat.com>
22780
22781         verify: adjust formatting to be more consistent
22782         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22783         argument-list '('s, and after one comma.
22784
22785 2010-05-09  Bruno Haible  <bruno@clisp.org>
22786
22787         error: More reliable output on mingw.
22788         * lib/error.c: Include <windows.h>.
22789         (is_open): New function.
22790         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22791         defined.
22792
22793 2010-05-09  Bruno Haible  <bruno@clisp.org>
22794
22795         vasnprintf: Fix syntax errors in libintl build on mingw.
22796         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22797         pad_ourselves and prec_ourselves after use.
22798
22799 2010-05-08  Bruno Haible  <bruno@clisp.org>
22800
22801         * lib/config.charset: Update comments for Cygwin 1.7.
22802         * lib/localcharset.c: Likewise.
22803
22804 2010-05-07  Jim Meyering  <meyering@redhat.com>
22805
22806         init.sh: improve comments
22807         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22808         . "${srcdir=.}/init.sh"; path_prepend_ .
22809         Add a note about path_prepend_ and the alternative of using
22810         TESTS_ENVIRONMENT.
22811
22812 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22813
22814         exclude: Unescape hashed patterns in wildcard mode.
22815         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22816         to the hash list.
22817         * tests/test-exclude8.sh: New test case.
22818         * modules/exclude-tests: Add new test.
22819
22820 2010-05-05  Eric Blake  <eblake@redhat.com>
22821
22822         verify: automate tests
22823         * modules/verify-tests: New module.
22824         * tests/test-verify.sh: New file.
22825         * tests/test-verify.c: Guard each negative test with a unique id.
22826         Also avoid warning about unused left hand of comma expressions.
22827
22828 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22829
22830         Further improvements to verify.h, suggested by Eric Blake.
22831         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22832         the GL_* versions, to avoid collision with OpenGL.
22833         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22834         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22835         than testing merely whether it's defined.
22836
22837         Modify verify.h to pacify gcc -Wredundant_decls.
22838         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22839         These use the prefix "GL_" since they're likely to be useful elsewhere.
22840         We may need to break them out into a different .h file.
22841         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22842         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22843         of verify_function__.
22844
22845 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22846
22847         Tests for module pwrite.
22848         * modules/pwrite-tests: New file.
22849         * tests/test-pwrite.sh: New file.
22850         * tests/test-pwrite.c: New file.
22851
22852         New module pwrite.
22853         * lib/unistd.in.h (pwrite): New declaration.
22854         * lib/pwrite.c: New file, from glibc with modifications.
22855         * m4/pwrite.m4: New file.
22856         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22857         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22858         REPLACE_PWRITE.
22859         * modules/pwrite: New file.
22860         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22861         REPLACE_PWRITE.
22862         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22863         * doc/posix-functions/pwrite.texi: Mention the new module.
22864
22865 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22866
22867         pread: Update documentation.
22868         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22869
22870 2010-05-04  Eric Blake  <eblake@redhat.com>
22871
22872         docs: update cygwin progress
22873         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22874         this bug.
22875         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22876         Added in cygwin 1.7.2.
22877         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22878         Likewise.
22879         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22880         Likewise.
22881         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22882         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22883         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22884         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22885         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22886         Mention nproc module.
22887         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22888         bug in cygwin 1.7.5 addition.
22889         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22890         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22891         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22892         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22893         1.7.5.
22894         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22895         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22896         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22897         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22898         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22899         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22900         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22901         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22902         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22903         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22904         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22905         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22906         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22907         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22908         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22909         Likewise.
22910         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22911         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22912         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22913         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22914         Likewise.
22915         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22916         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22917         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22918         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22919         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22920         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22921         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22922         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22923         Likewise.
22924         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22925         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22926         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22927         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22928         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22929         Likewise.
22930         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22931         Likewise.
22932         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22933         Likewise.
22934         * doc/glibc-functions/xdrrec_endofrecord.texi
22935         (xdrrec_endofrecord): Likewise.
22936         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22937         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22938         Likewise.
22939         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22940         Likewise.
22941
22942 2010-05-04  Jim Meyering  <meyering@redhat.com>
22943
22944         gendocs.sh: make its "-s FILE" option more useful
22945         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22946         $PACKAGE to reflect the probably-different basename of "FILE".
22947
22948 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22949
22950         bootstrap: don't ignore download_po_files failure
22951         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22952         failure.
22953
22954 2010-05-03  Jim Meyering  <meyering@redhat.com>
22955
22956         maint.mk: allow to pass options to gendocs.sh
22957         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22958         (gendocs_options_): New overridable variable.
22959
22960         gnu-web-doc-update: don't ignore configure or build failure
22961         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22962
22963         announce-gen: backslash-escape '@'s in --help output
22964         * build-aux/announce-gen: Fix syntax errors.
22965
22966         maint.mk, announce-gen: allow project-specific announcement mail headers
22967         * top/maint.mk (translation_project_): Define default.
22968         (announcement_Cc_, announcement_mail_headers_): Likewise.
22969         (announcement): Invoke announce-gen with new --mail-headers option.
22970         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22971
22972         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22973         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22974         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22975         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22976         line in the "err2" output file when running "make check" in verbose
22977         mode (i.e., with set -x enabled).
22978
22979 2010-05-03  Bruno Haible  <bruno@clisp.org>
22980
22981         wctob: Fix for weird platforms.
22982         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22983         argument value.
22984
22985 2010-05-03  Jim Meyering  <meyering@redhat.com>
22986
22987         maint.mk: prohibit unwarranted use of <strings.h>
22988         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22989         strings.h in a file that does not also use strcasecmp, strncasecmp,
22990         ffs or ffsll.
22991
22992         maint.mk: remove obsolete comments
22993         * top/maint.mk: Remove stale, commented-out rules.
22994
22995 2010-05-02  Bruno Haible  <bruno@clisp.org>
22996
22997         wcwidth: Declare also when it's aliased.
22998         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22999         macro.
23000
23001 2010-05-02  Bruno Haible  <bruno@clisp.org>
23002
23003         Fix regression from 2010-04-25.
23004         * gnulib-tool (func_modules_transitive_closure): Check the status of
23005         all modules, not only of the tests that are of the form foo-tests where
23006         foo is a module.
23007
23008 2010-05-02  Bruno Haible  <bruno@clisp.org>
23009
23010         wctob: Work around nasty Cygwin 1.7.2 bug.
23011         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23012         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23013
23014 2010-05-01  Bruno Haible  <bruno@clisp.org>
23015
23016         fpurge: Sharper test.
23017         * tests/test-fpurge.c (main): Add one more ftell check.
23018         * modules/fpurge-tests (Depends-on): Add ftell.
23019         Suggested by Eric Blake.
23020
23021 2010-05-01  Bruno Haible  <bruno@clisp.org>
23022
23023         ftello: Another test.
23024         * tests/test-ftello3.c: New file.
23025         * modules/ftello-tests (Files): Add it.
23026         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23027         MOSTLYCLEANFILES.
23028
23029         ftell: Another test.
23030         * tests/test-ftell3.c: New file.
23031         * modules/ftell-tests (Files): Add it.
23032         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23033         MOSTLYCLEANFILES.
23034
23035 2010-05-01  Bruno Haible  <bruno@clisp.org>
23036
23037         ftell, ftello: Work around Solaris bug.
23038         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23039         * lib/ftello.c: Include stdio-impl.h.
23040         (ftello): On Solaris, when _IOWRT is set, compute the result without
23041         looking at _IOREAD.
23042         * modules/ftello (Files): Add lib/stdio-impl.h.
23043         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23044         * doc/posix-functions/ftello.texi: Likewise.
23045         Reported by Eric Blake.
23046
23047 2010-05-01  Bruno Haible  <bruno@clisp.org>
23048
23049         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23050         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23051         the _IOWRT flag is also set.
23052
23053 2010-05-01  Bruno Haible  <bruno@clisp.org>
23054
23055         Fix doc about a HP-UX stdio bug.
23056         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23057         * doc/posix-functions/ftello.texi: Likewise.
23058
23059 2010-05-01  Bruno Haible  <bruno@clisp.org>
23060
23061         lseek test: Fix failure on Solaris.
23062         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23063         output.
23064
23065 2010-04-30  Jim Meyering  <meyering@redhat.com>
23066
23067         bootstrap: don't ignore failure to generate po*/Makevars
23068         * build-aux/bootstrap (with_gettext): Don't ignore failure
23069         to create po/Makevars or runtime-po/Makevars.
23070
23071 2010-04-29  Eric Blake  <eblake@redhat.com>
23072
23073         headers: relax license to LGPLv2+
23074         * modules/fcntl-h (License): Relax license.
23075         * modules/getopt-posix (License): Likewise.
23076         * modules/locale (License): Likewise.
23077         * modules/math (License): Likewise.
23078         * modules/pty (License): Likewise.
23079         * modules/sched (License): Likewise.
23080         * modules/search (License): Likewise.
23081         * modules/spawn (License): Likewise.
23082         * modules/stdarg (License): Likewise.
23083         * modules/sysexits (License): Likewise.
23084
23085 2010-04-29  Jim Meyering  <meyering@redhat.com>
23086
23087         inttypes: relax license to LGPLv2+
23088         * modules/inttypes (License): Relax license.
23089
23090 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23091
23092         * top/maint.mk (indent): Run twice to produce idempotent results.
23093
23094 2010-04-28  Bruno Haible  <bruno@clisp.org>
23095
23096         getdate: Generate getdate.c in the source directory.
23097         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23098         MOSTLYCLEANFILES.
23099         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23100
23101 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23102
23103         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23104         is not declared as a const *; avoid warnings in that case.
23105
23106 2010-04-28  Eric Blake  <eblake@redhat.com>
23107
23108         canonicalize-lgpl: avoid compiler warning
23109         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23110         declaration' / 'extraneous semicolon' warning with some compilers.
23111         Reported by Andreas Gruenbacher.
23112
23113 2010-04-28  Jim Meyering  <meyering@redhat.com>
23114
23115         init.sh: ensure a more reliable exit status when exiting via trap
23116         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23117         Inspired by patches from Dmitry V. Levin.
23118         Also trap on signal 3 (SIGQUIT).
23119
23120 2010-04-27  Bruno Haible  <bruno@clisp.org>
23121
23122         Update doc about utimes().
23123         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23124         'utimens' module.
23125         Reported by Andreas Gruenbacher <agruen@suse.de>.
23126
23127 2010-04-27  Eric Blake  <eblake@redhat.com>
23128
23129         full-read, full-write: relax license
23130         * modules/full-read (License): Drop to LGPLv2+.
23131         * modules/full-write (License): Likewise.
23132         * modules/safe-read (License): Likewise.
23133         * modules/safe-write (License): Likewise.
23134
23135         pthread: mention library for linking
23136         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23137
23138 2010-04-27  Jim Meyering  <meyering@redhat.com>
23139
23140         maint.mk: fix a bug introduced in last change
23141         * top/maint.mk (gl_assured_headers_): Now that all names are on
23142         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23143         is not anchored to end of word, it should be adequate.
23144
23145         maint.mk: avoid side-effect in latest syntax-check
23146         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23147         to run commands via $(shell...), and hence to incur cost only when
23148         the new rule is actually run.
23149
23150         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23151         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23152         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23153         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23154         (gl_assured_headers_, az_, AZ_): Define.
23155         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23156
23157 2010-04-26  Jim Meyering  <jim@meyering.net>
23158             Bruno Haible  <bruno@clisp.org>
23159
23160         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23161         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23162         Prompted by an exchange with Gilles Espinasse.
23163
23164 2010-04-26  Jim Meyering  <meyering@redhat.com>
23165
23166         git-version-gen: aesthetic tweak
23167         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23168         so that the command remains on a single line.
23169
23170 2010-04-26  Eric Blake  <eblake@redhat.com>
23171
23172         git-version-gen: allow use on EBCDIC hosts
23173         * build-aux/git-version-gen (dirty): Use literal rather than tying
23174         ourselves to ascii.
23175         Reported by Steve Goetze.
23176
23177 2010-04-25  Bruno Haible  <bruno@clisp.org>
23178
23179         netdb: Add support for GNULIB_POSIXCHECK.
23180         * lib/netdb.in.h: Include warn-on-use.h.
23181         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23182         functions are used when GNULIB_POSIXCHECK is defined and the
23183         getaddrinfo module is not in use.
23184         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23185         freeaddrinfo, gai_strerror, getnameinfo are declared.
23186         * modules/netdb (Depends-on): Add warn-on-use.
23187         (Makefile.am): Include warn-on-use.h in netdb.h.
23188
23189 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23190
23191         build: avoid "make check" failure without .git/ directory
23192         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23193         there is no .git/ directory.
23194
23195 2010-04-25  Bruno Haible  <bruno@clisp.org>
23196
23197         ptsname: Fix misuse of ttyname_r.
23198         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23199         of errno.
23200
23201 2010-04-25  Bruno Haible  <bruno@clisp.org>
23202
23203         ttyname_r: Make it work on Solaris 10.
23204         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23205         if the system function has the POSIX declaration. Test whether the
23206         function fails if the buffer is less than 128 bytes large.
23207         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23208         system's ttyname_r function. Provide a reasonably large buffer.
23209         * modules/ttyname_r (Depends-on): Add extensions.
23210         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23211
23212 2010-04-25  Bruno Haible  <bruno@clisp.org>
23213
23214         Use the 'extensions' module for some more functions on Solaris.
23215         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23216         module.
23217         * doc/posix-functions/ctime_r.texi: Likewise.
23218         * doc/posix-functions/getgrgid_r.texi: Likewise.
23219         * doc/posix-functions/getgrnam_r.texi: Likewise.
23220         * doc/posix-functions/getpwnam_r.texi: Likewise.
23221         * doc/posix-functions/getpwuid_r.texi: Likewise.
23222         * doc/posix-functions/readdir_r.texi: Likewise.
23223         * doc/posix-functions/sigwait.texi: Likewise.
23224         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23225         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23226
23227 2010-04-25  Bruno Haible  <bruno@clisp.org>
23228
23229         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23230         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23231         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23232         * lib/ttyname_r.c: Include <limits.h>.
23233         (ttyname_r): Define using the system's ttyname_r function, if it exists
23234         and not on Solaris.
23235         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23236         set.
23237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23238         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23239         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23240         Reported by Simon Josefsson.
23241
23242 2010-04-25  Bruno Haible  <bruno@clisp.org>
23243
23244         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23245         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23246         * doc/posix-functions/ctime_r.texi: Likewise.
23247         * doc/posix-functions/getgrgid_r.texi: Likewise.
23248         * doc/posix-functions/getgrnam_r.texi: Likewise.
23249         * doc/posix-functions/getlogin_r.texi: Likewise.
23250         * doc/posix-functions/getpwnam_r.texi: Likewise.
23251         * doc/posix-functions/getpwuid_r.texi: Likewise.
23252         * doc/posix-functions/readdir_r.texi: Likewise.
23253         * doc/posix-functions/sigwait.texi: Likewise.
23254         * doc/posix-functions/ttyname_r.texi: Likewise.
23255         Reported by Simon Josefsson.
23256
23257 2010-04-25  Bruno Haible  <bruno@clisp.org>
23258
23259         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23260         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23261         also to --create-testdir.
23262         (func_acceptable): Don't consider the status of *-tests modules here.
23263         (func_modules_transitive_closure): Consider it here, before including a
23264         test module.
23265         (func_import, func_create_testdir): Set inc_all_direct_tests,
23266         inc_all_indirect_tests.
23267         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23268         --create-testdir and --create-megatestdir.
23269
23270 2010-04-25  Bruno Haible  <bruno@clisp.org>
23271
23272         gnulib-tool: Add --without-*-tests options.
23273         * gnulib-tool (func_usage): Document the --without-*-tests options.
23274         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23275         excl_unportable_tests): New variables.
23276         Fail if they are specified with --import or --update.
23277         (func_acceptable): Respect the excl_*_tests variables.
23278         (func_import): Set the excl_*_tests variables to empty.
23279
23280 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23281             Bruno Haible  <bruno@clisp.org>
23282
23283         Work around a MacOS X 10.4 bug with openpty.
23284         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23285         * tests/test-openpty.c (main): Close the master side explicitly.
23286
23287 2010-04-25  Bruno Haible  <bruno@clisp.org>
23288
23289         strnlen: Fix a C++ test error on MacOS X and Solaris.
23290         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23291         the function is not declared.
23292         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23293         Simon Josefsson.
23294
23295 2010-04-24  Bruno Haible  <bruno@clisp.org>
23296
23297         Avoid a gcc warning.
23298         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23299         of correct type for %08lx directive.
23300         Reported by Eric Blake.
23301
23302 2010-04-24  Bruno Haible  <bruno@clisp.org>
23303
23304         vasnprintf: Correct errno value in case of out-of-memory.
23305         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23306         or sprintf. Use the errno value from SNPRINTF or sprintf.
23307         Reported by Ian Beckwith <ianb@erislabs.net>.
23308
23309 2010-04-24  Bruno Haible  <bruno@clisp.org>
23310
23311         ansi-c++-opt: Find correct compiler when cross-compiling.
23312         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23313         AC_CHECK_PROGS.
23314         Reported by Simon Josefsson.
23315
23316 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23317
23318         vc-list-files: Add support for subversion
23319         * build-aux/vc-list-files: Use "svn list" to generate the list of
23320         files controlled by subversion.
23321
23322 2010-04-23  Jim Meyering  <meyering@redhat.com>
23323
23324         vc-list-files tests: convert to use init.sh
23325         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23326         path_prepend_.
23327         Use Exit, not exit.
23328         Use skip_ rather than open coding it.
23329         Remove trap set-up and compare definitions.
23330         * tests/test-vc-list-files-git.sh: Likewise.
23331         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23332
23333 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23334
23335         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23336         backup files.
23337
23338 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23339
23340         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23341
23342 2010-04-20  Eric Blake  <eblake@redhat.com>
23343
23344         tests: be robust to ignored SIGPIPE
23345         * tests/test-select-in.sh: Consume all output.
23346         * tests/test-lseek.sh: Check correct exit status, while avoiding
23347         EPIPE.
23348
23349 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23350             Bruno Haible  <bruno@clisp.org>
23351
23352         visibility: Don't use -fvisibility if it leads to a warning.
23353         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23354         yes, don't pretend that visibility works if it leads to a warning.
23355         Reported by Mike Gran <spk121@yahoo.com>.
23356
23357 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23358
23359         * build-aux/bootstrap: Use "git -h" for testing for supported options
23360         instead of "git --help".  The short-form option only shows a summary,
23361         and doesn't layout the full man page.  Grep for the full option name
23362         in the summary, too.
23363
23364 2010-04-19  Bruno Haible  <bruno@clisp.org>
23365
23366         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23367         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23368         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23369         mention of RELOCATABLE_STRIP.
23370         Reported by Sylvain Beucler <beuc@beuc.net>.
23371
23372 2010-04-19  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/diffseq.h: Fix typo in comment.
23375         Reported by Eric Blake.
23376
23377 2010-04-19  Bruno Haible  <bruno@clisp.org>
23378
23379         ioctl: Move autoconf macro to a .m4 file.
23380         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23381         * modules/ioctl (Files): Add it.
23382         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23383         Reported by Ian Beckwith <ianb@erislabs.net>.
23384
23385 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23386             Bruno Haible  <bruno@clisp.org>
23387
23388         diffseq: Accommodate use-case with abstract arrays.
23389         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23390         is not defined.
23391         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23392         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23393
23394 2010-04-18  Bruno Haible  <bruno@clisp.org>
23395
23396         * doc/posix-headers/stdbool.texi: More precise wording.
23397
23398 2010-04-17  Jim Meyering  <meyering@redhat.com>
23399
23400         maint.mk: use gnu-style indentation in an embedded perl script
23401         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23402         Rename variable: s/two/last_two_bytes/
23403
23404 2010-04-16  Eric Blake  <eblake@redhat.com>
23405
23406         test-stdbool: skip test that fails with Solaris CC
23407         * tests/test-stdbool.c (f): Skip test that causes compilation
23408         error under buggy C++ compiler.
23409         * lib/stdbool.in.h: Document the limitation.
23410         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23411
23412         setenv: allow compilation with C++
23413         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23414         register keyword.
23415
23416         stdint: allow test to pass with C++
23417         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23418
23419         getopt: allow compilation with C++
23420         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23421         struct.
23422         * lib/getopt.c (_getopt_internal_r): Use correct type.
23423         Reported by Dagobert Michelson, via Joel E. Denny.
23424
23425 2010-04-16  Bruno Haible  <bruno@clisp.org>
23426
23427         Override netdb.h always.
23428         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23429         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23430         Reported by Ludovic Courtès <ludo@gnu.org>.
23431
23432 2010-04-15  Bruno Haible  <bruno@clisp.org>
23433
23434         openpty: Fix mistake from 2010-03-21.
23435         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23436         Reported by Simon Josefsson.
23437
23438 2010-04-15  Eric Blake  <eblake@redhat.com>
23439
23440         test-forkpty: fix expected signature
23441         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23442         Reported by Simon Josefsson.
23443
23444 2010-04-15  Jim Meyering  <meyering@redhat.com>
23445
23446         maint.mk: texinfo_suffix_re_: correct the default regexp
23447         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23448
23449         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23450         make it configurable via texinfo_suffix_re_.
23451
23452 2010-04-14  Eric Blake  <eblake@redhat.com>
23453
23454         strtok_r: relax license to LGPLv2+
23455         * modules/strtok_r (License): Relax license.
23456         Reported by Matthias Bolte.
23457
23458 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23459
23460         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23461         version 1.4.4 by default instead of requiring the libgcrypt
23462         version used during build.  This makes it possible to use the
23463         application with older but still binary compatible libgcrypt
23464         versions.
23465
23466 2010-04-13  Eric Blake  <eblake@redhat.com>
23467
23468         getopt-gnu: match recent glibc fixes and posix ruling
23469         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23470         '+' handling, when requesting extensions.
23471         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23472         'W;' handling.
23473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23474         * doc/posix-functions/getopt.texi (getopt): Document this.
23475         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23476         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23477         Likewise.
23478
23479         getopt: merge bug fixes from glibc
23480         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23481         diagnostics.  Honor '+:' correctly.  Reject ';'.
23482
23483         getopt-posix: detect MacOS bug
23484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23485         optind when missing a required argument.
23486         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23487         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23488         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23489         Likewise.
23490
23491         getopt-posix: avoid spurious failure on Solaris
23492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23493         an indicator that setting optind=1 is sufficient for reset.
23494
23495         getopt-posix: avoid spurious failure on FreeBSD
23496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23497         in POSIX mode, since the m4 test uses it.
23498
23499         gnulib-tool: silence warning on BSD sh
23500         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23501
23502 2010-04-13  Jim Meyering  <meyering@redhat.com>
23503
23504         doc: users.txt: GNU patch now uses gnulib
23505         * users.txt: Add patch.
23506
23507 2010-04-12  Jim Meyering  <meyering@redhat.com>
23508
23509         maint.mk: generate more concise timing data for syntax-check rules
23510         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23511         " done" from each line that reports a syntax-check test duration.
23512
23513 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23514
23515         git-version-gen: use "git update-index..." rather than "git status"
23516         * build-aux/git-version-gen: Use git update-index --refresh, not
23517         "git status".  With some versions of git, "git status" would fail
23518         to update the index and result in an unwarranted "-dirty" suffix.
23519
23520 2010-04-11  Jim Meyering  <meyering@redhat.com>
23521
23522         openat: correct formatting (no semantic change)
23523         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23524         Suggested by Bruno Haible.
23525
23526 2010-04-11  Bruno Haible  <bruno@clisp.org>
23527
23528         Stricter declaration checking in testdirs.
23529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23530         If for_tests is true, augment AM_CPPFLAGS to define
23531         GNULIB_STRICT_CHECKING.
23532         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23533         GNULIB_STRICT_CHECKING is defined, verify that the function is
23534         declared.
23535
23536 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23537             Bruno Haible  <bruno@clisp.org>
23538
23539         libunistring: Improve configure output.
23540         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23541         Don't say "consider installing GNU libunistring" when checking again
23542         with libiconv.
23543
23544 2010-04-11  Bruno Haible  <bruno@clisp.org>
23545
23546         libunistring: Correct value of $LTLIBUNISTRING.
23547         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23548         correct the value of $LTLIBUNISTRING.
23549
23550 2010-04-11  Bruno Haible  <bruno@clisp.org>
23551
23552         havelib: Add static libraries to LIBS in the right order.
23553         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23554         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23555
23556 2010-04-11  Bruno Haible  <bruno@clisp.org>
23557
23558         libunistring: Detect libunistring also when it depends on libiconv.
23559         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23560         the second AC_LIB_HAVE_LINKFLAGS invocation.
23561
23562 2010-04-11  James Youngman  <jay@gnu.org>
23563
23564         close-stream: declare local scalars to be "const"
23565         * lib/close-stream.c (close_stream): Make boolean variables const
23566         to document the fact that we set but do not change them.
23567
23568 2010-04-11  Bruno Haible  <bruno@clisp.org>
23569
23570         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23571
23572 2010-04-11  Jim Meyering  <meyering@redhat.com>
23573
23574         maint.mk: don't include dist-check.mk
23575         * top/maint.mk: Remove bogus include directive.
23576
23577         maint.mk: improve empty-line-at-EOF check
23578         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23579         solution, rather than tail+Perl-based one.  The latter would read
23580         a few kilobytes from the end of each file, and did not handle empty
23581         files properly.
23582
23583         maint.mk: print the elapsed time for each syntax-check rule
23584         * top/maint.mk (sc_m_rules_): Save start time in a file.
23585         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23586         (local-check): Interpose the .z rules
23587
23588 2010-04-11  Jim Meyering  <meyering@redhat.com>
23589
23590         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23591         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23592         empty file with one that ends in an empty line.
23593
23594 2010-04-10  Bruno Haible  <bruno@clisp.org>
23595
23596         mkdir: Make it work on mingw64.
23597         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23598         * lib/mkdir.c: Update comment.
23599         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23600
23601 2010-04-10  Bruno Haible  <bruno@clisp.org>
23602
23603         Don't override improved macro from newer autoconf.
23604         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23605         autoconf >= 2.62.
23606         Reported by Joel E. Denny <jdenny@clemson.edu>.
23607
23608 2010-04-10  Jim Meyering  <meyering@redhat.com>
23609
23610         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23611         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23612
23613         maint.mk: correct a diagnostic
23614         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23615         in diagnostic; now use $prohibit.
23616
23617 2010-04-10  Bruno Haible  <address@hidden>
23618
23619         fchownat: Fix a C++ test error on Solaris 8.
23620         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23621         the function does not exist.
23622
23623 2010-04-10  Bruno Haible  <bruno@clisp.org>
23624
23625         vasnprintf: Add more tests.
23626         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23627         (test_function): Test converting an invalid wide string.
23628
23629         vasnprintf: Correct handling of unconvertible wide string arguments.
23630         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23631         VASNPRINTF.
23632         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23633         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23634         smaller than the expected maximum need for the directive. Set errno to
23635         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23636         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23638         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23639         * modules/vasnprintf (Files): Add m4/printf.m4.
23640         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23641
23642 2010-04-10  Bruno Haible  <bruno@clisp.org>
23643
23644         vasnprintf: Fix crash in %ls directive.
23645         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23646         string is passed as argument to %ls, with no precision and no width.
23647         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23648
23649 2010-04-10  Bruno Haible  <bruno@clisp.org>
23650
23651         vasnprintf: Fix multiple test failures on mingw.
23652         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23653         _snprintf, or snwprintf, not _snwprintf.
23654
23655 2010-04-10  Bruno Haible  <bruno@clisp.org>
23656
23657         write: Fix a C++ test error on mingw.
23658         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23659
23660 2010-04-10  Bruno Haible  <bruno@clisp.org>
23661
23662         vasnprintf test: Reduce code duplication.
23663         * tests/test-vasnprintf.c (test_function): New function, extracted from
23664         test_vasnprintf.
23665         (test_vasnprintf, test_asnprintf): Invoke it.
23666
23667 2010-04-10  Bruno Haible  <bruno@clisp.org>
23668
23669         strnlen: Fix warning in C++ mode on MacOS X.
23670         * lib/string.in.h (strnlen): Use the modern idiom.
23671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23672         defining strnlen as a macro already in <config.h>.
23673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23674         REPLACE_STRNLEN.
23675         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23676         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23677
23678 2010-04-08  James Youngman  <jay@gnu.org>
23679
23680         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23681         the example.
23682
23683 2010-04-09  Jim Meyering  <meyering@redhat.com>
23684
23685         maint.mk: print better diagnostic when there is no $(_hv_file)
23686         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23687         announce that when $(_hv_file) (aka help-version) does not exist.
23688
23689         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23690         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23691         not try to interpret its random input bytes.  Jarno Rajahalme reported
23692         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23693         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23694         (mktempd_): Likewise, just in case.
23695
23696         ftruncate: add two years to projected module removal date: 2012
23697         * m4/ftruncate.m4: Adjust comments.
23698
23699         ftruncate: mark module as obsolete; even MinGW provides it, now
23700         * modules/ftruncate (Status): Obsolete.
23701         (Notice): Say that.
23702         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23704
23705 2010-04-08  Bruno Haible  <bruno@clisp.org>
23706
23707         Fix side effects from tests-related modules.
23708         * modules/dprintf-posix (Comment): New section.
23709         * modules/fprintf-posix (Comment): Likewise.
23710         * modules/obstack-printf-posix (Comment): Likewise.
23711         * modules/printf-posix (Comment): Likewise.
23712         * modules/snprintf-posix (Comment): Likewise.
23713         * modules/sprintf-posix (Comment): Likewise.
23714         * modules/vasnprintf-posix (Comment): Likewise.
23715         * modules/vasprintf-posix (Comment): Likewise.
23716         * modules/vdprintf-posix (Comment): Likewise.
23717         * modules/vfprintf-posix (Comment): Likewise.
23718         * modules/vprintf-posix (Comment): Likewise.
23719         * modules/vsnprintf-posix (Comment): Likewise.
23720         * modules/vsprintf-posix (Comment): Likewise.
23721         * modules/xprintf-posix (Comment): Likewise.
23722         * modules/xvasprintf-posix (Comment): Likewise.
23723         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23724         * modules/floorf-tests (Depends-on): Likewise.
23725         * modules/round-tests (Depends-on): Likewise.
23726         * modules/roundf-tests (Depends-on): Likewise.
23727         * modules/trunc-tests (Depends-on): Likewise.
23728         * modules/truncf-tests (Depends-on): Likewise.
23729         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23730         'fprintf-posix' module is not present.
23731         * tests/test-floorf2.c (check): Likewise.
23732         * tests/test-trunc2.c (check): Likewise.
23733         * tests/test-truncf2.c (check): Likewise.
23734         * tests/test-round2.c (equal): Likewise.
23735         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23736
23737 2010-04-07  Karl Berry  <karl@gnu.org>
23738
23739         * config/srclist.txt,
23740         * config/srclistvars.sh,
23741         * config/srclist-update: doc fixes.
23742
23743 2010-04-07  Jim Meyering  <meyering@redhat.com>
23744
23745         maint.mk: add a PATH crosschecking syntax-check rule
23746         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23747         Useful if you use a test like the one in help-version (coreutils,
23748         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23749         printed by prog --version.
23750
23751 2010-04-06  Bruno Haible  <bruno@clisp.org>
23752
23753         Fix link error on mingw.
23754         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23755         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23756
23757 2010-04-06  Bruno Haible  <bruno@clisp.org>
23758
23759         Assume rmdir exists.
23760         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23761
23762 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23763
23764         doc: update users.txt
23765         * users.txt: Add gcal.
23766
23767 2010-04-06  Jim Meyering  <meyering@redhat.com>
23768
23769         init.sh: simply unset TMPDIR rather than risking env -i
23770         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23771         although it probably works fine on all Unix-based systems, some
23772         systems (Cygwin?) cannot tolerate a totally cleared environment.
23773         Suggestion from Eric Blake.
23774
23775 2010-04-06  Jim Meyering  <meyering@redhat.com>
23776
23777         init.sh: portability fix: use env's POSIX-specified -i option not -u
23778         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23779         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23780
23781 2010-04-05  Bruno Haible  <bruno@clisp.org>
23782
23783         btowc: Work around Cygwin 1.7.2 bug.
23784         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23785         does not map NUL to 0.
23786         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23787
23788 2010-04-05  Bruno Haible  <bruno@clisp.org>
23789
23790         Make the multithread modules work on Cygwin 1.7.2.
23791         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23792         imported symbols can be declared weak, so that it returns "no" on
23793         Cygwin 1.7.2.
23794
23795 2010-04-05  Bruno Haible  <bruno@clisp.org>
23796
23797         Use the module 'strncat'.
23798         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23799
23800         Tests for module 'strncat'.
23801         * modules/strncat-tests: New file.
23802         * tests/test-strncat.c: New file.
23803
23804         New module 'strncat'.
23805         * lib/string.in.h (strncat): New declaration.
23806         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23807         * m4/strncat.m4: New file, based on m4/memchr.m4.
23808         * modules/strncat: New file.
23809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23810         is declared.
23811         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23812         REPLACE_STRNCAT.
23813         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23814         REPLACE_STRNCAT.
23815         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23816         module.
23817         * tests/test-string-c++.cc: Check signature of strncat.
23818
23819 2010-04-05  Jim Meyering  <meyering@redhat.com>
23820
23821         xstrtoumax-tests: convert to use init.sh
23822         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23823         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23824         Use Exit, not exit.
23825         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23826
23827         xstrtoimax-tests: convert to use init.sh
23828         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23829         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23830         Use Exit, not exit.
23831         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23832
23833 2010-04-05  Bruno Haible  <bruno@clisp.org>
23834
23835         sys_socket: Avoid #define replacements in C++ mode.
23836         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23837         warning to the function if possible, rather than #defining the symbol
23838         to a dysfunctional alias.
23839
23840 2010-04-05  Bruno Haible  <bruno@clisp.org>
23841
23842         fseeko: Fix C++ test error on mingw.
23843         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23844         gl_FUNC_FSEEKO.
23845         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23846         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23847         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23848         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23849
23850 2010-04-05  Bruno Haible  <bruno@clisp.org>
23851
23852         duplocale: Improve test output.
23853         * tests/test-duplocale.c (main): Print reason for skipped test.
23854
23855 2010-04-05  Bruno Haible  <bruno@clisp.org>
23856
23857         Assume rmdir exists.
23858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23859         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23860
23861 2010-04-05  Bruno Haible  <bruno@clisp.org>
23862
23863         Fix link error on Solaris 8 with cc.
23864         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23865
23866 2010-04-05  Bruno Haible  <bruno@clisp.org>
23867
23868         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23869         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23870
23871 2010-04-05  Bruno Haible  <bruno@clisp.org>
23872
23873         vasprintf: Update documentation.
23874         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23875
23876 2010-04-05  Bruno Haible  <bruno@clisp.org>
23877
23878         ptsname: Improve test.
23879         * tests/test-ptsname.c (main): Also try the various master names of BSD
23880         systems.
23881
23882 2010-04-05  Bruno Haible  <bruno@clisp.org>
23883
23884         memchr: Avoid a possible C++ test error.
23885         * lib/string.in.h (memchr): Provide declaration if function is missing.
23886         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23887         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23889         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23890
23891 2010-04-05  Bruno Haible  <bruno@clisp.org>
23892
23893         strtok_r: Improve idiom.
23894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23895         AC_LIBOBJ is used.
23896
23897 2010-04-05  Bruno Haible  <bruno@clisp.org>
23898
23899         strdup: Improve idiom.
23900         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23901         AC_LIBOBJ is used.
23902         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23903         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23904         when AC_LIBOBJ is used.
23905
23906 2010-04-05  Bruno Haible  <bruno@clisp.org>
23907
23908         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23909         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23910         don't set REPLACE_MBSINIT to 1.
23911         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23912         don't set REPLACE_MBRTOWC to 1.
23913         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23914         exist, don't set REPLACE_MBSRTOWCS to 1.
23915         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23916         exist, don't set REPLACE_MBSNRTOWCS to 1.
23917         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23918         don't set REPLACE_WCRTOMB to 1.
23919         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23920         exist, don't set REPLACE_WCSRTOMBS to 1.
23921         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23922         exist, don't set REPLACE_WCSNRTOMBS to 1.
23923
23924 2010-04-05  Bruno Haible  <bruno@clisp.org>
23925
23926         ldexpl: Improve idiom.
23927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23928         make sure to set HAVE_DECL_LDEXPL to 0.
23929
23930 2010-04-05  Jim Meyering  <meyering@redhat.com>
23931
23932         xstrtol-tests: convert to use init.sh
23933         * modules/xstrtol-tests (Files): Add tests/init.sh.
23934         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23935         Use Exit, not exit.
23936         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23937
23938         atexit-tests: convert to use init.sh
23939         * modules/atexit-tests (Files): Add tests/init.sh.
23940         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23941         Use Exit, not exit.
23942         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23943
23944         init.sh: fix typo
23945         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23946
23947         init.sh: make it easier for a test script to write to the tty, ...
23948         when using automake's parallel-tests mode.
23949         * tests/init.sh (stderr_fileno_): Define overridable variable.
23950         (warn_): New function, to use it.
23951         (fail_, skip_, framework_failure_): Use warn_.
23952
23953 2010-04-04  Bruno Haible  <bruno@clisp.org>
23954
23955         btowc: Avoid warning.
23956         * lib/btowc.c: Include <stdlib.h>.
23957         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23958
23959 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23960             Bruno Haible  <bruno@clisp.org>
23961
23962         wchar: Port to NetBSD 1.5.
23963         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23964         * lib/wctype.in.h (WEOF): Likewise.
23965
23966 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23967             Bruno Haible  <bruno@clisp.org>
23968
23969         Port extended stdio to NetBSD 1.5.
23970         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23971         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23972         older.
23973
23974 2010-04-04  Bruno Haible  <bruno@clisp.org>
23975
23976         string: Remove unused substitution.
23977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23978         HAVE_DECL_STRERROR.
23979         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23980
23981 2010-04-04  Bruno Haible  <bruno@clisp.org>
23982
23983         strtod: Avoid a possible C++ test error.
23984         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23985         set REPLACE_STRTOD.
23986
23987 2010-04-04  Bruno Haible  <bruno@clisp.org>
23988
23989         strerror: Update documentation.
23990         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23991
23992 2010-04-04  Bruno Haible  <bruno@clisp.org>
23993
23994         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23995         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23996         _GL_CXXALIAS_SYS_CAST.
23997
23998 2010-04-04  Bruno Haible  <bruno@clisp.org>
23999
24000         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24001         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24002         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24003         REPLACE_FREXPL to 1.
24004         * doc/posix-functions/frexpl.texi: Update documentation.
24005
24006 2010-04-04  Bruno Haible  <bruno@clisp.org>
24007
24008         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24009         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24010
24011 2010-04-04  Bruno Haible  <bruno@clisp.org>
24012
24013         Implement nanosleep for native Windows.
24014         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24015
24016 2010-04-04  Bruno Haible  <bruno@clisp.org>
24017
24018         math: Fix some C++ test errors on Solaris 8.
24019         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24020
24021 2010-04-04  Bruno Haible  <bruno@clisp.org>
24022
24023         math: Fix some C++ test errors on Cygwin.
24024         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24025         truncl): Provide declaration if the system does not have it.
24026         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24027         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24028         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24029         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24030         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24031         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24032         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24033         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24034         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24035         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24036         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24037         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24038         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24039         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24040         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24041         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24043         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24044         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24045         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24046         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24047         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24048
24049 2010-04-04  Bruno Haible  <bruno@clisp.org>
24050
24051         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24052         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24053         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24054         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24055         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24056         * m4/isinf.m4 (gl_ISINF): Likewise.
24057         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24058
24059 2010-04-04  Bruno Haible  <bruno@clisp.org>
24060
24061         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24062         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24063
24064 2010-04-04  Bruno Haible  <bruno@clisp.org>
24065
24066         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24067         * modules/tmpfile (configure.ac): Update.
24068
24069         tmpfile: Fix C++ test error on mingw.
24070         * lib/stdio.in.h (tmpfile): New declaration.
24071         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24072         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24073         * modules/tmpfile (Depends-on): Add stdio.
24074         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24075         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24076         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24077         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24078         REPLACE_TMPFILE.
24079         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24080
24081 2010-04-04  Bruno Haible  <bruno@clisp.org>
24082
24083         ioctl: Fix C++ test error on mingw.
24084         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24085         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24086         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24087
24088 2010-04-03  Bruno Haible  <bruno@clisp.org>
24089
24090         wcwidth: Fix C++ test error on mingw.
24091         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24092         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24093         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24094
24095 2010-04-03  Bruno Haible  <bruno@clisp.org>
24096
24097         nanosleep: Fix C++ test error on mingw.
24098         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24099         * lib/time.in.h (nanosleep): Use modern idiom.
24100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24101         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24102         REPLACE_NANOSLEEP to 1.
24103         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24104         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24105
24106 2010-04-03  Bruno Haible  <bruno@clisp.org>
24107
24108         strptime: Fix C++ test error on mingw.
24109         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24110         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24111         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24112         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24113         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24114         not REPLACE_STRPTIME.
24115         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24116         REPLACE_STRPTIME.
24117
24118 2010-04-03  Bruno Haible  <bruno@clisp.org>
24119
24120         timegm: Fix C++ test error on mingw.
24121         * lib/time.in.h (timegm): Use modern idiom.
24122         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24123         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24125         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24126
24127 2010-04-03  Bruno Haible  <bruno@clisp.org>
24128
24129         timegm: Assume declaration if function exists.
24130         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24131         if it exists. Don't clobber ac_cv_func_timegm.
24132
24133 2010-04-03  Bruno Haible  <bruno@clisp.org>
24134
24135         time_r: Fix C++ test error on mingw.
24136         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24137         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24138         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24139         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24140         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24141
24142 2010-04-03  Bruno Haible  <bruno@clisp.org>
24143
24144         time_r: Minor updates.
24145         * modules/time_r (Description): Mention the provided functions.
24146         * lib/time_r.c: Don't include <string.h>.
24147         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24148         * doc/posix-functions/localtime_r.texi: Likewise.
24149
24150 2010-04-03  Bruno Haible  <bruno@clisp.org>
24151
24152         time: Fix regression introduced on 2010-03-08.
24153         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24154         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24155
24156 2010-04-03  Jim Meyering  <meyering@redhat.com>
24157
24158         maint.mk: don't silently disable project-specific syntax-check rules
24159         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24160         that they need to convert their project-specific syntax-check rules
24161         to use the new _sc_search_regexp.
24162
24163 2010-04-03  Bruno Haible  <bruno@clisp.org>
24164
24165         fchdir: Fix regression introduced on 2010-03-08.
24166         * lib/unistd.in.h (fchdir): Fix declaration.
24167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24169         REPLACE_FCHDIR.
24170         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24171         REPLACE_FCHDIR.
24172
24173 2010-04-03  Bruno Haible  <bruno@clisp.org>
24174
24175         getpagesize: Fix C++ test error on mingw.
24176         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24177         system does not declare the function.
24178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24179         declared.
24180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24181         HAVE_DECL_GETPAGESIZE.
24182         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24183
24184 2010-04-03  Bruno Haible  <bruno@clisp.org>
24185
24186         stdio: Make C++ tests work on mingw.
24187         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24188         does not declare the function.
24189
24190 2010-04-03  Bruno Haible  <bruno@clisp.org>
24191
24192         ftello: Fix C++ test error on mingw.
24193         * lib/stdio.in.h (ftello): Use modern idiom.
24194         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24195         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24196         is missing and that it needs to be replaced.
24197         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24199         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24200
24201 2010-04-03  Bruno Haible  <bruno@clisp.org>
24202
24203         fseeko: Fix C++ test error on mingw.
24204         * lib/stdio.in.h (fseeko): Use modern idiom.
24205         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24206         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24207         is missing and that it needs to be replaced.
24208         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24210         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24211
24212 2010-04-03  Bruno Haible  <bruno@clisp.org>
24213
24214         mkstemp: Fix C++ test error on mingw.
24215         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24217         function is missing and that it needs to be replaced.
24218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24219         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24220
24221 2010-04-03  Bruno Haible  <bruno@clisp.org>
24222
24223         stpncpy: Fix C++ test error on mingw.
24224         * lib/string.in.h (stpncpy): Use modern idiom.
24225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24226         function is missing and that it needs to be replaced.
24227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24228         REPLACE_STPNCPY.
24229         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24230
24231 2010-04-03  Bruno Haible  <bruno@clisp.org>
24232
24233         sys_stat: Fix C++ test error on mingw.
24234         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24235         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24236
24237 2010-04-03  Bruno Haible  <bruno@clisp.org>
24238
24239         pty: Update doc.
24240         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24241
24242 2010-04-03  Bruno Haible  <bruno@clisp.org>
24243
24244         unistd: Fix C++ test error on mingw.
24245         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24246
24247 2010-04-03  Bruno Haible  <bruno@clisp.org>
24248
24249         Update doc regarding mingw.
24250         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24251         * doc/glibc-functions/login_tty.texi: Likewise.
24252         * doc/glibc-functions/forkpty.texi: Likewise.
24253
24254 2010-04-03  Bruno Haible  <bruno@clisp.org>
24255
24256         stdlib: Avoid compilation failure of c-strtold on mingw.
24257         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24258
24259 2010-04-03  Bruno Haible  <bruno@clisp.org>
24260
24261         locale: Make C++ tests work on Cygwin and mingw.
24262         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24263         cannot provide the function.
24264         Reported by Simon Josefsson.
24265
24266 2010-04-03  Bruno Haible  <bruno@clisp.org>
24267
24268         localename: Port to MacOS X 10.6.
24269         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24270         memory layout of the locales in MacOS X 10.6 as well.
24271         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24272
24273 2010-04-02  Bruno Haible  <bruno@clisp.org>
24274
24275         gnulib-tool: Ensure that long-running tests are executed last.
24276         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24277         running tests after the one for the other tests.
24278
24279 2010-04-02  Bruno Haible  <bruno@clisp.org>
24280
24281         gnulib-tool: Ensure the tests in the main directory are executed first.
24282         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24283         start with the current directory.
24284
24285 2010-04-02  Bruno Haible  <bruno@clisp.org>
24286
24287         Tests for module 'havelib', moved here from GNU gettext.
24288         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24289         modifications.
24290         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24291         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24292         with modifications.
24293         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24294         modifications.
24295         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24296         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24297         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24298         with modifications.
24299         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24300         with modifications.
24301         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24302         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24303         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24304         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24305         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24306         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24307         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24308         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24309         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24310         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24311         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24312         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24313         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24314         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24315         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24316         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24317         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24318         with modifications.
24319         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24320         with modifications.
24321         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24322         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24323         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24324         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24325         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24326         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24327         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24328         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24329         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24330         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24331         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24332         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24333         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24334         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24335         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24336         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24337         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24338         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24339         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24340         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24341         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24342         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24343         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24344         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24345         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24346         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24347         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24348         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24349         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24350         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24351         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24352         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24353         * tests/havelib/rpathx/rpathx.c: New file, from
24354         gettext/autoconf-lib-link.
24355         * tests/havelib/rpathx/Makefile.am: New file, from
24356         gettext/autoconf-lib-link.
24357         * tests/havelib/rpathx/configure.ac: New file, from
24358         gettext/autoconf-lib-link with modifications.
24359         * tests/havelib/rpathy/rpathy.c: New file, from
24360         gettext/autoconf-lib-link.
24361         * tests/havelib/rpathy/Makefile.am: New file, from
24362         gettext/autoconf-lib-link.
24363         * tests/havelib/rpathy/configure.ac: New file, from
24364         gettext/autoconf-lib-link with modifications.
24365         * tests/havelib/rpathz/rpathz.c: New file, from
24366         gettext/autoconf-lib-link.
24367         * tests/havelib/rpathz/Makefile.am: New file, from
24368         gettext/autoconf-lib-link.
24369         * tests/havelib/rpathz/configure.ac: New file, from
24370         gettext/autoconf-lib-link with modifications.
24371         * tests/havelib/rpathlx/usex.c: New file, from
24372         gettext/autoconf-lib-link.
24373         * tests/havelib/rpathlx/Makefile.am: New file, from
24374         gettext/autoconf-lib-link.
24375         * tests/havelib/rpathlx/configure.ac: New file, from
24376         gettext/autoconf-lib-link with modifications.
24377         * tests/havelib/rpathly/usey.c: New file, from
24378         gettext/autoconf-lib-link.
24379         * tests/havelib/rpathly/Makefile.am: New file, from
24380         gettext/autoconf-lib-link.
24381         * tests/havelib/rpathly/configure.ac: New file, from
24382         gettext/autoconf-lib-link with modifications.
24383         * tests/havelib/rpathlz/usez.c: New file, from
24384         gettext/autoconf-lib-link.
24385         * tests/havelib/rpathlz/Makefile.am: New file, from
24386         gettext/autoconf-lib-link.
24387         * tests/havelib/rpathlz/configure.ac: New file, from
24388         gettext/autoconf-lib-link with modifications.
24389         * tests/havelib/rpathlyx/usey.c: New file, from
24390         gettext/autoconf-lib-link.
24391         * tests/havelib/rpathlyx/Makefile.am: New file, from
24392         gettext/autoconf-lib-link.
24393         * tests/havelib/rpathlyx/configure.ac: New file, from
24394         gettext/autoconf-lib-link with modifications.
24395         * tests/havelib/rpathlzyx/usez.c: New file, from
24396         gettext/autoconf-lib-link.
24397         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24398         gettext/autoconf-lib-link.
24399         * tests/havelib/rpathlzyx/configure.ac: New file, from
24400         gettext/autoconf-lib-link with modifications.
24401         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24402         with modifications.
24403
24404 2010-04-02  Bruno Haible  <bruno@clisp.org>
24405
24406         gnulib-tool: Create distributed built sources also for the tests.
24407         * gnulib-tool (func_create_testdir): Also generate distributed built
24408         sources in the tests directory.
24409
24410 2010-04-02  Bruno Haible  <bruno@clisp.org>
24411
24412         gnulib-tool: Obey user's environment variables.
24413         * gnulib-tool (func_create_testdir): When creating built sources,
24414         respect the environment variables for autoconf, automake, etc. given by
24415         the user.
24416
24417 2010-04-02  Bruno Haible  <bruno@clisp.org>
24418
24419         gnulib-tool: Provide the value of --m4-base to modules.
24420         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24421         of gl_m4_base.
24422
24423 2010-04-02  Eric Blake  <eblake@redhat.com>
24424
24425         maint.mk: fix some fallout
24426         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24427         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24428
24429 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24430
24431         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24432         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24433         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24434         (sc_cast_of_x_alloc_return_value): Likewise.
24435         (sc_cast_of_alloca_return_value): Likewise.
24436         (sc_space_tab): Likewise.
24437         (sc_prohibit_atoi_atof): Likewise.
24438         (sc_prohibit_magic_number_exit): Likewise.
24439         (sc_error_exit_success): Likewise.
24440         (sc_file_system): Likewise.
24441         (sc_prohibit_have_config_h): Likewise.
24442         (sc_require_config_h): Likewise.
24443         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24444         (sc_obsolete_symbols): Likewise.
24445         (sc_changelog): Likewise.
24446         (sc_program_name): Likewise.
24447         (sc_the_the): Likewise.
24448         (sc_trailing_blank): Likewise.
24449         (sc_two_space_separator_in_usage): Likewise.
24450         (sc_useless_cpp_parens): Likewise.
24451         (sc_GPL_version): Likewise.
24452         (sc_GFDL_version): Likewise.
24453         (sc_texinfo_acronym): Likewise.
24454         (sc_prohibit_cvs_keyword): Likewise.
24455         (sc_prohibit_stat_st_blocks): Likewise.
24456         (sc_prohibit_S_IS_definition): Likewise.
24457         (sc_redundant_const): Likewise.
24458         (sc_makefile_TAB_only_indentation): Likewise.
24459         (sc_m4_quote_check): Likewise.
24460         (sc_makefile_path_separator_check): Likewise.
24461         (sc_copyright_check): Likewise.
24462         (sc_Wundef_boolean): Likewise.
24463         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24464
24465         maint.mk: match 0 or more whitespace-before-function-call '('
24466         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24467         that have zero or two-and-more spaces between the function name
24468         and the open parenthesis.
24469         (sc_error_message_warn_fatal): Likewise.
24470         (sc_error_message_uppercase): Likewise.
24471         (sc_error_message_period): Likewise.
24472
24473 2010-03-31  Eric Blake  <eblake@redhat.com>
24474
24475         maint.mk: check for [ as well as test
24476         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24477         Based on a libvirt report by Matthias Bolte.
24478
24479         gnumakefile: don't squelch _version output
24480         * top/GNUmakefile (_version): Create one-shot dependency rather
24481         than using $(shell) when version must be regenerated.
24482         (_autoreconf): Run verbosely, by default.
24483
24484         sys_time: avoid compiler warnings
24485         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24486         unconditional, fixing regression from 2010-03-29.
24487         Reported by Simon Josefsson.
24488
24489 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24490
24491         maint.mk: s/_header_without_use/_sc_header_without_use/
24492         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24493         (sc_prohibit_assert_without_use): Use the new name.
24494         (sc_prohibit_close_stream_without_use): Likewise.
24495         (sc_prohibit_getopt_without_use): Likewise.
24496         (sc_prohibit_quotearg_without_use): Likewise.
24497         (sc_prohibit_quote_without_use): Likewise.
24498         (sc_prohibit_long_options_without_use): Likewise.
24499         (sc_prohibit_inttostr_without_use): Likewise.
24500         (sc_prohibit_ignore_value_without_use): Likewise.
24501         (sc_prohibit_error_without_use): Likewise.
24502         (sc_prohibit_xalloc_without_use): Likewise.
24503         (sc_prohibit_hash_without_use): Likewise.
24504         (sc_prohibit_hash_pjw_without_use): Likewise.
24505         (sc_prohibit_safe_read_without_use): Likewise.
24506         (sc_prohibit_argmatch_without_use): Likewise.
24507         (sc_prohibit_canonicalize_without_use): Likewise.
24508         (sc_prohibit_root_dev_ino_without_use): Likewise.
24509         (sc_prohibit_openat_without_use): Likewise.
24510         (sc_prohibit_c_ctype_without_use): Likewise.
24511         (sc_prohibit_signal_without_use): Likewise.
24512         (sc_prohibit_intprops_without_use): Likewise.
24513
24514 2010-03-30  Eric Blake  <eblake@redhat.com>
24515
24516         maint: improve module indicators
24517         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24518         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24519         columns, and avoid extra macro expansion.
24520
24521         fdopendir: work around FreeBSD bug
24522         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24524         * modules/dirent (Makefile.am): Substitute it.
24525         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24526         declaration.
24527         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24528         fix.
24529         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24530
24531 2010-03-29  Bruno Haible  <bruno@clisp.org>
24532
24533         Emit #pragma system_header after the inclusion guard, not before.
24534         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24535         guard that spans the entire file, not before. This enables an
24536         optimization in GCC's preprocessor.
24537         * lib/ctype.in.h: Likewise.
24538         * lib/dirent.in.h: Likewise.
24539         * lib/errno.in.h: Likewise.
24540         * lib/float.in.h: Likewise.
24541         * lib/getopt.in.h: Likewise.
24542         * lib/iconv.in.h: Likewise.
24543         * lib/langinfo.in.h: Likewise.
24544         * lib/locale.in.h: Likewise.
24545         * lib/math.in.h: Likewise.
24546         * lib/netdb.in.h: Likewise.
24547         * lib/netinet_in.in.h: Likewise.
24548         * lib/pty.in.h: Likewise.
24549         * lib/sched.in.h: Likewise.
24550         * lib/se-selinux.in.h: Likewise.
24551         * lib/search.in.h: Likewise.
24552         * lib/spawn.in.h: Likewise.
24553         * lib/stdarg.in.h: Likewise.
24554         * lib/stdint.in.h: Likewise.
24555         * lib/string.in.h: Likewise.
24556         * lib/strings.in.h: Likewise.
24557         * lib/sys_file.in.h: Likewise.
24558         * lib/sys_ioctl.in.h: Likewise.
24559         * lib/sys_time.in.h: Likewise.
24560         * lib/sys_times.in.h: Likewise.
24561         * lib/sys_utsname.in.h: Likewise.
24562         * lib/sys_wait.in.h: Likewise.
24563         * lib/sysexits.in.h: Likewise.
24564         * lib/wctype.in.h: Likewise.
24565
24566 2010-03-28  James Youngman  <jay@gnu.org>
24567
24568         save-cwd: don't leak a file descriptor when the caller execs.
24569         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24570         saved file descriptor.
24571         * modules/save-cwd (Depends-on): Depend on cloexec.
24572
24573 2010-03-29  Bruno Haible  <bruno@clisp.org>
24574
24575         Remove vestiges of fts-lgpl module.
24576         * lib/fts_.h: Assume GNULIB_FTS is 1.
24577         * lib/fts.c: Likewise.
24578         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24579
24580 2010-03-28  Bruno Haible  <bruno@clisp.org>
24581
24582         Fix definition of tests witness macro.
24583         * gnulib-tool (func_import): Fix definition of witness macro.
24584
24585 2010-03-28  Bruno Haible  <bruno@clisp.org>
24586
24587         Fix ioctl's protoype on glibc systems.
24588         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24589         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24590         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24591         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24592         signature. If not, arrange to replace the ioctl function.
24593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24594         REPLACE_IOCTL.
24595         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24596         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24597         Reported by Ludovic Courtès <ludo@gnu.org>.
24598
24599 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24600
24601         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24602         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24603         made it so grep -r --include=GLOB* ... did not work.
24604
24605 2010-03-26  Jim Meyering  <meyering@redhat.com>
24606             Eric Blake  <eblake@redhat.com>
24607
24608         maint.mk: prohibit use of test's -o and -a operators
24609         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24610
24611 2010-03-28  Bruno Haible  <bruno@clisp.org>
24612
24613         Remove unused GNULIB_XYZ macro definitions.
24614         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24615         invocation.
24616
24617 2010-03-28  Bruno Haible  <bruno@clisp.org>
24618
24619         Mark privileged tests modules.
24620         * modules/idpriv-drop-tests (Status): New section.
24621         * modules/idpriv-droptemp-tests (Status): New section.
24622
24623 2010-03-28  Bruno Haible  <bruno@clisp.org>
24624
24625         Split C++ tests into separate tests modules.
24626         * modules/dirent-c++-tests: New file, extracted from
24627         modules/dirent-tests.
24628         * modules/dirent-tests: Depend on it.
24629         * modules/fcntl-h-c++-tests: New file, extracted from
24630         modules/fcntl-h-tests.
24631         * modules/fcntl-h-tests: Depend on it.
24632         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24633         * modules/glob-tests: Depend on it.
24634         * modules/iconv-h-c++-tests: New file, extracted from
24635         modules/iconv-h-tests.
24636         * modules/iconv-h-tests: Depend on it.
24637         * modules/langinfo-c++-tests: New file, extracted from
24638         modules/langinfo-tests.
24639         * modules/langinfo-tests: Depend on it.
24640         * modules/locale-c++-tests: New file, extracted from
24641         modules/locale-tests.
24642         * modules/locale-tests: Depend on it.
24643         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24644         * modules/math-tests: Depend on it.
24645         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24646         * modules/pty-tests: Depend on it.
24647         * modules/search-c++-tests: New file, extracted from
24648         modules/search-tests.
24649         * modules/search-tests: Depend on it.
24650         * modules/signal-c++-tests: New file, extracted from
24651         modules/signal-tests.
24652         * modules/signal-tests: Depend on it.
24653         * modules/spawn-c++-tests: New file, extracted from
24654         modules/spawn-tests.
24655         * modules/spawn-tests: Depend on it.
24656         * modules/stdio-c++-tests: New file, extracted from
24657         modules/stdio-tests.
24658         * modules/stdio-tests: Depend on it.
24659         * modules/stdlib-c++-tests: New file, extracted from
24660         modules/stdlib-tests.
24661         * modules/stdlib-tests: Depend on it.
24662         * modules/string-c++-tests: New file, extracted from
24663         modules/string-tests.
24664         * modules/string-tests: Depend on it.
24665         * modules/sys_ioctl-c++-tests: New file, extracted from
24666         modules/sys_ioctl-tests.
24667         * modules/sys_ioctl-tests: Depend on it.
24668         * modules/sys_select-c++-tests: New file, extracted from
24669         modules/sys_select-tests.
24670         * modules/sys_select-tests: Depend on it.
24671         * modules/sys_socket-c++-tests: New file, extracted from
24672         modules/sys_socket-tests.
24673         * modules/sys_socket-tests: Depend on it.
24674         * modules/sys_stat-c++-tests: New file, extracted from
24675         modules/sys_stat-tests.
24676         * modules/sys_stat-tests: Depend on it.
24677         * modules/sys_time-c++-tests: New file, extracted from
24678         modules/sys_time-tests.
24679         * modules/sys_time-tests: Depend on it.
24680         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24681         * modules/time-tests: Depend on it.
24682         * modules/unistd-c++-tests: New file, extracted from
24683         modules/unistd-tests.
24684         * modules/unistd-tests: Depend on it.
24685         * modules/wchar-c++-tests: New file, extracted from
24686         modules/wchar-tests.
24687         * modules/wchar-tests: Depend on it.
24688         * modules/wctype-c++-tests: New file, extracted from
24689         modules/wctype-tests.
24690         * modules/wctype-tests: Depend on it.
24691         Reported by Simon Josefsson.
24692
24693 2010-03-28  Bruno Haible  <bruno@clisp.org>
24694
24695         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24696         * gnulib-tool (func_exists_module): New function, extracted from
24697         func_verify_module.
24698         (func_verify_module): Use it.
24699         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24700         'foo' only if 'foo' exists.
24701         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24702         module.
24703
24704 2010-03-28  Bruno Haible  <bruno@clisp.org>
24705
24706         gnulib-tool: Add support for special categories of tests.
24707         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24708         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24709         (func_usage): Document them.
24710         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24711         inc_unportable_tests, inc_all_tests): New variables.
24712         (func_acceptable): Consider these variables.
24713         (func_modules_transitive_closure): Make it work when the 'Status' field
24714         consists of multiple words.
24715         (func_import): Store and restore the values of inc_cxx_tests,
24716         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24717         inc_all_tests in gnulib-comp.m4.
24718         (func_create_testdir): Set inc_all_tests to true.
24719         * doc/gnulib.texi (Extra tests modules): New section.
24720         Suggested by Jim Meyering.
24721
24722 2010-03-28  Bruno Haible  <bruno@clisp.org>
24723
24724         ansi-c++-opt: Allow turning off the C++ build by default.
24725         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24726         gl_CXX_CHOICE_DEFAULT_NO is defined.
24727         Requested by Eric Blake.
24728
24729 2010-03-28  Bruno Haible  <bruno@clisp.org>
24730
24731         unistd: Avoid #define replacements in C++ mode.
24732         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24733         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24734         setsockopt, shutdown, select): In C++, attach a warning to the function
24735         if possible, rather than #defining the symbol to a dysfunctional alias.
24736         Reported by John W. Eaton <jwe@gnu.org>.
24737
24738 2010-03-28  Bruno Haible  <bruno@clisp.org>
24739
24740         Fix link errors on mingw.
24741         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24742         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24743         $(LIBSOCKET).
24744         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24745         $(LIBSOCKET).
24746
24747 2010-03-28  Bruno Haible  <bruno@clisp.org>
24748             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24749
24750         lib-ignore: Determine different options for different compilers.
24751         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24752         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24753         Add comments.
24754         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24755         * NEWS: Mention the change.
24756
24757 2010-03-27  Bruno Haible  <bruno@clisp.org>
24758
24759         Remove unused GNULIB_XYZ macro definitions.
24760         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24761         * modules/fseek (configure.ac): Likewise.
24762         * modules/ioctl (configure.ac): Likewise.
24763         * modules/open (configure.ac): Likewise.
24764         * modules/stdlib-safer (configure.ac): Likewise.
24765
24766 2010-03-27  Bruno Haible  <bruno@clisp.org>
24767
24768         Add a remark about certain modules.
24769         * modules/malloc (Comment): New section.
24770         * modules/realloc (Comment): Likewise.
24771         * modules/sigpipe (Comment): Likewise.
24772
24773 2010-03-27  Bruno Haible  <bruno@clisp.org>
24774
24775         Resolve conflict between the two kinds of module indicators.
24776         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24777         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24778         * modules/canonicalize (configure.ac): Invoke
24779         gl_MODULE_INDICATOR_FOR_TESTS.
24780         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24781         GNULIB_XYZ.
24782         * tests/test-dirent-c++.cc: Likewise.
24783         * tests/test-dirent-safer.c: Likewise.
24784         * tests/test-dup2.c: Likewise.
24785         * tests/test-fchdir.c: Likewise.
24786         * tests/test-fcntl-h-c++.cc: Likewise.
24787         * tests/test-getopt.c: Likewise.
24788         * tests/test-getopt.h: Likewise.
24789         * tests/test-langinfo-c++.cc: Likewise.
24790         * tests/test-locale-c++.cc: Likewise.
24791         * tests/test-math-c++.cc: Likewise.
24792         * tests/test-pty-c++.cc: Likewise.
24793         * tests/test-search-c++.cc: Likewise.
24794         * tests/test-signal-c++.cc: Likewise.
24795         * tests/test-spawn-c++.cc: Likewise.
24796         * tests/test-stdio-c++.cc: Likewise.
24797         * tests/test-stdlib-c++.cc: Likewise.
24798         * tests/test-string-c++.cc: Likewise.
24799         * tests/test-sys_ioctl-c++.cc: Likewise.
24800         * tests/test-sys_select-c++.cc: Likewise.
24801         * tests/test-sys_socket-c++.cc: Likewise.
24802         * tests/test-sys_stat-c++.cc: Likewise.
24803         * tests/test-sys_time-c++.cc: Likewise.
24804         * tests/test-time-c++.cc: Likewise.
24805         * tests/test-unistd-c++.cc: Likewise.
24806         * tests/test-wchar-c++.cc: Likewise.
24807         * tests/uninorm/test-u8-nfc.c: Likewise.
24808         * tests/uninorm/test-u8-nfd.c: Likewise.
24809         * tests/uninorm/test-u8-nfkc.c: Likewise.
24810         * tests/uninorm/test-u8-nfkd.c: Likewise.
24811         * tests/uninorm/test-u16-nfc.c: Likewise.
24812         * tests/uninorm/test-u16-nfd.c: Likewise.
24813         * tests/uninorm/test-u16-nfkc.c: Likewise.
24814         * tests/uninorm/test-u16-nfkd.c: Likewise.
24815         * tests/uninorm/test-u32-nfc.c: Likewise.
24816         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24817         * tests/uninorm/test-u32-nfd.c: Likewise.
24818         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24819         * tests/uninorm/test-u32-nfkc.c: Likewise.
24820         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24821         * tests/uninorm/test-u32-nfkd.c: Likewise.
24822         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24823         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24824
24825 2010-03-27  Bruno Haible  <bruno@clisp.org>
24826
24827         Distinguish two kinds of module indicators.
24828         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24829         gl_MODULE_INDICATOR.
24830         (gl_MODULE_INDICATOR): New macro.
24831         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24832         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24833         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24834         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24835         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24836         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24837         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24838         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24839         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24840         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24841         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24842         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24844         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24845         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24847         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24848         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24849         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24850         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24851         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24852         * modules/cloexec (configure.ac): Likewise.
24853         * modules/getopt-gnu (configure.ac): Likewise.
24854         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24855         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24856         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24857         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24858
24859 2010-03-27  Bruno Haible  <bruno@clisp.org>
24860
24861         New module description field 'Comment'.
24862         * gnulib-tool: New option --extract-comment.
24863         (func_usage): Document it.
24864         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24865         (func_get_comment): New function.
24866         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24867
24868 2010-03-27  Bruno Haible  <bruno@clisp.org>
24869
24870         Addendum to 2010-02-07 commit.
24871         * gnulib-tool (func_usage): Document --extract-applicability option.
24872
24873 2010-03-27  Bruno Haible  <bruno@clisp.org>
24874
24875         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24876         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24877         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24878         rather than link errors.
24879
24880 2010-03-27  Bruno Haible  <bruno@clisp.org>
24881
24882         Avoid side effects from tests-related modules on the compilation of lib.
24883         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24884         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24885         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24886         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24887         macro.
24888         (func_import): Define a witness macro. Assign it a value that depends
24889         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24890         tests-related modules.
24891         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24892         Reported by Jim Meyering.
24893
24894 2010-03-27  Bruno Haible  <bruno@clisp.org>
24895
24896         Factorize common .m4 code.
24897         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24898         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24899         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24900         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24901         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24902         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24903         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24904         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24905         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24906         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24907         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24908         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24909         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24910         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24911         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24912         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24913         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24914         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24916         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24917         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24918         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24919         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24920         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24921         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24922         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24923         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24924         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24925         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24926         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24927         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24928         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24929
24930 2010-03-27  Bruno Haible  <bruno@clisp.org>
24931
24932         Fix a compilation error on Cygwin with g++ >= 4.3.
24933         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24934         if it is undefined or if we alias it to chmod.
24935         (lstat): Don't warn about the use of this function if it is undefined
24936         or if we alias it to stat.
24937         Reported by Simon Josefsson.
24938
24939 2010-03-27  Bruno Haible  <bruno@clisp.org>
24940
24941         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24942         * modules/getlogin (configure.ac): Update.
24943
24944         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24945         * modules/getlogin_r (configure.ac): Update.
24946
24947         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24949         * modules/inet_ntop (configure.ac): Update.
24950
24951         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24952         * modules/inet_pton (configure.ac): Update.
24953
24954         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24955         * modules/mbslen (configure.ac): Update.
24956
24957         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24958         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24959         * modules/forkpty (configure.ac): Update.
24960         * modules/openpty (configure.ac): Update.
24961
24962 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24963
24964         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24965         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24966
24967 2010-03-25  Eric Blake  <eblake@redhat.com>
24968
24969         maint: use pragma consistently across replacement headers
24970         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24971         * lib/dirent.in.h (system_header): Likewise.
24972         * lib/errno.in.h (system_header): Likewise.
24973         * lib/float.in.h (system_header): Likewise.
24974         * lib/getopt.in.h (system_header): Likewise.
24975         * lib/iconv.in.h (system_header): Likewise.
24976         * lib/inttypes.in.h (system_header): Likewise.
24977         * lib/langinfo.in.h (system_header): Likewise.
24978         * lib/locale.in.h (system_header): Likewise.
24979         * lib/math.in.h (system_header): Likewise.
24980         * lib/netdb.in.h (system_header): Likewise.
24981         * lib/netinet_in.in.h (system_header): Likewise.
24982         * lib/pty.in.h (system_header): Likewise.
24983         * lib/sched.in.h (system_header): Likewise.
24984         * lib/se-selinux.in.h (system_header): Likewise.
24985         * lib/search.in.h (system_header): Likewise.
24986         * lib/spawn.in.h (system_header): Likewise.
24987         * lib/stdarg.in.h (system_header): Likewise.
24988         * lib/stdint.in.h (system_header): Likewise.
24989         * lib/string.in.h (system_header): Likewise.
24990         * lib/strings.in.h (system_header): Likewise.
24991         * lib/sys_file.in.h (system_header): Likewise.
24992         * lib/sys_ioctl.in.h (system_header): Likewise.
24993         * lib/sys_socket.in.h (system_header): Likewise.
24994         * lib/sys_times.in.h (system_header): Likewise.
24995         * lib/sys_utsname.in.h (system_header): Likewise.
24996         * lib/sys_wait.in.h (system_header): Likewise.
24997         * lib/sysexits.in.h (system_header): Likewise.
24998         * lib/unistd.in.h (system_header): Likewise.
24999         * lib/wctype.in.h (system_header): Likewise.
25000
25001         arpa/inet: fix mingw compilation warning
25002         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25003         Reported by Matthew Bolte.
25004
25005 2010-03-25  Bruno Haible  <bruno@clisp.org>
25006
25007         Avoid collision between gnulib wrapper and libintl wrapper.
25008         * lib/printf.c (printf): Don't define if a printf wrapper is already
25009         defined in intl/printf.c.
25010         Reported by Michel Boaventura <michel@michelboaventura.com>.
25011
25012 2010-03-25  Bruno Haible  <bruno@clisp.org>
25013
25014         Use ANSI C.
25015         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25016
25017 2010-03-25  Bruno Haible  <bruno@clisp.org>
25018
25019         Minor formatting changes.
25020         * lib/acosl.c: Insert space before function argument list.
25021         * lib/argz.c: Likewise.
25022         * lib/asinl.c: Likewise.
25023         * lib/expl.c: Likewise.
25024         * lib/gen-uni-tables.c: Likewise.
25025         * lib/gettext.h: Likewise.
25026         * lib/glthread/lock.h: Likewise.
25027         * lib/tanl.c: Likewise.
25028         * lib/uniname/uniname.c: Likewise.
25029         * tests/test-idpriv-drop.c: Likewise.
25030         * tests/test-idpriv-droptemp.c: Likewise.
25031         * tests/test-lock.c: Likewise.
25032         * tests/test-tls.c: Likewise.
25033         * lib/argp-help.c: Insert space before function-like macro argument
25034         list.
25035         * lib/memcmp.c: Likewise.
25036         * tests/test-base64.c: Likewise.
25037         * lib/localename.c: Insert space before sizeof's argument list.
25038         * lib/safe-alloc.h: Likewise.
25039         * lib/file-set.h: Insert space before macro argument list.
25040         * tests/test-argp.c: Likewise.
25041         * lib/argp-namefrob.h: Insert space before function parameter list.
25042         * lib/getaddrinfo.c: Likewise.
25043         * lib/netdb.in.h: Likewise.
25044         * lib/parse-duration.h: Likewise.
25045         * lib/parse-duration.c: Likewise.
25046         * lib/poll.c: Likewise.
25047         * lib/select.c: Likewise.
25048         * lib/trim.h: Likewise.
25049         * tests/test-usleep.c: Likewise.
25050         * lib/ldexpl.c: Insert space before function parameter list and before
25051         function argument list.
25052         * lib/logl.c: Likewise.
25053         * lib/sqrtl.c: Likewise.
25054         * lib/trim.c: Likewise.
25055         * lib/cosl.c: Use GNU style indentation. Insert space before function
25056         argument list.
25057         * lib/sinl.c: Likewise.
25058         * lib/tsearch.c: Insert space after 'for'.
25059         Reported by Jim Meyering.
25060
25061 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25062
25063         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25064         config header before grepping, as it's not present before
25065         autoreconf/configure are run.  Reported by Simon Josefsson.
25066
25067 2010-03-23  Bruno Haible  <bruno@clisp.org>
25068
25069         pt_chown: Make it work with automake < 1.11.
25070         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25071         Reported by Simon Josefsson.
25072
25073 2010-03-23  Bruno Haible  <bruno@clisp.org>
25074
25075         pt_chown: Don't depend on GPLed modules.
25076         * lib/pt_chown.c: Don't include idpriv.h.
25077         (main): Don't drop privileges.
25078         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25079         Reported by Simon Josefsson.
25080
25081 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25082
25083         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25084         suggestions from karl@freefriends.org (Karl Berry).
25085
25086 2010-03-22  Eric Blake  <eblake@redhat.com>
25087
25088         gethostname: further tweaks
25089         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25090         are overriding gethostname.
25091         Suggested by Bruno Haible.
25092
25093 2010-03-21  Bruno Haible  <bruno@clisp.org>
25094
25095         Fix comments.
25096         * lib/forkpty.c (rpl_forkpty): Fix comment.
25097         * lib/openpty.c (rpl_openpty): Likewise.
25098         Reported by Eric Blake.
25099
25100 2010-03-22  Eric Blake  <eblake@redhat.com>
25101
25102         gethostname: fix build on mingw
25103         * lib/unistd.in.h (includes): Work around fact that mingw
25104         <winsock2.h> re-includes <unistd.h>, by avoiding any
25105         redeclarations if we are being included by <winsock2.h>.
25106         Reported by Matthias Bolte.
25107
25108 2010-03-21  Bruno Haible  <bruno@clisp.org>
25109
25110         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25111         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25112         modifications.
25113         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25114         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25115         provide the replacement.
25116         * modules/forkpty (Depends-on): Add openpty, login_tty.
25117         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25118         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25119         * doc/glibc-functions/forkpty.texi: More supported platforms.
25120         * config/srclist.txt: Add forkpty.c (commented).
25121
25122 2010-03-21  Bruno Haible  <bruno@clisp.org>
25123
25124         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25125         (Makefile.am): Verify that PTY_LIB is defined.
25126
25127         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25128
25129 2010-03-21  Bruno Haible  <bruno@clisp.org>
25130
25131         Tests for module 'login_tty'.
25132         * modules/login_tty-tests: New file.
25133         * tests/test-login_tty.c: New file.
25134
25135         New module 'login_tty'.
25136         * lib/login_tty.c: New file.
25137         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25138         * modules/login_tty: New file.
25139         * doc/glibc-functions/login_tty.texi: Mention the new module.
25140
25141 2010-03-21  Bruno Haible  <bruno@clisp.org>
25142
25143         login_tty: Documentation.
25144         * doc/glibc-functions/login_tty.texi: New file.
25145         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25146
25147 2010-03-21  Bruno Haible  <bruno@clisp.org>
25148
25149         pty: Consistent macro naming.
25150         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25151         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25152         * modules/pty (configure.ac): Update.
25153
25154 2010-03-21  Bruno Haible  <bruno@clisp.org>
25155
25156         Tests for openpty: Make stricter.
25157         * tests/test-openpty.c (main): Add test of canonical processing and
25158         erase.
25159         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25160
25161         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25162         * lib/openpty.c (openpty): New replacement function.
25163         * lib/pty.in.h: Include <termios.h>.
25164         (openpty): Update declaration. Add comments.
25165         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25166         is not declared, arrange to provide the replacement. Check for _getpty
25167         and posix_openpt.
25168         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25169         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25170         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25171         * modules/pty-tests (test_pty_c___LDADD): New variable.
25172         * doc/glibc-functions/openpty.texi: More supported platforms.
25173
25174 2010-03-21  Bruno Haible  <bruno@clisp.org>
25175
25176         setenv: Tweaks.
25177         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25178         the test program.
25179         * doc/posix-functions/setenv.texi: Update platforms list.
25180
25181 2010-03-21  Bruno Haible  <bruno@clisp.org>
25182
25183         New module 'unlockpt'.
25184         * lib/unlockpt.c: New file, from glibc with modifications.
25185         * m4/unlockpt.m4: New file.
25186         * modules/unlockpt: New file.
25187         * lib/stdlib.in.h (unlockpt): New declaration.
25188         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25189         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25190         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25191         HAVE_UNLOCKPT.
25192         * doc/posix-functions/unlockpt.texi: Mention the new module.
25193         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25194         * config/srclist.txt: Add unlockpt.c (commented).
25195
25196 2010-03-21  Jim Meyering  <meyering@redhat.com>
25197
25198         maint.mk: prohibit inclusion of "intprops.h" without use
25199         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25200
25201 2010-03-21  Bruno Haible  <bruno@clisp.org>
25202
25203         New module 'grantpt'.
25204         * lib/grantpt.c: New file, from glibc with modifications.
25205         * m4/grantpt.m4: New file.
25206         * modules/grantpt: New file.
25207         * lib/stdlib.in.h (grantpt): New declaration.
25208         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25209         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25210         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25211         HAVE_GRANTPT.
25212         * doc/posix-functions/grantpt.texi: Mention the new module.
25213         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25214         * config/srclist.txt: Add grantpt.c (commented).
25215
25216 2010-03-21  Bruno Haible  <bruno@clisp.org>
25217
25218         New module 'pt_chown'.
25219         * lib/pt_chown.c: New file, from glibc with modifications.
25220         * lib/pty-private.h: New file, from glibc with modifications.
25221         * modules/pt_chown: New file.
25222         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25223
25224 2010-03-21  Bruno Haible  <bruno@clisp.org>
25225
25226         Tests for module 'ptsname'.
25227         * modules/ptsname-tests: New file.
25228         * tests/test-ptsname.c: New file.
25229
25230         New module 'ptsname'.
25231         * lib/ptsname.c: New file, from glibc with modifications.
25232         * m4/ptsname.m4: New file.
25233         * modules/ptsname: New file.
25234         * lib/stdlib.in.h (ptsname): New declaration.
25235         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25236         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25237         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25238         HAVE_PTSNAME.
25239         * doc/posix-functions/ptsname.texi: Mention the new module.
25240         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25241         * config/srclist.txt: Add ptsname.c (commented).
25242
25243 2010-03-21  Bruno Haible  <bruno@clisp.org>
25244
25245         Tests for module 'ttyname_r'.
25246         * modules/ttyname_r-tests: New file.
25247         * tests/test-ttyname_r.c: New file.
25248
25249         New module 'ttyname_r'.
25250         * lib/ttyname_r.c: New file.
25251         * m4/ttyname_r.m4: New file.
25252         * modules/ttyname_r: New file.
25253         * lib/unistd.in.h (ttyname_r): New declaration.
25254         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25255         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25256         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25257         HAVE_TTYNAME_R.
25258         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25259         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25260
25261 2010-03-20  Bruno Haible  <bruno@clisp.org>
25262
25263         signal: Undefine macro definitions in C++ mode.
25264         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25265         sigfillset): Undefine macro definitions from the system header in C++
25266         mode.
25267         Reported by John W. Eaton <jwe@gnu.org>.
25268
25269 2010-03-20  Bruno Haible  <bruno@clisp.org>
25270
25271         Ensure no #include statements inside extern "C" { ... }.
25272         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25273         contain #include statements.
25274         * lib/time.in.h: Likewise.
25275
25276 2010-03-20  Bruno Haible  <bruno@clisp.org>
25277
25278         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25279         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25280         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25281         Reported by John W. Eaton <jwe@gnu.org>.
25282
25283 2010-03-20  Bruno Haible  <bruno@clisp.org>
25284
25285         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25286         Reported by Jim Meyering.
25287
25288 2010-03-20  Bruno Haible  <bruno@clisp.org>
25289
25290         pipe: Set errno upon failure.
25291         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25292         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25293         errno value in error message.
25294
25295 2010-03-20  Bruno Haible  <bruno@clisp.org>
25296             Jim Meyering  <meyering@redhat.com>
25297
25298         lchown: Avoid "unused variable" warning.
25299         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25300
25301 2010-03-20  Bruno Haible  <bruno@clisp.org>
25302
25303         Work around unlink() bug on MacOS X 10.5.6.
25304         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25305         attempting to unlink a parent directory.
25306         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25307         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25308         activate for the replacement function.
25309         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25310
25311 2010-03-20  Bruno Haible  <bruno@clisp.org>
25312
25313         Fix link errors on Solaris 8.
25314         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25315         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25316
25317 2010-03-19  Jim Meyering  <meyering@redhat.com>
25318
25319         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25320         The _LIBC implementation of build_range_exp correctly honors the
25321         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25322         However, the non-_LIBC implementation would ignore that syntax-bit
25323         flag and return REG_ERANGE unconditionally.
25324         This change makes it honor that flag.
25325         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25326         Make two pointer parameters "const".
25327         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25328         (parse_bracket_exp): Update caller.
25329
25330         regex.m4: correct the reversed range endpoint ([b-a]) test
25331         * m4/regex.m4: When requiring that [b-a] evoke failure,
25332         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25333         test pass once again for x86-based systems.
25334
25335 2010-03-19  Bruno Haible  <bruno@clisp.org>
25336
25337         scandir: Fix link error on Solaris 8.
25338         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25339         macros.
25340
25341 2010-03-19  Bruno Haible  <bruno@clisp.org>
25342
25343         getusershell: Fix documentation.
25344         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25345         module.
25346         * doc/glibc-functions/setusershell.texi: Likewise.
25347
25348         getusershell: Provide declaration, missing on Solaris 9.
25349         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25350         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25351         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25352         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25354         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25355         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25356         HAVE_GETUSERSHELL.
25357         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25358
25359 2010-03-19  Bruno Haible  <bruno@clisp.org>
25360
25361         wctype: Provide iswblank function.
25362         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25363         exists and is fine.
25364         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25365         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25366         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25367         * doc/posix-functions/iswblank.texi: Update.
25368
25369 2010-03-19  Bruno Haible  <bruno@clisp.org>
25370
25371         Tests of module 'pty' in C++ mode.
25372         * modules/pty-tests: New file.
25373         * tests/test-pty-c++.cc: New file.
25374         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25375
25376 2010-03-19  Eric Blake  <eblake@redhat.com>
25377
25378         logb: fix documentation
25379         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25380         1.5 declaration bug.
25381
25382         forkpty, openpty: prefer glibc's const-safe prototype
25383         * lib/forkpty.c (rpl_forkpty): New file.
25384         * lib/openpty.c (rpl_openpty): Likewise.
25385         * modules/forkpty (Files): Distribute it.
25386         * modules/openpty (Files): Likewise.
25387         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25388         check...
25389         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25390         replacement for for non-const BSD signature.
25391         * modules/pty (Makefile.am): Substitute witnesses.
25392         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25393         * tests/test-forkpty.c: Update signature check.
25394         * tests/test-openpty.c: Likewise.
25395         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25396         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25397
25398         forkpty, openpty: split functions into new modules
25399         * modules/pty (Makefile.am): Substitute new witnesses.
25400         (Libraries): Move library detection...
25401         * modules/forkpty: ...into new module.
25402         * modules/openpty: Another new module.
25403         * modules/pty-tests: Rename and split...
25404         * modules/forkpty-tests: ...to this...
25405         * modules/openpty-tests: ...and this.
25406         * tests/test-pty.c: Rename and split...
25407         * tests/test-forkpty.c: ...to this...
25408         * tests/test-openpty.c: ...and this.
25409         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25410         (gl_PTY): Split library searching...
25411         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25412         (gl_FORKPTY, gl_OPENPTY): New macros.
25413         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25414         * NEWS: Mention the split.
25415         * MODULES.html.sh (Misc): Document the modules.
25416         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25417         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25418
25419         pty: improve replacement header
25420         * lib/pty.in.h: New file.
25421         * modules/pty (Files): Ship it.
25422         (Makefile.am): Always build replacement.
25423         * m4/pty.m4: Rename...
25424         * m4/pty_h.m4: ...to this.
25425         (gl_PTY): Modernize setting of witness macros; update check of
25426         forkpty to take proper advantage of cache.
25427         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25428
25429         getopt: avoid compiler warning
25430         * lib/getopt.c (attribute_hidden): Remove unused macro.
25431
25432 2010-03-18  Bruno Haible  <bruno@clisp.org>
25433
25434         Fix link errors on Solaris 8.
25435         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25436         * modules/search-tests (test_search_c___LDADD): Likewise.
25437         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25438         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25439         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25440         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25441         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25442         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25443         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25444
25445 2010-03-18  Bruno Haible  <bruno@clisp.org>
25446
25447         Fix bug introduced on 2010-03-14.
25448         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25449         (gl_SPAWN_H): Require it.
25450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25451         Reported by Simon Josefsson.
25452
25453 2010-03-18  Bruno Haible  <bruno@clisp.org>
25454
25455         Fix typo introduced on 2009-12-31.
25456         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25457         posix_spawn_file_actions_adddup2.
25458
25459 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25460         and Eric Blake  <eblake@redhat.com>
25461
25462         test-vc-list-files-git: make more robust
25463         * tests/test-vc-list-files-git.sh: Unset problematic environment
25464         variables.  Chain commands together.
25465
25466 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25467
25468         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25469         `AC_CHECK_DECL' invocation.
25470
25471 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25472
25473         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25474         appears before executable statements. Suggested by Petr Sumbera
25475         <Petr.Sumbera@Sun.COM>.
25476
25477 2010-03-14  Bruno Haible  <bruno@clisp.org>
25478
25479         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25480         portability problems. Instead use a simpler test.
25481         (main): Check that invalid arguments are rejected only on Linux.
25482
25483 2010-03-14  Bruno Haible  <bruno@clisp.org>
25484
25485         Fix bug introduced on 2009-12-31.
25486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25487         gl_PREREQ_SYS_H_WINSOCK2 always.
25488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25489         SYS_SOCKET_H variable.
25490         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25491         Update comments.
25492         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25493         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25494         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25495         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25496         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25497
25498 2010-03-14  Bruno Haible  <bruno@clisp.org>
25499
25500         Fix values returned by sinl, cosl.
25501         * lib/trigl.h: Add specification comments.
25502         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25503         that combines the values from the precomputed table with the values of
25504         the Chebyshev polynomials.
25505
25506 2010-03-14  Bruno Haible  <bruno@clisp.org>
25507
25508         Fix compilation error when modules 'posix_spawn[p]' are not used.
25509         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25511
25512 2010-03-14  Bruno Haible  <bruno@clisp.org>
25513
25514         Fix compilation error on mingw when module 'time_r' is not used.
25515         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25516         is 1.
25517         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25518         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25519         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25520         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25521
25522 2010-03-14  Bruno Haible  <bruno@clisp.org>
25523
25524         Fix compilation error with Sun C.
25525         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25526         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25527         instead of GCC specific ULONG_LONG_MAX.
25528         * lib/xstrtoll.c: Likewise.
25529         * lib/xstrtoull.c: Likewise.
25530
25531 2010-03-13  Bruno Haible  <bruno@clisp.org>
25532
25533         Allow the user to disable C++ code and tests.
25534         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25535         (gl_PROG_ANSI_CXX): Require it.
25536
25537 2010-03-13  Bruno Haible  <bruno@clisp.org>
25538
25539         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25540         cases.
25541
25542 2010-03-13  Bruno Haible  <bruno@clisp.org>
25543
25544         Test that gnulib does not break the standard C++ headers.
25545         * tests/test-locale-c++2.cc: New file.
25546         * modules/locale-tests (Files): Add it.
25547         (Makefile.am): Compile it for test-locale-c++.
25548         * tests/test-math-c++2.cc: New file.
25549         * modules/math-tests (Files): Add it.
25550         (Makefile.am): Compile it for test-math-c++.
25551         * tests/test-signal-c++2.cc: New file.
25552         * modules/signal-tests (Files): Add it.
25553         (Makefile.am): Compile it for test-signal-c++.
25554         * tests/test-stdio-c++2.cc: New file.
25555         * modules/stdio-tests (Files): Add it.
25556         (Makefile.am): Compile it for test-stdio-c++.
25557         * tests/test-stdlib-c++2.cc: New file.
25558         * modules/stdlib-tests (Files): Add it.
25559         (Makefile.am): Compile it for test-stdlib-c++.
25560         * tests/test-string-c++2.cc: New file.
25561         * modules/string-tests (Files): Add it.
25562         (Makefile.am): Compile it for test-string-c++.
25563         * tests/test-time-c++2.cc: New file.
25564         * modules/time-tests (Files): Add it.
25565         (Makefile.am): Compile it for test-time-c++.
25566         Reported by John W. Eaton <jwe@gnu.org>.
25567
25568 2010-03-13  Bruno Haible  <bruno@clisp.org>
25569
25570         * gnulib-tool (func_usage): Clarify which options are available for
25571         --create-testdir and --create-megatestdir.
25572
25573 2010-03-13  Bruno Haible  <bruno@clisp.org>
25574
25575         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25576         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25577         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25578         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25579         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25580         when appropriate.
25581         Reported by Jim Meyering.
25582
25583 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25584
25585         * gnulib-tool (func_import): Explain origin of code.
25586
25587 2010-03-12  Bruno Haible  <bruno@clisp.org>
25588
25589         Fix problem with automake's definition of CXXLINK.
25590         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25591         Reported by Simon Josefsson and Ludovic Courtès.
25592
25593 2010-03-12  Bruno Haible  <bruno@clisp.org>
25594
25595         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25596         stable releases.
25597
25598 2010-03-11  Bruno Haible  <bruno@clisp.org>
25599
25600         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25601         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25602         whether the system provides one variant or multiple variants of the
25603         function.
25604         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25605         C++ compilers.
25606         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25607         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25608         Reported by Jim Meyering.
25609
25610 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25611
25612         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25613
25614 2010-03-08  Bruno Haible  <bruno@clisp.org>
25615
25616         gnulib-tool: Add support for --libtool in --create-testdir.
25617         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25618         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25619
25620 2010-03-08  Eric Blake  <eblake@redhat.com>
25621
25622         gnulib-tool.texi: mention possibility of git submodule
25623         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25624         submodules.
25625         * doc/.gitignore: Ignore another generated file.
25626
25627 2010-03-08  Karl Berry  <karl@gnu.org>
25628
25629         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25630         of committing gnulib files while skipping others.
25631
25632 2010-03-07  Bruno Haible  <bruno@clisp.org>
25633
25634         Tests of module 'wctype' in C++ mode.
25635         * tests/test-wctype-c++.cc: New file.
25636         * modules/wctype-tests (Files): Add it and tests/signature.h.
25637         (Depends-on): Add ansi-c++-opt.
25638         (Makefile.am): Arrange to compile and run test-wctype-c++.
25639
25640         Tests of module 'wchar' in C++ mode.
25641         * tests/test-wchar-c++.cc: New file.
25642         * modules/wchar-tests (Files): Add it and tests/signature.h.
25643         (Depends-on): Add ansi-c++-opt.
25644         (Makefile.am): Arrange to compile and run test-wchar-c++.
25645         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25646         gl_MODULE_INDICATOR.
25647
25648         Tests of module 'unistd' in C++ mode.
25649         * tests/test-unistd-c++.cc: New file.
25650         * modules/unistd-tests (Files): Add it and tests/signature.h.
25651         (Depends-on): Add ansi-c++-opt.
25652         (Makefile.am): Arrange to compile and run test-unistd-c++.
25653         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25654         gl_MODULE_INDICATOR.
25655
25656         Tests of module 'time' in C++ mode.
25657         * tests/test-time-c++.cc: New file.
25658         * modules/time-tests (Files): Add it and tests/signature.h.
25659         (Depends-on): Add ansi-c++-opt.
25660         (Makefile.am): Arrange to compile and run test-time-c++.
25661         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25662
25663         Tests of module 'sys_time' in C++ mode.
25664         * tests/test-sys_time-c++.cc: New file.
25665         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25666         (Depends-on): Add ansi-c++-opt.
25667         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25668         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25669         gl_MODULE_INDICATOR.
25670
25671         Tests of module 'sys_stat' in C++ mode.
25672         * tests/test-sys_stat-c++.cc: New file.
25673         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25674         (Depends-on): Add ansi-c++-opt.
25675         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25676         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25677         gl_MODULE_INDICATOR.
25678
25679         Tests of module 'sys_socket' in C++ mode.
25680         * tests/test-sys_socket-c++.cc: New file.
25681         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25682         (Depends-on): Add ansi-c++-opt.
25683         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25684         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25685         gl_MODULE_INDICATOR.
25686
25687         Tests of module 'sys_select' in C++ mode.
25688         * tests/test-sys_select-c++.cc: New file.
25689         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25690         (Depends-on): Add ansi-c++-opt.
25691         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25692         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25693         gl_MODULE_INDICATOR.
25694
25695         Tests of module 'sys_ioctl' in C++ mode.
25696         * tests/test-sys_ioctl-c++.cc: New file.
25697         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25698         (Depends-on): Add ansi-c++-opt.
25699         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25701         gl_MODULE_INDICATOR.
25702
25703         Tests of module 'string' in C++ mode.
25704         * tests/test-string-c++.cc: New file.
25705         * modules/string-tests (Files): Add it and tests/signature.h.
25706         (Depends-on): Add ansi-c++-opt.
25707         (Makefile.am): Arrange to compile and run test-string-c++.
25708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25709         gl_MODULE_INDICATOR.
25710
25711         Tests of module 'stdlib' in C++ mode.
25712         * tests/test-stdlib-c++.cc: New file.
25713         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25714         (Depends-on): Add ansi-c++-opt.
25715         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25716         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25717         gl_MODULE_INDICATOR.
25718
25719         Tests of module 'stdio' in C++ mode.
25720         * tests/test-stdio-c++.cc: New file.
25721         * modules/stdio-tests (Files): Add it and tests/signature.h.
25722         (Depends-on): Add ansi-c++-opt.
25723         (Makefile.am): Arrange to compile and run test-stdio-c++.
25724         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25725         gl_MODULE_INDICATOR.
25726
25727         Tests of module 'spawn' in C++ mode.
25728         * tests/test-spawn-c++.cc: New file.
25729         * modules/spawn-tests (Files): Add it and tests/signature.h.
25730         (Depends-on): Add ansi-c++-opt.
25731         (Makefile.am): Arrange to compile and run test-spawn-c++.
25732         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25733         gl_MODULE_INDICATOR.
25734
25735         Tests of module 'signal' in C++ mode.
25736         * tests/test-signal-c++.cc: New file.
25737         * modules/signal-tests (Files): Add it and tests/signature.h.
25738         (Depends-on): Add ansi-c++-opt.
25739         (Makefile.am): Arrange to compile and run test-signal-c++.
25740         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25741         gl_MODULE_INDICATOR.
25742
25743         Tests of module 'search' in C++ mode.
25744         * tests/test-search-c++.cc: New file.
25745         * modules/search-tests (Files): Add it and tests/signature.h.
25746         (Depends-on): Add ansi-c++-opt.
25747         (Makefile.am): Arrange to compile and run test-search-c++.
25748         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25749         gl_MODULE_INDICATOR.
25750
25751         Tests of module 'math' in C++ mode.
25752         * tests/test-math-c++.cc: New file.
25753         * modules/math-tests (Files): Add it and tests/signature.h.
25754         (Depends-on): Add ansi-c++-opt.
25755         (Makefile.am): Arrange to compile and run test-math-c++.
25756         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25757
25758         Tests of module 'locale' in C++ mode.
25759         * tests/test-locale-c++.cc: New file.
25760         * modules/locale-tests (Files): Add it and tests/signature.h.
25761         (Depends-on): Add ansi-c++-opt.
25762         (Makefile.am): Arrange to compile and run test-locale-c++.
25763         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25764         gl_MODULE_INDICATOR.
25765
25766         Tests of module 'langinfo' in C++ mode.
25767         * tests/test-langinfo-c++.cc: New file.
25768         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25769         (Depends-on): Add ansi-c++-opt.
25770         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25771         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25772         gl_MODULE_INDICATOR.
25773
25774         Tests of module 'iconv-h' in C++ mode.
25775         * tests/test-iconv-h-c++.cc: New file.
25776         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25777         (Depends-on): Add ansi-c++-opt.
25778         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25779
25780         Tests of module 'glob' in C++ mode.
25781         * tests/test-glob-c++.cc: New file.
25782         * modules/glob-tests (Files): Add it.
25783         (Depends-on): Add ansi-c++-opt.
25784         (Makefile.am): Arrange to compile and run test-glob-c++.
25785
25786         Tests of module 'fcntl-h' in C++ mode.
25787         * tests/test-fcntl-h-c++.cc: New file.
25788         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25789         (Depends-on): Add ansi-c++-opt.
25790         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25791         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25792         gl_MODULE_INDICATOR.
25793
25794         Tests of module 'dirent' in C++ mode.
25795         * tests/test-dirent-c++.cc: New file.
25796         * modules/dirent-tests (Files): Add it and tests/signature.h.
25797         (Depends-on): Add ansi-c++-opt.
25798         (Makefile.am): Arrange to compile and run test-dirent-c++.
25799         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25800         gl_MODULE_INDICATOR.
25801
25802         New module 'ansi-c++-opt'.
25803         * modules/ansi-c++-opt: New file.
25804         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25805
25806         Document C++ namespace mode.
25807         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25808
25809         wctype: Avoid #define replacements in C++ mode.
25810         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25811         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25812         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25813         In C++, define a namespaced alias symbol.
25814         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25815         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25816         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25817         rule.
25818
25819         wchar: Avoid #define replacements in C++ mode.
25820         * lib/wchar.in.h: Include c++defs.h.
25821         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25822         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25823         symbol.
25824         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25825         * modules/wchar (Depends-on): Add c++defs.
25826         (Makefile.am): Update wchar.h rule.
25827
25828         unistd: Avoid #define replacements in C++ mode.
25829         * lib/unistd.in.h: Include c++defs.h.
25830         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25831         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25832         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25833         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25834         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25835         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25836         symbol.
25837         (environ): Update.
25838         * modules/unistd (Depends-on): Add c++defs.
25839         (Makefile.am): Update unistd.h rule.
25840
25841         time: Avoid #define replacements in C++ mode.
25842         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25843         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25844         define a namespaced alias symbol.
25845         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25846         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25847         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25848         * modules/time (Depends-on): Add c++defs, warn-on-use.
25849         (Makefile.am): Update time.h rule.
25850         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25851         * modules/nanosleep (configure.ac): Likewise.
25852         * modules/strptime (configure.ac): Likewise.
25853         * modules/timegm (configure.ac): Likewise.
25854
25855         sys_time: Avoid #define replacements in C++ mode.
25856         * lib/sys_time.in.h: Include c++defs.h.
25857         (gettimeofday): In C++, define a namespaced alias symbol.
25858         * modules/sys_time (Depends-on): Add c++defs.
25859         (Makefile.am): Update sys/time.h rule.
25860
25861         sys_stat: Avoid #define replacements in C++ mode.
25862         * lib/sys_stat.in.h: Include c++defs.h.
25863         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25864         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25865         namespaced alias symbol.
25866         In C++, define a namespaced alias symbol.
25867         * modules/sys_stat (Depends-on): Add c++defs.
25868         (Makefile.am): Update sys/stat.h rule.
25869
25870         sys_socket: Avoid #define replacements in C++ mode.
25871         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25872         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25873         definitions also when the system has a <sys/socket.h>.
25874         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25875         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25876         In C++, define a namespaced alias symbol.
25877         * modules/sys_socket (Depends-on): Add c++defs.
25878         (Makefile.am): Update sys/socket.h rule.
25879
25880         sys_select: Avoid #define replacements in C++ mode.
25881         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25882         definitions also when the system has a <sys/select.h>.
25883         (select): In C++, define a namespaced alias symbol.
25884         * modules/sys_select (Depends-on): Add c++defs.
25885         (Makefile.am): Update sys/select.h rule.
25886
25887         sys_ioctl: Avoid #define replacements in C++ mode.
25888         * lib/sys_ioctl.in.h: Include c++defs.h.
25889         (ioctl): In C++, define a namespaced alias symbol.
25890         * modules/sys_ioctl (Depends-on): Add c++defs.
25891         (Makefile.am): Update sys/ioctl.h rule.
25892
25893         string: Avoid #define replacements in C++ mode.
25894         * lib/string.in.h: Include c++defs.h.
25895         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25896         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25897         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25898         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25899         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25900         * modules/string (Depends-on): Add c++defs.
25901         (Makefile.am): Update string.h rule.
25902
25903         stdlib: Avoid #define replacements in C++ mode.
25904         * lib/stdlib.in.h: Include c++defs.h.
25905         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25906         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25907         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25908         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25909         symbol.
25910         * modules/stdlib (Depends-on): Add c++defs.
25911         (Makefile.am): Update stdlib.h rule.
25912
25913         stdio: Avoid #define replacements in C++ mode.
25914         * lib/stdio.in.h: Include c++defs.h.
25915         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25916         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25917         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25918         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25919         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25920         namespaced alias symbol.
25921         * modules/stdio (Depends-on): Add c++defs.
25922         (Makefile.am): Update stdio.h rule.
25923
25924         spawn: Avoid #define replacements in C++ mode.
25925         * lib/spawn.in.h: Include c++defs.h.
25926         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25927         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25928         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25929         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25930         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25931         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25932         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25933         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25934         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25935         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25936         In C++, define a namespaced alias symbol.
25937         * modules/spawn (Depends-on): Add c++defs.
25938         (Makefile.am): Update spawn.h rule.
25939
25940         signal: Avoid #define replacements in C++ mode.
25941         * lib/signal.in.h: Include c++defs.h.
25942         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25943         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25944         namespaced alias symbol.
25945         * modules/signal (Depends-on): Add c++defs.
25946         (Makefile.am): Update signal.h rule.
25947
25948         search: Avoid #define replacements in C++ mode.
25949         * lib/search.in.h: Include c++defs.h.
25950         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25951         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25952         symbol.
25953         * modules/search (Depends-on): Add c++defs.
25954         (Makefile.am): Update search.h rule.
25955
25956         math: Avoid #define replacements in C++ mode.
25957         * lib/math.in.h: Include c++defs.h.
25958         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25959         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25960         trunc, truncl): In C++, define a namespaced alias symbol.
25961         * modules/math (Depends-on): Add c++defs.
25962         (Makefile.am): Update math.h rule.
25963
25964         locale: Avoid #define replacements in C++ mode.
25965         * lib/locale.in.h: Include c++defs.h.
25966         (duplocale): In C++, define a namespaced alias symbol.
25967         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25968         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25969         * modules/locale (Depends-on): Add c++defs.
25970         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25971
25972         langinfo: Avoid #define replacements in C++ mode.
25973         * lib/langinfo.in.h: Include c++defs.h.
25974         (nl_langinfo): In C++, define a namespaced alias symbol.
25975         * modules/langinfo (Depends-on): Add c++defs.
25976         (Makefile.am): Update langinfo.h rule.
25977
25978         iconv-h: Avoid #define replacements in C++ mode.
25979         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25980         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25981         symbol.
25982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25983         whenever iconv is present.
25984         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25985         (Makefile.am): Update iconv.h rule.
25986
25987         glob: Avoid #define replacements in C++ mode.
25988         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25989         (_gl_glob_errfunc_fn): New type.
25990         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25991         symbol.
25992         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25993         (Makefile.am): Update glob.h rule.
25994
25995         fcntl-h: Avoid #define replacements in C++ mode.
25996         * lib/fcntl.in.h: Include c++defs.h.
25997         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25998         * modules/fcntl-h (Depends-on): Add c++defs.
25999         (Makefile.am): Update fcntl.h rule.
26000
26001         dirent: Avoid #define replacements in C++ mode.
26002         * lib/dirent.in.h: Include c++defs.h.
26003         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26004         namespaced alias symbol.
26005         (dirfd): Update declaration.
26006         * modules/dirent (Depends-on): Add c++defs.
26007         (Makefile.am): Update dirent.h rule.
26008
26009         ctype: Make it usable in C++ code.
26010         * lib/ctype.in.h: Include c++defs.h.
26011         (isblank): Declare as extern "C".
26012         * modules/ctype (Depends-on): Add c++defs.
26013         (Makefile.am): Update ctype.h rule.
26014
26015         New module 'c++defs'.
26016         * modules/c++defs: New file.
26017         * build-aux/c++defs.h: New file.
26018         Reported by John W. Eaton <jwe@gnu.org>.
26019
26020 2010-03-07  Bruno Haible  <bruno@clisp.org>
26021
26022         logb: Provide missing declaration for Cygwin.
26023         * lib/math.in.h (logb): New declaration.
26024         * m4/logb.m4: New file.
26025         * modules/logb (Files): Add m4/logb.m4.
26026         (Depends-on): Add math.
26027         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26028         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26030         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26031         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26032
26033 2010-03-07  Bruno Haible  <bruno@clisp.org>
26034
26035         Fix test-cond link error.
26036         * tests/test-cond.c: Include <stdio.h>.
26037
26038 2010-03-07  Bruno Haible  <bruno@clisp.org>
26039
26040         Fix test-dirent-safer link error.
26041         * modules/dirent-safer-tests (Makefile.am): Define
26042         test_dirent_safer_LDADD.
26043
26044 2010-03-07  Bruno Haible  <bruno@clisp.org>
26045
26046         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26047         among default module list.
26048
26049 2010-03-07  Bruno Haible  <bruno@clisp.org>
26050
26051         Fix link error on platforms with GNU libiconv.
26052         * modules/unistr/u8-strcoll-tests (Makefile): Define
26053         test_u8_strcoll_LDADD.
26054         * modules/unistr/u16-strcoll-tests (Makefile): Define
26055         test_u16_strcoll_LDADD.
26056         * modules/unistr/u32-strcoll-tests (Makefile): Define
26057         test_u32_strcoll_LDADD.
26058
26059 2010-03-07  Bruno Haible  <bruno@clisp.org>
26060
26061         Use POSIX declarations for socket functions.
26062         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26063         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26064         rpl_sendto): Change declaration to match POSIX.
26065         * lib/connect.c (rpl_connect): Likewise.
26066         * lib/accept.c (rpl_accept): Likewise.
26067         * lib/bind.c (rpl_bind): Likewise.
26068         * lib/getpeername.c (rpl_getpeername): Likewise.
26069         * lib/getsockname.c (rpl_getsockname): Likewise.
26070         * lib/recv.c (rpl_recv): Likewise.
26071         * lib/send.c (rpl_send): Likewise.
26072         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26073         * lib/sendto.c (rpl_sendto): Likewise.
26074
26075 2010-03-06  Bruno Haible  <bruno@clisp.org>
26076
26077         Clarify access, euidaccess, faccessat.
26078         * doc/posix-functions/faccessat.texi: Mention security problem under
26079         "Other problems", not "Portability problems".
26080         * doc/posix-functions/access.texi: Likewise. Mention a related security
26081         problem.
26082         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26083         * lib/euidaccess.c: Add comments about platforms.
26084         * lib/unistd.in.h (access, euidaccess): Add warnings.
26085
26086 2010-03-07  Bruno Haible  <bruno@clisp.org>
26087
26088         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26089         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26090         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26091         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26092         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26093         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26094         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26095         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26096         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26098         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26099         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26100         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26101         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26102         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26103         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26104         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26105         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26106         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26107         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26108         Likewise.
26109         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26110         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26111         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26112         Likewise.
26113         * tests/test-spawn.c (main): Make it work when
26114         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26115
26116 2010-03-07  Bruno Haible  <bruno@clisp.org>
26117
26118         Fix incorrect Makefile.am generation in German locale.
26119         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26120         Execute sed command with character range in C locale.
26121
26122 2010-03-06  Bruno Haible  <bruno@clisp.org>
26123
26124         Tests for module 'iconv-h'.
26125         * modules/iconv-h-tests: New file.
26126         * tests/test-iconv-h.c: New file.
26127
26128         New module 'iconv-h'.
26129         * modules/iconv-h: New file.
26130         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26131         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26132         (configure.ac): Remove gl_ICONV_H.
26133         (Makefile.am): Remove rule for iconv.h.
26134
26135 2010-03-06  Bruno Haible  <bruno@clisp.org>
26136
26137         More consistent naming of *.m4 files.
26138         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26139         * modules/wctype (Files): Update.
26140
26141         More consistent naming of *.m4 files.
26142         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26143         * modules/wchar (Files): Update.
26144
26145 2010-03-06  Jim Meyering  <meyering@redhat.com>
26146
26147         euidaccess: relax license to LGPLv2+
26148         * modules/euidaccess (License): Relax to LGPLv2+.
26149
26150 2010-03-06  Bruno Haible  <bruno@clisp.org>
26151
26152         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26153         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26154         (Makefile.am): Augment lib_SOURCES instead.
26155
26156 2010-03-04  Jim Meyering  <meyering@redhat.com>
26157
26158         utime: remove obsolete module
26159         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26160         unnecessary for years, and has been marked as obsolete for 10 months.
26161         * modules/utime: Remove file.
26162         * lib/utime.c: Remove file.
26163         * m4/utime.m4: Remove file.
26164         * m4/utimes-null.m4: Remove file.
26165         * doc/posix-functions/utime.texi (utime): Remove reference to
26166         the module.  Move the sole "fixed by gnulib" item into the
26167         "problems not fixed by Gnulib" list.
26168         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26169
26170 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26171
26172         * modules/exit (License): Relax license to LGPLv2+.
26173         (Status): Mark as obsolete.
26174         * NEWS: Mention deprecated 'exit' module.
26175         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26176         of now obsolete 'exit'.
26177
26178 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26179
26180         fts-lgpl: remove unused module
26181         * modules/fts-lgpl: Remove.
26182         * MODULES.html.sh (func_all_modules): Adjust.
26183         * check-module (find_included_lib_files): Adjust.
26184         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26185
26186 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26187
26188         copy-acl: enhance Solaris ACL error handling
26189         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26190         * lib/set-mode-acl.c (qset_acl): Likewise.
26191
26192 2010-03-02  Bruno Haible  <bruno@clisp.org>
26193
26194         spawn: Don't override the system defined values on FreeBSD 8.
26195         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26196         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26197         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26198         if HAVE_POSIX_SPAWN is 1.
26199         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26200
26201 2010-03-01  Bruno Haible  <bruno@clisp.org>
26202
26203         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26204         regarding Automake.
26205
26206 2010-02-25  Bruno Haible  <bruno@clisp.org>
26207
26208         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26209         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26210         setting, not afterwards.
26211         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26212
26213 2010-02-24  Eric Blake  <eblake@redhat.com>
26214
26215         bootstrap, git-version-gen: use timestamp
26216         * build-aux/git-version-gen (scriptversion): Force UTC.
26217         * build-aux/bootstrap (scriptversion): New variable.
26218
26219         bootstrap: allow older git
26220         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26221         older than 1.6.4.  Requested by the libvirt project.
26222
26223 2010-02-23  Eric Blake  <eblake@redhat.com>
26224
26225         warn-on-use: work with old autoconf
26226         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26227         AS_VAR semantics of autoconf 2.60.
26228         Reported by Bruno Haible.
26229
26230         bootstrap: improve some comments
26231         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26232         clarification comments.
26233
26234         gettimeofday: provide correct function
26235         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26236         when replacement is declared, otherwise provide gettimeofday.
26237         Reported by Michael Goffioul.
26238
26239 2010-02-23  Jim Meyering  <meyering@redhat.com>
26240
26241         lib-ignore: relax license to "unlimited", not LGPLv2+
26242         * modules/lib-ignore (License): Relax to "unlimited".
26243
26244 2010-02-23  Jim Meyering  <meyering@redhat.com>
26245
26246         lib-ignore: relax license to LGPLv2+
26247         * modules/lib-ignore (License): Relax to LGPLv2+.
26248
26249 2010-02-22  Eric Blake  <eblake@redhat.com>
26250
26251         lseek: avoid bash 3.2 broken pipe bug
26252         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26253         warning from bash 3.2.
26254         Reported by Ben Pfaff, with analysis from Bruno Haible.
26255
26256         bootstrap: support non-FSF copyright holder
26257         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26258         bootstrap.conf override of COPYRIGHT_HOLDER.
26259         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26260
26261         bootstrap: interoperate with gettext 0.14.1
26262         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26263
26264         bootstrap: allow for alternate submodule location
26265         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26266         hardcoding submodule location.
26267         (gnulib_mk): Allow direct use of Makefile.am.
26268
26269         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26270         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26271         rather than reconfiguring where the submodule points.
26272
26273         gettimeofday: restore support for platforms that lack function
26274         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26275         replacement if function is missing.
26276         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26277         * modules/sys_time (Makefile.am): Substitute it.
26278         * lib/sys_time.in.h (gettimeofday): Check it.
26279         Reported by Michael Goffioul.
26280
26281 2010-02-21  Bruno Haible  <bruno@clisp.org>
26282
26283         * lib/stdio.in.h (obstack_printf): Fix typo.
26284
26285 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26286
26287         vc-list-files: use bzr ls's -R option
26288         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26289         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26290
26291 2010-02-21  Jim Meyering  <meyering@redhat.com>
26292
26293         init.sh: fix EXEEXT shims to work also for names like test-prog
26294         * tests/init.sh: Re-exec a better shell, when needed.
26295         If the current shell lacks support for posix $(...), an init.sh-using
26296         test will now try to find a shell that supports that.  If EXEEXT is
26297         nonempty, we also require support for hyphen-in-alias-name and shell
26298         substitutions like ${var#glob}.  Failure to find such a shell results
26299         in a skipped test.
26300
26301 2010-02-21  Bruno Haible  <bruno@clisp.org>
26302
26303         Really work around around "broken pipe" error message from bash 3.2.
26304         * gnulib-tool (func_reset_sigpipe): Remove function.
26305         (echo): In bash 3.2, define to a function that uses printf.
26306         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26307
26308 2010-02-20  Bruno Haible  <bruno@clisp.org>
26309
26310         Restore support for automake 1.9.6 with autoconf 2.61.
26311         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26312         Reported by James Youngman <jay@gnu.org>.
26313
26314 2010-02-20  Bruno Haible  <bruno@clisp.org>
26315
26316         Improve *printf warning condition.
26317         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26318         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26319         and the function is overridden due to SIGPIPE emulation.
26320
26321 2010-02-20  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/stdio.in.h: Tweak comments.
26324
26325 2010-02-19  Bruno Haible  <bruno@clisp.org>
26326
26327         Make it easier to find modules. New gnulib-tool option '--find'.
26328         * gnulib-tool: New option --find.
26329         (func_usage): Document it.
26330         (func_sanitize_modulelist): New function, extracted from
26331         func_all_modules.
26332         (func_all_modules): Invoke it.
26333         * doc/gnulib-tool.texi (Which modules?): New node.
26334
26335 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26336
26337         * lib/sys_select.in.h: Provide select replacement even if
26338         sys/select.h exists on a system, for Interix.
26339
26340 2010-02-18  Jim Meyering  <meyering@redhat.com>
26341
26342         init.sh: don't use $(...) just yet
26343         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26344         to accommodate e.g., Solaris' /bin/sh.
26345
26346 2010-02-17  Bruno Haible  <bruno@clisp.org>
26347
26348         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26349         Reported by Ludovic Courtès <ludo@gnu.org>.
26350
26351 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26352
26353         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26354         linking with -lintl.
26355
26356 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26357
26358         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26359         if not provided by the system's netdb.h.  Reported by
26360         ludo@gnu.org (Ludovic Courtès).
26361
26362 2010-02-15  Jim Meyering  <meyering@redhat.com>
26363
26364         init.sh: improve portability and efficiency
26365         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26366         "dummy" in a for loop.
26367         Use '!', not '^' to select the complement of a character set used
26368         in a "case" statement.
26369         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26370         Suggestions from Eric Blake.
26371
26372         init.sh: automatically accommodate programs with the .exe suffix
26373         Automatically arrange for an invocation of "prog" to execute the
26374         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26375         may use the simpler "prog", yet still work when built on a system
26376         that requires specifying the added suffix.
26377         Do this by constructing a function named "prog" that invokes
26378         "prog.exe" for each .exe file in selected directories.
26379         * tests/init.sh (find_exe_basenames_): New function.
26380         (create_exe_shim_functions_): New function.
26381         (path_prepend_): Use it.
26382
26383         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26384         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26385         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26386
26387 2010-02-14  Jim Meyering  <meyering@redhat.com>
26388
26389         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26390         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26391         (sc_prohibit_hash_pjw_without_use): New rule.
26392
26393         maint.mk: allow the default upload destination dir to be overridden
26394         * top/maint.mk (upload_dest_dir_): Define with a default that
26395         preserves the status quo.
26396         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26397         Reported by Peter Simons.
26398
26399         maint.mk: prohibit inclusion of "hash.h" without_use
26400         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26401
26402 2010-02-10  Jim Meyering  <meyering@redhat.com>
26403
26404         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26405         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26406
26407 2010-02-09  Eric Blake  <ebb9@byu.net>
26408         and Bruno Haible  <bruno@clisp.org>
26409
26410         obstack-printf-posix: ensure declaration
26411         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26412         extracted from gl_FUNC_OBSTACK_PRINTF.
26413         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26414         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26415         Likewise.
26416         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26417         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26418         0.
26419
26420 2010-02-08  Bruno Haible  <bruno@clisp.org>
26421
26422         gnulib-tool: Fix typo in 2010-02-07 commit.
26423         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26424         Reported by Eric Blake.
26425
26426 2010-02-07  Bruno Haible  <bruno@clisp.org>
26427
26428         gnulib-tool: Fix up caching patches.
26429         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26430         option --no-cache. Use associative arrays when supported by the shell.
26431         (sed_comments): New variable.
26432         (modcache): Renamed from do_cache.
26433         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26434         abbreviate unnecessarily.
26435         (have_associative): New variable.
26436         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26437         way also for ksh and zsh.
26438         (func_init_sed_convert_to_cache_statements): New function, extracted
26439         from func_cache_lookup_module. Add support for associative arrays.
26440         Don't set the c_MODULE_cached variable here. Ignore all lines before
26441         the first field header. Remove only the final newline, not all trailing
26442         newlines. Support empty fields correctly. Limit the use of 'eval' to
26443         assignments.
26444         (func_get_description, func_get_status, func_get_notice,
26445         func_get_applicability, func_get_filelist, func_get_dependencies,
26446         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26447         func_get_automake_snippet, func_get_include_directive,
26448         func_get_link_directive, func_get_license, func_get_maintainer):
26449         Update documentation. List the unoptimized code first. Add support for
26450         associative arrays. Limit the use of 'eval' to assignments.
26451         (func_get_applicability): Undo stylistic pessimisations.
26452         (func_get_automake_snippet, func_get_include_directive): Reduce code
26453         duplication.
26454         (func_modules_transitive_closure, func_modules_add_dummy,
26455         func_modules_notice, func_modules_to_filelist, func_add_file,
26456         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26457         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26458         func_create_testdir, func_create_megatestdir): Update documentation.
26459
26460 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26461
26462         * gnulib-tool (func_cache_lookup_module): Store the module name
26463         belonging to the cache variable; error out if two different
26464         module names map to the same cache variable name.
26465
26466 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26467
26468         gnulib-tool: Make caching optional.
26469         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26470         Update matching short versions of --no-changelog.
26471         (func_usage): Update.
26472         (sed_extract_cache_prog): Renamed from ...
26473         (sed_extract_prog): ... this; revert to old extraction script.
26474         (func_get_description, func_get_status)
26475         (func_get_notice, func_get_applicability, func_get_filelist)
26476         (func_get_dependencies, func_get_autoconf_early_snippet)
26477         (func_get_autoconf_snippet, func_get_automake_snippet)
26478         (func_get_include_directive, func_get_link_directive)
26479         (func_get_license, func_get_maintainer): If $do_cache is false,
26480         use old, non-caching extraction scripts.
26481         Suggestion by Bruno Haible.
26482
26483 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26484
26485         gnulib-tool: cache module metainformation.
26486         * gnulib-tool (sed_extract_prog): Match newline before each
26487         header, and rewrite header to a shell variable suffix.
26488         (func_cache_var, func_cache_lookup_module): New functions,
26489         to turn a module name into a cache variable prefix, and to
26490         look up and cache module metainformation.
26491         (func_get_description, func_get_status)
26492         (func_get_notice, func_get_applicability, func_get_filelist)
26493         (func_get_dependencies, func_get_autoconf_early_snippet)
26494         (func_get_autoconf_snippet, func_get_automake_snippet)
26495         (func_get_include_directive, func_get_link_directive)
26496         (func_get_license, func_get_maintainer): Use
26497         func_cache_lookup_module.
26498
26499 2010-02-07  Bruno Haible  <bruno@clisp.org>
26500
26501         fnctl: Fix missing dependency.
26502         * modules/fcntl (Depends-on): Add getdtablesize.
26503         Reported by John W. Eaton <jwe@gnu.org>.
26504
26505 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26506
26507         Argp: fix recognition of short alias options.
26508
26509         * lib/argp-parse.c (convert_options): Fix improper use of
26510         `|' between character values.
26511         * tests/test-argp.c (group1_option): New alias option
26512         --read (-r).
26513         (group1_parser): Special handling for 'r'.
26514         (test15): New test case.
26515         (test_fun): Add test15.
26516         * tests/test-argp-2.sh: Update expected --help and --usage
26517         outputs.
26518
26519 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26520
26521         * tests/test-argp.c: Fix indentation.
26522
26523 2010-02-04  Eric Blake  <ebb9@byu.net>
26524
26525         gettimeofday: expose type of second argument
26526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26527         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26528         * tests/test-gettimeofday.c: Use it to silence warning.
26529         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26530         the issue.
26531
26532 2010-02-03  Jim Meyering  <meyering@redhat.com>
26533
26534         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26535         * lib/regcomp.c (TYPE_SIGNED): Define.
26536         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26537
26538         regcomp.c: avoid a new -Wshadow warning
26539         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26540
26541 2010-02-01  Jim Meyering  <meyering@redhat.com>
26542
26543         removing useless parentheses in cpp #define directives
26544         For motivation, see commit c0221df4, "define STREQ(a,b)
26545         consistently, removing useless parentheses"
26546         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26547         * lib/mountlist.c (MNT_IGNORE): Likewise.
26548         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26549
26550 2010-02-01  Eric Blake  <ebb9@byu.net>
26551
26552         sys_time: use link-warning
26553         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26554         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26555         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26556         * modules/sys_time (Depends-on): Add warn-on-use.
26557         (Makefile.am): Always build replacement.
26558         (configure.ac): Update substitutions.
26559         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26560         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26561         bother with SYS_TIME_H.
26562         * modules/gettimeofday (configure.ac): Declare indicator.
26563         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26564         in use.
26565
26566         closein-tests: silence compiler warning
26567         * tests/test-closein.c (main): Ignore fread result.
26568         * modules/closein-tests (Depends-on): Add ignore-value.
26569
26570         tests: silence warning about system return
26571         * tests/test-areadlink-with-size.c (main): Ignore system result.
26572         * tests/test-areadlink.c (main): Likewise.
26573         * tests/test-areadlinkat-with-size.c (main): Likewise.
26574         * tests/test-areadlinkat.c (main): Likewise.
26575         * tests/test-canonicalize-lgpl.c (main): Likewise.
26576         * tests/test-canonicalize.c (main): Likewise.
26577         * tests/test-chown.c (main): Likewise.
26578         * tests/test-fchownat.c (main): Likewise.
26579         * tests/test-fdutimensat.c (main): Likewise.
26580         * tests/test-fstatat.c (main): Likewise.
26581         * tests/test-futimens.c (main): Likewise.
26582         * tests/test-lchown.c (main): Likewise.
26583         * tests/test-link.c (main): Likewise.
26584         * tests/test-linkat.c (main): Likewise.
26585         * tests/test-lstat.c (main): Likewise.
26586         * tests/test-mkdir.c (main): Likewise.
26587         * tests/test-mkdirat.c (main): Likewise.
26588         * tests/test-mkfifo.c (main): Likewise.
26589         * tests/test-mkfifoat.c (main): Likewise.
26590         * tests/test-mknod.c (main): Likewise.
26591         * tests/test-readlink.c (main): Likewise.
26592         * tests/test-remove.c (main): Likewise.
26593         * tests/test-rename.c (main): Likewise.
26594         * tests/test-renameat.c (main): Likewise.
26595         * tests/test-rmdir.c (main): Likewise.
26596         * tests/test-symlink.c (main): Likewise.
26597         * tests/test-symlinkat.c (main): Likewise.
26598         * tests/test-unlink.c (main): Likewise.
26599         * tests/test-unlinkat.c (main): Likewise.
26600         * tests/test-utimens.c (main): Likewise.
26601         * tests/test-utimensat.c (main): Likewise.
26602         * modules/areadlink-tests (Depends-on): Add ignore-value.
26603         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26604         * modules/areadlinkat-tests (Depends-on): Likewise.
26605         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26606         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26607         * modules/canonicalize-tests (Depends-on): Likewise.
26608         * modules/chown-tests (Depends-on): Likewise.
26609         * modules/fdutimensat-tests (Depends-on): Likewise.
26610         * modules/futimens-tests (Depends-on): Likewise.
26611         * modules/lchown-tests (Depends-on): Likewise.
26612         * modules/link-tests (Depends-on): Likewise.
26613         * modules/linkat-tests (Depends-on): Likewise.
26614         * modules/lstat-tests (Depends-on): Likewise.
26615         * modules/mkdir-tests (Depends-on): Likewise.
26616         * modules/mkfifo-tests (Depends-on): Likewise.
26617         * modules/mkfifoat-tests (Depends-on): Likewise.
26618         * modules/mknod-tests (Depends-on): Likewise.
26619         * modules/openat-tests (Depends-on): Likewise.
26620         * modules/readlink-tests (Depends-on): Likewise.
26621         * modules/remove-tests (Depends-on): Likewise.
26622         * modules/rename-tests (Depends-on): Likewise.
26623         * modules/renameat-tests (Depends-on): Likewise.
26624         * modules/rmdir-tests (Depends-on): Likewise.
26625         * modules/symlink-tests (Depends-on): Likewise.
26626         * modules/symlinkat-tests (Depends-on): Likewise.
26627         * modules/unlink-tests (Depends-on): Likewise.
26628         * modules/utimens-tests (Depends-on): Likewise.
26629         * modules/utimensat-tests (Depends-on): Likewise.
26630
26631 2010-01-31  Bruno Haible  <bruno@clisp.org>
26632
26633         Perform the same test for many <math.h> functions.
26634         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26635         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26636         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26637         of gl_MATHFUNC.
26638         * modules/acos (configure.ac): Likewise.
26639         * modules/asin (configure.ac): Likewise.
26640         * modules/atan (configure.ac): Likewise.
26641         * modules/atan2 (configure.ac): Likewise.
26642         * modules/cbrt (configure.ac): Likewise.
26643         * modules/copysign (configure.ac): Likewise.
26644         * modules/cos (configure.ac): Likewise.
26645         * modules/cosh (configure.ac): Likewise.
26646         * modules/erf (configure.ac): Likewise.
26647         * modules/erfc (configure.ac): Likewise.
26648         * modules/exp (configure.ac): Likewise.
26649         * modules/fmod (configure.ac): Likewise.
26650         * modules/hypot (configure.ac): Likewise.
26651         * modules/j0 (configure.ac): Likewise.
26652         * modules/j1 (configure.ac): Likewise.
26653         * modules/jn (configure.ac): Likewise.
26654         * modules/lgamma (configure.ac): Likewise.
26655         * modules/log (configure.ac): Likewise.
26656         * modules/log10 (configure.ac): Likewise.
26657         * modules/log1p (configure.ac): Likewise.
26658         * modules/pow (configure.ac): Likewise.
26659         * modules/remainder (configure.ac): Likewise.
26660         * modules/sin (configure.ac): Likewise.
26661         * modules/sinh (configure.ac): Likewise.
26662         * modules/tan (configure.ac): Likewise.
26663         * modules/tanh (configure.ac): Likewise.
26664         * modules/y0 (configure.ac): Likewise.
26665         * modules/y1 (configure.ac): Likewise.
26666         * modules/yn (configure.ac): Likewise.
26667         Suggested by Paolo Bonzini.
26668
26669 2010-01-31  Bruno Haible  <bruno@clisp.org>
26670
26671         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26672
26673 2010-01-31  Bruno Haible  <bruno@clisp.org>
26674
26675         Work around getdelim() bug on FreeBSD 8.0.
26676         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26677         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26678         not work.
26679         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26680         is 1.
26681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26682         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26683         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26684         a non-zero size.
26685         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26686
26687 2010-01-31  Bruno Haible  <bruno@clisp.org>
26688
26689         Work around getline() bug on FreeBSD 8.0.
26690         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26691         and a non-zero size.
26692         * tests/test-getline.c (main): Likewise.
26693         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26694         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26695
26696 2010-01-28  Eric Blake  <ebb9@byu.net>
26697
26698         regex: fix build failure
26699         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26700         platforms.
26701
26702 2010-01-28  Jim Meyering  <meyering@redhat.com>
26703
26704         regex: do not ignore memory allocation failure
26705         * lib/regex_internal.c (create_cd_newstate): Detect
26706         re_node_set_init_copy failure.   Extracted from glibc commit
26707         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26708
26709         regex: sync more white-space changes from libc
26710         * lib/regex_internal.c: White-space only changes.
26711         * lib/regexec.c: Likewise.
26712
26713         regex: add many uses of __attribute_warn_unused_result__
26714         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26715         * lib/regexec.c: Likewise.
26716         Extracted from a messy glibc commit.
26717
26718         regcomp.c: spelling and merge-artifact from glibc
26719         * lib/regcomp.c: Merge remainder of glibc's
26720         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26721
26722         regcomp.c: sync white-space changes from glibc
26723         * lib/regcomp.c: Merge to accommodate white space
26724         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26725
26726         regcomp.c: do not ignore internal return values
26727         * lib/regcomp.c: Do not ignore internal return values.
26728         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26729         but without its white-space changes and spelling fixes.
26730
26731         regex_internal.h: define __attribute_warn_unused_result__
26732         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26733
26734         maint: add a syntax-check rule to check for vulnerable Makefile.in
26735         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26736
26737 2010-01-27  Jim Meyering  <meyering@redhat.com>
26738
26739         ncftpput-ftp: clean up spaces
26740         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26741         Remove trailing blanks.
26742
26743 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26744
26745         * build-aux/git-version-gen: Fix copyright statement.
26746         * build-aux/gnupload: Likewise.
26747         * tests/test-arcfour.c: Likewise.
26748         * tests/test-arctwo.c: Likewise.
26749         * tests/test-count-one-bits.c: Likewise.
26750         * tests/test-crc.c: Likewise.
26751         * tests/test-des.c: Likewise.
26752         * tests/test-gc-arcfour.c: Likewise.
26753         * tests/test-gc-arctwo.c: Likewise.
26754         * tests/test-gc-des.c: Likewise.
26755         * tests/test-gc-hmac-md5.c: Likewise.
26756         * tests/test-gc-hmac-sha1.c: Likewise.
26757         * tests/test-gc-md2.c: Likewise.
26758         * tests/test-gc-md4.c: Likewise.
26759         * tests/test-gc-md5.c: Likewise.
26760         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26761         * tests/test-gc-rijndael.c: Likewise.
26762         * tests/test-gc-sha1.c: Likewise.
26763         * tests/test-gc.c: Likewise.
26764         * tests/test-gethostname.c: Likewise.
26765         * tests/test-gettimeofday.c: Likewise.
26766         * tests/test-hash.c: Likewise.
26767         * tests/test-hmac-md5.c: Likewise.
26768         * tests/test-hmac-sha1.c: Likewise.
26769         * tests/test-md2.c: Likewise.
26770         * tests/test-md4.c: Likewise.
26771         * tests/test-md5.c: Likewise.
26772         * tests/test-memchr.c: Likewise.
26773         * tests/test-memchr2.c: Likewise.
26774         * tests/test-memcmp.c: Likewise.
26775         * tests/test-memmem.c: Likewise.
26776         * tests/test-memrchr.c: Likewise.
26777         * tests/test-rawmemchr.c: Likewise.
26778         * tests/test-read-file.c: Likewise.
26779         * tests/test-rijndael.c: Likewise.
26780         * tests/test-sockets.c: Likewise.
26781         * tests/test-strchrnul.c: Likewise.
26782         * tests/test-strstr.c: Likewise.
26783         * tests/test-strtod.c: Likewise.
26784         * build-aux/ncftpput-ftp: Likewise.
26785
26786 2010-01-26  Eric Blake  <ebb9@byu.net>
26787
26788         ignore-value: update recommended header name
26789         * modules/ignore-value (Include): Only use <> for headers that
26790         exist in glibc.
26791
26792 2010-01-26  Jim Meyering  <meyering@redhat.com>
26793
26794         test-userspec.c: avoid compiler warnings
26795         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26796         and "initialization discards qualifiers..." warnings.
26797         Put the first "uid" in its own scope, and make char* members "const".
26798
26799 2010-01-25  Bruno Haible  <bruno@clisp.org>
26800
26801         gnulib-tool: Make warning diagnostics consistent.
26802         * gnulib-tool (func_warning): New function.
26803         Use it everywhere where gnulib-tool produces output to stderr and it is
26804         not a fatal error.
26805
26806 2010-01-25  Bruno Haible  <bruno@clisp.org>
26807
26808         Fix test dependencies.
26809         * modules/xstrtol-tests (Depends-on): Add inttypes.
26810         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26811
26812 2010-01-25 Pádraig Brady <P@draigBrady.com>
26813
26814         syntax-check: detect incorrect boolean macro values in config.h
26815         * modules/maintainer-makefile (configure.ac): Parameterize the location
26816         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26817         The logic is from Eric Blake and the location indicated by Jim Meyering.
26818         Note the more natural CONFIG_HEADER name is prohibited by automake
26819         for backwards compatibility reasons.
26820         * top/maint.mk (sc_Wundef_boolean): New rule.
26821
26822 2010-01-25  Jim Meyering  <meyering@redhat.com>
26823
26824         bootstrap: detect MacOS 10.6's shasum, too
26825         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26826         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26827
26828 2010-01-23  Jim Meyering  <meyering@redhat.com>
26829
26830         xstrtoll: new module
26831         * modules/xstrtoll: New file.
26832         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26833         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26834         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26835         ./configure fails if you use this module and lack "long long".
26836         * modules/xstrtoll-tests: New module.
26837         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26838         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26839         new init.sh-based test framework.
26840
26841 2010-01-24  Bruno Haible  <bruno@clisp.org>
26842
26843         Tests for module 'yn'.
26844         * modules/yn-tests: New file.
26845         * tests/test-yn.c: New file.
26846
26847         Tests for module 'y1'.
26848         * modules/y1-tests: New file.
26849         * tests/test-y1.c: New file.
26850
26851         Tests for module 'y0'.
26852         * modules/y0-tests: New file.
26853         * tests/test-y0.c: New file.
26854
26855         Tests for module 'tanh'.
26856         * modules/tanh-tests: New file.
26857         * tests/test-tanh.c: New file.
26858
26859         Tests for module 'tan'.
26860         * modules/tan-tests: New file.
26861         * tests/test-tan.c: New file.
26862
26863         Tests for module 'sqrt'.
26864         * modules/sqrt-tests: New file.
26865         * tests/test-sqrt.c: New file.
26866
26867         Tests for module 'sinh'.
26868         * modules/sinh-tests: New file.
26869         * tests/test-sinh.c: New file.
26870
26871         Tests for module 'sin'.
26872         * modules/sin-tests: New file.
26873         * tests/test-sin.c: New file.
26874
26875         Tests for module 'rint'.
26876         * modules/rint-tests: New file.
26877         * tests/test-rint.c: New file.
26878
26879         Tests for module 'remainder'.
26880         * modules/remainder-tests: New file.
26881         * tests/test-remainder.c: New file.
26882
26883         Tests for module 'pow'.
26884         * modules/pow-tests: New file.
26885         * tests/test-pow.c: New file.
26886
26887         Tests for module 'nextafter'.
26888         * modules/nextafter-tests: New file.
26889         * tests/test-nextafter.c: New file.
26890
26891         Tests for module 'modf'.
26892         * modules/modf-tests: New file.
26893         * tests/test-modf.c: New file.
26894
26895         Tests for module 'logb'.
26896         * modules/logb-tests: New file.
26897         * tests/test-logb.c: New file.
26898
26899         Tests for module 'log1p'.
26900         * modules/log1p-tests: New file.
26901         * tests/test-log1p.c: New file.
26902
26903         Tests for module 'log10'.
26904         * modules/log10-tests: New file.
26905         * tests/test-log10.c: New file.
26906
26907         Tests for module 'log'.
26908         * modules/log-tests: New file.
26909         * tests/test-log.c: New file.
26910
26911         Tests for module 'lgamma'.
26912         * modules/lgamma-tests: New file.
26913         * tests/test-lgamma.c: New file.
26914
26915         Tests for module 'ldexp'.
26916         * modules/ldexp-tests: New file.
26917         * tests/test-ldexp.c: New file.
26918
26919         Tests for module 'jn'.
26920         * modules/jn-tests: New file.
26921         * tests/test-jn.c: New file.
26922
26923         Tests for module 'j1'.
26924         * modules/j1-tests: New file.
26925         * tests/test-j1.c: New file.
26926
26927         Tests for module 'j0'.
26928         * modules/j0-tests: New file.
26929         * tests/test-j0.c: New file.
26930
26931         Tests for module 'hypot'.
26932         * modules/hypot-tests: New file.
26933         * tests/test-hypot.c: New file.
26934
26935         Tests for module 'fmod'.
26936         * modules/fmod-tests: New file.
26937         * tests/test-fmod.c: New file.
26938
26939         Tests for module 'fabs'.
26940         * modules/fabs-tests: New file.
26941         * tests/test-fabs.c: New file.
26942
26943         Tests for module 'exp'.
26944         * modules/exp-tests: New file.
26945         * tests/test-exp.c: New file.
26946
26947         Tests for module 'erfc'.
26948         * modules/erfc-tests: New file.
26949         * tests/test-erfc.c: New file.
26950
26951         Tests for module 'erf'.
26952         * modules/erf-tests: New file.
26953         * tests/test-erf.c: New file.
26954
26955         Tests for module 'cosh'.
26956         * modules/cosh-tests: New file.
26957         * tests/test-cosh.c: New file.
26958
26959         Tests for module 'cos'.
26960         * modules/cos-tests: New file.
26961         * tests/test-cos.c: New file.
26962
26963         Tests for module 'copysign'.
26964         * modules/copysign-tests: New file.
26965         * tests/test-copysign.c: New file.
26966
26967         Tests for module 'cbrt'.
26968         * modules/cbrt-tests: New file.
26969         * tests/test-cbrt.c: New file.
26970
26971         Tests for module 'atan2'.
26972         * modules/atan2-tests: New file.
26973         * tests/test-atan2.c: New file.
26974
26975         Tests for module 'atan'.
26976         * modules/atan-tests: New file.
26977         * tests/test-atan.c: New file.
26978
26979         Tests for module 'asin'.
26980         * modules/asin-tests: New file.
26981         * tests/test-asin.c: New file.
26982
26983         Tests for module 'acos'.
26984         * modules/acos-tests: New file.
26985         * tests/test-acos.c: New file.
26986
26987 2010-01-24  Bruno Haible  <bruno@clisp.org>
26988
26989         Fix tests for common <math.h> functions.
26990         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26991         code snippet that references the function pointer, rather than merely
26992         calling the function. Substitute the FUNC_LIBM variable.
26993         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26994         * modules/acos (configure.ac): Likewise.
26995         * modules/asin (configure.ac): Likewise.
26996         * modules/atan (configure.ac): Likewise.
26997         * modules/atan2 (configure.ac): Likewise.
26998         * modules/cbrt (configure.ac): Likewise.
26999         * modules/copysign (configure.ac): Likewise.
27000         * modules/cos (configure.ac): Likewise.
27001         * modules/cosh (configure.ac): Likewise.
27002         * modules/erf (configure.ac): Likewise.
27003         * modules/erfc (configure.ac): Likewise.
27004         * modules/exp (configure.ac): Likewise.
27005         * modules/fabs (configure.ac): Likewise.
27006         * modules/fmod (configure.ac): Likewise.
27007         * modules/hypot (configure.ac): Likewise.
27008         * modules/j0 (configure.ac): Likewise.
27009         * modules/j1 (configure.ac): Likewise.
27010         * modules/jn (configure.ac): Likewise.
27011         * modules/ldexp (configure.ac): Likewise.
27012         * modules/lgamma (configure.ac): Likewise.
27013         * modules/log (configure.ac): Likewise.
27014         * modules/log10 (configure.ac): Likewise.
27015         * modules/log1p (configure.ac): Likewise.
27016         * modules/logb (configure.ac): Likewise.
27017         * modules/modf (configure.ac): Likewise.
27018         * modules/nextafter (configure.ac): Likewise.
27019         * modules/pow (configure.ac): Likewise.
27020         * modules/remainder (configure.ac): Likewise.
27021         * modules/rint (configure.ac): Likewise.
27022         * modules/sin (configure.ac): Likewise.
27023         * modules/sinh (configure.ac): Likewise.
27024         * modules/tan (configure.ac): Likewise.
27025         * modules/tanh (configure.ac): Likewise.
27026         * modules/y0 (configure.ac): Likewise.
27027         * modules/y1 (configure.ac): Likewise.
27028         * modules/yn (configure.ac): Likewise.
27029
27030 2010-01-24  Bruno Haible  <bruno@clisp.org>
27031
27032         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27033         * tests/test-acosl.c (x): New variable.
27034         (main): Store argument in x and fetch it from x.
27035         * tests/test-asinl.c (x): New variable.
27036         (main): Store argument in x and fetch it from x.
27037         * tests/test-atanl.c (x): New variable.
27038         (main): Store argument in x and fetch it from x.
27039         * tests/test-cosl.c (x): New variable.
27040         (main): Store argument in x and fetch it from x.
27041         * tests/test-expl.c (x): New variable.
27042         (main): Store argument in x and fetch it from x.
27043         * tests/test-logl.c (x): New variable.
27044         (main): Store argument in x and fetch it from x.
27045         * tests/test-sinl.c (x): New variable.
27046         (main): Store argument in x and fetch it from x.
27047         * tests/test-sqrtl.c (x): New variable.
27048         (main): Store argument in x and fetch it from x.
27049         * tests/test-tanl.c (x): New variable.
27050         (main): Store argument in x and fetch it from x.
27051
27052 2010-01-24  Bruno Haible  <bruno@clisp.org>
27053
27054         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27055         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27056         assignments to the initial TESTS_ENVIRONMENT.
27057         * doc/gnulib.texi (Unit test modules): Document it.
27058         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27059         TESTS_ENVIRONMENT.
27060         * modules/btowc-tests (Makefile.am): Likewise.
27061         * modules/c-stack-tests (Makefile.am): Likewise.
27062         * modules/c-strcase-tests (Makefile.am): Likewise.
27063         * modules/copy-file-tests (Makefile.am): Likewise.
27064         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27065         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27066         * modules/mbrtowc-tests (Makefile.am): Likewise.
27067         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27068         * modules/mbscasestr-tests (Makefile.am): Likewise.
27069         * modules/mbschr-tests (Makefile.am): Likewise.
27070         * modules/mbscspn-tests (Makefile.am): Likewise.
27071         * modules/mbsinit-tests (Makefile.am): Likewise.
27072         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27073         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27074         * modules/mbspbrk-tests (Makefile.am): Likewise.
27075         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27076         * modules/mbsrchr-tests (Makefile.am): Likewise.
27077         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27078         * modules/mbsspn-tests (Makefile.am): Likewise.
27079         * modules/mbsstr-tests (Makefile.am): Likewise.
27080         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27081         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27082         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27083         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27084         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27085         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27086         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27087         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27088         * modules/wcrtomb-tests (Makefile.am): Likewise.
27089         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27090         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27091         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27092         assignments from TESTS_ENVIRONMENT.
27093         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27094         augmentation.
27095         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27096         * modules/atexit-tests (Makefile.am): Likewise.
27097         * modules/binary-io-tests (Makefile.am): Likewise.
27098         * modules/closein-tests (Makefile.am): Likewise.
27099         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27100         * modules/exclude-tests (Makefile.am): Likewise.
27101         * modules/fflush-tests (Makefile.am): Likewise.
27102         * modules/fpending-tests (Makefile.am): Likewise.
27103         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27104         * modules/freadahead-tests (Makefile.am): Likewise.
27105         * modules/freadptr-tests (Makefile.am): Likewise.
27106         * modules/freadseek-tests (Makefile.am): Likewise.
27107         * modules/fseek-tests (Makefile.am): Likewise.
27108         * modules/fseeko-tests (Makefile.am): Likewise.
27109         * modules/ftell-tests (Makefile.am): Likewise.
27110         * modules/ftello-tests (Makefile.am): Likewise.
27111         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27112         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27113         * modules/lseek-tests (Makefile.am): Likewise.
27114         * modules/parse-duration-tests (Makefile.am): Likewise.
27115         * modules/perror-tests (Makefile.am): Likewise.
27116         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27117         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27118         * modules/pipe-tests (Makefile.am): Likewise.
27119         * modules/pread-tests (Makefile.am): Likewise.
27120         * modules/printf-posix-tests (Makefile.am): Likewise.
27121         * modules/select-tests (Makefile.am): Likewise.
27122         * modules/sigpipe-tests (Makefile.am): Likewise.
27123         * modules/tsearch-tests (Makefile.am): Likewise.
27124         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27125         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27126         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27127         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27128         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27129         * modules/version-etc-tests (Makefile.am): Likewise.
27130         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27131         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27132         * modules/xalloc-die-tests (Makefile.am): Likewise.
27133         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27134         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27135         * modules/xstrtol-tests (Makefile.am): Likewise.
27136         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27137         * modules/yesno-tests (Makefile.am): Likewise.
27138         Suggested by Jim Meyering.
27139
27140 2010-01-24  Bruno Haible  <bruno@clisp.org>
27141
27142         More documentation.
27143         * doc/gnulib.texi (Writing modules): New chapter.
27144         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27145         the new chapter.
27146
27147 2010-01-24  Jim Meyering  <meyering@redhat.com>
27148
27149         maint.mk: do not prepend "./" after filtering
27150         * top/maint.mk (_prepend_srcdir_prefix): New variable
27151         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27152         "./" when $(srcdir) is ".".
27153
27154         define STREQ(a,b) consistently, removing useless parentheses
27155         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27156         since the only risk is that "a" or "b" contains an unparenthesized
27157         comma, but if either did that, STREQ would have 3 or more arguments.
27158         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27159         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27160         * lib/hash-triple.c (STREQ): Likewise.
27161         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27162         * lib/getugroups.c (STREQ): Likewise.
27163
27164 2010-01-23  Jim Meyering  <meyering@redhat.com>
27165
27166         maint.mk: fix syntax-check in a non-srcdir build directory
27167         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27168         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27169
27170 2010-01-22  Jim Meyering  <meyering@redhat.com>
27171
27172         userspec: add unit tests
27173         * tests/test-userspec.c: New file.
27174         * modules/userspec-tests: Likewise.
27175
27176 2010-01-21  Jim Meyering  <meyering@redhat.com>
27177
27178         maint.mk: handle source file names containing "." robustly
27179         * top/maint.mk (_dot_escaped_srcdir): Define.
27180         (VC_LIST): Use it in LHS of sed substitution.
27181
27182 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27183
27184         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27185         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27186         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27187         from a non-srcdir build.
27188
27189 2010-01-20  Eric Blake  <ebb9@byu.net>
27190
27191         warn-on-use: use instead of link-warning
27192         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27193         * modules/unistd (Depends-on, Makefile.am): Likewise.
27194         * modules/arpa_inet (Depends-on): Replace link-warning with
27195         warn-on-use.
27196         (Makefile.am): Update rules accordingly.
27197         * modules/ctype (Depends-on, Makefile.am): Likewise.
27198         * modules/dirent (Depends-on, Makefile.am): Likewise.
27199         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27200         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27201         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27202         * modules/locale (Depends-on, Makefile.am): Likewise.
27203         * modules/math (Depends-on, Makefile.am): Likewise.
27204         * modules/search (Depends-on, Makefile.am): Likewise.
27205         * modules/signal (Depends-on, Makefile.am): Likewise.
27206         * modules/spawn (Depends-on, Makefile.am): Likewise.
27207         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27208         * modules/string (Depends-on, Makefile.am): Likewise.
27209         * modules/strings (Depends-on, Makefile.am): Likewise.
27210         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27211         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27212         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27213         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27214         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27215         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27216         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27217         * modules/wchar (Depends-on, Makefile.am): Likewise.
27218         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27219         should be poisoned.
27220         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27221         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27222         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27223         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27224         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27225         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27226         * m4/math_h.m4 (gl_MATH_H): Likewise.
27227         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27228         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27229         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27230         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27231         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27232         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27233         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27234         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27235         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27237         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27239         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27240         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27241         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27242         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27243         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27244         GL_LINK_WARNING.
27245         * lib/ctype.in.h: Likewise.
27246         * lib/dirent.in.h: Likewise.
27247         * lib/fcntl.in.h: Likewise.
27248         * lib/inttypes.in.h: Likewise.
27249         * lib/langinfo.in.h: Likewise.
27250         * lib/locale.in.h: Likewise.
27251         * lib/math.in.h: Likewise.
27252         * lib/search.in.h: Likewise.
27253         * lib/signal.in.h: Likewise.
27254         * lib/spawn.in.h: Likewise.
27255         * lib/stdio.in.h: Likewise.
27256         * lib/stdlib.in.h: Likewise.
27257         * lib/string.in.h: Likewise.
27258         * lib/strings.in.h: Likewise.
27259         * lib/sys_file.in.h: Likewise.
27260         * lib/sys_ioctl.in.h: Likewise.
27261         * lib/sys_select.in.h: Likewise.
27262         * lib/sys_socket.in.h: Likewise.
27263         * lib/sys_stat.in.h: Likewise.
27264         * lib/sys_times.in.h: Likewise.
27265         * lib/sys_utsname.in.h: Likewise.
27266         * lib/unistd.in.h: Likewise.
27267         * lib/wchar.in.h: Likewise.
27268
27269 2010-01-20  Bruno Haible  <bruno@clisp.org>
27270
27271         Avoid duplicate -lm.
27272         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27273         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27275         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27276         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27277         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27278         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27279         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27280         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27281         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27282         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27283         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27284         Reported by Paolo Bonzini.
27285
27286 2010-01-19  Bruno Haible  <bruno@clisp.org>
27287
27288         langinfo, nl_langinfo: Relicense under LGPLv2+.
27289         * modules/langinfo (License): Change to LGPLv2+.
27290         * modules/nl_langinfo (License): Likewise.
27291         Patch by David Lutterkort <lutter@redhat.com>.
27292
27293 2010-01-19  Bruno Haible  <bruno@clisp.org>
27294
27295         Avoid compilation error with cc on OSF/1 5.1.
27296         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27297         statement, not before.
27298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27299
27300 2010-01-18  Bruno Haible  <bruno@clisp.org>
27301
27302         Avoid a link error due to the __printf__ symbol.
27303         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27304         and 2.6.x.
27305         (__format__, __printf__): Remove definitions.
27306         * lib/argp-fmtstream.h: Likewise.
27307         * lib/argp.h: Likewise.
27308         * lib/error.h: Likewise.
27309         * lib/vasnprintf.h: Likewise.
27310         * lib/xprintf.h: Likewise.
27311         * lib/xvasprintf.h: Likewise.
27312         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27313
27314 2010-01-18  Bruno Haible  <bruno@clisp.org>
27315
27316         Tests for module 'tanl'.
27317         * modules/tanl-tests: New file.
27318         * tests/test-tanl.c: New file.
27319
27320         Tests for module 'sqrtl'.
27321         * modules/sqrtl-tests: New file.
27322         * tests/test-sqrtl.c: New file.
27323
27324         Tests for module 'sinl'.
27325         * modules/sinl-tests: New file.
27326         * tests/test-sinl.c: New file.
27327
27328         Tests for module 'logl'.
27329         * modules/logl-tests: New file.
27330         * tests/test-logl.c: New file.
27331
27332         Tests for module 'expl'.
27333         * modules/expl-tests: New file.
27334         * tests/test-expl.c: New file.
27335
27336         Tests for module 'cosl'.
27337         * modules/cosl-tests: New file.
27338         * tests/test-cosl.c: New file.
27339
27340         Tests for module 'atanl'.
27341         * modules/atanl-tests: New file.
27342         * tests/test-atanl.c: New file.
27343
27344         Tests for module 'asinl'.
27345         * modules/asinl-tests: New file.
27346         * tests/test-asinl.c: New file.
27347
27348         Tests for module 'acosl'.
27349         * modules/acosl-tests: New file.
27350         * tests/test-acosl.c: New file.
27351
27352         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27353         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27354         tanl): Use the standard gnulib idiom.
27355         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27356         * lib/sinl.c: Likewise.
27357         * lib/tanl.c: Don't include trigl.c.
27358         (kernel_tanl): Make static.
27359         * lib/sincosl.c: Include trigl.h first.
27360         * lib/trigl.c: Likewise.
27361         * m4/acosl.m4: New file.
27362         * m4/asinl.m4: New file.
27363         * m4/atanl.m4: New file.
27364         * m4/cosl.m4: New file.
27365         * m4/expl.m4: New file.
27366         * m4/logl.m4: New file.
27367         * m4/sinl.m4: New file.
27368         * m4/sqrtl.m4: New file.
27369         * m4/tanl.m4: New file.
27370         * m4/mathl.m4: Remove file.
27371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27372         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27373         Don't initialize GNULIB_MATHL.
27374         * modules/acosl: New file.
27375         * modules/asinl: New file.
27376         * modules/atanl: New file.
27377         * modules/cosl: New file.
27378         * modules/expl: New file.
27379         * modules/logl: New file.
27380         * modules/sinl: New file.
27381         * modules/sqrtl: New file.
27382         * modules/tanl: New file.
27383         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27384         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27385         substitute GNULIB_MATHL.
27386         * modules/mathl: Rewritten.
27387         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27388         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27389         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27390         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27391         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27392         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27393         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27394         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27395         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27396
27397 2010-01-18  Bruno Haible  <bruno@clisp.org>
27398
27399         sqrt: Make gl_FUNC_SQRT requirable.
27400         * m4/sqrt.m4: New file.
27401         * modules/sqrt (Files): Add it.
27402         (configure.ac): Invoke gl_FUNC_SQRT.
27403
27404 2010-01-18  Bruno Haible  <bruno@clisp.org>
27405
27406         New modules for common <math.h> functions.
27407         * m4/mathfunc.m4: New file.
27408         * modules/acos: New file.
27409         * modules/asin: New file.
27410         * modules/atan: New file.
27411         * modules/atan2: New file.
27412         * modules/cbrt: New file.
27413         * modules/copysign: New file.
27414         * modules/cos: New file.
27415         * modules/cosh: New file.
27416         * modules/erf: New file.
27417         * modules/erfc: New file.
27418         * modules/exp: New file.
27419         * modules/fabs: New file.
27420         * modules/fmod: New file.
27421         * modules/hypot: New file.
27422         * modules/j0: New file.
27423         * modules/j1: New file.
27424         * modules/jn: New file.
27425         * modules/ldexp: New file.
27426         * modules/lgamma: New file.
27427         * modules/log: New file.
27428         * modules/log10: New file.
27429         * modules/log1p: New file.
27430         * modules/logb: New file.
27431         * modules/modf: New file.
27432         * modules/nextafter: New file.
27433         * modules/pow: New file.
27434         * modules/remainder: New file.
27435         * modules/rint: New file.
27436         * modules/sin: New file.
27437         * modules/sinh: New file.
27438         * modules/sqrt: New file.
27439         * modules/tan: New file.
27440         * modules/tanh: New file.
27441         * modules/y0: New file.
27442         * modules/y1: New file.
27443         * modules/yn: New file.
27444         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27445         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27446         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27447         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27448         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27449         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27450         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27451         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27452         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27453         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27454         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27455         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27456         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27457         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27458         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27459         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27460         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27461         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27462         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27463         * doc/posix-functions/log.texi: Mention the 'log' module.
27464         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27465         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27466         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27467         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27468         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27469         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27470         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27471         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27472         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27473         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27474         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27475         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27476         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27477         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27478         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27479         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27480
27481 2010-01-18  Jim Meyering  <meyering@redhat.com>
27482
27483         ignore-value: relax license to LGPLv2+
27484         * modules/ignore-value (License): Relax to LGPLv2+.
27485
27486         getdate: don't leak when TZ contains two or more '"'s
27487         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27488         double quote in TZ after the first one.
27489
27490         readtokens: do not leak internal token_lengths buffer
27491         * lib/readtokens.c (readtokens): Free the local, lengths,
27492         when the supplied "token_lengths" parameter is NULL.
27493
27494 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27495
27496         Fix a couple of missing LIBTHREAD link failures on AIX.
27497         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27498         $(LIBTHREAD).
27499         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27500
27501         Link test-poll against INET_PTON_LIB.
27502         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27503         for inet_pton on Solaris 10.
27504
27505 2010-01-17  Bruno Haible  <bruno@clisp.org>
27506
27507         unistdio/*-sprintf: Fix typo in module description.
27508         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27509         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27510         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27511         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27512         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27513         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27514         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27516
27517 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27518
27519         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27520         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27521         variables in shell case patterns, for AIX and HP-UX ksh.
27522
27523         Split large sed scripts, for HP-UX sed.
27524         * modules/stdio: Split sed scripts around 50 sed commands,
27525         to avoid HP-UX limit of 99 commands, in the near future.
27526         * modules/string: Likewise.
27527         * modules/unistd: Likewise.
27528
27529         gnulib-tool: avoid writing in the current directory.
27530         * gnulib-tool (func_emit_lib_Makefile_am)
27531         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27532         not in the current directory, so concurrent gnulib-tool
27533         instances do not interfere.
27534
27535 2010-01-16  Jim Meyering  <meyering@redhat.com>
27536
27537         doc: update users.txt
27538         * users.txt: Add grep.
27539         (diffutils, gzip): Update URLs.
27540
27541 2010-01-12  Bruno Haible  <bruno@clisp.org>
27542
27543         posix_spawn: Avoid test failure on Cygwin.
27544         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27545         characters.
27546         Reported by Simon Josefsson.
27547
27548 2010-01-12  Bruno Haible  <bruno@clisp.org>
27549
27550         * tests/test-cond.c (main): When skipping the test, show the reason.
27551
27552 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27553
27554         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27555
27556 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27557
27558         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27559         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27560
27561 2010-01-12  Eric Blake  <ebb9@byu.net>
27562
27563         build: guarantee AS_VAR_IF
27564         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27565         (gl_AS_VAR_IF): Move...
27566         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27567         Reported by Simon Josefsson.
27568
27569 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27570
27571         * lib/stdio.in.h: Fix typo.
27572
27573 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27574
27575         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27576         libgpg-error.
27577
27578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27579
27580         * tests/test-xalloc-die.sh: Use $EXEEXT.
27581
27582 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27583             Bruno Haible  <bruno@clisp.org>
27584
27585         getlogin, getlogin_r: Avoid test failure.
27586         * tests/test-getlogin.c: Include <stdio.h>.
27587         (main): Skip the test when the function fails because stdin is not a
27588         tty.
27589         * tests/test-getlogin_r.c: Include <stdio.h>.
27590         (main): Skip the test when the function fails because stdin is not a
27591         tty.
27592
27593 2010-01-11  Eric Blake  <ebb9@byu.net>
27594
27595         tests: avoid more large file warnings
27596         * tests/test-fflush.c: Avoid warning about ftell use.
27597         * tests/test-fseek.c: Avoid warning about fseek use.
27598
27599 2010-01-10  Bruno Haible  <bruno@clisp.org>
27600
27601         nproc: Work better on Linux when /proc and /sys are not mounted.
27602         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27603         as lower bound when, on glibc/Linux systems,
27604         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27605         Suggested by Pádraig Brady <P@draigbrady.com>.
27606         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27607
27608         nproc: Refactor.
27609         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27610         extracted from num_processors.
27611         (num_processors): Call it.
27612
27613 2010-01-11  Jim Meyering  <meyering@redhat.com>
27614
27615         utimecmp: avoid new warning from upcoming gcc-4.5.0
27616         * lib/utimecmp.c (BILLION): Define using #define rather than an
27617         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27618
27619 2010-01-11  Eric Blake  <ebb9@byu.net>
27620
27621         math: add portability warnings for classification macros
27622         * modules/math (Depends-on): Add warn-on-use.
27623         (Makefile.am): Provide new substitutions.
27624         * m4/math_h.m4 (gl_MATH_H): Require inline.
27625         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27626         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27627         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27628         implement warnings.
27629
27630         unistd: warn on use of environ without module
27631         * modules/unistd (Depends-on): Add warn-on-use.
27632         (Makefile.am): Provide new substitutions.
27633         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27634         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27635
27636         stdio: warn on suspicious uses
27637         * modules/stdio (Depends-on): Add warn-on-use.
27638         (Makefile.am): Provide new substitutions.
27639         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27640         fseeko.
27641         * lib/stdio.in.h (gets): Always warn on use.
27642         (fseek, ftell): Adjust when warnings are issued, and honor
27643         _GL_NO_LARGE_FILES as a way to silence the warning.
27644         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27645         any warning about large file offsets.
27646         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27647         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27648         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27649         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27650         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27651         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27652         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27653         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27654
27655         warn-on-use: new module
27656         * modules/warn-on-use: New file.
27657         * build-aux/warn-on-use.h: Likewise.
27658         * m4/warn-on-use.m4: Likewise.
27659         * MODULES.html.sh (Support for building): Mention it.
27660
27661 2010-01-10  Bruno Haible  <bruno@clisp.org>
27662
27663         Tests for module 'unistr/u32-strdup'.
27664         * modules/unistr/u32-strdup-tests: New file.
27665         * tests/unistr/test-u32-strdup.c: New file.
27666
27667         Tests for module 'unistr/u16-strdup'.
27668         * modules/unistr/u16-strdup-tests: New file.
27669         * tests/unistr/test-u16-strdup.c: New file.
27670
27671         Tests for module 'unistr/u8-strdup'.
27672         * modules/unistr/u8-strdup-tests: New file.
27673         * tests/unistr/test-u8-strdup.c: New file.
27674         * tests/unistr/test-strdup.h: New file.
27675
27676         Tests for module 'unistr/u32-strncmp'.
27677         * modules/unistr/u32-strncmp-tests: New file.
27678         * tests/unistr/test-u32-strncmp.c: New file.
27679
27680         Tests for module 'unistr/u16-strncmp'.
27681         * modules/unistr/u16-strncmp-tests: New file.
27682         * tests/unistr/test-u16-strncmp.c: New file.
27683
27684         Tests for module 'unistr/u8-strncmp'.
27685         * modules/unistr/u8-strncmp-tests: New file.
27686         * tests/unistr/test-u8-strncmp.c: New file.
27687         * tests/unistr/test-strncmp.h: New file.
27688
27689         Tests for module 'unistr/u32-strcoll'.
27690         * modules/unistr/u32-strcoll-tests: New file.
27691         * tests/unistr/test-u32-strcoll.c: New file.
27692
27693         Tests for module 'unistr/u16-strcoll'.
27694         * modules/unistr/u16-strcoll-tests: New file.
27695         * tests/unistr/test-u16-strcoll.c: New file.
27696
27697         Tests for module 'unistr/u8-strcoll'.
27698         * modules/unistr/u8-strcoll-tests: New file.
27699         * tests/unistr/test-u8-strcoll.c: New file.
27700
27701         Tests for module 'unistr/u32-strcmp'.
27702         * modules/unistr/u32-strcmp-tests: New file.
27703         * tests/unistr/test-u32-strcmp.c: New file.
27704         * tests/unistr/test-u32-strcmp.h: New file.
27705
27706         Tests for module 'unistr/u16-strcmp'.
27707         * modules/unistr/u16-strcmp-tests: New file.
27708         * tests/unistr/test-u16-strcmp.c: New file.
27709         * tests/unistr/test-u16-strcmp.h: New file.
27710
27711         Tests for module 'unistr/u8-strcmp'.
27712         * modules/unistr/u8-strcmp-tests: New file.
27713         * tests/unistr/test-u8-strcmp.c: New file.
27714         * tests/unistr/test-u8-strcmp.h: New file.
27715         * tests/unistr/test-strcmp.h: New file.
27716
27717         Tests for module 'unistr/u32-strncat'.
27718         * modules/unistr/u32-strncat-tests: New file.
27719         * tests/unistr/test-u32-strncat.c: New file.
27720
27721         Tests for module 'unistr/u16-strncat'.
27722         * modules/unistr/u16-strncat-tests: New file.
27723         * tests/unistr/test-u16-strncat.c: New file.
27724
27725         Tests for module 'unistr/u8-strncat'.
27726         * modules/unistr/u8-strncat-tests: New file.
27727         * tests/unistr/test-u8-strncat.c: New file.
27728         * tests/unistr/test-strncat.h: New file.
27729
27730         Tests for module 'unistr/u32-strcat'.
27731         * modules/unistr/u32-strcat-tests: New file.
27732         * tests/unistr/test-u32-strcat.c: New file.
27733
27734         Tests for module 'unistr/u16-strcat'.
27735         * modules/unistr/u16-strcat-tests: New file.
27736         * tests/unistr/test-u16-strcat.c: New file.
27737
27738         Tests for module 'unistr/u8-strcat'.
27739         * modules/unistr/u8-strcat-tests: New file.
27740         * tests/unistr/test-u8-strcat.c: New file.
27741         * tests/unistr/test-strcat.h: New file.
27742
27743         Tests for module 'unistr/u32-stpncpy'.
27744         * modules/unistr/u32-stpncpy-tests: New file.
27745         * tests/unistr/test-u32-stpncpy.c: New file.
27746
27747         Tests for module 'unistr/u16-stpncpy'.
27748         * modules/unistr/u16-stpncpy-tests: New file.
27749         * tests/unistr/test-u16-stpncpy.c: New file.
27750
27751         Tests for module 'unistr/u8-stpncpy'.
27752         * modules/unistr/u8-stpncpy-tests: New file.
27753         * tests/unistr/test-u8-stpncpy.c: New file.
27754         * tests/unistr/test-stpncpy.h: New file.
27755
27756         Tests for module 'unistr/u32-strncpy'.
27757         * modules/unistr/u32-strncpy-tests: New file.
27758         * tests/unistr/test-u32-strncpy.c: New file.
27759
27760         Tests for module 'unistr/u16-strncpy'.
27761         * modules/unistr/u16-strncpy-tests: New file.
27762         * tests/unistr/test-u16-strncpy.c: New file.
27763
27764         Tests for module 'unistr/u8-strncpy'.
27765         * modules/unistr/u8-strncpy-tests: New file.
27766         * tests/unistr/test-u8-strncpy.c: New file.
27767         * tests/unistr/test-strncpy.h: New file.
27768
27769         Tests for module 'unistr/u32-stpcpy'.
27770         * modules/unistr/u32-stpcpy-tests: New file.
27771         * tests/unistr/test-u32-stpcpy.c: New file.
27772
27773         Tests for module 'unistr/u16-stpcpy'.
27774         * modules/unistr/u16-stpcpy-tests: New file.
27775         * tests/unistr/test-u16-stpcpy.c: New file.
27776
27777         Tests for module 'unistr/u8-stpcpy'.
27778         * modules/unistr/u8-stpcpy-tests: New file.
27779         * tests/unistr/test-u8-stpcpy.c: New file.
27780         * tests/unistr/test-stpcpy.h: New file.
27781
27782         Tests for module 'unistr/u32-strcpy'.
27783         * modules/unistr/u32-strcpy-tests: New file.
27784         * tests/unistr/test-u32-strcpy.c: New file.
27785
27786         Tests for module 'unistr/u16-strcpy'.
27787         * modules/unistr/u16-strcpy-tests: New file.
27788         * tests/unistr/test-u16-strcpy.c: New file.
27789
27790         Tests for module 'unistr/u8-strcpy'.
27791         * modules/unistr/u8-strcpy-tests: New file.
27792         * tests/unistr/test-u8-strcpy.c: New file.
27793         * tests/unistr/test-strcpy.h: New file.
27794
27795         Tests for module 'unistr/u32-strnlen'.
27796         * modules/unistr/u32-strnlen-tests: New file.
27797         * tests/unistr/test-u32-strnlen.c: New file.
27798
27799         Tests for module 'unistr/u16-strnlen'.
27800         * modules/unistr/u16-strnlen-tests: New file.
27801         * tests/unistr/test-u16-strnlen.c: New file.
27802
27803         Tests for module 'unistr/u8-strnlen'.
27804         * modules/unistr/u8-strnlen-tests: New file.
27805         * tests/unistr/test-u8-strnlen.c: New file.
27806         * tests/unistr/test-strnlen.h: New file.
27807
27808         Tests for module 'unistr/u32-strlen'.
27809         * modules/unistr/u32-strlen-tests: New file.
27810         * tests/unistr/test-u32-strlen.c: New file.
27811
27812         Tests for module 'unistr/u16-strlen'.
27813         * modules/unistr/u16-strlen-tests: New file.
27814         * tests/unistr/test-u16-strlen.c: New file.
27815
27816         Tests for module 'unistr/u8-strlen'.
27817         * modules/unistr/u8-strlen-tests: New file.
27818         * tests/unistr/test-u8-strlen.c: New file.
27819
27820         Tests for module 'unistr/u32-prev'.
27821         * modules/unistr/u32-prev-tests: New file.
27822         * tests/unistr/test-u32-prev.c: New file.
27823
27824         Tests for module 'unistr/u16-prev'.
27825         * modules/unistr/u16-prev-tests: New file.
27826         * tests/unistr/test-u16-prev.c: New file.
27827
27828         Tests for module 'unistr/u8-prev'.
27829         * modules/unistr/u8-prev-tests: New file.
27830         * tests/unistr/test-u8-prev.c: New file.
27831
27832         Tests for module 'unistr/u32-next'.
27833         * modules/unistr/u32-next-tests: New file.
27834         * tests/unistr/test-u32-next.c: New file.
27835
27836         Tests for module 'unistr/u16-next'.
27837         * modules/unistr/u16-next-tests: New file.
27838         * tests/unistr/test-u16-next.c: New file.
27839
27840         Tests for module 'unistr/u8-next'.
27841         * modules/unistr/u8-next-tests: New file.
27842         * tests/unistr/test-u8-next.c: New file.
27843
27844         Tests for module 'unistr/u32-strmbtouc'.
27845         * modules/unistr/u32-strmbtouc-tests: New file.
27846         * tests/unistr/test-u32-strmbtouc.c: New file.
27847
27848         Tests for module 'unistr/u16-strmbtouc'.
27849         * modules/unistr/u16-strmbtouc-tests: New file.
27850         * tests/unistr/test-u16-strmbtouc.c: New file.
27851
27852         Tests for module 'unistr/u8-strmbtouc'.
27853         * modules/unistr/u8-strmbtouc-tests: New file.
27854         * tests/unistr/test-u8-strmbtouc.c: New file.
27855
27856         Tests for module 'unistr/u32-strmblen'.
27857         * modules/unistr/u32-strmblen-tests: New file.
27858         * tests/unistr/test-u32-strmblen.c: New file.
27859
27860         Tests for module 'unistr/u16-strmblen'.
27861         * modules/unistr/u16-strmblen-tests: New file.
27862         * tests/unistr/test-u16-strmblen.c: New file.
27863
27864         Tests for module 'unistr/u8-strmblen'.
27865         * modules/unistr/u8-strmblen-tests: New file.
27866         * tests/unistr/test-u8-strmblen.c: New file.
27867
27868         Tests for module 'unistr/u32-cpy-alloc'.
27869         * modules/unistr/u32-cpy-alloc-tests: New file.
27870         * tests/unistr/test-u32-cpy-alloc.c: New file.
27871
27872         Tests for module 'unistr/u16-cpy-alloc'.
27873         * modules/unistr/u16-cpy-alloc-tests: New file.
27874         * tests/unistr/test-u16-cpy-alloc.c: New file.
27875
27876         Tests for module 'unistr/u8-cpy-alloc'.
27877         * modules/unistr/u8-cpy-alloc-tests: New file.
27878         * tests/unistr/test-u8-cpy-alloc.c: New file.
27879         * tests/unistr/test-cpy-alloc.h: New file.
27880
27881         Tests for module 'unistr/u32-mbsnlen'.
27882         * modules/unistr/u32-mbsnlen-tests: New file.
27883         * tests/unistr/test-u32-mbsnlen.c: New file.
27884
27885         Tests for module 'unistr/u16-mbsnlen'.
27886         * modules/unistr/u16-mbsnlen-tests: New file.
27887         * tests/unistr/test-u16-mbsnlen.c: New file.
27888
27889         Tests for module 'unistr/u8-mbsnlen'.
27890         * modules/unistr/u8-mbsnlen-tests: New file.
27891         * tests/unistr/test-u8-mbsnlen.c: New file.
27892
27893         Tests for module 'unistr/u32-chr'.
27894         * modules/unistr/u32-chr-tests: New file.
27895         * tests/unistr/test-u32-chr.c: New file.
27896
27897         Tests for module 'unistr/u16-chr'.
27898         * modules/unistr/u16-chr-tests: New file.
27899         * tests/unistr/test-u16-chr.c: New file.
27900
27901         Tests for module 'unistr/u8-chr'.
27902         * modules/unistr/u8-chr-tests: New file.
27903         * tests/unistr/test-u8-chr.c: New file.
27904         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27905
27906         Tests for module 'unistr/u32-cmp2'.
27907         * modules/unistr/u32-cmp2-tests: New file.
27908         * tests/unistr/test-u32-cmp2.c: New file.
27909
27910         Tests for module 'unistr/u16-cmp2'.
27911         * modules/unistr/u16-cmp2-tests: New file.
27912         * tests/unistr/test-u16-cmp2.c: New file.
27913
27914         Tests for module 'unistr/u8-cmp2'.
27915         * modules/unistr/u8-cmp2-tests: New file.
27916         * tests/unistr/test-u8-cmp2.c: New file.
27917         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27918
27919         Tests for module 'unistr/u32-cmp'.
27920         * modules/unistr/u32-cmp-tests: New file.
27921         * tests/unistr/test-u32-cmp.c: New file.
27922
27923         Tests for module 'unistr/u16-cmp'.
27924         * modules/unistr/u16-cmp-tests: New file.
27925         * tests/unistr/test-u16-cmp.c: New file.
27926
27927         Tests for module 'unistr/u8-cmp'.
27928         * modules/unistr/u8-cmp-tests: New file.
27929         * tests/unistr/test-u8-cmp.c: New file.
27930         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27931
27932         Tests for module 'unistr/u32-set'.
27933         * modules/unistr/u32-set-tests: New file.
27934         * tests/unistr/test-u32-set.c: New file.
27935
27936         Tests for module 'unistr/u16-set'.
27937         * modules/unistr/u16-set-tests: New file.
27938         * tests/unistr/test-u16-set.c: New file.
27939
27940         Tests for module 'unistr/u8-set'.
27941         * modules/unistr/u8-set-tests: New file.
27942         * tests/unistr/test-u8-set.c: New file.
27943         * tests/unistr/test-set.h: New file.
27944
27945         Tests for module 'unistr/u32-move'.
27946         * modules/unistr/u32-move-tests: New file.
27947         * tests/unistr/test-u32-move.c: New file.
27948
27949         Tests for module 'unistr/u16-move'.
27950         * modules/unistr/u16-move-tests: New file.
27951         * tests/unistr/test-u16-move.c: New file.
27952
27953         Tests for module 'unistr/u8-move'.
27954         * modules/unistr/u8-move-tests: New file.
27955         * tests/unistr/test-u8-move.c: New file.
27956         * tests/unistr/test-move.h: New file.
27957
27958         Tests for module 'unistr/u32-cpy'.
27959         * modules/unistr/u32-cpy-tests: New file.
27960         * tests/unistr/test-u32-cpy.c: New file.
27961
27962         Tests for module 'unistr/u16-cpy'.
27963         * modules/unistr/u16-cpy-tests: New file.
27964         * tests/unistr/test-u16-cpy.c: New file.
27965
27966         Tests for module 'unistr/u8-cpy'.
27967         * modules/unistr/u8-cpy-tests: New file.
27968         * tests/unistr/test-u8-cpy.c: New file.
27969         * tests/unistr/test-cpy.h: New file.
27970
27971 2010-01-09  Bruno Haible  <bruno@clisp.org>
27972
27973         Tests for module 'unistr/u32-uctomb'.
27974         * modules/unistr/u32-uctomb-tests: New file.
27975         * tests/unistr/test-u32-uctomb.c: New file.
27976
27977         Tests for module 'unistr/u16-uctomb'.
27978         * modules/unistr/u16-uctomb-tests: New file.
27979         * tests/unistr/test-u16-uctomb.c: New file.
27980
27981         Tests for module 'unistr/u8-uctomb'.
27982         * modules/unistr/u8-uctomb-tests: New file.
27983         * tests/unistr/test-u8-uctomb.c: New file.
27984
27985         Tests for module 'unistr/u32-mbtoucr'.
27986         * modules/unistr/u32-mbtoucr-tests: New file.
27987         * tests/unistr/test-u32-mbtoucr.c: New file.
27988
27989         Tests for module 'unistr/u16-mbtoucr'.
27990         * modules/unistr/u16-mbtoucr-tests: New file.
27991         * tests/unistr/test-u16-mbtoucr.c: New file.
27992
27993         Tests for module 'unistr/u8-mbtoucr'.
27994         * modules/unistr/u8-mbtoucr-tests: New file.
27995         * tests/unistr/test-u8-mbtoucr.c: New file.
27996
27997         Tests for module 'unistr/u32-mbtouc'.
27998         * modules/unistr/u32-mbtouc-tests: New file.
27999         * tests/unistr/test-u32-mbtouc.c: New file.
28000
28001         Tests for module 'unistr/u16-mbtouc'.
28002         * modules/unistr/u16-mbtouc-tests: New file.
28003         * tests/unistr/test-u16-mbtouc.c: New file.
28004
28005         Tests for module 'unistr/u8-mbtouc'.
28006         * modules/unistr/u8-mbtouc-tests: New file.
28007         * tests/unistr/test-u8-mbtouc.c: New file.
28008
28009         Tests for module 'unistr/u32-mbtouc-unsafe'.
28010         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28011         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28012         * tests/unistr/test-u32-mbtouc.h: New file.
28013
28014         Tests for module 'unistr/u16-mbtouc-unsafe'.
28015         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28016         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28017         * tests/unistr/test-u16-mbtouc.h: New file.
28018
28019         Tests for module 'unistr/u8-mbtouc-unsafe'.
28020         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28021         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28022         * tests/unistr/test-u8-mbtouc.h: New file.
28023
28024         Tests for module 'unistr/u32-mblen'.
28025         * modules/unistr/u32-mblen-tests: New file.
28026         * tests/unistr/test-u32-mblen.c: New file.
28027
28028         Tests for module 'unistr/u16-mblen'.
28029         * modules/unistr/u16-mblen-tests: New file.
28030         * tests/unistr/test-u16-mblen.c: New file.
28031
28032         Tests for module 'unistr/u8-mblen'.
28033         * modules/unistr/u8-mblen-tests: New file.
28034         * tests/unistr/test-u8-mblen.c: New file.
28035
28036         Tests for module 'unistr/u32-to-u16'.
28037         * modules/unistr/u32-to-u16-tests: New file.
28038         * tests/unistr/test-u32-to-u16.c: New file.
28039
28040         Tests for module 'unistr/u32-to-u8'.
28041         * modules/unistr/u32-to-u8-tests: New file.
28042         * tests/unistr/test-u32-to-u8.c: New file.
28043
28044         Tests for module 'unistr/u16-to-u32'.
28045         * modules/unistr/u16-to-u32-tests: New file.
28046         * tests/unistr/test-u16-to-u32.c: New file.
28047
28048         Tests for module 'unistr/u16-to-u8'.
28049         * modules/unistr/u16-to-u8-tests: New file.
28050         * tests/unistr/test-u16-to-u8.c: New file.
28051
28052         Tests for module 'unistr/u8-to-u32'.
28053         * modules/unistr/u8-to-u32-tests: New file.
28054         * tests/unistr/test-u8-to-u32.c: New file.
28055
28056         Tests for module 'unistr/u8-to-u16'.
28057         * modules/unistr/u8-to-u16-tests: New file.
28058         * tests/unistr/test-u8-to-u16.c: New file.
28059
28060         Tests for module 'unistr/u32-check'.
28061         * modules/unistr/u32-check-tests: New file.
28062         * tests/unistr/test-u32-check.c: New file.
28063
28064         Tests for module 'unistr/u16-check'.
28065         * modules/unistr/u16-check-tests: New file.
28066         * tests/unistr/test-u16-check.c: New file.
28067
28068         Tests for module 'unistr/u8-check'.
28069         * modules/unistr/u8-check-tests: New file.
28070         * tests/unistr/test-u8-check.c: New file.
28071
28072         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28073         (category_equals): New function.
28074         (main): Add more tests.
28075         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28076
28077         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28078
28079 2010-01-10  Bruno Haible  <bruno@clisp.org>
28080
28081         unistr/u*-strcoll: Try harder to distinguish different strings.
28082         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28083         compare s1 and s2 to see if they are different.
28084
28085 2010-01-10  Bruno Haible  <bruno@clisp.org>
28086
28087         unistr/u*-stpncpy: Fix the return value.
28088         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28089         description of the return value consistent with stpncpy in glibc.
28090         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28091         written non-NUL unit.
28092
28093 2010-01-10  Bruno Haible  <bruno@clisp.org>
28094
28095         unistr/u*-next: Add missing dependencies.
28096         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28097         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28098         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28099
28100 2010-01-10  Bruno Haible  <bruno@clisp.org>
28101
28102         unistr/u8-mbsnlen: Fix return value for incomplete character.
28103         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28104         u8_mblen.
28105         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28106         Remove unistr/u8-mblen.
28107         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28108         u16_mblen.
28109         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28110         Remove unistr/u16-mblen.
28111
28112 2010-01-10  Bruno Haible  <bruno@clisp.org>
28113
28114         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28115         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28116         Reported by Brian Gough <bjg@gnu.org> and
28117         Chris Clayton <chris2553@googlemail.com> via
28118         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28119
28120 2010-01-09  Bruno Haible  <bruno@clisp.org>
28121
28122         unistr/u16-to-u32: Reject invalid input.
28123         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28124         u16_mbtouc.
28125         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28126         Remove unistr/u16-mbtouc.
28127
28128         unistr/u16-to-u8: Reject invalid input.
28129         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28130         u16_mbtouc.
28131         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28132         Remove unistr/u16-mbtouc.
28133
28134         unistr/u8-to-u32: Reject invalid input.
28135         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28136         u8_mbtouc.
28137         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28138         Remove unistr/u8-mbtouc.
28139
28140         unistr/u8-to-u16: Reject invalid input.
28141         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28142         u8_mbtouc.
28143         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28144         Remove unistr/u8-mbtouc.
28145
28146 2010-01-09  Bruno Haible  <bruno@clisp.org>
28147
28148         Tests for module 'getlogin'.
28149         * modules/getlogin-tests: New file.
28150         * tests/test-getlogin.c: New file.
28151
28152         New module 'getlogin'.
28153         * lib/unistd.in.h (getlogin): New declaration.
28154         * lib/getlogin.c: New file.
28155         * m4/getlogin.m4: New file.
28156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28157         HAVE_GETLOGIN.
28158         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28159         HAVE_GETLOGIN.
28160         * modules/getlogin: New file.
28161         * doc/posix-functions/getlogin.texi: Mention the new module.
28162         Reported by John W. Eaton <jwe@gnu.org>.
28163
28164 2010-01-09  Bruno Haible  <bruno@clisp.org>
28165
28166         getlogin_r: Support for native Windows.
28167         * lib/getlogin_r.c: Include <windows.h>
28168         (getlogin_r): Implement for native Windows.
28169         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28170         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28171         via John W. Eaton <jwe@gnu.org>.
28172
28173 2010-01-09  Bruno Haible  <bruno@clisp.org>
28174
28175         getlogin_r: Small fixes.
28176         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28177         succeeds.
28178         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28179         before testing whether getlogin_r is declared. No need to set
28180         HAVE_DECL_GETLOGIN_R to 1.
28181         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28182
28183 2010-01-09  Bruno Haible  <bruno@clisp.org>
28184
28185         * lib/unistd.in.h (getlogin_r): Add comment.
28186
28187 2010-01-09  Bruno Haible  <bruno@clisp.org>
28188
28189         Tests for module 'getlogin_r'.
28190         * modules/getlogin_r-tests: New file.
28191         * tests/test-getlogin_r.c: New file.
28192
28193 2010-01-09  Jim Meyering  <meyering@redhat.com>
28194
28195         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28196         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28197         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28198
28199 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28200
28201         * lib/dup2.c (rpl_dup2): Improve comment.
28202
28203 2010-01-08  Eric Blake  <ebb9@byu.net>
28204
28205         maint.mk: allow packages to add makefile @@ exceptions
28206         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28207         (sc_makefile_check): Rename...
28208         (sc_makefile_at_at_check): ...to this, and use hook.
28209
28210         dup2: work around mingw bug
28211         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28212         Reported by Simon Josefsson.
28213
28214 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28215
28216         glob: Fix C++ compilation.
28217         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28218         C++.
28219
28220 2010-01-07  Bruno Haible  <bruno@clisp.org>
28221
28222         Fix indentation of wctype.in.h, broken since 2007-01-06.
28223         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28224
28225 2010-01-07  Bruno Haible  <bruno@clisp.org>
28226
28227         mbslen: Avoid collision with system function.
28228         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28229         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28230         * m4/mbslen.m4: New file.
28231         * modules/mbslen (Files): Add it.
28232         (configure.ac): Invoke gl_MBSLEN.
28233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28234         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28235         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28236         via Ian Beckwith <ianb@erislabs.net>.
28237
28238 2010-01-07  Bruno Haible  <bruno@clisp.org>
28239
28240         dirent: Document the last fix.
28241         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28242
28243 2010-01-07  Bruno Haible  <bruno@clisp.org>
28244
28245         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28246         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28247         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28248         va_list are defined.
28249         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28250         Reported by Eric Blake.
28251
28252 2010-01-07  Bruno Haible  <bruno@clisp.org>
28253
28254         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28255         * modules/xlist (Depends-on): Add 'list',
28256         * modules/xoset (Depends-on): Add 'oset'.
28257         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28258
28259 2010-01-07  Bruno Haible  <bruno@clisp.org>
28260
28261         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28262         * doc/posix-functions/strncasecmp.texi: Likewise.
28263
28264 2010-01-07  Bruno Haible  <bruno@clisp.org>
28265
28266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28267
28268 2010-01-07  John W. Eaton  <jwe@octave.org>
28269
28270         wctype: allow C++ use
28271         * lib/wctype.in.h: Add extern "C" block for C++.
28272
28273 2010-01-06  Eric Blake  <ebb9@byu.net>
28274
28275         maint.mk: detect incorrect GFDL usage
28276         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28277
28278 2010-01-06  Jim Meyering  <meyering@redhat.com>
28279         and Eric Blake  <ebb9@byu.net>
28280
28281         maint.mk: ignore multi-line copyright in NEWS
28282         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28283
28284 2010-01-06  Eric Blake  <ebb9@byu.net>
28285
28286         select: add missing dependency
28287         * modules/select-tests (Depends-on): Move sockets dependency...
28288         * modules/select (Depends-on): ...here.
28289         Reported by Ian Beckwith.
28290
28291         doc: regenerate INSTALL
28292         * doc/INSTALL: Reflect recent autoconf update.
28293         * doc/INSTALL.ISO: Likewise.
28294         * doc/INSTALL.UTF-8: Likewise.
28295
28296         pread: fix compilation on glibc
28297         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28298         Reported by Ralf Wildenhues.
28299
28300         dirent: fix test failure
28301         * lib/dirent.in.h (includes): Guarantee ino_t.
28302         Reported by Ralf Wildenhues.
28303
28304 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28305
28306         linkat, renameat: avoid bad free
28307         * lib/at-func2.c (at_func2): Fix typo.
28308         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28309
28310 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28311
28312         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28313         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28314         to avoid failure of symlink test later.
28315
28316 2010-01-06  Eric Blake  <ebb9@byu.net>
28317
28318         stdio, unistd: guarantee ssize_t
28319         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28320         2008 are exposed when needed.
28321         * lib/stdio.in.h (includes): Likewise.
28322         Reported by Ralf Wildenhues.
28323
28324 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28325
28326         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28327         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28328         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28329
28330 2010-01-06  Jim Meyering  <meyering@redhat.com>
28331
28332         readtokens: this module *does* require xalloc.h
28333         It uses only functions that were omitted by the old syntax-check rule.
28334         * lib/readtokens.c: Include "xalloc.h" once again.
28335         * modules/readtokens (Depends-on): Add xalloc.
28336         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28337
28338 2010-01-05  Eric Blake  <ebb9@byu.net>
28339
28340         maint: support 'make announcement' from a VPATH build
28341         * top/maint.mk (announcement): Look for correct NEWS file.
28342
28343 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28344
28345         utimens (fdutimens): ignore a negative FD, per contract
28346         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28347         when we have a valid file descriptor.  Otherwise, using a brand
28348         new glibc (with just-patched futimens that now fails with EBADF)
28349         would cause this function to fail with ENOSYS.
28350         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28351         See also http://bugzilla.redhat.com/552320.
28352
28353 2010-01-05  Eric Blake  <ebb9@byu.net>
28354
28355         strcase: document what it provides
28356         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28357         gnulib module.
28358         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28359         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28360
28361 2010-01-05  Jim Meyering  <meyering@redhat.com>
28362
28363         maint: remove useless inclusions of "xalloc.h"
28364         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28365         * lib/readtokens.c: Likewise.
28366         * lib/same.c: Likewise.
28367         * modules/getloadavg (Depends-on): Remove xalloc.
28368         * modules/readtokens: Likewise.
28369         * modules/same: Likewise.
28370
28371         maint.mk: include 4 more function names in alloca.h-checking regexp
28372         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28373         regexp.  Before, we would give a false-positive (saying alloca.h
28374         is included unnecessarily) when the only uses involved omitted symbols.
28375
28376         xalloc.h: use consistent formatting
28377         * lib/xalloc.h: Move declarations to start in the first column.
28378
28379 2010-01-05  Eric Blake  <ebb9@byu.net>
28380
28381         mkdir: avoid xalloc
28382         * lib/mkdir.c (includes): Drop unused header.
28383         Reported by John W. Eaton.
28384
28385 2010-01-04  Jim Meyering  <meyering@redhat.com>
28386
28387         nl_langinfo: avoid configure-time syntax error
28388         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28389         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28390         the empty string.  Don't let that provoke a shell syntax error.
28391
28392         regcomp, regexec, fnmatch: avoid array bounds read error
28393         * lib/regcomp.c (build_equiv_class): From glibc:
28394         Use only the low 24 bits of a findidx return value as an index
28395         into the weights array.  Patch by Ulrich Drepper:
28396         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28397         * lib/regexec.c (check_node_accept_bytes): Likewise.
28398         * lib/fnmatch_loop.c (FCT): Likewise.
28399
28400         regcomp: skip collseq lookup when there are no rules
28401         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28402         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28403
28404         regcomp: recognize ill-formed { } expressions
28405         * lib/regcomp.c (parse_dup_op): From glibc:
28406         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28407
28408         regcomp: fix typo in comment
28409         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28410         s/satisfy/satisfies/.
28411
28412         regcomp: sync from glibc: remove dead store
28413         * lib/regcomp.c (duplicate_node_closure): Remove useless
28414         search_duplicated_node call and dead store.
28415
28416         regcomp: sync from glibc; always use nl_langinfo
28417         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28418         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28419         * modules/regex (Depends-on): Add nl_langinfo.
28420
28421 2010-01-04  Eric Blake  <ebb9@byu.net>
28422
28423         fdopendir: fix configure test
28424         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28425
28426 2010-01-01  Bruno Haible  <bruno@clisp.org>
28427
28428         wchar: Remove unused configure check.
28429         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28430
28431 2010-01-01  Eric Blake  <ebb9@byu.net>
28432
28433         headers: make check of system header explicit
28434         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28435         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28436         ourselves.
28437         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28438         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28439         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28440         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28441         internals.
28442         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28443         missing.
28444         Suggested by Bruno Haible.
28445
28446 2010-01-01  Jim Meyering  <meyering@redhat.com>
28447
28448         ChangeLog: tweak to eliminate unnecessary copyright line
28449         * ChangeLog: Remove a copyright line that was mistakenly updated
28450         by today's update-copyright run.  Reported by Eric Blake.
28451
28452         test-update-copyright: don't let envvar setting cause test failure
28453         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28454
28455 2010-01-01  Bruno Haible  <bruno@clisp.org>
28456
28457         localename: Avoid gcc warning.
28458         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28459         function if it is not used.
28460
28461 2010-01-01  Jim Meyering  <meyering@redhat.com>
28462
28463         update nearly all FSF copyright year lists to include 2010
28464         Use the same procedure as for 2009, outlined in
28465         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28466
28467         version-etc: set COPYRIGHT_YEAR to 2010
28468         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28469
28470 2009-12-31  Eric Blake  <ebb9@byu.net>
28471
28472         doc: correct availability of cygwin 1.5.x getopt
28473         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28474         variables.
28475         * doc/posix-functions/opterr.texi (opterr): Likewise.
28476         * doc/posix-functions/optind.texi (optind): Likewise.
28477         * doc/posix-functions/optopt.texi (optopt): Likewise.
28478         * doc/posix-functions/tzname.texi (tzname): Likewise.
28479
28480         openat: update maintainer
28481         * modules/openat (Maintainer): Add myself.
28482
28483         utimens: avoid shadowing warning
28484         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28485         buffers into one, to avoid shadowing, as well as avoiding a
28486         redundant stat.
28487         Reported by Jim Meyering.
28488
28489         test-dup2: avoid compiler warning
28490         * tests/test-dup2.c (is_inheritable): Only define if used.
28491
28492 2010-01-01  Bruno Haible  <bruno@clisp.org>
28493
28494         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28495         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28496         defined, use wctomb instead of wcrtomb.
28497
28498 2010-01-01  Bruno Haible  <bruno@clisp.org>
28499
28500         iconv: Reject native Solaris iconv.
28501         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28502         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28503
28504 2009-12-31  Bruno Haible  <bruno@clisp.org>
28505
28506         * tests/test-signal.c (main): Remove test of 'SIG'.
28507
28508 2009-12-31  Bruno Haible  <bruno@clisp.org>
28509
28510         spawn: Fix incomplete fix.
28511         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28512         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28513         warnings for GNULIB_POSIXCHECK again.
28514         Reported by Eric Blake.
28515
28516 2009-12-31  Bruno Haible  <bruno@clisp.org>
28517
28518         Avoid namespace pollution on glibc systems.
28519         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28520         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28521         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28522         glibc systems.
28523
28524 2009-12-31  Bruno Haible  <bruno@clisp.org>
28525
28526         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28527         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28528         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28529         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28530         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28531         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28532         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28533
28534 2009-12-31  Bruno Haible  <bruno@clisp.org>
28535
28536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28537         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28538         afterwards.
28539
28540 2009-12-31  Bruno Haible  <bruno@clisp.org>
28541
28542         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28543         SYS_UTSNAME_H.
28544
28545 2009-12-31  Bruno Haible  <bruno@clisp.org>
28546
28547         spawn: Fix misapplied patch.
28548         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28549         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28550         warnings for GNULIB_POSIXCHECK.
28551
28552 2009-12-31  Bruno Haible  <bruno@clisp.org>
28553
28554         times: Update after sys_times changed.
28555         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28556         * modules/times (Files): Add it.
28557         (configure.ac): Invoke gl_FUNC_TIMES.
28558
28559 2009-12-31  Bruno Haible  <bruno@clisp.org>
28560
28561         Use AC_C_INLINE where necessary.
28562         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28563         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28564         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28565         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28566         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28567         * m4/mbiter.m4 (gl_MBITER): Likewise.
28568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28569         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28570         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28571         * modules/u64 (configure.ac): Likewise.
28572
28573 2009-12-31  Bruno Haible  <bruno@clisp.org>
28574
28575         Use AC_C_INLINE instead of module 'inline' where possible.
28576         * modules/inline (Description): Clarify purpose.
28577         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28578         * modules/count-one-bits (Depends-on): Remove inline.
28579         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28580         * modules/openat (Depends-on): Remove inline.
28581         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28582         instead of depending on module 'inline'.
28583         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28584         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28585         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28586         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28587         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28588         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28589         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28590         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28591         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28592         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28593         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28594         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28595         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28596         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28597         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28598         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28599         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28600         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28601         Likewise.
28602         * modules/unictype/property-ascii-hex-digit (Depends-on,
28603         configure.ac): Likewise.
28604         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28605         configure.ac): Likewise.
28606         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28607         configure.ac): Likewise.
28608         * modules/unictype/property-bidi-block-separator (Depends-on,
28609         configure.ac): Likewise.
28610         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28611         configure.ac): Likewise.
28612         * modules/unictype/property-bidi-common-separator (Depends-on,
28613         configure.ac): Likewise.
28614         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28615         Likewise.
28616         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28617         configure.ac): Likewise.
28618         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28619         configure.ac): Likewise.
28620         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28621         configure.ac): Likewise.
28622         * modules/unictype/property-bidi-european-digit (Depends-on,
28623         configure.ac): Likewise.
28624         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28625         configure.ac): Likewise.
28626         * modules/unictype/property-bidi-left-to-right (Depends-on,
28627         configure.ac): Likewise.
28628         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28629         configure.ac): Likewise.
28630         * modules/unictype/property-bidi-other-neutral (Depends-on,
28631         configure.ac): Likewise.
28632         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28633         Likewise.
28634         * modules/unictype/property-bidi-segment-separator (Depends-on,
28635         configure.ac): Likewise.
28636         * modules/unictype/property-bidi-whitespace (Depends-on,
28637         configure.ac): Likewise.
28638         * modules/unictype/property-combining (Depends-on, configure.ac):
28639         Likewise.
28640         * modules/unictype/property-composite (Depends-on, configure.ac):
28641         Likewise.
28642         * modules/unictype/property-currency-symbol (Depends-on,
28643         configure.ac): Likewise.
28644         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28645         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28646         Likewise.
28647         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28648         configure.ac): Likewise.
28649         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28650         Likewise.
28651         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28652         Likewise.
28653         * modules/unictype/property-extender (Depends-on, configure.ac):
28654         Likewise.
28655         * modules/unictype/property-format-control (Depends-on, configure.ac):
28656         Likewise.
28657         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28658         Likewise.
28659         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28660         Likewise.
28661         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28662         Likewise.
28663         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28664         Likewise.
28665         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28666         Likewise.
28667         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28668         Likewise.
28669         * modules/unictype/property-id-start (Depends-on, configure.ac):
28670         Likewise.
28671         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28672         Likewise.
28673         * modules/unictype/property-ids-binary-operator (Depends-on,
28674         configure.ac): Likewise.
28675         * modules/unictype/property-ids-trinary-operator (Depends-on,
28676         configure.ac): Likewise.
28677         * modules/unictype/property-ignorable-control (Depends-on,
28678         configure.ac): Likewise.
28679         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28680         Likewise.
28681         * modules/unictype/property-join-control (Depends-on, configure.ac):
28682         Likewise.
28683         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28684         Likewise.
28685         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28686         Likewise.
28687         * modules/unictype/property-logical-order-exception (Depends-on,
28688         configure.ac): Likewise.
28689         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28690         Likewise.
28691         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28692         * modules/unictype/property-non-break (Depends-on, configure.ac):
28693         Likewise.
28694         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28695         Likewise.
28696         * modules/unictype/property-numeric (Depends-on, configure.ac):
28697         Likewise.
28698         * modules/unictype/property-other-alphabetic (Depends-on,
28699         configure.ac): Likewise.
28700         * modules/unictype/property-other-default-ignorable-code-point
28701         (Depends-on, configure.ac): Likewise.
28702         * modules/unictype/property-other-grapheme-extend (Depends-on,
28703         configure.ac): Likewise.
28704         * modules/unictype/property-other-id-continue (Depends-on,
28705         configure.ac): Likewise.
28706         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28707         Likewise.
28708         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28709         Likewise.
28710         * modules/unictype/property-other-math (Depends-on, configure.ac):
28711         Likewise.
28712         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28713         Likewise.
28714         * modules/unictype/property-paired-punctuation (Depends-on,
28715         configure.ac): Likewise.
28716         * modules/unictype/property-paragraph-separator (Depends-on,
28717         configure.ac): Likewise.
28718         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28719         Likewise.
28720         * modules/unictype/property-pattern-white-space (Depends-on,
28721         configure.ac): Likewise.
28722         * modules/unictype/property-private-use (Depends-on, configure.ac):
28723         Likewise.
28724         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28725         Likewise.
28726         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28727         Likewise.
28728         * modules/unictype/property-radical (Depends-on, configure.ac):
28729         Likewise.
28730         * modules/unictype/property-sentence-terminal (Depends-on,
28731         configure.ac): Likewise.
28732         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28733         Likewise.
28734         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28735         * modules/unictype/property-terminal-punctuation (Depends-on,
28736         configure.ac): Likewise.
28737         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28738         Likewise.
28739         * modules/unictype/property-unassigned-code-value (Depends-on,
28740         configure.ac): Likewise.
28741         * modules/unictype/property-unified-ideograph (Depends-on,
28742         configure.ac): Likewise.
28743         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28744         Likewise.
28745         * modules/unictype/property-variation-selector (Depends-on,
28746         configure.ac): Likewise.
28747         * modules/unictype/property-white-space (Depends-on, configure.ac):
28748         Likewise.
28749         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28750         Likewise.
28751         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28752         Likewise.
28753         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28754         Likewise.
28755         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28756         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28757         Likewise.
28758
28759 2009-12-31  Bruno Haible  <bruno@clisp.org>
28760
28761         Remove unnecessary AC_C_INLINE invocation.
28762         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28763         since 2009-08-21.
28764
28765 2009-12-31  Jim Meyering  <meyering@redhat.com>
28766
28767         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28768         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28769         With this change, we can all remove the gpg_key_ID = ... definition
28770         from our respective cfg.mk files.
28771
28772         maint.mk: create announcement template in ~/, not in /tmp
28773         * top/maint.mk (emit_upload_commands): Adjust.
28774         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28775         Remove temporary file, .ci-msg.
28776
28777 2009-12-31  Eric Blake  <ebb9@byu.net>
28778
28779         link-warning: always build headers with link warnings
28780         * modules/arpa_inet (Makefile.am): Always build replacement
28781         header.
28782         * modules/ctype (Makefile.am): Likewise.
28783         * modules/dirent (Makefile.am): Likewise.
28784         * modules/inttypes (Makefile.am): Likewise.
28785         * modules/langinfo (Makefile.am): Likewise.
28786         * modules/locale (Makefile.am): Likewise.
28787         * modules/spawn (Makefile.am): Likewise.
28788         * modules/sys_file (Makefile.am): Likewise.
28789         * modules/sys_ioctl (Makefile.am): Likewise.
28790         * modules/sys_select (Makefile.am): Likewise.
28791         * modules/sys_socket (Makefile.am): Likewise.
28792         * modules/sys_times (Makefile.am): Likewise.
28793         * modules/sys_utsname (Makefile.am): Likewise.
28794         * modules/sys_wait (Makefile.am): Likewise.
28795         * modules/wchar (Makefile.am): Likewise.
28796         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28797         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28798         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28799         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28800         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28801         Likewise.
28802         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28803         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28804         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28805         Likewise.
28806         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28807         Likewise.
28808         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28809         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28810         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28811         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28812         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28813         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28814         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28815         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28816         (gl_WCHAR_H_DEFAULTS): Likewise.
28817
28818 2009-12-31  Eric Blake  <ebb9@byu.net>
28819
28820         signal, spawn: use link warnings
28821         * lib/signal.in.h (sigset_t): Make unconditional.
28822         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28823         (sigpending, sigprocmask, sigaction): Add link warnings.
28824         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28825         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28826         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28827         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28828         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28829         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28830         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28831         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28832         (posix_spawn_file_actions_destroy)
28833         (posix_spawn_file_actions_addopen)
28834         (posix_spawn_file_actions_addclose)
28835         (posix_spawn_file_actions_adddup2): Likewise.
28836         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28837         * tests/test-signal.c (main): Enhance test.
28838
28839         spawn: improve wrapper support
28840         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28841         (gl_SPAWN_H_DEFAULTS): New defaults.
28842         * modules/spawn (Makefile.am): Substitute them.
28843         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28844         Only declare if missing or broken.
28845
28846         sys_times, sys_utsname: use include_next
28847         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28848         header.
28849         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28850         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28851         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28852         * modules/sys_times (Depends-on): Add include_next.
28853         (Makefile.am): Substitute additional values.
28854         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28855         * lib/sys_times.in.h (includes): Include native header, if
28856         available.
28857         * lib/sys_utsname.in.h (includes): Likewise.
28858         * tests/test-sys_times.c (main): Enhance test.
28859
28860         fdutimensat: revert prior patch
28861         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28862         utimens.h.
28863         Reported by Bruno Haible.
28864
28865 2009-12-30  Eric Blake  <ebb9@byu.net>
28866
28867         sys_wait: drop link-warning dependency
28868         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28869         link-warning efforts.
28870         * lib/sys_wait.in.h: Likewise.
28871
28872         fdutimensat: remove bogus dependency
28873         * modules/fdutimensat (Depends-on): Drop inline.
28874
28875         unistd: fix typo
28876         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28877
28878 2009-12-30  Bruno Haible  <bruno@clisp.org>
28879
28880         Fix compilation error with Solaris cc.
28881         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28882         * lib/unicase/u16-is-invariant.c: Likewise.
28883         * lib/unicase/u32-is-invariant.c: Likewise.
28884         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28885
28886 2009-12-30  Bruno Haible  <bruno@clisp.org>
28887
28888         Fix test crash.
28889         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28890         locales.
28891         Reported by Simon Josefsson <simon@josefsson.org>.
28892
28893 2009-12-30  Bruno Haible  <bruno@clisp.org>
28894
28895         Fix compilation error on most platforms.
28896         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28897         Reported by Simon Josefsson <simon@josefsson.org>
28898         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28899
28900 2009-12-30  Eric Blake  <ebb9@byu.net>
28901
28902         futimens, utimensat: work around ntfs-3g bug
28903         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28904         a ctime bug is present, and expand workaround to cover ntfs-3g.
28905         * lib/utimens.c (fdutimens, lutimens): Likewise.
28906         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28907         (validate_timespec): Adjust return value.
28908         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28909         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28910         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28911
28912 2009-12-29  Eric Blake  <ebb9@byu.net>
28913
28914         link-warning: make usage consistent
28915         * modules/ctype (Depends-on): Add link-warning.
28916         (Makefile.am): Update rules accordingly.
28917         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28918         * modules/locale (Depends-on, Makefile.am): Likewise.
28919         * modules/sys_file (Makefile.am): Likewise.
28920         * modules/getopt-posix (Makefile.am): Delete unused link warning
28921         efforts.
28922         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28923         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28924         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28925         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28926
28927         stdio: remove unused variables
28928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28929         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28930         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28931
28932         tests: test more substitute headers
28933         * modules/ctype-tests: New file.
28934         * modules/dirent-tests: Likewise.
28935         * modules/spawn-tests: Likewise.
28936         * modules/sys_file-tests: Likewise.
28937         * modules/sys_ioctl-tests: Likewise.
28938         * modules/sys_wait-tests: Likewise.
28939         * tests/test-ctype.c: Likewise.
28940         * tests/test-dirent.c: Likewise.
28941         * tests/test-spawn.c: Likewise.
28942         * tests/test-sys_file.c: Likewise.
28943         * tests/test-sys_ioctl.c: Likewise.
28944         * tests/test-sys_wait.c: Likewise.
28945         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28946         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28947         whether or not flock is in use.
28948
28949         tests: remove License section from module
28950         * modules/arpa_inet-tests: Remove unneeded section.
28951         * modules/byteswap-tests: Likewise.
28952         * modules/ceilf-tests: Likewise.
28953         * modules/ceill-tests: Likewise.
28954         * modules/crypto/des-tests: Likewise.
28955         * modules/crypto/gc-arcfour-tests: Likewise.
28956         * modules/crypto/gc-arctwo-tests: Likewise.
28957         * modules/crypto/gc-des-tests: Likewise.
28958         * modules/crypto/gc-hmac-md5-tests: Likewise.
28959         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28960         * modules/crypto/gc-md2-tests: Likewise.
28961         * modules/crypto/gc-md4-tests: Likewise.
28962         * modules/crypto/gc-md5-tests: Likewise.
28963         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28964         * modules/crypto/gc-rijndael-tests: Likewise.
28965         * modules/crypto/gc-sha1-tests: Likewise.
28966         * modules/crypto/gc-tests: Likewise.
28967         * modules/crypto/md2-tests: Likewise.
28968         * modules/crypto/md4-tests: Likewise.
28969         * modules/fcntl-h-tests: Likewise.
28970         * modules/floorf-tests: Likewise.
28971         * modules/floorl-tests: Likewise.
28972         * modules/frexp-nolibm-tests: Likewise.
28973         * modules/frexp-tests: Likewise.
28974         * modules/frexpl-nolibm-tests: Likewise.
28975         * modules/frexpl-tests: Likewise.
28976         * modules/getaddrinfo-tests: Likewise.
28977         * modules/inttypes-tests: Likewise.
28978         * modules/isfinite-tests: Likewise.
28979         * modules/isinf-tests: Likewise.
28980         * modules/ldexpl-tests: Likewise.
28981         * modules/locale-tests: Likewise.
28982         * modules/math-tests: Likewise.
28983         * modules/netdb-tests: Likewise.
28984         * modules/netinet_in-tests: Likewise.
28985         * modules/printf-frexp-tests: Likewise.
28986         * modules/printf-frexpl-tests: Likewise.
28987         * modules/priv-set-tests: Likewise.
28988         * modules/random_r-tests: Likewise.
28989         * modules/round-tests: Likewise.
28990         * modules/roundf-tests: Likewise.
28991         * modules/roundl-tests: Likewise.
28992         * modules/search-tests: Likewise.
28993         * modules/select-tests: Likewise.
28994         * modules/signal-tests: Likewise.
28995         * modules/stdbool-tests: Likewise.
28996         * modules/stddef-tests: Likewise.
28997         * modules/stdint-tests: Likewise.
28998         * modules/stdio-tests: Likewise.
28999         * modules/stdlib-tests: Likewise.
29000         * modules/string-tests: Likewise.
29001         * modules/strings-tests: Likewise.
29002         * modules/sys_select-tests: Likewise.
29003         * modules/sys_socket-tests: Likewise.
29004         * modules/sys_stat-tests: Likewise.
29005         * modules/sys_time-tests: Likewise.
29006         * modules/sys_utsname-tests: Likewise.
29007         * modules/sysexits-tests: Likewise.
29008         * modules/time-tests: Likewise.
29009         * modules/trunc-tests: Likewise.
29010         * modules/truncf-tests: Likewise.
29011         * modules/truncl-tests: Likewise.
29012         * modules/tsearch-tests: Likewise.
29013         * modules/unistd-tests: Likewise.
29014         * modules/wchar-tests: Likewise.
29015         * modules/wctype-tests: Likewise.
29016
29017         tests: fix license on several tests
29018         * tests/test-des.c: Update to GPLv3+.
29019         * tests/test-flock.c: Likewise.
29020         * tests/test-fsync.c: Likewise.
29021         * tests/test-futimens.h: Likewise.
29022         * tests/test-gc-arcfour.c: Likewise.
29023         * tests/test-gc-arctwo.c: Likewise.
29024         * tests/test-gc-des.c: Likewise.
29025         * tests/test-gc-hmac-md5.c: Likewise.
29026         * tests/test-gc-hmac-sha1.c: Likewise.
29027         * tests/test-gc-md2.c: Likewise.
29028         * tests/test-gc-md4.c: Likewise.
29029         * tests/test-gc-md5.c: Likewise.
29030         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29031         * tests/test-gc-rijndael.c: Likewise.
29032         * tests/test-gc-sha1.c: Likewise.
29033         * tests/test-gc.c: Likewise.
29034         * tests/test-getcwd.c: Likewise.
29035         * tests/test-link.c: Likewise.
29036         * tests/test-link.h: Likewise.
29037         * tests/test-lutimens.h: Likewise.
29038         * tests/test-md2.c: Likewise.
29039         * tests/test-md4.c: Likewise.
29040         * tests/test-mkdir.h: Likewise.
29041         * tests/test-rename.c: Likewise.
29042         * tests/test-rename.h: Likewise.
29043         * tests/test-safe-alloc.c: Likewise.
29044         * tests/test-utimens-common.h: Likewise.
29045         * tests/test-utimens.h: Likewise.
29046
29047         maint: sync license texts
29048         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29049         * doc/gpl-3.0.texi: Revert copyright year update.
29050         * doc/lgpl-3.0.texi: Likewise.
29051
29052 2009-12-29  Jim Meyering  <meyering@redhat.com>
29053
29054         update nearly all FSF copyright year lists to include 2009
29055         The files named by the following are exempted:
29056             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29057               test -f "$dst" && { echo "$dst"; continue; }
29058               test -d "$dst" || continue
29059               echo "$dst"/$(basename "$src")
29060             done > exempt
29061             git ls-files tests/unictype >> exempt
29062         In the remaining files, convert to all-interval notation if
29063         - there is already at least one year interval like 2000-2003
29064         - the file is maintained by me
29065         - the file is in lib/uni*/, where that style already prevails
29066         Otherwise, use update-copyright's default.
29067
29068 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29069         and Eric Blake  <ebb9@byu.net>
29070
29071         tests: don't require debug system() to pass
29072         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29073         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29074         * tests/test-unlink.h (test_unlink_func): Likewise.
29075         * tests/test-fstatat.c (main): ...into callers.
29076         * tests/test-lstat.c (main): Likewise.
29077         * tests/test-rmdir.c (main): Likewise.
29078         * tests/test-unlink.c (main): Likewise.
29079         * tests/test-unlinkat.c (main): Likewise.
29080         * tests/test-areadlink-with-size.c (main): Don't require a
29081         debug-only system call to pass, aiding cross-testing to mingw.
29082         * tests/test-areadlink.c (main): Likewise.
29083         * tests/test-areadlinkat-with-size.c (main): Likewise.
29084         * tests/test-areadlinkat.c (main): Likewise.
29085         * tests/test-canonicalize-lgpl.c (main): Likewise.
29086         * tests/test-canonicalize.c (main): Likewise.
29087         * tests/test-chown.c (main): Likewise.
29088         * tests/test-fchownat.c (main): Likewise.
29089         * tests/test-lchown.c (main): Likewise.
29090         * tests/test-fdutimensat.c (main): Likewise.
29091         * tests/test-futimens.c (main): Likewise.
29092         * tests/test-link.c (main): Likewise.
29093         * tests/test-linkat.c (main): Likewise.
29094         * tests/test-mkdir.c (main): Likewise.
29095         * tests/test-mkdirat.c (main): Likewise.
29096         * tests/test-mkfifo.c (main): Likewise.
29097         * tests/test-mkfifoat.c (main): Likewise.
29098         * tests/test-mknod.c (main): Likewise.
29099         * tests/test-readlink.c (main): Likewise.
29100         * tests/test-remove.c (main): Likewise.
29101         * tests/test-rename.c (main): Likewise.
29102         * tests/test-renameat.c (main): Likewise.
29103         * tests/test-symlink.c (main): Likewise.
29104         * tests/test-symlinkat.c (main): Likewise.
29105         * tests/test-utimens.c (main): Likewise.
29106         * tests/test-utimensat.c (main): Likewise.
29107
29108 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29109
29110         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29111         on $(UNUSED_PARAMETER_H) to avoid build failure.
29112
29113 2009-12-28  Jim Meyering  <meyering@redhat.com>
29114
29115         update-copyright: you may specify a max. line length other than 72
29116         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29117
29118         maint: use consistent FSF copyright line syntax
29119         * lib/posixtm.c: Add missing comma in FSF copyright line.
29120         * lib/posixtm.h: Likewise.
29121         * lib/getugroups.c: Add missing ", Inc.".
29122
29123         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29124         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29125         FSF copyright line.  Remove trailing blanks.
29126
29127 2009-12-28  Eric Blake  <ebb9@byu.net>
29128
29129         test-dup2: reduce dependencies
29130         * modules/cloexec (Configure.ac): Set witness.
29131         * modules/dup2-tests (Depends-on): Drop cloexec.
29132         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29133         not present.
29134         Suggested by Bruno Haible.
29135
29136 2009-12-26  Bruno Haible  <bruno@clisp.org>
29137
29138         Remove an unneeded dependency.
29139         * modules/fseterr (Depends-on): Remove dup2.
29140
29141 2009-12-26  Eric Blake  <ebb9@byu.net>
29142
29143         tests: use macros.h in more places
29144         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29145         (ASSERT_STREAM): Provide default of stderr.
29146         * tests/test-dirent-safer.c: Include macros.h, using alternate
29147         stream for assertions.
29148         * tests/test-dup-safer.c: Likewise.
29149         * tests/test-freopen-safer.c: Likewise.
29150         * tests/test-getopt.c: Likewise.
29151         * tests/test-openat-safer.c: Likewise.
29152         * tests/test-pipe.c: Likewise.
29153         * tests/test-popen-safer.c: Likewise.
29154         * modules/dirent-safer-tests (Files): Include macros.h.
29155         * modules/unistd-safer-tests (Files): Likewise.
29156         * modules/freopen-safer-tests (Files): Likewise.
29157         * modules/getopt-posix-tests (Files): Likewise.
29158         * modules/openat-safer-tests (Files): Likewise.
29159         * modules/pipe-tests (Files): Likewise.
29160
29161 2009-12-26  Bruno Haible  <bruno@clisp.org>
29162
29163         javacomp: Portability fix.
29164         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29165         that it also works on Solaris.
29166
29167 2009-12-26  Bruno Haible  <bruno@clisp.org>
29168
29169         localename: Fix storage allocation of gl_locale_name_thread's result.
29170         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29171         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29172         all platforms that have 'uselocale'.
29173         (gl_locale_name_thread_unsafe): New function, extracted from
29174         gl_locale_name_thread.
29175         (gl_locale_name_thread): Call struniq on all platforms that have
29176         'uselocale'.
29177         * tests/test-localename.c (test_locale_name_thread): Check that the
29178         resulting strings are permanently allocated.
29179         * modules/localename-tests (Depends-on): Add strdup.
29180
29181 2009-12-26  Bruno Haible  <bruno@clisp.org>
29182
29183         * tests/test-localename.c (categories): Fill in the strings.
29184
29185 2009-12-26  Jim Meyering  <meyering@redhat.com>
29186
29187         isdir: complete the removal of m4/isdir.m4
29188         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29189
29190         isdir: clean up, since at least grep still uses it
29191         * lib/isdir.c: Include "isdir.h".
29192         (S_ISDIR): Remove now-unneeded definition.
29193         * modules/isdir (Files): Add lib/isdir.h.
29194         * lib/isdir.h: New file, with declaration.
29195         * m4/isdir.m4: Remove file -- unneeded.
29196
29197 2009-12-25  Bruno Haible  <bruno@clisp.org>
29198
29199         selinux-h: Make generated .h files standalone.
29200         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29201         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29202         * lib/se-selinux.in.h: Likewise.
29203         * modules/selinux-h (Depends-on): Add unused-parameter.
29204         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29205         selinux/selinux.h and selinux/context.h.
29206         Suggested by Eric Blake.
29207
29208 2009-12-25  Bruno Haible  <bruno@clisp.org>
29209
29210         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29211         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29212         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29213         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29214         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29215
29216 2009-12-24  Bruno Haible  <bruno@clisp.org>
29217
29218         openat: Fix warning.
29219         * lib/openat-proc.c: Include <unistd.h>.
29220
29221 2009-12-24  Bruno Haible  <bruno@clisp.org>
29222
29223         New module 'unused-parameter'.
29224         * build-aux/unused-parameter.h: New file, extracted from earlier
29225         gnulib-common.m4.
29226         * modules/unused-parameter: New file.
29227         * lib/unistr.h: Include unused-parameter.h.
29228         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29229         _GL_UNUSED.
29230         * modules/unistr/base (Depends-on): Add unused-parameter.
29231
29232 2009-12-24  Bruno Haible  <bruno@clisp.org>
29233
29234         Add missing dependencies to 'extensions' module.
29235         * m4/extensions.m4: Add comment.
29236         * modules/accept4 (Depends-on): Add extensions.
29237         * modules/dup3 (Depends-on): Likewise.
29238         * modules/fcntl (Depends-on): Likewise.
29239         * modules/futimens (Depends-on): Likewise.
29240         * modules/mknod (Depends-on): Likewise.
29241         * modules/pipe2 (Depends-on): Likewise.
29242         * modules/stat-time (Depends-on): Likewise.
29243         * modules/strcasestr-simple (Depends-on): Likewise.
29244         * modules/strsignal (Depends-on): Likewise.
29245         * modules/utimensat (Depends-on): Likewise.
29246         * modules/localcharset (Depends-on): Likewise. Needed because of
29247         gl_FCNTL_O_FLAGS.
29248         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29249         AC_TYPE_MBSTATE_T.
29250         * modules/wcsnrtombs (Depends-on): Likewise.
29251         * modules/wcsrtombs (Depends-on): Likewise.
29252
29253 2009-12-24  Bruno Haible  <bruno@clisp.org>
29254
29255         binary-io: Avoid gcc warning due to SET_BINARY.
29256         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29257         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29258
29259 2009-12-24  Bruno Haible  <bruno@clisp.org>
29260
29261         Avoid future namespace pollution on glibc systems.
29262         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29263         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29264         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29265         glibc systems.
29266
29267 2009-12-24  Bruno Haible  <bruno@clisp.org>
29268
29269         Refactor common macros used in tests.
29270         * tests/macros.h: New file.
29271         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29272         and/or <stdlib.h>, if appropriate.
29273         (ASSERT, SIZEOF): Remove macros.
29274         * tests/test-areadlink-with-size.c: Likewise.
29275         * tests/test-areadlinkat.c: Likewise.
29276         * tests/test-areadlinkat-with-size.c: Likewise.
29277         * tests/test-argmatch.c: Likewise.
29278         * tests/test-argv-iter.c: Likewise.
29279         * tests/test-array-mergesort.c: Likewise.
29280         * tests/test-array_list.c: Likewise.
29281         * tests/test-array_oset.c: Likewise.
29282         * tests/test-avltree_list.c: Likewise.
29283         * tests/test-avltree_oset.c: Likewise.
29284         * tests/test-avltreehash_list.c: Likewise.
29285         * tests/test-base64.c: Likewise.
29286         * tests/test-binary-io.c: Likewise.
29287         * tests/test-bitrotate.c: Likewise.
29288         * tests/test-btowc.c: Likewise.
29289         * tests/test-byteswap.c: Likewise.
29290         * tests/test-c-ctype.c: Likewise.
29291         * tests/test-c-stack.c: Likewise.
29292         * tests/test-c-strcasecmp.c: Likewise.
29293         * tests/test-c-strcasestr.c: Likewise.
29294         * tests/test-c-strncasecmp.c: Likewise.
29295         * tests/test-c-strstr.c: Likewise.
29296         * tests/test-canonicalize-lgpl.c: Likewise.
29297         * tests/test-canonicalize.c: Likewise.
29298         * tests/test-carray_list.c: Likewise.
29299         * tests/test-ceilf1.c: Likewise.
29300         * tests/test-ceilf2.c: Likewise.
29301         * tests/test-ceill.c: Likewise.
29302         * tests/test-chown.c: Likewise.
29303         * tests/test-cloexec.c: Likewise.
29304         * tests/test-copy-acl.c: Likewise.
29305         * tests/test-copy-file.c: Likewise.
29306         * tests/test-count-one-bits.c: Likewise.
29307         * tests/test-dprintf-posix.c: Likewise.
29308         * tests/test-dup2.c: Likewise.
29309         * tests/test-dup3.c: Likewise.
29310         * tests/test-duplocale.c: Likewise.
29311         * tests/test-fbufmode.c: Likewise.
29312         * tests/test-fchdir.c: Likewise.
29313         * tests/test-fchownat.c: Likewise.
29314         * tests/test-fcntl-safer.c: Likewise.
29315         * tests/test-fcntl.c: Likewise.
29316         * tests/test-fdopendir.c: Likewise.
29317         * tests/test-fdutimensat.c: Likewise.
29318         * tests/test-fflush2.c: Likewise.
29319         * tests/test-file-has-acl.c: Likewise.
29320         * tests/test-filevercmp.c: Likewise.
29321         * tests/test-flock.c: Likewise.
29322         * tests/test-floorf1.c: Likewise.
29323         * tests/test-floorf2.c: Likewise.
29324         * tests/test-floorl.c: Likewise.
29325         * tests/test-fnmatch.c: Likewise.
29326         * tests/test-fopen.h: Likewise.
29327         * tests/test-fpending.c: Likewise.
29328         * tests/test-fprintf-posix.c: Likewise.
29329         * tests/test-fpurge.c: Likewise.
29330         * tests/test-freadable.c: Likewise.
29331         * tests/test-freadahead.c: Likewise.
29332         * tests/test-freading.c: Likewise.
29333         * tests/test-freadptr.c: Likewise.
29334         * tests/test-freadptr2.c: Likewise.
29335         * tests/test-freadseek.c: Likewise.
29336         * tests/test-freopen.c: Likewise.
29337         * tests/test-frexp.c: Likewise.
29338         * tests/test-frexpl.c: Likewise.
29339         * tests/test-fseek.c: Likewise.
29340         * tests/test-fseeko.c: Likewise.
29341         * tests/test-fstatat.c: Likewise.
29342         * tests/test-fstrcmp.c: Likewise.
29343         * tests/test-fsync.c: Likewise.
29344         * tests/test-ftell.c: Likewise.
29345         * tests/test-ftello.c: Likewise.
29346         * tests/test-func.c: Likewise.
29347         * tests/test-futimens.c: Likewise.
29348         * tests/test-fwritable.c: Likewise.
29349         * tests/test-fwriting.c: Likewise.
29350         * tests/test-getcwd.c: Likewise.
29351         * tests/test-getdate.c: Likewise.
29352         * tests/test-getdelim.c: Likewise.
29353         * tests/test-getdtablesize.c: Likewise.
29354         * tests/test-getgroups.c: Likewise.
29355         * tests/test-getline.c: Likewise.
29356         * tests/test-getndelim2.c: Likewise.
29357         * tests/test-glob.c: Likewise.
29358         * tests/test-hash.c: Likewise.
29359         * tests/test-i-ring.c: Likewise.
29360         * tests/test-iconv-utf.c: Likewise.
29361         * tests/test-iconv.c: Likewise.
29362         * tests/test-idpriv-drop.c: Likewise.
29363         * tests/test-idpriv-droptemp.c: Likewise.
29364         * tests/test-inet_ntop.c: Likewise.
29365         * tests/test-inet_pton.c: Likewise.
29366         * tests/test-isblank.c: Likewise.
29367         * tests/test-isfinite.c: Likewise.
29368         * tests/test-isinf.c: Likewise.
29369         * tests/test-isnan.c: Likewise.
29370         * tests/test-isnand.h: Likewise.
29371         * tests/test-isnanf.h: Likewise.
29372         * tests/test-isnanl.h: Likewise.
29373         * tests/test-lchown.c: Likewise.
29374         * tests/test-ldexpl.c: Likewise.
29375         * tests/test-link.c: Likewise.
29376         * tests/test-linkat.c: Likewise.
29377         * tests/test-linked_list.c: Likewise.
29378         * tests/test-linkedhash_list.c: Likewise.
29379         * tests/test-localename.c: Likewise.
29380         * tests/test-lseek.c: Likewise.
29381         * tests/test-lstat.c: Likewise.
29382         * tests/test-mbmemcasecmp.c: Likewise.
29383         * tests/test-mbmemcasecoll.c: Likewise.
29384         * tests/test-mbrtowc.c: Likewise.
29385         * tests/test-mbscasecmp.c: Likewise.
29386         * tests/test-mbscasestr1.c: Likewise.
29387         * tests/test-mbscasestr2.c: Likewise.
29388         * tests/test-mbscasestr3.c: Likewise.
29389         * tests/test-mbscasestr4.c: Likewise.
29390         * tests/test-mbschr.c: Likewise.
29391         * tests/test-mbscspn.c: Likewise.
29392         * tests/test-mbsinit.c: Likewise.
29393         * tests/test-mbsncasecmp.c: Likewise.
29394         * tests/test-mbsnrtowcs.c: Likewise.
29395         * tests/test-mbspbrk.c: Likewise.
29396         * tests/test-mbspcasecmp.c: Likewise.
29397         * tests/test-mbsrchr.c: Likewise.
29398         * tests/test-mbsrtowcs.c: Likewise.
29399         * tests/test-mbsspn.c: Likewise.
29400         * tests/test-mbsstr1.c: Likewise.
29401         * tests/test-mbsstr2.c: Likewise.
29402         * tests/test-mbsstr3.c: Likewise.
29403         * tests/test-memchr.c: Likewise.
29404         * tests/test-memchr2.c: Likewise.
29405         * tests/test-memcmp.c: Likewise.
29406         * tests/test-memmem.c: Likewise.
29407         * tests/test-memrchr.c: Likewise.
29408         * tests/test-mkdir.c: Likewise.
29409         * tests/test-mkdirat.c: Likewise.
29410         * tests/test-mkfifo.c: Likewise.
29411         * tests/test-mkfifoat.c: Likewise.
29412         * tests/test-mknod.c: Likewise.
29413         * tests/test-nanosleep.c: Likewise.
29414         * tests/test-nl_langinfo.c: Likewise.
29415         * tests/test-obstack-printf.c: Likewise.
29416         * tests/test-open.c: Likewise.
29417         * tests/test-openat.c: Likewise.
29418         * tests/test-pipe-filter-gi1.c: Likewise.
29419         * tests/test-pipe-filter-gi2-main.c: Likewise.
29420         * tests/test-pipe-filter-ii1.c: Likewise.
29421         * tests/test-pipe-filter-ii2-main.c: Likewise.
29422         * tests/test-pipe2.c: Likewise.
29423         * tests/test-popen.h: Likewise.
29424         * tests/test-posixtm.c: Likewise.
29425         * tests/test-pread.c: Likewise.
29426         * tests/test-printf-frexp.c: Likewise.
29427         * tests/test-printf-frexpl.c: Likewise.
29428         * tests/test-printf-posix.c: Likewise.
29429         * tests/test-priv-set.c: Likewise.
29430         * tests/test-quotearg.c: Likewise.
29431         * tests/test-random_r.c: Likewise.
29432         * tests/test-rawmemchr.c: Likewise.
29433         * tests/test-rbtree_list.c: Likewise.
29434         * tests/test-rbtree_oset.c: Likewise.
29435         * tests/test-rbtreehash_list.c: Likewise.
29436         * tests/test-readlink.c: Likewise.
29437         * tests/test-remove.c: Likewise.
29438         * tests/test-rename.c: Likewise.
29439         * tests/test-renameat.c: Likewise.
29440         * tests/test-rmdir.c: Likewise.
29441         * tests/test-round1.c: Likewise.
29442         * tests/test-roundf1.c: Likewise.
29443         * tests/test-roundl.c: Likewise.
29444         * tests/test-safe-alloc.c: Likewise.
29445         * tests/test-sameacls.c: Likewise.
29446         * tests/test-set-mode-acl.c: Likewise.
29447         * tests/test-setenv.c: Likewise.
29448         * tests/test-sigaction.c: Likewise.
29449         * tests/test-signbit.c: Likewise.
29450         * tests/test-sleep.c: Likewise.
29451         * tests/test-snprintf-posix.c: Likewise.
29452         * tests/test-snprintf.c: Likewise.
29453         * tests/test-sprintf-posix.c: Likewise.
29454         * tests/test-stat-time.c: Likewise.
29455         * tests/test-stat.c: Likewise.
29456         * tests/test-strcasestr.c: Likewise.
29457         * tests/test-strchrnul.c: Likewise.
29458         * tests/test-strerror.c: Likewise.
29459         * tests/test-striconv.c: Likewise.
29460         * tests/test-striconveh.c: Likewise.
29461         * tests/test-striconveha.c: Likewise.
29462         * tests/test-strsignal.c: Likewise.
29463         * tests/test-strstr.c: Likewise.
29464         * tests/test-strtod.c: Likewise.
29465         * tests/test-strverscmp.c: Likewise.
29466         * tests/test-symlink.c: Likewise.
29467         * tests/test-symlinkat.c: Likewise.
29468         * tests/test-trunc1.c: Likewise.
29469         * tests/test-trunc2.c: Likewise.
29470         * tests/test-truncf1.c: Likewise.
29471         * tests/test-truncf2.c: Likewise.
29472         * tests/test-truncl.c: Likewise.
29473         * tests/test-uname.c: Likewise.
29474         * tests/test-unlink.c: Likewise.
29475         * tests/test-unlinkat.c: Likewise.
29476         * tests/test-unsetenv.c: Likewise.
29477         * tests/test-usleep.c: Likewise.
29478         * tests/test-utimens.c: Likewise.
29479         * tests/test-utimensat.c: Likewise.
29480         * tests/test-vasnprintf-posix.c: Likewise.
29481         * tests/test-vasnprintf-posix2.c: Likewise.
29482         * tests/test-vasnprintf.c: Likewise.
29483         * tests/test-vasprintf-posix.c: Likewise.
29484         * tests/test-vasprintf.c: Likewise.
29485         * tests/test-vdprintf-posix.c: Likewise.
29486         * tests/test-vfprintf-posix.c: Likewise.
29487         * tests/test-vprintf-posix.c: Likewise.
29488         * tests/test-vsnprintf-posix.c: Likewise.
29489         * tests/test-vsnprintf.c: Likewise.
29490         * tests/test-vsprintf-posix.c: Likewise.
29491         * tests/test-wcrtomb.c: Likewise.
29492         * tests/test-wcsnrtombs.c: Likewise.
29493         * tests/test-wcsrtombs.c: Likewise.
29494         * tests/test-wctype.c: Likewise.
29495         * tests/test-wcwidth.c: Likewise.
29496         * tests/test-xfprintf-posix.c: Likewise.
29497         * tests/test-xmemdup0.c: Likewise.
29498         * tests/test-xprintf-posix.c: Likewise.
29499         * tests/test-xvasprintf.c: Likewise.
29500         * tests/unicase/test-locale-language.c: Likewise.
29501         * tests/unicase/test-mapping-part1.h: Likewise.
29502         * tests/unicase/test-predicate-part1.h: Likewise.
29503         * tests/unicase/test-u8-casecmp.c: Likewise.
29504         * tests/unicase/test-u8-casecoll.c: Likewise.
29505         * tests/unicase/test-u8-casefold.c: Likewise.
29506         * tests/unicase/test-u8-is-cased.c: Likewise.
29507         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29508         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29509         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29510         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29511         * tests/unicase/test-u8-tolower.c: Likewise.
29512         * tests/unicase/test-u8-totitle.c: Likewise.
29513         * tests/unicase/test-u8-toupper.c: Likewise.
29514         * tests/unicase/test-u16-casecmp.c: Likewise.
29515         * tests/unicase/test-u16-casecoll.c: Likewise.
29516         * tests/unicase/test-u16-casefold.c: Likewise.
29517         * tests/unicase/test-u16-is-cased.c: Likewise.
29518         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29519         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29520         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29521         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29522         * tests/unicase/test-u16-tolower.c: Likewise.
29523         * tests/unicase/test-u16-totitle.c: Likewise.
29524         * tests/unicase/test-u16-toupper.c: Likewise.
29525         * tests/unicase/test-u32-casecmp.c: Likewise.
29526         * tests/unicase/test-u32-casecoll.c: Likewise.
29527         * tests/unicase/test-u32-casefold.c: Likewise.
29528         * tests/unicase/test-u32-is-cased.c: Likewise.
29529         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29530         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29531         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29532         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29533         * tests/unicase/test-u32-tolower.c: Likewise.
29534         * tests/unicase/test-u32-totitle.c: Likewise.
29535         * tests/unicase/test-u32-toupper.c: Likewise.
29536         * tests/unicase/test-ulc-casecmp.c: Likewise.
29537         * tests/unicase/test-ulc-casecoll.c: Likewise.
29538         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29539         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29540         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29541         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29542         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29543         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29544         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29545         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29546         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29547         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29548         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29549         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29550         * tests/unictype/test-bidi_byname.c: Likewise.
29551         * tests/unictype/test-bidi_name.c: Likewise.
29552         * tests/unictype/test-bidi_of.c: Likewise.
29553         * tests/unictype/test-bidi_test.c: Likewise.
29554         * tests/unictype/test-block_list.c: Likewise.
29555         * tests/unictype/test-block_of.c: Likewise.
29556         * tests/unictype/test-block_test.c: Likewise.
29557         * tests/unictype/test-categ_and.c: Likewise.
29558         * tests/unictype/test-categ_and_not.c: Likewise.
29559         * tests/unictype/test-categ_byname.c: Likewise.
29560         * tests/unictype/test-categ_name.c: Likewise.
29561         * tests/unictype/test-categ_none.c: Likewise.
29562         * tests/unictype/test-categ_of.c: Likewise.
29563         * tests/unictype/test-categ_or.c: Likewise.
29564         * tests/unictype/test-categ_test_withtable.c: Likewise.
29565         * tests/unictype/test-combining.c: Likewise.
29566         * tests/unictype/test-decdigit.c: Likewise.
29567         * tests/unictype/test-digit.c: Likewise.
29568         * tests/unictype/test-mirror.c: Likewise.
29569         * tests/unictype/test-numeric.c: Likewise.
29570         * tests/unictype/test-pr_byname.c: Likewise.
29571         * tests/unictype/test-pr_test.c: Likewise.
29572         * tests/unictype/test-predicate-part1.h: Likewise.
29573         * tests/unictype/test-scripts.c: Likewise.
29574         * tests/unictype/test-sy_c_ident.c: Likewise.
29575         * tests/unictype/test-sy_java_ident.c: Likewise.
29576         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29577         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29578         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29579         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29580         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29581         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29582         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29583         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29584         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29585         * tests/uninorm/test-compat-decomposition.c: Likewise.
29586         * tests/uninorm/test-composition.c: Likewise.
29587         * tests/uninorm/test-decomposing-form.c: Likewise.
29588         * tests/uninorm/test-decomposition.c: Likewise.
29589         * tests/uninorm/test-u8-nfc.c: Likewise.
29590         * tests/uninorm/test-u8-nfd.c: Likewise.
29591         * tests/uninorm/test-u8-nfkc.c: Likewise.
29592         * tests/uninorm/test-u8-nfkd.c: Likewise.
29593         * tests/uninorm/test-u8-normcmp.c: Likewise.
29594         * tests/uninorm/test-u8-normcoll.c: Likewise.
29595         * tests/uninorm/test-u16-nfc.c: Likewise.
29596         * tests/uninorm/test-u16-nfd.c: Likewise.
29597         * tests/uninorm/test-u16-nfkc.c: Likewise.
29598         * tests/uninorm/test-u16-nfkd.c: Likewise.
29599         * tests/uninorm/test-u16-normcmp.c: Likewise.
29600         * tests/uninorm/test-u16-normcoll.c: Likewise.
29601         * tests/uninorm/test-u32-nfc.c: Likewise.
29602         * tests/uninorm/test-u32-nfd.c: Likewise.
29603         * tests/uninorm/test-u32-nfkc.c: Likewise.
29604         * tests/uninorm/test-u32-nfkd.c: Likewise.
29605         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29606         * tests/uninorm/test-u32-normcmp.c: Likewise.
29607         * tests/uninorm/test-u32-normcoll.c: Likewise.
29608         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29609         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29610         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29611         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29612         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29613         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29614         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29615         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29616         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29617         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29618         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29619         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29620         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29621         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29622         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29623         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29624         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29625         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29626         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29627         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29628         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29629         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29630         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29631         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29632         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29633         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29634         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29635         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29636         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29637         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29638         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29639         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29640         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29641         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29642         * tests/uniwidth/test-u8-width.c: Likewise.
29643         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29644         * tests/uniwidth/test-u16-width.c: Likewise.
29645         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29646         * tests/uniwidth/test-u32-width.c: Likewise.
29647         * tests/uniwidth/test-uc_width.c: Likewise.
29648         * tests/uniwidth/test-uc_width2.c: Likewise.
29649         * modules/acl-tests (Files): Add tests/macros.h.
29650         * modules/areadlink-tests (Files): Likewise.
29651         * modules/areadlink-with-size-tests (Files): Likewise.
29652         * modules/areadlinkat-tests (Files): Likewise.
29653         * modules/areadlinkat-with-size-tests (Files): Likewise.
29654         * modules/argmatch-tests (Files): Likewise.
29655         * modules/argv-iter-tests (Files): Likewise.
29656         * modules/array-list-tests (Files): Likewise.
29657         * modules/array-mergesort-tests (Files): Likewise.
29658         * modules/array-oset-tests (Files): Likewise.
29659         * modules/avltree-list-tests (Files): Likewise.
29660         * modules/avltree-oset-tests (Files): Likewise.
29661         * modules/avltreehash-list-tests (Files): Likewise.
29662         * modules/base64-tests (Files): Likewise.
29663         * modules/binary-io-tests (Files): Likewise.
29664         * modules/bitrotate-tests (Files): Likewise.
29665         * modules/btowc-tests (Files): Likewise.
29666         * modules/byteswap-tests (Files): Likewise.
29667         * modules/c-ctype-tests (Files): Likewise.
29668         * modules/c-stack-tests (Files): Likewise.
29669         * modules/c-strcase-tests (Files): Likewise.
29670         * modules/c-strcasestr-tests (Files): Likewise.
29671         * modules/c-strstr-tests (Files): Likewise.
29672         * modules/canonicalize-lgpl-tests (Files): Likewise.
29673         * modules/canonicalize-tests (Files): Likewise.
29674         * modules/carray-list-tests (Files): Likewise.
29675         * modules/ceilf-tests (Files): Likewise.
29676         * modules/ceill-tests (Files): Likewise.
29677         * modules/chown-tests (Files): Likewise.
29678         * modules/cloexec-tests (Files): Likewise.
29679         * modules/copy-file-tests (Files): Likewise.
29680         * modules/count-one-bits-tests (Files): Likewise.
29681         * modules/dprintf-posix-tests (Files): Likewise.
29682         * modules/dup2-tests (Files): Likewise.
29683         * modules/dup3-tests (Files): Likewise.
29684         * modules/duplocale-tests (Files): Likewise.
29685         * modules/fbufmode-tests (Files): Likewise.
29686         * modules/fchdir-tests (Files): Likewise.
29687         * modules/fcntl-safer-tests (Files): Likewise.
29688         * modules/fcntl-tests (Files): Likewise.
29689         * modules/fdopendir-tests (Files): Likewise.
29690         * modules/fdutimensat-tests (Files): Likewise.
29691         * modules/fflush-tests (Files): Likewise.
29692         * modules/filevercmp-tests (Files): Likewise.
29693         * modules/flock-tests (Files): Likewise.
29694         * modules/floorf-tests (Files): Likewise.
29695         * modules/floorl-tests (Files): Likewise.
29696         * modules/fnmatch-tests (Files): Likewise.
29697         * modules/fopen-safer-tests (Files): Likewise.
29698         * modules/fopen-tests (Files): Likewise.
29699         * modules/fpending-tests (Files): Likewise.
29700         * modules/fprintf-posix-tests (Files): Likewise.
29701         * modules/fpurge-tests (Files): Likewise.
29702         * modules/freadable-tests (Files): Likewise.
29703         * modules/freadahead-tests (Files): Likewise.
29704         * modules/freading-tests (Files): Likewise.
29705         * modules/freadptr-tests (Files): Likewise.
29706         * modules/freadseek-tests (Files): Likewise.
29707         * modules/freopen-tests (Files): Likewise.
29708         * modules/frexp-nolibm-tests (Files): Likewise.
29709         * modules/frexp-tests (Files): Likewise.
29710         * modules/frexpl-nolibm-tests (Files): Likewise.
29711         * modules/frexpl-tests (Files): Likewise.
29712         * modules/fseek-tests (Files): Likewise.
29713         * modules/fseeko-tests (Files): Likewise.
29714         * modules/fstrcmp-tests (Files): Likewise.
29715         * modules/fsync-tests (Files): Likewise.
29716         * modules/ftell-tests (Files): Likewise.
29717         * modules/ftello-tests (Files): Likewise.
29718         * modules/func-tests (Files): Likewise.
29719         * modules/futimens-tests (Files): Likewise.
29720         * modules/fwritable-tests (Files): Likewise.
29721         * modules/fwriting-tests (Files): Likewise.
29722         * modules/getcwd-tests (Files): Likewise.
29723         * modules/getdate-tests (Files): Likewise.
29724         * modules/getdelim-tests (Files): Likewise.
29725         * modules/getdtablesize-tests (Files): Likewise.
29726         * modules/getgroups-tests (Files): Likewise.
29727         * modules/getline-tests (Files): Likewise.
29728         * modules/getndelim2-tests (Files): Likewise.
29729         * modules/glob-tests (Files): Likewise.
29730         * modules/hash-tests (Files): Likewise.
29731         * modules/i-ring-tests (Files): Likewise.
29732         * modules/iconv-tests (Files): Likewise.
29733         * modules/iconv_open-utf-tests (Files): Likewise.
29734         * modules/idpriv-drop-tests (Files): Likewise.
29735         * modules/idpriv-droptemp-tests (Files): Likewise.
29736         * modules/inet_ntop-tests (Files): Likewise.
29737         * modules/inet_pton-tests (Files): Likewise.
29738         * modules/isblank-tests (Files): Likewise.
29739         * modules/isfinite-tests (Files): Likewise.
29740         * modules/isinf-tests (Files): Likewise.
29741         * modules/isnan-tests (Files): Likewise.
29742         * modules/isnand-nolibm-tests (Files): Likewise.
29743         * modules/isnand-tests (Files): Likewise.
29744         * modules/isnanf-nolibm-tests (Files): Likewise.
29745         * modules/isnanf-tests (Files): Likewise.
29746         * modules/isnanl-nolibm-tests (Files): Likewise.
29747         * modules/isnanl-tests (Files): Likewise.
29748         * modules/lchown-tests (Files): Likewise.
29749         * modules/ldexpl-tests (Files): Likewise.
29750         * modules/link-tests (Files): Likewise.
29751         * modules/linkat-tests (Files): Likewise.
29752         * modules/linked-list-tests (Files): Likewise.
29753         * modules/linkedhash-list-tests (Files): Likewise.
29754         * modules/localename-tests (Files): Likewise.
29755         * modules/lseek-tests (Files): Likewise.
29756         * modules/lstat-tests (Files): Likewise.
29757         * modules/mbmemcasecmp-tests (Files): Likewise.
29758         * modules/mbmemcasecoll-tests (Files): Likewise.
29759         * modules/mbrtowc-tests (Files): Likewise.
29760         * modules/mbscasecmp-tests (Files): Likewise.
29761         * modules/mbscasestr-tests (Files): Likewise.
29762         * modules/mbschr-tests (Files): Likewise.
29763         * modules/mbscspn-tests (Files): Likewise.
29764         * modules/mbsinit-tests (Files): Likewise.
29765         * modules/mbsncasecmp-tests (Files): Likewise.
29766         * modules/mbsnrtowcs-tests (Files): Likewise.
29767         * modules/mbspbrk-tests (Files): Likewise.
29768         * modules/mbspcasecmp-tests (Files): Likewise.
29769         * modules/mbsrchr-tests (Files): Likewise.
29770         * modules/mbsrtowcs-tests (Files): Likewise.
29771         * modules/mbsspn-tests (Files): Likewise.
29772         * modules/mbsstr-tests (Files): Likewise.
29773         * modules/memchr-tests (Files): Likewise.
29774         * modules/memchr2-tests (Files): Likewise.
29775         * modules/memcmp-tests (Files): Likewise.
29776         * modules/memmem-tests (Files): Likewise.
29777         * modules/memrchr-tests (Files): Likewise.
29778         * modules/mkdir-tests (Files): Likewise.
29779         * modules/mkfifo-tests (Files): Likewise.
29780         * modules/mkfifoat-tests (Files): Likewise.
29781         * modules/mknod-tests (Files): Likewise.
29782         * modules/nanosleep-tests (Files): Likewise.
29783         * modules/nl_langinfo-tests (Files): Likewise.
29784         * modules/obstack-printf-tests (Files): Likewise.
29785         * modules/open-tests (Files): Likewise.
29786         * modules/openat-tests (Files): Likewise.
29787         * modules/pipe-filter-gi-tests (Files): Likewise.
29788         * modules/pipe-filter-ii-tests (Files): Likewise.
29789         * modules/pipe2-tests (Files): Likewise.
29790         * modules/popen-safer-tests (Files): Likewise.
29791         * modules/popen-tests (Files): Likewise.
29792         * modules/posixtm-tests (Files): Likewise.
29793         * modules/pread-tests (Files): Likewise.
29794         * modules/printf-frexp-tests (Files): Likewise.
29795         * modules/printf-frexpl-tests (Files): Likewise.
29796         * modules/printf-posix-tests (Files): Likewise.
29797         * modules/priv-set-tests (Files): Likewise.
29798         * modules/quotearg-tests (Files): Likewise.
29799         * modules/random_r-tests (Files): Likewise.
29800         * modules/rawmemchr-tests (Files): Likewise.
29801         * modules/rbtree-list-tests (Files): Likewise.
29802         * modules/rbtree-oset-tests (Files): Likewise.
29803         * modules/rbtreehash-list-tests (Files): Likewise.
29804         * modules/readlink-tests (Files): Likewise.
29805         * modules/remove-tests (Files): Likewise.
29806         * modules/rename-tests (Files): Likewise.
29807         * modules/renameat-tests (Files): Likewise.
29808         * modules/rmdir-tests (Files): Likewise.
29809         * modules/round-tests (Files): Likewise.
29810         * modules/roundf-tests (Files): Likewise.
29811         * modules/roundl-tests (Files): Likewise.
29812         * modules/safe-alloc-tests (Files): Likewise.
29813         * modules/setenv-tests (Files): Likewise.
29814         * modules/sigaction-tests (Files): Likewise.
29815         * modules/signbit-tests (Files): Likewise.
29816         * modules/sleep-tests (Files): Likewise.
29817         * modules/snprintf-posix-tests (Files): Likewise.
29818         * modules/snprintf-tests (Files): Likewise.
29819         * modules/sprintf-posix-tests (Files): Likewise.
29820         * modules/stat-tests (Files): Likewise.
29821         * modules/stat-time-tests (Files): Likewise.
29822         * modules/strcasestr-tests (Files): Likewise.
29823         * modules/strchrnul-tests (Files): Likewise.
29824         * modules/strerror-tests (Files): Likewise.
29825         * modules/striconv-tests (Files): Likewise.
29826         * modules/striconveh-tests (Files): Likewise.
29827         * modules/striconveha-tests (Files): Likewise.
29828         * modules/strsignal-tests (Files): Likewise.
29829         * modules/strstr-tests (Files): Likewise.
29830         * modules/strtod-tests (Files): Likewise.
29831         * modules/strverscmp-tests (Files): Likewise.
29832         * modules/symlink-tests (Files): Likewise.
29833         * modules/symlinkat-tests (Files): Likewise.
29834         * modules/trunc-tests (Files): Likewise.
29835         * modules/truncf-tests (Files): Likewise.
29836         * modules/truncl-tests (Files): Likewise.
29837         * modules/uname-tests (Files): Likewise.
29838         * modules/unicase/cased-tests (Files): Likewise.
29839         * modules/unicase/ignorable-tests (Files): Likewise.
29840         * modules/unicase/locale-language-tests (Files): Likewise.
29841         * modules/unicase/tolower-tests (Files): Likewise.
29842         * modules/unicase/totitle-tests (Files): Likewise.
29843         * modules/unicase/toupper-tests (Files): Likewise.
29844         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29845         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29846         * modules/unicase/u8-casefold-tests (Files): Likewise.
29847         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29848         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29849         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29850         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29851         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29852         * modules/unicase/u8-tolower-tests (Files): Likewise.
29853         * modules/unicase/u8-totitle-tests (Files): Likewise.
29854         * modules/unicase/u8-toupper-tests (Files): Likewise.
29855         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29856         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29857         * modules/unicase/u16-casefold-tests (Files): Likewise.
29858         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29859         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29860         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29861         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29862         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29863         * modules/unicase/u16-tolower-tests (Files): Likewise.
29864         * modules/unicase/u16-totitle-tests (Files): Likewise.
29865         * modules/unicase/u16-toupper-tests (Files): Likewise.
29866         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29867         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29868         * modules/unicase/u32-casefold-tests (Files): Likewise.
29869         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29870         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29871         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29872         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29873         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29874         * modules/unicase/u32-tolower-tests (Files): Likewise.
29875         * modules/unicase/u32-totitle-tests (Files): Likewise.
29876         * modules/unicase/u32-toupper-tests (Files): Likewise.
29877         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29878         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29879         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29880         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29881         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29882         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29883         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29884         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29885         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29886         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29887         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29888         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29889         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29890         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29891         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29892         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29893         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29894         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29895         * modules/unictype/block-list-tests (Files): Likewise.
29896         * modules/unictype/block-of-tests (Files): Likewise.
29897         * modules/unictype/block-test-tests (Files): Likewise.
29898         * modules/unictype/category-C-tests (Files): Likewise.
29899         * modules/unictype/category-Cc-tests (Files): Likewise.
29900         * modules/unictype/category-Cf-tests (Files): Likewise.
29901         * modules/unictype/category-Cn-tests (Files): Likewise.
29902         * modules/unictype/category-Co-tests (Files): Likewise.
29903         * modules/unictype/category-Cs-tests (Files): Likewise.
29904         * modules/unictype/category-L-tests (Files): Likewise.
29905         * modules/unictype/category-Ll-tests (Files): Likewise.
29906         * modules/unictype/category-Lm-tests (Files): Likewise.
29907         * modules/unictype/category-Lo-tests (Files): Likewise.
29908         * modules/unictype/category-Lt-tests (Files): Likewise.
29909         * modules/unictype/category-Lu-tests (Files): Likewise.
29910         * modules/unictype/category-M-tests (Files): Likewise.
29911         * modules/unictype/category-Mc-tests (Files): Likewise.
29912         * modules/unictype/category-Me-tests (Files): Likewise.
29913         * modules/unictype/category-Mn-tests (Files): Likewise.
29914         * modules/unictype/category-N-tests (Files): Likewise.
29915         * modules/unictype/category-Nd-tests (Files): Likewise.
29916         * modules/unictype/category-Nl-tests (Files): Likewise.
29917         * modules/unictype/category-No-tests (Files): Likewise.
29918         * modules/unictype/category-P-tests (Files): Likewise.
29919         * modules/unictype/category-Pc-tests (Files): Likewise.
29920         * modules/unictype/category-Pd-tests (Files): Likewise.
29921         * modules/unictype/category-Pe-tests (Files): Likewise.
29922         * modules/unictype/category-Pf-tests (Files): Likewise.
29923         * modules/unictype/category-Pi-tests (Files): Likewise.
29924         * modules/unictype/category-Po-tests (Files): Likewise.
29925         * modules/unictype/category-Ps-tests (Files): Likewise.
29926         * modules/unictype/category-S-tests (Files): Likewise.
29927         * modules/unictype/category-Sc-tests (Files): Likewise.
29928         * modules/unictype/category-Sk-tests (Files): Likewise.
29929         * modules/unictype/category-Sm-tests (Files): Likewise.
29930         * modules/unictype/category-So-tests (Files): Likewise.
29931         * modules/unictype/category-Z-tests (Files): Likewise.
29932         * modules/unictype/category-Zl-tests (Files): Likewise.
29933         * modules/unictype/category-Zp-tests (Files): Likewise.
29934         * modules/unictype/category-Zs-tests (Files): Likewise.
29935         * modules/unictype/category-and-not-tests (Files): Likewise.
29936         * modules/unictype/category-and-tests (Files): Likewise.
29937         * modules/unictype/category-byname-tests (Files): Likewise.
29938         * modules/unictype/category-name-tests (Files): Likewise.
29939         * modules/unictype/category-none-tests (Files): Likewise.
29940         * modules/unictype/category-of-tests (Files): Likewise.
29941         * modules/unictype/category-or-tests (Files): Likewise.
29942         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29943         * modules/unictype/combining-class-tests (Files): Likewise.
29944         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29945         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29946         * modules/unictype/ctype-blank-tests (Files): Likewise.
29947         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29948         * modules/unictype/ctype-digit-tests (Files): Likewise.
29949         * modules/unictype/ctype-graph-tests (Files): Likewise.
29950         * modules/unictype/ctype-lower-tests (Files): Likewise.
29951         * modules/unictype/ctype-print-tests (Files): Likewise.
29952         * modules/unictype/ctype-punct-tests (Files): Likewise.
29953         * modules/unictype/ctype-space-tests (Files): Likewise.
29954         * modules/unictype/ctype-upper-tests (Files): Likewise.
29955         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29956         * modules/unictype/decimal-digit-tests (Files): Likewise.
29957         * modules/unictype/digit-tests (Files): Likewise.
29958         * modules/unictype/mirror-tests (Files): Likewise.
29959         * modules/unictype/numeric-tests (Files): Likewise.
29960         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29961         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29962         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29963         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29964         Likewise.
29965         * modules/unictype/property-bidi-block-separator-tests (Files):
29966         Likewise.
29967         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29968         Likewise.
29969         * modules/unictype/property-bidi-common-separator-tests (Files):
29970         Likewise.
29971         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29972         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29973         Likewise.
29974         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29975         Likewise.
29976         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29977         Likewise.
29978         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29979         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29980         Likewise.
29981         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29982         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29983         Likewise.
29984         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29985         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29986         * modules/unictype/property-bidi-segment-separator-tests (Files):
29987         Likewise.
29988         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29989         * modules/unictype/property-byname-tests (Files): Likewise.
29990         * modules/unictype/property-combining-tests (Files): Likewise.
29991         * modules/unictype/property-composite-tests (Files): Likewise.
29992         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29993         * modules/unictype/property-dash-tests (Files): Likewise.
29994         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29995         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29996         Likewise.
29997         * modules/unictype/property-deprecated-tests (Files): Likewise.
29998         * modules/unictype/property-diacritic-tests (Files): Likewise.
29999         * modules/unictype/property-extender-tests (Files): Likewise.
30000         * modules/unictype/property-format-control-tests (Files): Likewise.
30001         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30002         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30003         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30004         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30005         * modules/unictype/property-hyphen-tests (Files): Likewise.
30006         * modules/unictype/property-id-continue-tests (Files): Likewise.
30007         * modules/unictype/property-id-start-tests (Files): Likewise.
30008         * modules/unictype/property-ideographic-tests (Files): Likewise.
30009         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30010         * modules/unictype/property-ids-trinary-operator-tests (Files):
30011         Likewise.
30012         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30013         * modules/unictype/property-iso-control-tests (Files): Likewise.
30014         * modules/unictype/property-join-control-tests (Files): Likewise.
30015         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30016         * modules/unictype/property-line-separator-tests (Files): Likewise.
30017         * modules/unictype/property-logical-order-exception-tests (Files):
30018         Likewise.
30019         * modules/unictype/property-lowercase-tests (Files): Likewise.
30020         * modules/unictype/property-math-tests (Files): Likewise.
30021         * modules/unictype/property-non-break-tests (Files): Likewise.
30022         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30023         * modules/unictype/property-numeric-tests (Files): Likewise.
30024         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30025         * modules/unictype/property-other-default-ignorable-code-point-tests
30026         (Files): Likewise.
30027         * modules/unictype/property-other-grapheme-extend-tests (Files):
30028         Likewise.
30029         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30030         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30031         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30032         * modules/unictype/property-other-math-tests (Files): Likewise.
30033         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30034         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30035         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30036         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30037         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30038         * modules/unictype/property-private-use-tests (Files): Likewise.
30039         * modules/unictype/property-punctuation-tests (Files): Likewise.
30040         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30041         * modules/unictype/property-radical-tests (Files): Likewise.
30042         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30043         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30044         * modules/unictype/property-space-tests (Files): Likewise.
30045         * modules/unictype/property-terminal-punctuation-tests (Files):
30046         Likewise.
30047         * modules/unictype/property-test-tests (Files): Likewise.
30048         * modules/unictype/property-titlecase-tests (Files): Likewise.
30049         * modules/unictype/property-unassigned-code-value-tests (Files):
30050         Likewise.
30051         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30052         * modules/unictype/property-uppercase-tests (Files): Likewise.
30053         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30054         * modules/unictype/property-white-space-tests (Files): Likewise.
30055         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30056         * modules/unictype/property-xid-start-tests (Files): Likewise.
30057         * modules/unictype/property-zero-width-tests (Files): Likewise.
30058         * modules/unictype/scripts-tests (Files): Likewise.
30059         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30060         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30061         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30062         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30063         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30064         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30065         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30066         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30067         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30068         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30069         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30070         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30071         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30072         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30073         * modules/uninorm/composition-tests (Files): Likewise.
30074         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30075         * modules/uninorm/decomposition-tests (Files): Likewise.
30076         * modules/uninorm/filter-tests (Files): Likewise.
30077         * modules/uninorm/nfc-tests (Files): Likewise.
30078         * modules/uninorm/nfd-tests (Files): Likewise.
30079         * modules/uninorm/nfkc-tests (Files): Likewise.
30080         * modules/uninorm/nfkd-tests (Files): Likewise.
30081         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30082         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30083         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30084         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30085         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30086         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30087         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30088         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30089         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30090         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30091         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30092         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30093         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30094         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30095         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30096         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30097         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30098         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30099         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30100         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30101         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30102         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30103         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30104         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30105         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30106         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30107         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30108         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30109         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30110         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30111         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30112         * modules/uniwidth/u8-width-tests (Files): Likewise.
30113         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30114         * modules/uniwidth/u16-width-tests (Files): Likewise.
30115         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30116         * modules/uniwidth/u32-width-tests (Files): Likewise.
30117         * modules/uniwidth/width-tests (Files): Likewise.
30118         * modules/unlink-tests (Files): Likewise.
30119         * modules/unsetenv-tests (Files): Likewise.
30120         * modules/usleep-tests (Files): Likewise.
30121         * modules/utimens-tests (Files): Likewise.
30122         * modules/utimensat-tests (Files): Likewise.
30123         * modules/vasnprintf-posix-tests (Files): Likewise.
30124         * modules/vasnprintf-tests (Files): Likewise.
30125         * modules/vasprintf-posix-tests (Files): Likewise.
30126         * modules/vasprintf-tests (Files): Likewise.
30127         * modules/vdprintf-posix-tests (Files): Likewise.
30128         * modules/vfprintf-posix-tests (Files): Likewise.
30129         * modules/vprintf-posix-tests (Files): Likewise.
30130         * modules/vsnprintf-posix-tests (Files): Likewise.
30131         * modules/vsnprintf-tests (Files): Likewise.
30132         * modules/vsprintf-posix-tests (Files): Likewise.
30133         * modules/wcrtomb-tests (Files): Likewise.
30134         * modules/wcsnrtombs-tests (Files): Likewise.
30135         * modules/wcsrtombs-tests (Files): Likewise.
30136         * modules/wctype-tests (Files): Likewise.
30137         * modules/wcwidth-tests (Files): Likewise.
30138         * modules/xmemdup0-tests (Files): Likewise.
30139         * modules/xprintf-posix-tests (Files): Likewise.
30140         * modules/xvasprintf-tests (Files): Likewise.
30141
30142 2009-12-24  Eric Blake  <ebb9@byu.net>
30143
30144         test-nanosleep: fix typo
30145         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30146         patch.
30147         Reported by Bruno Haible.
30148
30149 2009-12-24  Bruno Haible  <bruno@clisp.org>
30150
30151         Reduce namespace pollution on glibc systems.
30152         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30153         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30154         systems.
30155         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30156         <getopt.h> on glibc systems.
30157         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30158         systems.
30159         * lib/fcntl.c: Include <unistd.h> here instead.
30160
30161 2009-12-24  Bruno Haible  <bruno@clisp.org>
30162
30163         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30164
30165 2009-12-24  Eric Blake  <ebb9@byu.net>
30166
30167         tests: add signature checks
30168         * tests/signature.h (SIGNATURE_CHECK): New file.
30169         * modules/atexit-tests (Files): Use it.
30170         * modules/btowc-tests (Files): Likewise.
30171         * modules/canonicalize-lgpl-tests (Files): Likewise.
30172         * modules/ceilf-tests (Files): Likewise.
30173         * modules/ceill-tests (Files): Likewise.
30174         * modules/chown-tests (Files): Likewise.
30175         * modules/dprintf-posix-tests (Files): Likewise.
30176         * modules/dup2-tests (Files): Likewise.
30177         * modules/dup3-tests (Files): Likewise.
30178         * modules/duplocale-tests (Files): Likewise.
30179         * modules/fchdir-tests (Files): Likewise.
30180         * modules/fcntl-tests (Files): Likewise.
30181         * modules/fdopendir-tests (Files): Likewise.
30182         * modules/fflush-tests (Files): Likewise.
30183         * modules/flock-tests (Files): Likewise.
30184         * modules/floorf-tests (Files): Likewise.
30185         * modules/floorl-tests (Files): Likewise.
30186         * modules/fnmatch-tests (Files): Likewise.
30187         * modules/fopen-tests (Files): Likewise.
30188         * modules/fprintf-posix-tests (Files): Likewise.
30189         * modules/freopen-tests (Files): Likewise.
30190         * modules/frexp-nolibm-tests (Files): Likewise.
30191         * modules/frexp-tests (Files): Likewise.
30192         * modules/frexpl-nolibm-tests (Files): Likewise.
30193         * modules/frexpl-tests (Files): Likewise.
30194         * modules/fseek-tests (Files): Likewise.
30195         * modules/fseeko-tests (Files): Likewise.
30196         * modules/fsync-tests (Files): Likewise.
30197         * modules/ftell-tests (Files): Likewise.
30198         * modules/ftello-tests (Files): Likewise.
30199         * modules/futimens-tests (Files): Likewise.
30200         * modules/getaddrinfo-tests (Files): Likewise.
30201         * modules/getcwd-tests (Files): Likewise.
30202         * modules/getdelim-tests (Files): Likewise.
30203         * modules/getdtablesize-tests (Files): Likewise.
30204         * modules/getgroups-tests (Files): Likewise.
30205         * modules/gethostname-tests (Files): Likewise.
30206         * modules/getline-tests (Files): Likewise.
30207         * modules/getopt-posix-tests (Files): Likewise.
30208         * modules/gettimeofday-tests (Files): Likewise.
30209         * modules/glob-tests (Files): Likewise.
30210         * modules/iconv-tests (Files): Likewise.
30211         * modules/inet_ntop-tests (Files): Likewise.
30212         * modules/inet_pton-tests (Files): Likewise.
30213         * modules/isblank-tests (Files): Likewise.
30214         * modules/lchown-tests (Files): Likewise.
30215         * modules/ldexpl-tests (Files): Likewise.
30216         * modules/link-tests (Files): Likewise.
30217         * modules/linkat-tests (Files): Likewise.
30218         * modules/lseek-tests (Files): Likewise.
30219         * modules/lstat-tests (Files): Likewise.
30220         * modules/mbrtowc-tests (Files): Likewise.
30221         * modules/mbsinit-tests (Files): Likewise.
30222         * modules/mbsnrtowcs-tests (Files): Likewise.
30223         * modules/mbsrtowcs-tests (Files): Likewise.
30224         * modules/memchr-tests (Files): Likewise.
30225         * modules/memcmp-tests (Files): Likewise.
30226         * modules/memmem-tests (Files): Likewise.
30227         * modules/memrchr-tests (Files): Likewise.
30228         * modules/mkdir-tests (Files): Likewise.
30229         * modules/mkfifo-tests (Files): Likewise.
30230         * modules/mkfifoat-tests (Files): Likewise.
30231         * modules/mknod-tests (Files): Likewise.
30232         * modules/nanosleep-tests (Files): Likewise.
30233         * modules/nl_langinfo-tests (Files): Likewise.
30234         * modules/obstack-printf-tests (Files): Likewise.
30235         * modules/open-tests (Files): Likewise.
30236         * modules/openat-tests (Files): Likewise.
30237         * modules/perror-tests (Files): Likewise.
30238         * modules/pipe2-tests (Files): Likewise.
30239         * modules/poll-tests (Files): Likewise.
30240         * modules/popen-tests (Files): Likewise.
30241         * modules/posix_spawn-tests (Files): Likewise.
30242         * modules/posix_spawnp-tests (Files): Likewise.
30243         * modules/pread-tests (Files): Likewise.
30244         * modules/printf-posix-tests (Files): Likewise.
30245         * modules/pty-tests (Files): Likewise.
30246         * modules/random_r-tests (Files): Likewise.
30247         * modules/rawmemchr-tests (Files): Likewise.
30248         * modules/readlink-tests (Files): Likewise.
30249         * modules/remove-tests (Files): Likewise.
30250         * modules/rename-tests (Files): Likewise.
30251         * modules/renameat-tests (Files): Likewise.
30252         * modules/rmdir-tests (Files): Likewise.
30253         * modules/round-tests (Files): Likewise.
30254         * modules/roundf-tests (Files): Likewise.
30255         * modules/roundl-tests (Files): Likewise.
30256         * modules/select-tests (Files): Likewise.
30257         * modules/setenv-tests (Files): Likewise.
30258         * modules/sigaction-tests (Files): Likewise.
30259         * modules/sleep-tests (Files): Likewise.
30260         * modules/snprintf-posix-tests (Files): Likewise.
30261         * modules/snprintf-tests (Files): Likewise.
30262         * modules/sprintf-posix-tests (Files): Likewise.
30263         * modules/stat-tests (Files): Likewise.
30264         * modules/strcasestr-tests (Files): Likewise.
30265         * modules/strchrnul-tests (Files): Likewise.
30266         * modules/strerror-tests (Files): Likewise.
30267         * modules/strsignal-tests (Files): Likewise.
30268         * modules/strstr-tests (Files): Likewise.
30269         * modules/strtod-tests (Files): Likewise.
30270         * modules/strverscmp-tests (Files): Likewise.
30271         * modules/symlink-tests (Files): Likewise.
30272         * modules/symlinkat-tests (Files): Likewise.
30273         * modules/times-tests (Files): Likewise.
30274         * modules/trunc-tests (Files): Likewise.
30275         * modules/truncf-tests (Files): Likewise.
30276         * modules/truncl-tests (Files): Likewise.
30277         * modules/tsearch-tests (Files): Likewise.
30278         * modules/uname-tests (Files): Likewise.
30279         * modules/unlink-tests (Files): Likewise.
30280         * modules/unsetenv-tests (Files): Likewise.
30281         * modules/usleep-tests (Files): Likewise.
30282         * modules/utimensat-tests (Files): Likewise.
30283         * modules/vasprintf-tests (Files): Likewise.
30284         * modules/vdprintf-posix-tests (Files): Likewise.
30285         * modules/vfprintf-posix-tests (Files): Likewise.
30286         * modules/vprintf-posix-tests (Files): Likewise.
30287         * modules/vsnprintf-posix-tests (Files): Likewise.
30288         * modules/vsnprintf-tests (Files): Likewise.
30289         * modules/vsprintf-posix-tests (Files): Likewise.
30290         * modules/wcrtomb-tests (Files): Likewise.
30291         * modules/wcsnrtombs-tests (Files): Likewise.
30292         * modules/wcsrtombs-tests (Files): Likewise.
30293         * modules/wcwidth-tests (Files): Likewise.
30294         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30295         * tests/test-isinf.c (isinf): Likewise.
30296         * tests/test-isnan.c (isnan): Likewise.
30297         * tests/test-signbit.c (signbit): Likewise.
30298         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30299         declaration, either as macro or with correct signature.
30300         (select): Ensure function under test is declared with correct
30301         signature in correct header.
30302         * tests/test-atexit.c (atexit): Likewise.
30303         * tests/test-btowc.c (btowc): Likewise.
30304         * tests/test-canonicalize-lgpl.c (realpath)
30305         (canonicalize_file_name): Likewise.
30306         * tests/test-ceilf1.c (ceilf): Likewise.
30307         * tests/test-ceill.c (ceill): Likewise.
30308         * tests/test-chown.c (chown): Likewise.
30309         * tests/test-dprintf-posix.c (dprintf): Likewise.
30310         * tests/test-dup2.c (dup2): Likewise.
30311         * tests/test-dup3.c (dup3): Likewise.
30312         * tests/test-duplocale.c (duplocale): Likewise.
30313         * tests/test-fchdir.c (fchdir): Likewise.
30314         * tests/test-fchownat.c (fchownat): Likewise.
30315         * tests/test-fcntl.c (fcntl): Likewise.
30316         * tests/test-fdopendir.c (fdopendir): Likewise.
30317         * tests/test-fflush.c (fflush): Likewise.
30318         * tests/test-flock.c (flock): Likewise.
30319         * tests/test-floorf1.c (floorf): Likewise.
30320         * tests/test-floorl.c (floorl): Likewise.
30321         * tests/test-fnmatch.c (fnmatch): Likewise.
30322         * tests/test-fopen.c (fopen): Likewise.
30323         * tests/test-fprintf-posix.c (fprintf): Likewise.
30324         * tests/test-freopen.c (freopen): Likewise.
30325         * tests/test-frexp.c (frexp): Likewise.
30326         * tests/test-frexpl.c (frexpl): Likewise.
30327         * tests/test-fseek.c (fseek): Likewise.
30328         * tests/test-fseeko.c (fseeko): Likewise.
30329         * tests/test-fstatat.c (fstatat): Likewise.
30330         * tests/test-fsync.c (fsync): Likewise.
30331         * tests/test-ftell.c (ftell): Likewise.
30332         * tests/test-ftello.c (ftello): Likewise.
30333         * tests/test-futimens.c (futimens): Likewise.
30334         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30335         (gai_strerror): Likewise.
30336         * tests/test-getcwd.c (getcwd): Likewise.
30337         * tests/test-getdelim.c (getdelim): Likewise.
30338         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30339         * tests/test-getgroups.c (getgroups): Likewise.
30340         * tests/test-gethostname.c (gethostname): Likewise.
30341         * tests/test-getline.c (getline): Likewise.
30342         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30343         Likewise.
30344         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30345         * tests/test-glob.c (glob, globfree): Likewise.
30346         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30347         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30348         * tests/test-inet_pton.c (inet_pton): Likewise.
30349         * tests/test-isblank.c (isblank): Likewise.
30350         * tests/test-lchown.c (lchown): Likewise.
30351         * tests/test-ldexpl.c (ldexpl): Likewise.
30352         * tests/test-link.c (link): Likewise.
30353         * tests/test-linkat.c (linkat): Likewise.
30354         * tests/test-lseek.c (lseek): Likewise.
30355         * tests/test-lstat.c (lstat): Likewise.
30356         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30357         * tests/test-mbsinit.c (mbsinit): Likewise.
30358         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30359         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30360         * tests/test-memchr.c (memchr): Likewise.
30361         * tests/test-memcmp.c (memcmp): Likewise.
30362         * tests/test-memmem.c (memmem): Likewise.
30363         * tests/test-memrchr.c (memrchr): Likewise.
30364         * tests/test-mkdir.c (mkdir): Likewise.
30365         * tests/test-mkdirat.c (mkdirat): Likewise.
30366         * tests/test-mkfifo.c (mkfifo): Likewise.
30367         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30368         * tests/test-mknod.c (mknod): Likewise.
30369         * tests/test-nanosleep.c (nanosleep): Likewise.
30370         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30371         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30372         Likewise.
30373         * tests/test-open.c (open): Likewise.
30374         * tests/test-openat.c (openat): Likewise.
30375         * tests/test-perror.c (perror): Likewise.
30376         * tests/test-pipe2.c (pipe2): Likewise.
30377         * tests/test-poll.c (poll): Likewise.
30378         * tests/test-popen.c (popen, pclose): Likewise.
30379         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30380         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30381         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30382         (posix_spawn_file_actions_destroy)
30383         (posix_spawn_file_actions_addclose)
30384         (posix_spawn_file_actions_addopen)
30385         (posix_spawn_file_actions_adddup2): Likewise.
30386         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30387         * tests/test-pread.c (pread): Likewise.
30388         * tests/test-printf-posix.c (printf): Likewise.
30389         * tests/test-pty.c (openpty, forkpty): Likewise.
30390         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30391         (random_r): Likewise.
30392         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30393         * tests/test-readlink.c (readlink): Likewise.
30394         * tests/test-remove.c (remove): Likewise.
30395         * tests/test-rename.c (rename): Likewise.
30396         * tests/test-renameat.c (renameat): Likewise.
30397         * tests/test-rmdir.c (rmdir): Likewise.
30398         * tests/test-round1.c (round): Likewise.
30399         * tests/test-roundf1.c (roundf): Likewise.
30400         * tests/test-roundl.c (roundl): Likewise.
30401         * tests/test-setenv.c (setenv): Likewise.
30402         * tests/test-sigaction.c (sigaction): Likewise.
30403         * tests/test-sleep.c (sleep): Likewise.
30404         * tests/test-snprintf.c (snprintf): Likewise.
30405         * tests/test-sprintf-posix.c (sprintf): Likewise.
30406         * tests/test-stat.c (stat): Likewise.
30407         * tests/test-stpncpy.c (stpncpy): Likewise.
30408         * tests/test-strcasestr.c (strcasestr): Likewise.
30409         * tests/test-strchrnul.c (strchrnul): Likewise.
30410         * tests/test-strerror.c (strerror): Likewise.
30411         * tests/test-strsignal.c (strsignal): Likewise.
30412         * tests/test-strstr.c (strstr): Likewise.
30413         * tests/test-strtod.c (strtod): Likewise.
30414         * tests/test-strverscmp.c (strverscmp): Likewise.
30415         * tests/test-symlink.c (symlink): Likewise.
30416         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30417         * tests/test-times.c (times): Likewise.
30418         * tests/test-trunc1.c (trunc): Likewise.
30419         * tests/test-truncf1.c (truncf): Likewise.
30420         * tests/test-truncl.c (truncl): Likewise.
30421         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30422         Likewise.
30423         * tests/test-uname.c (uname): Likewise.
30424         * tests/test-unlink.c (unlink): Likewise.
30425         * tests/test-unlinkat.c (unlinkat): Likewise.
30426         * tests/test-unsetenv.c (unsetenv): Likewise.
30427         * tests/test-usleep.c (usleep): Likewise.
30428         * tests/test-utimensat.c (utimensat): Likewise.
30429         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30430         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30431         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30432         * tests/test-vprintf-posix.c (vprintf): Likewise.
30433         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30434         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30435         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30436         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30437         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30438         * tests/test-wcwidth.c (wcwidth): Likewise.
30439
30440         build: pull in conditional headers during GNULIB_POSIXCHECK
30441         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30442         definitions from any conditionally-included headers.
30443         * lib/stdlib.in.h (includes): Likewise.
30444         * lib/unistd.in.h (includes): Likewise.
30445
30446 2009-12-24  Bruno Haible  <bruno@clisp.org>
30447
30448         * tests/test-argv-iter.c: Include header file being tested immediately
30449         after config.h.
30450         * tests/test-base64.c: Likewise.
30451         * tests/test-flock.c: Likewise.
30452         * tests/test-fsync.c: Likewise.
30453         * tests/test-getdate.c: Likewise.
30454         * tests/test-getndelim2.c: Likewise.
30455         * tests/test-isfinite.c: Likewise.
30456         * tests/test-isinf.c: Likewise.
30457         * tests/test-strerror.c: Likewise.
30458         * tests/test-strsignal.c: Likewise.
30459
30460 2009-12-23  Eric Blake  <ebb9@byu.net>
30461
30462         unistd: work around cygwin bug
30463         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30464         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30465         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30466
30467 2009-12-23  Bruno Haible  <bruno@clisp.org>
30468
30469         localename: More tests.
30470         * tests/test-localename.c (SIZEOF): New macro.
30471         (categories): New variable.
30472         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30473         test_locale_name_default): Add test w.r.t. thread locale.
30474         (test_locale_name_thread): New function.
30475         (main): Invoke it.
30476
30477         localename: Make aware of thread locale.
30478         * lib/localename.h (gl_locale_name_thread): New declaration.
30479         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30480         behaviour with respect to thread locale.
30481         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30482         <langinfo.h>, glthread/lock.h.
30483         (SIZE_BITS): New macro.
30484         (string_hash): New function.
30485         (struct hash_node): New type.
30486         (HASH_TABLE_SIZE): New macro.
30487         (struniq_hash_table, struniq_lock): New variables.
30488         (struniq): New function.
30489         (gl_locale_name_thread): New function.
30490         (gl_locale_name): Invoke it.
30491         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30492         * modules/localename (Depends-on): Add lock.
30493         Reported by Mike Gran <spk121@yahoo.com>.
30494
30495 2009-12-23  Eric Blake  <ebb9@byu.net>
30496
30497         va-args: new module
30498         * modules/va-args: New file.
30499         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30500         * MODULES.html.sh (Core language properties): Mention it.
30501
30502         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30503         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30504         named alias for __attribute__((__unused__)).
30505         * lib/chown.c: Update client.
30506         * lib/fchmodat.c: Likewise.
30507         * lib/fts.c: Likewise.
30508         * lib/getdate.y: Likewise.
30509         * lib/getgroups.c: Likewise.
30510         * lib/getopt.c: Likewise.
30511         * lib/getugroups.c: Likewise.
30512         * lib/mkdir.c: Likewise.
30513         * lib/mkfifo.c: Likewise.
30514         * lib/mkfifoat.c: Likewise.
30515         * lib/mknod.c: Likewise.
30516         * lib/mknodat.c: Likewise.
30517         * lib/readlink.c: Likewise.
30518         * lib/se-context.in.h: Likewise.
30519         * lib/se-selinux.in.h: Likewise.
30520         * lib/sockets.c: Likewise.
30521         * lib/symlink.c: Likewise.
30522         * lib/symlinkat.c: Likewise.
30523         * lib/unicodeio.c: Likewise.
30524         * lib/unistr.h: Likewise.
30525         * tests/test-areadlink.c: Likewise.
30526         * tests/test-areadlinkat.c: Likewise.
30527         * tests/test-filenamecat.c: Likewise.
30528         * tests/test-fseeko.c: Likewise.
30529         * tests/test-ftello.c: Likewise.
30530         * tests/test-getdate.c: Likewise.
30531         * tests/test-getgroups.c: Likewise.
30532         * tests/test-gethostname.c: Likewise.
30533         * tests/test-quotearg.c: Likewise.
30534         * tests/test-version-etc.c: Likewise.
30535         * tests/test-xalloc-die.c: Likewise.
30536         * tests/test-xfprintf-posix.c: Likewise.
30537         * tests/test-xprintf-posix.c: Likewise.
30538         * tests/test-xvasprintf.c: Likewise.
30539
30540         tests: avoid compiler warnings
30541         * tests/test-fcntl.c (main): Delete unused parameters.
30542         * tests/test-freopen-safer.c (main): Likewise.
30543         * tests/test-xalloc-die.c (main): Mark unused parameters.
30544         * tests/test-fseeko.c (main): Likewise.
30545         * tests/test-ftello.c (main): Likewise.
30546         * tests/test-nanosleep.c (main): Avoid declaration warning.
30547         * tests/test-sleep.c (main): Likewise.
30548         * tests/test-unsetenv.c (main): Silence warning about string
30549         literal.
30550         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30551
30552 2009-12-23  Bruno Haible  <bruno@clisp.org>
30553
30554         * tests/test-localename.c (test_locale_name): New function, extracted
30555         from main. Also test mixed situations.
30556         (test_locale_name_posix, test_locale_name_environ,
30557         test_locale_name_default): New functions.
30558         (main): Invoke them all.
30559         * modules/localename-tests (configure.ac): Test for newlocale.
30560
30561 2009-12-23  Bruno Haible  <bruno@clisp.org>
30562
30563         unistd: Ensure getcwd gets declared before being overridden.
30564         * lib/unistd.in.h: Conditionally include <io.h>.
30565
30566 2009-12-22  Bruno Haible  <bruno@clisp.org>
30567
30568         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30569         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30570         (gl_WCHAR_H): Invoke it.
30571         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30572         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30573         Reported by Karl Berry <karl@freefriends.org>.
30574
30575 2009-12-22  Eric Blake  <ebb9@byu.net>
30576
30577         math, unistd: avoid redundant includes
30578         * lib/math.in.h (isnan): No need to re-include <math.h>.
30579         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30580
30581         getsubopt: work around cygwin bug
30582         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30583         avoid conflicting with system getsubopt.
30584         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30585         bug.
30586
30587         getopt: synchronize from glibc
30588         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30589         parameter order.  Adjust all callers.
30590         (_getopt_internal_r, main): Adjust quoting in error messages.
30591         Drop considerations for outdated POSIX 1003.2 error message.
30592         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30593         callers.
30594         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30595
30596         test-getopt: test stderr behavior
30597         * modules/getopt-posix-tests (Depends-on): Add dup2.
30598         * tests/test-getopt.c (ASSERT): Avoid stderr.
30599         (main): Move stderr to a temporary file.
30600         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30601         Instead, add parameter to inform caller if output occurred.
30602         (test_getopt): Adjust all existing tests to expect silence, and
30603         add new tests of leading ":".
30604         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30605         glibc shortcomings with leading "-:" or "+:" in optstring.
30606         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30607         Likewise.
30608         * doc/posix-functions/getopt.texi (getopt): Likewise.
30609
30610         test-getopt: enhance test
30611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30612         supports optind=0.
30613         * tests/test-getopt.c (OPTIND_MIN): Move...
30614         * tests/test-getopt.h (OPTIND_MIN): ...here.
30615         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30616         Require that optind=0 works, since modern BSD supports it in
30617         addition to optreset, and since coreutils expects it.
30618         (test_getopt_long_only): New test.
30619         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30620         glibc shortcomings with 'W;', and enforcement of optind=0.
30621         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30622         Likewise.
30623
30624 2009-12-21  Bruno Haible  <bruno@clisp.org>
30625
30626         localename: Improvements for MacOS X and Cygwin.
30627         * lib/localename.h (gl_locale_name_environ): New declaration.
30628         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30629         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30630         (gl_locale_name_posix): Invoke it.
30631         (gl_locale_name_default): Add comments. Use Windows native API also on
30632         Cygwin.
30633
30634 2009-12-21  Bruno Haible  <bruno@clisp.org>
30635
30636         Update list of Win32 locale ids.
30637         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30638         (LANG_SAMI): Renamed from LANG_SAAMI.
30639         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30640         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30641         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30642         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30643         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30644         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30645         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30646         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30647         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30648         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30649         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30650         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30651         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30652         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30653         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30654         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30655         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30656         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30657         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30658         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30659         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30660         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30661         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30662         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30663         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30664         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30665         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30666         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30667         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30668         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30669         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30670         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30671         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30672         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30673         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30674         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30675         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30676         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30677         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30678         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30679         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30680         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30681         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30682         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30683         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30684         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30685         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30686         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30687         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30688         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30689         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30690         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30691         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30692         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30693         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30694         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30695         Add more languages and countries for Sami, Sorbian. Add more countries
30696         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30697         for Pashto. Change country for Syriac, Tswana.
30698
30699 2009-12-21  Eric Blake  <ebb9@byu.net>
30700
30701         test-utimens: avoid spurious failure
30702         * tests/test-chown.h (nap): Factor...
30703         * tests/nap.h: ...into new file.
30704         * tests/test-lchown.h (nap): Avoid duplication.
30705         * tests/test-utimens-common.h (nap): Use shared implementation,
30706         necessary on file systems with 1-second resolution.
30707         * modules/chown-tests (Files): Include new file.
30708         * modules/fdutimensat-tests (Files): Likewise.
30709         * modules/futimens-tests (Files): Likewise.
30710         * modules/lchown-tests (Files): Likewise.
30711         * modules/openat-tests (Files): Likewise.
30712         * modules/utimens-tests (Files): Likewise.
30713         * modules/utimensat-tests (Files): Likewise.
30714
30715 2009-12-19  Eric Blake  <ebb9@byu.net>
30716
30717         futimens, utimensat: work around Linux bug
30718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30719         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30720         * lib/utimensat.c (rpl_utimensat): Work around it.
30721         * lib/futimens.c (rpl_futimens): Adjust comment.
30722
30723         utimens: work around Linux ctime bug
30724         * lib/utimens.c (detect_ctime_bug): New helper function.
30725         (update_timespec): Differentiate between workaround needed for
30726         this bug vs. what is needed for systems that lack utimensat.
30727         (fdutimens, lutimens): Work around bug.
30728
30729         utimens: check for ctime update
30730         * tests/test-utimens-common.h (check_ctime): Define.
30731         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30732         * tests/test-futimens.h (test_futimens): Likewise.
30733         * tests/test-lutimens.h (test_lutimens): Likewise.
30734         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30735         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30736
30737 2009-12-19  Bruno Haible  <bruno@clisp.org>
30738
30739         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30740         * tests/test-dprintf-posix2.sh: New file.
30741         * tests/test-dprintf-posix2.c: New file.
30742         * modules/dprintf-posix-tests (Files): Add them.
30743         (configure.ac): Check for getrlimit and setrlimit.
30744         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30745
30746 2009-12-19  Bruno Haible  <bruno@clisp.org>
30747
30748         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30749         * tests/test-fprintf-posix3.sh: New file.
30750         * tests/test-fprintf-posix3.c: New file.
30751         * modules/fprintf-posix-tests (Files): Add them.
30752         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30753
30754 2009-12-19  Eric Blake  <ebb9@byu.net>
30755
30756         dirfd: fix prototype
30757         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30758         * lib/dirfd.c (dirfd): Likewise.
30759
30760         canonicalize: reduce memory usage
30761         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30762         allocation to size.
30763         Reported by Solar Designer <solar@openwall.com>.
30764
30765 2009-12-19  Bruno Haible  <bruno@clisp.org>
30766
30767         New module attribute 'Applicability'.
30768         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30769         * gnulib-tool: New option --extract-applicability.
30770         (func_usage): Document it.
30771         (sed_extract_prog): Recognize it.
30772         (func_get_applicability): New function.
30773         (func_import): Generalize handling of 'link-warning' module.
30774         * modules/link-warning (Applicability): New section.
30775         * modules/arg-nonnull (Applicability): New section.
30776         Repoted by Simon Josefsson <simon@josefsson.org>.
30777
30778 2009-12-19  Bruno Haible  <bruno@clisp.org>
30779
30780         fflush: tweak
30781         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30782         * lib/fseeko.c (rpl_fseeko): Likewise.
30783
30784 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30785
30786         * lib/gl_list.h: Fix typo in comment.
30787
30788 2009-12-16  Eric Blake  <ebb9@byu.net>
30789
30790         fcntl: use to simplify other modules
30791         * modules/cloexec (Depends-on): Add fcntl.
30792         * modules/fchdir (Depends-on): Likewise.
30793         * modules/fd-safer-flag (Depends-on): Likewise.
30794         * modules/unistd-safer (Depends-on): Likewise.
30795         * modules/dup3 (configure.ac): Set module indicator.
30796         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30797         missing.
30798         * lib/fchdir.c (_gl_register_dup): Fix comment.
30799         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30800         * lib/dup-safer.c (dup_safer): Likewise.
30801         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30802         * lib/dup3.c (dup3): Likewise.
30803         * tests/test-fchdir.c (main): Enhance test.
30804         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30805
30806         fcntl: port portions of fcntl to mingw
30807         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30808         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30809         replacement for mingw.
30810         * modules/fcntl (Description): Update.
30811         (Depends-on): Add dup2.
30812         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30813         * modules/fcntl-h (Makefile.am): Substitute it.
30814         * lib/fcntl.in.h (fcntl): Update declaration.
30815         (F_DUPFD, F_GETFD): New macros, when needed.
30816         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30817         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30818         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30819         we now guarantee.
30820
30821         fcntl: work around cygwin bug in F_DUPFD
30822         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30823         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30824         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30825         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30826         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30827
30828         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30829         * modules/fcntl (Files): List new files.
30830         (configure.ac): Run a test.
30831         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30832         * lib/fcntl.c (rpl_fcntl): Likewise.
30833         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30834         (gl_FCNTL_H): Always replace fcntl.h.
30835         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30836         * lib/fcntl.in.h (fcntl): Declare replacement.
30837         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30838         needed, plus a witness.
30839         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30840         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30841         * tests/test-fcntl.c: New file.
30842         * modules/fcntl-tests: Likewise.
30843
30844         binary-io: avoid potential compilation warning
30845         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30846         directives.
30847
30848         fflush: avoid compilation error on NetBSD
30849         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30850         between off_t and fpos_t, since the latter is sometimes a struct.
30851         * lib/fseeko.c (rpl_fseeko): Likewise.
30852         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30853
30854 2009-12-15  Eric Blake  <ebb9@byu.net>
30855
30856         fcntl-h, stdio, sys_ioctl: fix declarations
30857         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30858         function must not take arguments.
30859         * lib/sys_ioctl.in.h (ioctl): Likewise.
30860         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30861         (open): Add a link warning.
30862
30863 2009-12-15  Jim Meyering  <meyering@redhat.com>
30864
30865         areadlink, areadlink-with-size: relax license to LGPLv2+
30866         * modules/areadlink (License): Relax to LGPLv2+.
30867         * modules/areadlink-with-size (License): Likewise.
30868
30869 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30870             Bruno Haible  <bruno@clisp.org>
30871
30872         *printf: Fix memory leak.
30873         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30874         * lib/vfprintf.c (vfprintf): Likewise.
30875         * lib/dprintf.c (dprintf): Likewise.
30876         * lib/vdprintf.c (vdprintf): Likewise.
30877
30878 2009-12-14  Eric Blake  <ebb9@byu.net>
30879
30880         accept4: adjust module dependencies
30881         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30882
30883         utimens: one more try at avoiding compiler warning
30884         * lib/utimens.c (lutimens): Lower scope of result.
30885
30886 2009-12-13  Bruno Haible  <bruno@clisp.org>
30887
30888         Move the malloc checking from module 'list' to new module 'xlist'.
30889         * modules/xlist: New file.
30890         * lib/gl_xlist.h: New file.
30891         * lib/gl_xlist.c: New file.
30892         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30893         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30894         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30895         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30896         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30897         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30898         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30899         gl_sortedlist_nx_add): New declarations.
30900         (struct gl_list_implementation): Rename and change methods accordingly.
30901         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30902         (gl_list_nx_create): Renamed from gl_list_create.
30903         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30904         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30905         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30906         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30907         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30908         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30909         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30910         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30911         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30912         gl_list_create_empty.
30913         (gl_list_nx_create): Renamed from gl_list_create.
30914         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30915         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30916         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30917         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30918         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30919         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30920         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30921         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30922         * lib/gl_array_list.c: Don't include xalloc.h.
30923         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30924         NULL upon out-of-memory.
30925         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30926         out-of-memory.
30927         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30928         Change return type to 'int'.
30929         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30930         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30931         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30932         upon out-of-memory.
30933         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30934         upon out-of-memory.
30935         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30936         upon out-of-memory.
30937         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30938         upon out-of-memory.
30939         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30940         out-of-memory.
30941         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30942         Update.
30943         (gl_array_list_implementation): Update.
30944         * lib/gl_carray_list.c: Don't include xalloc.h.
30945         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30946         Return NULL upon out-of-memory.
30947         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30948         out-of-memory.
30949         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30950         Change return type to 'int'.
30951         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30952         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30953         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30954         upon out-of-memory.
30955         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30956         upon out-of-memory.
30957         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30958         out-of-memory.
30959         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30960         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30961         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30962         Update.
30963         (gl_carray_list_implementation): Update.
30964         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30965         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30966         gl_linked_create_empty. Return NULL upon out-of-memory.
30967         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30968         out-of-memory.
30969         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30970         Change return type to 'int'. Return -1 upon out-of-memory.
30971         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30972         out-of-memory.
30973         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30974         upon out-of-memory.
30975         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30976         upon out-of-memory.
30977         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30978         NULL upon out-of-memory.
30979         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30980         upon out-of-memory.
30981         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30982         out-of-memory.
30983         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30984         Update.
30985         * lib/gl_linked_list.c: Don't include xalloc.h.
30986         (gl_linked_list_implementation): Update.
30987         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30988         (add_to_bucket): Change return type to 'int'.
30989         (gl_linkedhash_list_implementation): Update.
30990         * lib/gl_anytree_list1.h (free_subtree): New function.
30991         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30992         gl_tree_create_empty. Return NULL upon out-of-memory.
30993         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30994         Change return type to 'int'. Return -1 upon out-of-memory.
30995         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30996         out-of-memory.
30997         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30998         (gl_tree_remove_node): New function, moved here from
30999         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31000         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31001         Update.
31002         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31003         malloc, not xmalloc. Return NULL upon out-of-memory.
31004         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31005         out-of-memory.
31006         (gl_tree_remove_node_from_tree): New function, extracted from
31007         gl_tree_remove_node.
31008         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31009         upon out-of-memory.
31010         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31011         out-of-memory.
31012         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31013         upon out-of-memory.
31014         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31015         upon out-of-memory.
31016         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31017         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31018         not xmalloc. Return NULL upon out-of-memory.
31019         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31020         out-of-memory.
31021         (gl_tree_remove_node_from_tree): New function, extracted from
31022         gl_tree_remove_node.
31023         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31024         upon out-of-memory.
31025         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31026         out-of-memory.
31027         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31028         upon out-of-memory.
31029         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31030         upon out-of-memory.
31031         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31032         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31033         gl_anytree_list1.h before gl_anyavltree_list2.h.
31034         (gl_avltree_list_implementation): Update.
31035         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31036         gl_anytree_list1.h before gl_anyavltree_list2.h.
31037         (gl_rbtree_list_implementation): Update.
31038         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31039         Change return type to 'int'. Return -1 upon out-of-memory. Use
31040         __builtin_expect.
31041         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31042         (gl_avltreehash_list_implementation): Update.
31043         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31044         (gl_rbtreehash_list_implementation): Update.
31045         * modules/array-list (Depends-on): Remove xalloc.
31046         * modules/carray-list (Depends-on): Likewise.
31047         * modules/linked-list (Depends-on): Likewise.
31048         * modules/linkedhash-list (Depends-on): Likewise.
31049         * modules/avltree-list (Depends-on): Likewise.
31050         * modules/rbtree-list (Depends-on): Likewise.
31051         * modules/avltreehash-list (Depends-on): Likewise.
31052         * modules/rbtreehash-list (Depends-on): Likewise.
31053
31054         * modules/xsublist: New file.
31055         * lib/gl_xsublist.h: New file.
31056         * lib/gl_xsublist.c: New file.
31057         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31058         (gl_sublist_nx_create): New declaration.
31059         * lib/gl_sublist.c: Don't include xalloc.h.
31060         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31061         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31062         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31063         Change return type to 'int'. Return -1 upon out-of-memory.
31064         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31065         upon out-of-memory.
31066         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31067         NULL upon out-of-memory.
31068         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31069         upon out-of-memory.
31070         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31071         NULL upon out-of-memory.
31072         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31073         NULL upon out-of-memory.
31074         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31075         upon out-of-memory.
31076         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31077         (gl_sublist_list_implementation): Update.
31078         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31079         upon out-of-memory.
31080         * modules/sublist (Depends-on): Remove xalloc.
31081
31082         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31083         * tests/test-carray_list.c: Likewise.
31084         * tests/test-linked_list.c: Likewise.
31085         * tests/test-linkedhash_list.c: Likewise.
31086         * tests/test-avltree_list.c: Likewise.
31087         * tests/test-rbtree_list.c: Likewise.
31088         * tests/test-avltreehash_list.c: Likewise.
31089         * tests/test-rbtreehash_list.c: Likewise.
31090         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31091         * modules/carray-list-tests (Makefile.am): Likewise.
31092         * modules/linked-list-tests (Makefile.am): Likewise.
31093         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31094         * modules/avltree-list-tests (Makefile.am): Likewise.
31095         * modules/rbtree-list-tests (Makefile.am): Likewise.
31096         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31097         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31098
31099         * NEWS: Mention the changes.
31100
31101         * lib/clean-temp.c: Include gl_xlist.h.
31102         * modules/clean-temp (Depends-on): Add xlist.
31103
31104         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31105         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31106
31107         * tests/test-array_oset.c: Include gl_xlist.h.
31108         * modules/array-oset-tests (Depends-on): Add xlist.
31109
31110         Reported by José E. Marchesi <jemarch@gnu.org>.
31111
31112 2009-12-13  Bruno Haible  <bruno@clisp.org>
31113
31114         Move the malloc checking from module 'oset' to new module 'xoset'.
31115         * modules/xoset: New file.
31116         * lib/gl_xoset.h: New file.
31117         * lib/gl_xoset.c: New file.
31118         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31119         declarations.
31120         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31121         (struct gl_oset_implementation): Rename and change methods accordingly.
31122         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31123         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31124         'int'. Mark as __warn_unused_result__.
31125         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31126         gl_oset_create_empty.
31127         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31128         'int'.
31129         * lib/gl_array_oset.c: Don't include xalloc.h.
31130         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31131         malloc, not xmalloc.
31132         (grow): Change return type to 'int'. Don't call xalloc_die.
31133         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31134         to 'int'.
31135         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31136         'int'.
31137         (gl_array_oset_implementation): Update.
31138         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31139         gl_tree_create_empty.
31140         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31141         'int'.
31142         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31143         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31144         xmalloc.
31145         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31146         not xmalloc.
31147         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31148         xmalloc.
31149         (gl_avltree_oset_implementation): Update.
31150         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31151         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31152         xmalloc.
31153         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31154         not xmalloc.
31155         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31156         xmalloc.
31157         (gl_rbtree_oset_implementation): Update.
31158         * modules/array-oset (Depends-on): Remove xalloc.
31159         * modules/avltree-oset (Depends-on): Likewise.
31160         * modules/rbtree-oset (Depends-on): Likewise.
31161         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31162         * tests/test-avltree_oset.c: Likewise.
31163         * tests/test-rbtree_oset.c: Likewise.
31164         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31165         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31166         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31167         * NEWS: Mention the change.
31168
31169 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31170
31171         maint.mk: allow a project to override release-prep commands
31172         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31173         commands into a new rule.
31174         (release-prep): New rule.
31175         (release-prep-hook): New overridable variable.
31176
31177 2009-12-13  Bruno Haible  <bruno@clisp.org>
31178
31179         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31180
31181 2009-12-13  Jim Meyering  <meyering@redhat.com>
31182
31183         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31184         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31185
31186 2009-12-12  Bruno Haible  <bruno@clisp.org>
31187
31188         duplocale: Tweak.
31189         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31190
31191 2009-12-12  Karl Berry  <karl@gnu.org>
31192
31193         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31194
31195 2009-12-12  Bruno Haible  <bruno@clisp.org>
31196
31197         * m4/po.m4: Undo incorrect untabification.
31198
31199 2009-12-12  Bruno Haible  <bruno@clisp.org>
31200
31201         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31202         * modules/c-strtod (Depends-on): Add locale.
31203         * modules/c-strtold (Depends-on): Likewise.
31204
31205 2009-12-12  Bruno Haible  <bruno@clisp.org>
31206
31207         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31208
31209 2009-12-11  Eric Blake  <ebb9@byu.net>
31210
31211         setenv: relax requirement in light of POSIX ruling
31212         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31213         not NULL.
31214         * tests/test-setenv.c (main): Relax test.
31215         * tests/test-unsetenv.c (main): Likewise.
31216         * doc/posix-functions/setenv.texi (setenv): Document this.
31217         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31218
31219 2009-12-11  Bruno Haible  <bruno@clisp.org>
31220
31221         New module 'fd-safer-flag'.
31222         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31223         * lib/dup-safer.c (dup_safer_flag): Remove function.
31224         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31225         * lib/fd-safer.c (fd_safer_flag): Remove function.
31226         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31227         * modules/cloexec (configure.ac): Drop indicator macro.
31228         * modules/fd-safer-flag: New file.
31229         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31230         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31231         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31232
31233 2009-12-11  Bruno Haible  <bruno@clisp.org>
31234
31235         Tests for module 'nl_langinfo'.
31236         * modules/nl_langinfo-tests: New file.
31237         * tests/test-nl_langinfo.sh: New file.
31238         * tests/test-nl_langinfo.c: New file.
31239
31240         New module 'nl_langinfo'.
31241         * lib/nl_langinfo.c: New file.
31242         * m4/nl_langinfo.m4: New file.
31243         * modules/nl_langinfo: New file.
31244         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31245
31246 2009-12-11  Bruno Haible  <bruno@clisp.org>
31247
31248         Tests for module 'langinfo'.
31249         * modules/langinfo-tests: New file.
31250         * tests/test-langinfo.c: New file.
31251
31252         New module 'langinfo'.
31253         * lib/langinfo.in.h: New file.
31254         * m4/langinfo_h.m4: New file.
31255         * modules/langinfo: New file.
31256         * doc/posix-headers/langinfo.texi: Mention the new module.
31257
31258 2009-12-11  Bruno Haible  <bruno@clisp.org>
31259
31260         * lib/config.charset: Untabify.
31261
31262 2009-12-11  Bruno Haible  <bruno@clisp.org>
31263
31264         * modules/unistd-safer (configure.ac): Drop indicator macro.
31265
31266 2009-12-11  Bruno Haible  <bruno@clisp.org>
31267
31268         Move pipe2-safer code to its own file.
31269         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31270         * lib/pipe-safer.c (pipe2_safer): Remove function.
31271         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31272         (Makefile.am): Add it to lib_SOURCES.
31273
31274 2009-12-10  Bruno Haible  <bruno@clisp.org>
31275
31276         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31277
31278 2009-12-10  Bruno Haible  <bruno@clisp.org>
31279
31280         Declare which arguments expect non-NULL values, for GCC and clang.
31281         * build-aux/arg-nonnull.h: New file.
31282         * modules/arg-nonnull: New file.
31283         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31284         (inet_ntop, inet_pton): Use it.
31285         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31286         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31287         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31288         (open, openat): Use it.
31289         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31290         (fnmatch): Use it.
31291         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31292         (getopt, getopt_long, getopt_long_only): Use it.
31293         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31294         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31295         Use it.
31296         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31297         (iconv_open): Use it.
31298         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31299         (strtoimax, strtoumax): Use it.
31300         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31301         (duplocale): Use it.
31302         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31303         (frexp, frexpl): Use it.
31304         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31305         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31306         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31307         (tsearch, tfind, tdelete, twalk): Use it.
31308         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31309         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31310         sigpending): Use it.
31311         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31312         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31313         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31314         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31315         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31316         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31317         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31318         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31319         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31320         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31321         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31322         Use it.
31323         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31324         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31325         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31326         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31327         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31328         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31329         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31330         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31331         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31332         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31333         strtoull, unsetenv): Use it.
31334         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31335         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31336         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31337         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31338         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31339         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31340         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31341         (strcasecmp, strncasecmp): Use it.
31342         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31343         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31344         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31345         rpl_setsockopt): Use it.
31346         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31347         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31348         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31349         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31350         (gettimeofday): Use it.
31351         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31352         (times): Use it.
31353         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31354         (uname): Use it.
31355         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31356         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31357         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31358         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31359         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31360         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31361         unlinkat, write): Use it.
31362         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31363         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31364         * lib/argv-iter.h: Include arg-nonnull.h.
31365         (_ATTRIBUTE_NONNULL_): Remove macro.
31366         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31367         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31368         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31369         optimization.
31370         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31371         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31372         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31373         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31374         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31375         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31376         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31377         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31378         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31379         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31380         * modules/dirent (Depends-on): Add arg-nonnull.
31381         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31382         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31383         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31384         * modules/fnmatch (Depends-on): Add arg-nonnull.
31385         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31386         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31387         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31388         * modules/glob (Depends-on): Add arg-nonnull.
31389         (Makefile.am): Insert arg-nonnull.h into glob.h.
31390         * modules/iconv_open (Depends-on): Add arg-nonnull.
31391         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31392         * modules/inttypes (Depends-on): Add arg-nonnull.
31393         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31394         * modules/locale (Depends-on): Add arg-nonnull.
31395         (Makefile.am): Insert arg-nonnull.h into locale.h.
31396         * modules/math (Depends-on): Add arg-nonnull.
31397         (Makefile.am): Insert arg-nonnull.h into math.h.
31398         * modules/netdb (Depends-on): Add arg-nonnull.
31399         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31400         * modules/search (Depends-on): Add arg-nonnull.
31401         (Makefile.am): Insert arg-nonnull.h into search.h.
31402         * modules/signal (Depends-on): Add arg-nonnull.
31403         (Makefile.am): Insert arg-nonnull.h into signal.h.
31404         * modules/spawn (Depends-on): Add arg-nonnull.
31405         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31406         * modules/stdio (Depends-on): Add arg-nonnull.
31407         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31408         * modules/stdlib (Depends-on): Add arg-nonnull.
31409         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31410         * modules/string (Depends-on): Add arg-nonnull.
31411         (Makefile.am): Insert arg-nonnull.h into string.h.
31412         * modules/strings (Depends-on): Add arg-nonnull.
31413         (Makefile.am): Insert arg-nonnull.h into strings.h.
31414         * modules/sys_socket (Depends-on): Add arg-nonnull.
31415         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31416         * modules/sys_stat (Depends-on): Add arg-nonnull.
31417         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31418         * modules/sys_time (Depends-on): Add arg-nonnull.
31419         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31420         * modules/sys_times (Depends-on): Add arg-nonnull.
31421         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31422         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31423         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31424         * modules/time (Depends-on): Add arg-nonnull.
31425         (Makefile.am): Insert arg-nonnull.h into time.h.
31426         * modules/unistd (Depends-on): Add arg-nonnull.
31427         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31428         * modules/wchar (Depends-on): Add arg-nonnull.
31429         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31430         * modules/argv-iter (Depends-on): Add arg-nonnull.
31431         * tests/test-canonicalize.c (null_ptr): New function.
31432         (main): Use it.
31433         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31434         (main): Use it.
31435         * tests/test-memmem.c (null_ptr): New function.
31436         (main): Use it.
31437         Reported by Jim Meyering.
31438
31439 2009-12-10  Bruno Haible  <bruno@clisp.org>
31440
31441         Use spaces for indentation, not tabs.
31442         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31443         * m4/*.m4: Untabify.
31444         * build-aux/*.h: Untabify.
31445         * tests/**/*.[hc]: Untabify.
31446         * README: New section "Indent with spaces, not TABs", based on
31447         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31448         * NEWS: Mention the change.
31449
31450 2009-12-10  Bruno Haible  <bruno@clisp.org>
31451
31452         pty test: Fix link error.
31453         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31454         test_pty_LDADD.
31455
31456 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31457
31458         * modules/pty: New file.
31459         * modules/pty-tests: New file.
31460         * m4/pty.m4: New file.
31461         * tests/test-pty.c: New file.
31462         * doc/glibc-headers/pty.texi: Modified.
31463         * doc/glibc-functions/forkpty.texi: Modified.
31464         * doc/glibc-functions/openpty.texi: Modified.
31465
31466 2009-12-10  Bruno Haible  <bruno@clisp.org>
31467
31468         Avoid syntax error in C++ mode.
31469         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31470
31471 2009-12-10  Bruno Haible  <bruno@clisp.org>
31472
31473         Use sed with option -e.
31474         * gnulib-tool (func_version, func_emit_copyright_notice,
31475         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31476         option -e to sed.
31477         * modules/link-warning (Makefile.am): Likewise.
31478
31479 2009-12-10  Jim Meyering  <meyering@redhat.com>
31480
31481         mgetgroups: do not write bytes beyond end of malloc'd buffer
31482         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31483         username, we call getgroups with a one-element-shorter buffer,
31484         but still told it the length was original, max_n_groups.
31485
31486 2009-12-09  Eric Blake  <ebb9@byu.net>
31487
31488         cloexec: relax license
31489         * modules/cloexec (Maintainer): Add myself.
31490         (License): Use LGPL, not GPL.
31491
31492         link-warning: optimize generation
31493         * modules/link-warning (Makefile.am): Reduce process usage.
31494
31495 2009-12-09  Bruno Haible  <bruno@clisp.org>
31496
31497         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31498         workaround was added on 2009-11-17.
31499
31500 2009-12-09  Jim Meyering  <meyering@redhat.com>
31501             Bruno Haible  <bruno@clisp.org>
31502
31503         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31504         * modules/link-warning (Makefile.am): Make the comment-removing sed
31505         command more robust in the face of bootstrap-prepended comment lines.
31506
31507 2009-12-09  Bruno Haible  <bruno@clisp.org>
31508
31509         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31510         most one group.
31511
31512 2009-12-09  Simon Josefsson <simon@josefsson.org>
31513             Bruno Haible  <bruno@clisp.org>
31514
31515         * build-aux/link-warning.h: Add copyright notice.
31516         * modules/link-warning (Makefile.am): Generate link-warning.h from
31517         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31518         * NEWS: Mention change in link-warning module.
31519         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31520         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31521         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31522         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31523         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31524         * modules/math (Makefile.am): Add dependency to math.h.
31525         * modules/search (Makefile.am): Add dependency to search.h.
31526         * modules/signal (Makefile.am): Add dependency to signal.h.
31527         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31528         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31529         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31530         * modules/string (Makefile.am): Add dependency to string.h.
31531         * modules/strings (Makefile.am): Add dependency to strings.h.
31532         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31533         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31534         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31535         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31536         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31537         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31538         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31539         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31540         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31541
31542 2009-12-09  Bruno Haible  <bruno@clisp.org>
31543
31544         fchdir: Optimize away rpl_fstat when possible.
31545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31546         REPLACE_OPEN_DIRECTORY.
31547         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31548
31549 2009-12-09  Bruno Haible  <bruno@clisp.org>
31550
31551         * lib/fchdir.c: Update comment.
31552
31553 2009-12-09  Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31556
31557 2009-12-08  Eric Blake  <ebb9@byu.net>
31558
31559         fchdir: avoid memory leak on re-registration.
31560         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31561
31562 2009-12-08  Jim Meyering  <meyering@redhat.com>
31563
31564         init.sh: avoid Solaris 10 /bin/sh portability problem
31565         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31566         sourced script:
31567           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31568           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31569           bar
31570         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31571         and two tests used that idiom.
31572         * tests/init.sh: Update suggested usage comments.
31573         (path_prepend_): New function, to be used in place
31574         of the --src-path=DIR option.
31575         (setup_): Move PATH-prepending code into path_prepend_.
31576         * tests/test-pread.sh: Adapt to new usage.
31577         * tests/test-xalloc-die.sh: Likewise.
31578
31579 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31580
31581         * doc/gnulib.texi (Glibc pty.h): Add.
31582         * doc/glibc-functions/forkpty.texi: Add.
31583         * doc/glibc-functions/openpty.texi: Add.
31584         Suggested by Bruno Haible.
31585
31586 2009-12-08  Eric Blake  <ebb9@byu.net>
31587
31588         fchdir: fix logic bugs
31589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31590         * tests/test-fchdir.c (main): Enhance test.
31591         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31592         is in use.
31593
31594         dup2: fix logic bugs
31595         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31596         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31597         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31598         exists.
31599         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31600
31601 2009-12-07  Eric Blake  <ebb9@byu.net>
31602
31603         unlink: fix m4 detection
31604         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31605
31606         unistd-safer: add unit test
31607         * modules/unistd-safer-tests: New file.
31608         * tests/test-dup-safer.c: Likewise.
31609         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31610         * tests/test-dup2.c (setmode): Likewise.
31611         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31612
31613         cloexec: preserve text vs. binary across dup_cloexec
31614         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31615         mode.
31616         * modules/dup2-tests (Depends-on): Add binary-io.
31617         * modules/cloexec-tests (Depends-on): Likewise.
31618         * tests/test-dup2.c (setmode, is_mode): New helpers.
31619         (main): Add tests that translation mode is preserved.
31620         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31621         Reported by Bruno Haible.
31622
31623         mgetgroups: reduce duplicate listings
31624         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31625         resulting array.
31626         * tests/test-chown.h (test_chown): Simplify client.
31627         * tests/test-lchown.h (test_lchown): Likewise.
31628
31629 2009-12-06  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31632         value.
31633
31634 2009-12-06  Bruno Haible  <bruno@clisp.org>
31635
31636         * lib/progname.c: Include stdio.h, stdlib.h.
31637         (set_program_name): Reject a NULL argument.
31638
31639 2009-12-05  Eric Blake  <ebb9@byu.net>
31640
31641         pipe2-safer: new module
31642         * modules/pipe2-safer: New file.
31643         * lib/unistd-safer.h (pipe2_safer): New prototype.
31644         * lib/unistd--.h (pipe2): New wrapper.
31645         * lib/pipe-safer.c (pipe2_safer): New function.
31646         * modules/pipe (Depends-on): Add pipe2-safer.
31647         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31648
31649         stdlib-safer: preserve cloexec flag for mkostemp[s]
31650         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31651         fd_safer_flag.
31652
31653         unistd-safer: allow preservation of cloexec status via flag
31654         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31655         prototypes.
31656         * lib/dup-safer.c (dup_safer_flag): New function.
31657         * lib/fd-safer.c (fd_safer_flag): Likewise.
31658         * modules/cloexec (configure.ac): Set witness.
31659
31660         test-dup2: enhance test
31661         * modules/dup2-tests (Depends-on): Add cloexec.
31662         * tests/test-dup2.c (main): Enhance test.
31663
31664         cloexec: add dup_cloexec
31665         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31666         header and comments.
31667         * lib/cloexec.c (set_cloexec_flag): Add comments.
31668         (dup_cloexec): New function, with mingw implementation borrowed
31669         from...
31670         * lib/w32spawn.h (dup_noinherit): ...here.
31671         * modules/execute (Depends-on): Add cloexec.
31672         * modules/pipe (Depends-on): Likewise.
31673         * modules/cloexec (Depends-on): Add dup2.
31674         * modules/cloexec-tests (Files): New file.
31675         * tests/test-cloexec.c: Likewise.
31676
31677         test-xalloc-die: fix test for mingw
31678         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31679         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31680         directory and .exe suffix off argv[0] output.
31681
31682         test-fseeko: fix test for mingw
31683         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31684         than undefining fseek, so test will pass on mingw.
31685
31686 2009-12-05  Bruno Haible  <bruno@clisp.org>
31687
31688         * lib/progname.h (set_program_name): Clarify specification.
31689         * lib/progname.c (set_program_name): Likewise.
31690         Reported by Jim Meyering.
31691
31692 2009-12-05  Jim Meyering  <meyering@redhat.com>
31693
31694         maint.mk: backslash-escape parens in default regexp
31695         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31696         backslash-escape the literal parentheses.
31697
31698         maint.mk: news-date-check: use grep -E
31699         * top/maint.mk (today): Define a Make variable, not a...
31700         (news-date-check): ...shell variable.
31701         (news-date-regexp): Use the Make variable.
31702         Use grep's -E option.  Change the failing diagnostic to mention
31703         the variable, $(news-date-regexp).
31704
31705 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31706
31707         maintainer-makefile: allow customization of NEWS entry format
31708         * top/maint.mk (news-date-regexp): New overridable variable.
31709         (news-date-check): Use it.
31710
31711 2009-12-04  Eric Blake  <ebb9@byu.net>
31712
31713         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31714         * lib/mgetgroups.h (xgetgroups): New prototype.
31715         * lib/mgetgroups.c (xgetgroups): New wrapper.
31716         (mgetgroups): Handle ENOSYS.
31717         * modules/mgetgroups (Depends-on): Add realloc.
31718         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31719
31720         mgetgroups: avoid argument promotion issues with -1
31721         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31722         for invalid gid_t.
31723         * tests/test-chown.h (getegid, test_chown): Likewise.
31724         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31725
31726 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31727
31728         exclude: Fix header file problems.
31729         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31730
31731 2009-12-01  Jim Meyering  <meyering@redhat.com>
31732
31733         fts: fts_open: do not let an empty string cause immediate failure
31734         This is required in support of GNU rm, for which the command
31735         "rm A '' B" must process and remove both A and B, in spite of
31736         the empty string argument.
31737         * lib/fts.c (fts_open): Do not let the presence of an empty string
31738         cause fts_open to fail immediately.  Most fts-using tools must be
31739         able to process all arguments, in order, and can be expected to
31740         diagnose such arguments themselves.
31741
31742 2009-11-30  Eric Blake  <ebb9@byu.net>
31743
31744         utimens: fix compilation error
31745         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31746         Declare variable at right scope.
31747
31748 2009-11-29  Jim Meyering  <meyering@redhat.com>
31749
31750         bootstrap: handle perl-5.11's changed --version output
31751         * build-aux/bootstrap (get_version): Handle perl separately,
31752         since perl-5.11's --version output is different.
31753
31754 2009-11-28  Jim Meyering  <meyering@redhat.com>
31755
31756         userspec: depend on the inttostr module, too
31757         * modules/userspec (Depends-on): Add inttostr.
31758
31759         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31760         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31761         number of MAXUID when it evaluates to (uid_t) -1.
31762         Likewise for group ID.  Reported by Matt McCutchen in
31763         <http://savannah.gnu.org/bugs/?28113>
31764
31765         userspec: reformat to use spaces, not TABs
31766         * lib/userspec.c: Expand TABs to spaces.
31767         Add Emacs' "indent-tabs-mode: nil" hint.
31768
31769 2009-11-27  Eric Blake  <ebb9@byu.net>
31770
31771         getopt-gnu: flush out another BSD bug
31772         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31773         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31774         flush out BSD bug.
31775         * tests/test-getopt.h (test_getopt): End lists with NULL.
31776         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31777         (test_getopt_long_posix): Enhance test.
31778         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31779         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31780         getopt-gnu.
31781         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31782         Likewise.
31783
31784 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31785
31786         * modules/idpriv-droptemp-tests (Notice): Fix text.
31787
31788 2009-11-27  Jim Meyering  <meyering@redhat.com>
31789
31790         test-xalloc-die: avoid spurious failure due to libtool argv difference
31791         In a libtool-enabled project, this test would fail due to a difference
31792         in the emitted program name, e.g.,
31793         -test-xalloc-die: memory exhausted
31794         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31795         Use program to avoid that.
31796         * modules/xalloc-die-tests (Depends-on): Add progname.
31797         * tests/test-xalloc-die.c: Include progname.h".
31798         (program_name): Remove decl.
31799         (main): Call set_program_name.
31800         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31801
31802 2009-11-26  Richard Jones  <rjones@redhat.com>
31803
31804         w32sock: leave win32 error in place.
31805         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31806
31807 2009-11-26  Eric Blake  <ebb9@byu.net>
31808
31809         init.sh: suggest to use skip_ and fail_ functions in comments
31810         * tests/init.sh: Add a sentence.
31811
31812 2009-11-25  Bruno Haible  <bruno@clisp.org>
31813
31814         init.sh: add documentation in comments
31815         * tests/init.sh: Add some developer and user documentation.
31816
31817 2009-11-26  Jim Meyering  <meyering@redhat.com>
31818
31819         init.sh: accommodate even those who specify bogus srcdir manually
31820         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31821         configure-time tests to be sanitized, so that there is no need to
31822         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31823         (with no double quotes) suffices.  However, since tests may be
31824         invoked manually, and since you may explicitly set srcdir to the
31825         name of a directory containing spaces, do quote its uses here.
31826         * tests/test-pread.sh: Likewise.
31827         Suggested by Bruno Haible.
31828
31829         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31830         * tests/test-pread.sh: Write no data into the pipe, because
31831         test-pread actually reads none.  This avoids a diagnostic,
31832         "bash: echo: write error: Broken pipe", that arises in the unusual
31833         event something is ignoring SIGPIPE, and might be interpreted
31834         as some sort of failure.  Reported by Bruno Haible.
31835
31836 2009-11-25  Jim Meyering  <meyering@redhat.com>
31837
31838         test-pread: cover failure with ESPIPE and EINVAL
31839         * tests/test-pread.c (main): Test for failure, too.
31840         * tests/test-pread.sh: Invoke with stdin on a pipe.
31841         Suggested by Eric Blake.
31842
31843         pread: improvement and fix
31844         * modules/pread (Depends-on): Depend on lseek, for portability to
31845         e.g., mingw.  Suggested by Eric Blake.
31846         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31847
31848         unistd.in.h: correct declaration of pread
31849         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31850         Reported by Richard W.M. Jones.
31851
31852         test-pread.sh: distribute the test script
31853         * modules/pread-tests (Files): Include test-pread.sh.
31854
31855         test-pread.sh: clean up
31856         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31857         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31858         That is unnecessary, since it's always ".".
31859         Suggestion from Eric Blake.
31860
31861         test-pread.sh: make executable
31862         * tests/test-pread.sh: Set executable bit.
31863         Reported by Eric Blake.
31864
31865         correct typo in test-pread.sh
31866         * tests/test-pread.sh: Add #! line.
31867
31868         test pread
31869         * tests/test-pread.c: New file.
31870         * tests/test-pread.sh: Likewise.
31871         * modules/pread-tests: Likewise.
31872
31873         pread: new module
31874         * modules/pread: New file.
31875         * lib/unistd.in.h (pread): Define/declare.
31876         * lib/pread.c (pread): New file.
31877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31878         * modules/unistd (Makefile.am): Substitute witnesses.
31879         * doc/posix-functions/pread.texi (pread): Update.
31880         * MODULES.html.sh: Add pread.
31881
31882 2009-11-25  Jim Meyering  <meyering@redhat.com>
31883
31884         tests/init.sh: new file to be used via most *.sh tests
31885         * tests/init.sh: New file.
31886
31887 2009-11-25  Eric Blake  <ebb9@byu.net>
31888
31889         utimens: work around older Linux failure with symlinks
31890         * lib/utimens.c (lutimensat_works_really): New variable.
31891         (fdutimens, lutimens): Use it to manage kernels that support
31892         nanosecond times on files, but not on symlinks.
31893         Reported by OndÅ™ej Vašík.
31894
31895         utimes: fix configure grammar
31896         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31897
31898 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31899
31900         regex: Fix fastmap for multibyte character ranges.
31901         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31902         characters when a multibyte character range is included.
31903
31904 2009-11-22  Andy Wingo  <wingo@pobox.com>
31905
31906         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31907         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31908
31909 2009-11-24  Bruno Haible  <bruno@clisp.org>
31910
31911         doc: Most *_l functions exist in MacOS X 10.5.
31912         * doc/posix-functions/duplocale.texi: Update platforms list.
31913         * doc/posix-functions/freelocale.texi: Likewise.
31914         * doc/posix-functions/newlocale.texi: Likewise.
31915         * doc/posix-functions/uselocale.texi: Likewise.
31916         * doc/posix-functions/isalnum_l.texi: Likewise.
31917         * doc/posix-functions/isalpha_l.texi: Likewise.
31918         * doc/posix-functions/isblank_l.texi: Likewise.
31919         * doc/posix-functions/iscntrl_l.texi: Likewise.
31920         * doc/posix-functions/isdigit_l.texi: Likewise.
31921         * doc/posix-functions/isgraph_l.texi: Likewise.
31922         * doc/posix-functions/islower_l.texi: Likewise.
31923         * doc/posix-functions/isprint_l.texi: Likewise.
31924         * doc/posix-functions/ispunct_l.texi: Likewise.
31925         * doc/posix-functions/isspace_l.texi: Likewise.
31926         * doc/posix-functions/isupper_l.texi: Likewise.
31927         * doc/posix-functions/iswalnum_l.texi: Likewise.
31928         * doc/posix-functions/iswalpha_l.texi: Likewise.
31929         * doc/posix-functions/iswblank_l.texi: Likewise.
31930         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31931         * doc/posix-functions/iswctype_l.texi: Likewise.
31932         * doc/posix-functions/iswdigit_l.texi: Likewise.
31933         * doc/posix-functions/iswgraph_l.texi: Likewise.
31934         * doc/posix-functions/iswlower_l.texi: Likewise.
31935         * doc/posix-functions/iswprint_l.texi: Likewise.
31936         * doc/posix-functions/iswpunct_l.texi: Likewise.
31937         * doc/posix-functions/iswspace_l.texi: Likewise.
31938         * doc/posix-functions/iswupper_l.texi: Likewise.
31939         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31940         * doc/posix-functions/isxdigit_l.texi: Likewise.
31941         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31942         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31943         * doc/posix-functions/strcoll_l.texi: Likewise.
31944         * doc/posix-functions/strfmon_l.texi: Likewise.
31945         * doc/posix-functions/strftime_l.texi: Likewise.
31946         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31947         * doc/posix-functions/strxfrm_l.texi: Likewise.
31948         * doc/posix-functions/tolower_l.texi: Likewise.
31949         * doc/posix-functions/toupper_l.texi: Likewise.
31950         * doc/posix-functions/towctrans_l.texi: Likewise.
31951         * doc/posix-functions/towlower_l.texi: Likewise.
31952         * doc/posix-functions/towupper_l.texi: Likewise.
31953         * doc/posix-functions/wcscoll_l.texi: Likewise.
31954         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31955         * doc/posix-functions/wctrans_l.texi: Likewise.
31956         * doc/posix-functions/wctype_l.texi: Likewise.
31957         * doc/glibc-functions/strptime_l.texi: Likewise.
31958         * doc/glibc-functions/strtod_l.texi: Likewise.
31959         * doc/glibc-functions/strtof_l.texi: Likewise.
31960         * doc/glibc-functions/strtol_l.texi: Likewise.
31961         * doc/glibc-functions/strtold_l.texi: Likewise.
31962         * doc/glibc-functions/strtoll_l.texi: Likewise.
31963         * doc/glibc-functions/strtoul_l.texi: Likewise.
31964         * doc/glibc-functions/strtoull_l.texi: Likewise.
31965         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31966         * doc/glibc-functions/wcstod_l.texi: Likewise.
31967         * doc/glibc-functions/wcstof_l.texi: Likewise.
31968         * doc/glibc-functions/wcstol_l.texi: Likewise.
31969         * doc/glibc-functions/wcstold_l.texi: Likewise.
31970         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31971         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31972         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31973
31974 2009-11-24  Bruno Haible  <bruno@clisp.org>
31975
31976         duplocale: Fix logic bug.
31977         * lib/duplocale.c: Don't include <langinfo.h>.
31978         (_NL_LOCALE_NAME): Remove macro.
31979         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31980         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31981
31982 2009-11-23  Jim Meyering  <meyering@redhat.com>
31983
31984         test-update-copyright: don't hard-code /usr/bin/perl
31985         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31986         perl to print the current year.  Gilles Espinasse reported that
31987         the replaced use of perl was hard-coded as /usr/bin/perl.
31988
31989 2009-11-23  Bruno Haible  <bruno@clisp.org>
31990
31991         duplocale: Add support for glibc 2.3.x.
31992         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31993
31994 2009-11-22  Bruno Haible  <bruno@clisp.org>
31995
31996         vasnprintf: Tiny optimization.
31997         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31998         MacOS X.
31999
32000 2009-11-22  Bruno Haible  <bruno@clisp.org>
32001
32002         Tests for module 'duplocale'.
32003         * modules/duplocale-tests: New file.
32004         * tests/test-duplocale.c: New file.
32005
32006         New module 'duplocale'.
32007         * m4/duplocale.m4: New file.
32008         * lib/locale.in.h (duplocale): New declaration.
32009         * lib/duplocale.c: New file.
32010         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32011         gl_LOCALE_H_DEFAULTS): New macros.
32012         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32013         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32014         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32015         REPLACE_DUPLOCALE.
32016         * modules/duplocale: New file.
32017         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32018
32019 2009-11-22  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/locale-tests (configure.ac): Test for newlocale function.
32022         * tests/test-locale.c: When the system has extended locale functions,
32023         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32024
32025         locale: Make locale_t available when possible.
32026         * lib/locale.in.h: Include <xlocale.h> when it exists.
32027         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32028         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32029         * modules/locale (Depends-on): Add extensions.
32030         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32031         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32032
32033 2009-11-22  Bruno Haible  <bruno@clisp.org>
32034
32035         Add comments.
32036         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32037         invocation.
32038         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32039         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32040         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32041
32042 2009-11-22  Bruno Haible  <bruno@clisp.org>
32043
32044         error: account for the possibility of freopen (stdout).
32045         * lib/error.c: Include <unistd.h>.
32046         (flush_stdout): New function, extracted from error and error_at_line.
32047         Determine stdout's fd dynamically.
32048         (error, error_at_line): Invoke flush_stdout.
32049         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32050         * modules/error (Depends-on): Add unistd.
32051
32052 2009-11-22  Bruno Haible  <bruno@clisp.org>
32053
32054         diffseq: Add comment.
32055         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32056
32057 2009-11-22  Jim Meyering  <meyering@redhat.com>
32058
32059         c-stack: avoid defining an unused static function
32060         * lib/c-stack.c (find_stack_direction): Do not define this function
32061         when it will not be used.
32062
32063         diffseq: avoid spurious gcc warnings
32064         * lib/diffseq.h (IF_LINT2): Define.
32065         (compareseq): Use it to initialize two members of "part".
32066         This avoids two used-uninitialized warnings.
32067
32068 2009-11-21  Jim Meyering  <meyering@redhat.com>
32069
32070         c-stack: avoid "ignoring return value of `write'" warning
32071         * lib/c-stack.c: Include "ignore-value.h".
32072         (die): Explicitly ignore each write return value.
32073         * modules/c-stack (Depends-on): Add ignore-value.
32074
32075 2009-11-21  Bruno Haible  <bruno@clisp.org>
32076
32077         diffseq: reduce scope of variable 'best'.
32078         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32079         variable, earlier used for two different purposes.
32080
32081 2009-11-21  Jim Meyering  <meyering@redhat.com>
32082
32083         diffseq: remove useless assignment to "best"
32084         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32085         assignment.  At that point "best" is already guaranteed to be zero.
32086
32087 2009-11-20  Eric Blake  <ebb9@byu.net>
32088
32089         build: mention ftp redirector in release announcements
32090         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32091         values that used to come from cfg.mk; mention FTP redirect URL.
32092         * build-aux/announce-gen: Mention the mirror list.
32093         Suggested by Karl Berry.
32094
32095         nanosleep: improve port to mingw
32096         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32098         LIB_NANOSLEEP, but only when needed.
32099         * modules/select (Link): Document LIBSOCKET.
32100         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32101         enough.
32102
32103         nanosleep: work around cygwin bug
32104         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32105         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32106         bug.
32107         (getnow): Delete, not needed.
32108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32109         LIB_CLOCK_GETTIME.
32110         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32111         clock-time, gettime.
32112         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32113         bug.
32114         * modules/nanosleep-tests: New test.
32115         * tests/test-nanosleep.c: New file.
32116
32117         sleep: work around cygwin bug
32118         * lib/sleep.c (rpl_sleep): Work around the bug.
32119         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32120         (gl_PREREQ_SLEEP): Delete unused macro.
32121         * modules/sleep (Depends-on): Add verify.
32122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32123         * modules/unistd (Makefile.am): Substitute witness.
32124         * lib/unistd.in.h (sleep): Update prototype.
32125         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32126         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32127         * modules/sleep-tests (Depends-on): Check for alarm.
32128
32129 2009-11-20  Jim Meyering  <meyering@redhat.com>
32130
32131         maint.mk: improve sc_prohibit_magic_number_exit
32132         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32133         so it does not match uses like System.exit(1).
32134         Add comments showing how to correct all offenders.
32135
32136 2009-11-19  Eric Blake  <ebb9@byu.net>
32137
32138         xalloc-die-tests: add missing library
32139         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32140
32141         test-xvasprintf: silence compiler warnings
32142         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32143         empty string from gcc.
32144
32145 2009-11-19  Jim Meyering  <meyering@redhat.com>
32146
32147         xfreopen: new module, from coreutils
32148         * modules/xfreopen: New module.
32149         * lib/xfreopen.c: New file.
32150         * lib/xfreopen.h: New file.
32151         * MODULES.html.sh (File stream based Input/Output"): Add it.
32152
32153 2009-11-19  Eric Blake  <ebb9@byu.net>
32154
32155         manywarnings: depend on warnings
32156         * modules/manywarnings (Depends-on): Add warnings.
32157
32158         build: avoid compiler warnings
32159         * lib/select.c (rpl_select): Delete unused variable.
32160         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32161
32162 2009-11-18  Eric Blake  <ebb9@byu.net>
32163
32164         tests: avoid false negative with --with-packager
32165         * tests/test-version-etc.sh: Discard packager information.
32166         * tests/test-argp-version-etc-1.sh: Likewise.
32167         Reported by Mike Frysinger.
32168
32169         utimens: fix regression on Solaris
32170         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32171         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32172         can only change fd timestamps via futimesat.  Instead, use an
32173         additional witness macro to avoid BSD bug.
32174         Reported by Jim Meyering.
32175
32176 2009-11-17  Eric Blake  <ebb9@byu.net>
32177
32178         usleep: use it to simplify tests
32179         * modules/stat-time-tests (Depends-on): Add usleep.
32180         (configure.ac): Drop usleep check.
32181         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32182         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32183         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32184         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32185         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32186         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32187         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32188         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32189         Likewise.
32190         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32191         * tests/test-lchown.h (nap): Likewise.
32192         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32193         * tests/test-stat-time.c (nap): Likewise.
32194         * tests/test-utimens-common.h (nap): Update comments.
32195
32196         usleep: new module
32197         * modules/usleep: New file.
32198         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32199         * lib/usleep.c (usleep): Likewise.
32200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32201         * modules/unistd (Makefile.am): Substitute witnesses.
32202         * lib/unistd.in.h (usleep): Add declaration.
32203         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32204         * MODULES.html.sh (Date and time): Likewise.
32205         * modules/usleep-tests (Depends-on): New test.
32206         * tests/test-usleep.c: New file.
32207
32208         chown: work around OpenBSD bug
32209         * lib/chown.c (rpl_chown): Work around the bug.
32210         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32211         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32212         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32213         * modules/chown (Depends-on): Add stdbool.
32214         * modules/lchown (Depends-on): Likewise.
32215         * doc/posix-functions/chown.texi (chown): Document the bug.
32216         * doc/posix-functions/lchown.texi (lchown): Likewise.
32217         * tests/test-lchown.h (test_chown): Relax test.
32218
32219         mkstemp: avoid conflict with C++ keyword template
32220         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32221         * lib/mkostemp.c (mkostemp): Likewise.
32222         * lib/mkostemps.c (mkostemps): Likewise.
32223         * lib/mkstemp.c (mkstemp): Likewise.
32224         * lib/mkstemps.c (mkstemps): Likewise.
32225
32226         xalloc-die-tests: optimize
32227         * tests/test-xalloc-die.sh: Reduce number of processes.
32228
32229 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32230
32231         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32232         patch from ludo@gnu.org (Ludovic Courtès).
32233
32234 2009-11-17  Jim Meyering  <meyering@redhat.com>
32235
32236         version-etc: use proper license string
32237         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32238         * modules/version-etc-fsf: Likewise.
32239
32240 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32241
32242         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32243         printed to stdout.  Deal with EOL differences.
32244
32245 2009-11-17  Eric Blake  <ebb9@byu.net>
32246
32247         unsetenv: work around Solaris bug
32248         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32249         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32250         Reported by Jim Meyering.
32251
32252         vasnprintf: avoid compiler warnings
32253         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32254         variables.
32255         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32256
32257 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32258
32259         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32260         settings since xalloc-die is no longer the self test,
32261         xalloc-die.sh is.
32262
32263 2009-11-17  Jim Meyering  <meyering@redhat.com>
32264
32265         test-xalloc-die.sh: make the code agree with the commit log
32266         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32267         at the end, just in case you happen to have a test-xalloc-die
32268         program in some other PATH directory.
32269
32270         test-xalloc-die.sh: fix a portability bug
32271         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32272         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32273         Otherwise, argv[0] (as often seen in diagnostics) would be too
32274         system-dependent, sometimes with, and sometimes without the leading "./".
32275
32276         version-etc-fsf: relax license to LGPLv3+
32277         * modules/version-etc-fsf (License): Relax license.
32278
32279 2009-11-16  Eric Blake  <ebb9@byu.net>
32280
32281         xalloc-die-tests: avoid printing null pointer
32282         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32283         shell script.
32284         * tests/test-xalloc-die.c (program_name): Declare.
32285         * tests/test-xalloc-die.sh (tmpfiles): New file.
32286
32287         setenv, unsetenv: work around various bugs
32288         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32289         (setenv) [HAVE_SETENV]: Work around bugs.
32290         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32291         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32292         for bugs.
32293         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32294         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32296         * modules/stdlib (Makefile.am): Update substitutions.
32297         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32298         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32299         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32300         * modules/setenv-tests: New test.
32301         * modules/unsetenv-tests: Likewise.
32302         * tests/test-setenv.c: New file.
32303         * tests/test-unsetenv.c: Likewise.
32304
32305 2009-11-16  Jim Meyering  <meyering@redhat.com>
32306
32307         version-etc: relax license to LGPLv3+
32308         * modules/version-etc (License): Relax license.
32309
32310         better AC_REQUIRE expanded-before-required-warning avoidance
32311         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32312         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32313         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32314         which is no longer needed.
32315
32316 2009-11-16  Eric Blake  <ebb9@byu.net>
32317
32318         test-freading: clean up temporary file
32319         * tests/test-freading.c (main): Remove file on success, and use
32320         ASSERT more liberally.
32321         Reported by Jim Meyering.
32322
32323 2009-11-16  Jim Meyering  <meyering@redhat.com>
32324
32325         avoid new AC_REQUIRE expanded-before-required warnings
32326         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32327         merely using it.
32328         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32329         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32330
32331 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32332
32333         * tests/test-xalloc-die.c: New file.
32334         * modules/xalloc-die-tests: New file.
32335         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32336         XFAIL_TESTS so it can be appended by modules.
32337
32338 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32339
32340         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32341         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32342
32343 2009-11-14  Eric Blake  <ebb9@byu.net>
32344
32345         fnmatch: avoid compiler warning
32346         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32347         to silence compiler warning about mismatch signedness in ?:.
32348         Reported by Robert Millan.
32349
32350         intprops: add double-inclusion guard
32351         * lib/intprops.h: Allow idempotent includes.
32352         Suggested by Bruce Korb.
32353
32354         openat: detect Solaris fchownat bug
32355         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32356         penalizing glibc chownat when only lchownat is broken.
32357         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32358         trailing slash bugs.
32359         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32360         * modules/openat-tests (Files): Include more files.
32361         (Depends-on): Add mgetgroups, sleep, stat-time.
32362         (configure.ac): Add additional checks.
32363         (Makefile.am): Build new test.
32364         * tests/test-fchownat.c: New file.
32365
32366         lchown: detect Solaris and FreeBSD bug
32367         * lib/lchown.c (rpl_lchown): Work around bug.
32368         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32370         * modules/unistd (Makefile.am): Populate it.
32371         * lib/unistd.in.h (lchown): Update declaration.
32372         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32373         * modules/lchown-tests: New file.
32374         * tests/test-lchown.h (test_lchown): Likewise.
32375         * tests/test-lchown.c (main): Likewise.
32376
32377         chown: detect Solaris and FreeBSD bug
32378         * lib/chown.c (rpl_chown): Work around bug.
32379         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32380         (gl_PREREQ_CHOWN): Delete.
32381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32382         * modules/unistd (Makefile.am): Populate it.
32383         * lib/unistd.in.h (chown): Update declaration.
32384         * lib/lchown.c (chown): Update client.
32385         * modules/lchown (Depends-on): Add lstat.
32386         * doc/posix-functions/chown.texi (chown): Document the bug.
32387         * doc/posix-functions/getgroups.texi (getgroups): Document
32388         getgroups pitfall.
32389         * modules/chown-tests: New file.
32390         * tests/test-chown.h (test_chown): Likewise.
32391         * tests/test-chown.c (main): Likewise.
32392
32393 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32394
32395         gnulib-tool: correctly detect absence of m4 directories
32396         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32397
32398 2009-11-14  Jim Meyering  <meyering@redhat.com>
32399
32400         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32401         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32402
32403 2009-11-14  John W. Eaton  <jwe@gnu.org>
32404
32405         strftime.h: wrap funtion declaration in extern "C" block
32406         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32407
32408 2009-11-13  Eric Blake  <ebb9@byu.net>
32409
32410         getgroups: avoid compiler warning
32411         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32412
32413         getgroups: work around FreeBSD bug
32414         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32415         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32416         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32417         * tests/test-getgroups.c (main): Fix buffer overrun.
32418
32419         getgroups: avoid compilation failure
32420         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32421         * modules/getgroups (Depends-on): Add stdint.
32422
32423 2009-11-13  Jim Meyering  <meyering@redhat.com>
32424
32425         test-getgroups: avoid compilation failure
32426         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32427
32428 2009-11-13  Eric Blake  <ebb9@byu.net>
32429
32430         mgetgroups: new module, taken from coreutils
32431         * modules/mgetgroups: New file.
32432         * lib/mgetgroups.h: Likewise.
32433         * lib/mgetgroups.c (mgetgroups): Likewise.
32434         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32435         * MODULES.html.sh (Users and groups): Mention it.
32436
32437         getgroups: don't expose GETGROUPS_T to user
32438         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32439         an element at a time if GETGROUPS_T is wrong size.
32440         * lib/getugroups.h (getugroups): Change signature.
32441         * lib/unistd.in.h (getgroups): Likewise.
32442         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32443         signature needs fixing.
32444         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32445         AC_TYPE_GETGROUPS.
32446         * modules/group-member (Depends-on): Add getgroups.
32447         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32448         (group_member): Rely on getgroups replacement.
32449         * lib/getugroups.c (getugroups): Use gid_t.
32450         * tests/test-getgroups.c (main): Likewise.
32451         * NEWS: Mention the signature change.
32452         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32453         problem with signature.
32454         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32455         GETGROUPS_T is still useful for setgroups.
32456
32457         getgroups, getugroups: provide stubs for mingw
32458         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32459         * lib/getugroups.c (getugroups): Likewise.
32460         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32461         function.  Modernize replacement scheme.
32462         (gl_PREREQ_GETGROUPS): Delete.
32463         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32464         * modules/getgroups (configure.ac): Declare witness.
32465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32466         * modules/unistd (Depends-on): Substitute witness.
32467         * lib/unistd.in.h (getgroups): Declare replacement.
32468
32469         getgroups: avoid calling exit
32470         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32471         drop xalloc.
32472         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32473         dependencies.
32474         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32475         exiting, in the rare case of malloc failure.
32476
32477         getgroups: fix logic error
32478         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32479         has more than 20 groups.
32480         * modules/getgroups-tests: New test.
32481         * tests/test-getgroups.c: New file.
32482
32483 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32484
32485         * tests/test-base64.c: Improve.
32486
32487 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32488
32489         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32490         Blake <ebb9@byu.net>.
32491
32492 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32493
32494         * tests/test-xvasprintf.c: Add %s%s related checks.
32495
32496 2009-11-12  Eric Blake  <ebb9@byu.net>
32497
32498         version-etc: match standards.texi style
32499         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32500         and use <> only for URLs.
32501
32502 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32503
32504         fts: do not fail on a submount during traversal
32505         * lib/fts.c (fts_build): Read the stat info again after opening
32506         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32507         Original report at http://bugzilla.redhat.com/501848.
32508
32509 2009-11-12  Jim Meyering  <meyering@redhat.com>
32510
32511         bootstrap: sync from coreutils
32512         * build-aux/bootstrap (bootstrap_epilogue): New function.
32513         Use git_modules_config in one more place.  This make bootstrap's
32514         --gnulib-srcdir option more useful for testing.
32515
32516         bootstrap: generalize autoheader check
32517         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32518         AC_CONFIG_HEADERS.
32519
32520 2009-11-11  Eric Blake  <ebb9@byu.net>
32521
32522         mkfifoat: use new modules for Solaris and BSD bugs
32523         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32524         * lib/mkfifoat.c (mknodat): Split...
32525         * lib/mknodat.c (mknodat): ...into new file.
32526         * modules/mkfifoat (Files): Ship new file.
32527         (Depends-on): Add mkfifo, mknod.
32528         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32529         (Depends-on): Add symlink.
32530         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32531         redundant with test_mkfifo.h.
32532         (do_mkfifoat, do_mknodat): New helpers.
32533
32534         mknod: new module
32535         * modules/mknod: New file.
32536         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32537         * lib/mknod.c (mknod): Likewise.
32538         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32539         defaults.
32540         * modules/sys_stat (Makefile.am): Substitute them.
32541         * lib/sys_stat.in.h (mknod): Declare replacement.
32542         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32543         Document it.
32544         * doc/posix-functions/mknod.texi (mknod): Likewise.
32545         * modules/mknod-tests: New test.
32546         * tests/test-mknod.c: Likewise.
32547
32548         mkfifo: new module
32549         * modules/mkfifo: New file.
32550         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32551         * lib/mkfifo.c (mkfifo): Likewise.
32552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32553         defaults.
32554         * modules/sys_stat (Makefile.am): Substitute them.
32555         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32556         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32557         Document it.
32558         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32559         * modules/mkfifo-tests: New test.
32560         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32561         from test-mkfifoat.c.
32562         * tests/test-mkfifo.c: New file.
32563
32564         readlink: detect FreeBSD bug
32565         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32566         slash on symlink.
32567         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32568         * tests/test-readlink.h (test_readlink): Enhance test.
32569
32570         symlink: detect FreeBSD bug
32571         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32572         slash on symlink.
32573         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32574         * tests/test-symlink.h (test_symlink): Enhance test.
32575
32576 2009-11-10  Eric Blake  <ebb9@byu.net>
32577
32578         link: detect FreeBSD bug
32579         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32580         symlink.
32581         * doc/posix-functions/link.texi (link): Document the bug.
32582         * tests/test-link.h (test_link): Enhance test.
32583         * tests/test-linkat.c (main): Update caller.
32584
32585         unlink, remove: detect FreeBSD bug
32586         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32587         slash on symlink.
32588         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32589         * doc/posix-functions/remove.texi (remove): Likewise.
32590         * tests/test-unlink.h (test_unlink): Enhance test.
32591         * tests/test-remove.c (main): Likewise.
32592
32593 2009-11-09  Eric Blake  <ebb9@byu.net>
32594
32595         rename: detect FreeBSD bug
32596         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32597         slash on symlink.
32598         * modules/renameat-tests (Depends-on): Add filenamecat.
32599         * tests/test-rename.h (test_rename): Allow one more errno.
32600         * tests/test-renameat.c (main): Likewise.
32601         * doc/posix-functions/rename.texi (rename): Document the bug.
32602
32603         open: detect FreeBSD bug
32604         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32605         symlink.
32606         * doc/posix-functions/open.texi (open): Document the bug.
32607         * doc/posix-functions/utimes.texi (utimes): Likewise.
32608         * tests/test-open.h (test_open): Add parameters, and test symlink
32609         handling.
32610         * tests/test-open.c (main): Adjust caller.
32611         * tests/test-fcntl-safer.c (main): Likewise.
32612         * modules/open-tests (Depends-on): Add stdbool, symlink.
32613         * modules/fcntl-safer-tests (Depends-on): Likewise.
32614         * tests/test-openat.c (main): Add test-open tests.
32615
32616         stat: detect FreeBSD bug
32617         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32618         symlink.
32619         * doc/posix-functions/stat.texi (stat): Document the bug.
32620         * tests/test-stat.h (test_stat_func): Add argument.
32621         * tests/test-stat.c (main): Adjust caller.
32622         * tests/test-fstatat.c (main): Likewise.
32623         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32624         Reported by Jim Meyering.
32625
32626 2009-11-09  James Youngman  <jay@gnu.org>
32627
32628         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32629         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32630
32631 2009-11-08  Jim Meyering  <meyering@redhat.com>
32632
32633         utimens: remove invalid futimesat call
32634         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32635         It used the file descriptor of the target file as the DIR_FD
32636         parameter and NULL as the file name.  That caused failure with
32637         errno == EFAULT on FreeBSD-8.0-rc2
32638
32639 2009-11-07  Eric Blake  <ebb9@byu.net>
32640
32641         fflush, freadseek: use fseeko, not fseek
32642         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32643         (clear_ungetc_buffer): Avoid potential problems on large files.
32644         * lib/freadseek.c (freadseek): Likewise.
32645         * modules/freadseek (Depends-on): Add fseeko.
32646         * modules/fseek (configure.ac): Set a witness.
32647         * tests/test-fflush.c (main): Use fseeko.
32648         * tests/test-fpurge.c (fseek): Disable link warning.
32649         * tests/test-freadable.c (fseek): Likewise.
32650         * tests/test-freading.c (fseek): Likewise.
32651         * tests/test-fseeko.c (fseek): Likewise.
32652         * tests/test-ftell.c (fseek): Likewise.
32653         * tests/test-ftello.c (fseek): Likewise.
32654         * tests/test-fwritable.c (fseek): Likewise.
32655         * tests/test-fwriting.c (fseek): Likewise.
32656
32657 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32658
32659         * modules/memchr (Depends-on): Drop getpagesize dependency.
32660
32661 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32662
32663         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32664         Reported by Ludovic Courtès.
32665         * build-aux/pmccabe2html: Improve example usage.
32666         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32667
32668 2009-11-06  Jim Meyering  <meyering@redhat.com>
32669
32670         do-release-commit-and-tag: New module.
32671         Automate the release-commit and tag process.
32672         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32673         * modules/do-release-commit-and-tag: New file.
32674         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32675
32676 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32677
32678         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32679         because test-select.c uses inet_pton.
32680
32681 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32682
32683         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32684         GETADDRINFO_LIB.  Bump serial number.
32685         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32686         Suggested by Eric Blake <ebb9@byu.net>.
32687
32688 2009-11-05  Eric Blake  <ebb9@byu.net>
32689
32690         strtod: detect darwin bug
32691         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32692         Reported by Leo Davis.
32693
32694         freopen-safer: new module
32695         * modules/freopen-safer: New module.
32696         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32697         * lib/freopen-safer.c (freopen_safer): New file.
32698         * lib/stdio-safer.h (freopen_safer): New declaration.
32699         * lib/stdio--.h (freopen): New override.
32700         * MODULES.html.sh (File stream based Input/Output): Mention it.
32701         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32702         freopen-safer module.
32703         * doc/posix-functions/stderr.texi (stderr): Likewise.
32704         * doc/posix-functions/stdin.texi (stdin): Likewise.
32705         * doc/posix-functions/stdout.texi (stdout): Likewise.
32706         * modules/freopen-safer-tests: New test.
32707         * tests/test-reopen-safer.c: New file.
32708
32709 2009-11-05  Jim Meyering  <meyering@redhat.com>
32710
32711         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32712         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32713
32714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32715
32716         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32717
32718 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32719
32720         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32721
32722 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32723
32724         Fix link error.
32725         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32726         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32727
32728 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32729
32730         * tests/test-func.c: Also test value of __func__.
32731
32732 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32733
32734         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32735         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32736
32737 2009-11-05  Bruno Haible  <bruno@clisp.org>
32738
32739         Fix link error.
32740         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32741         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32742         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32743
32744 2009-11-05  Bruno Haible  <bruno@clisp.org>
32745
32746         Tests for module 'inet_pton'.
32747         * modules/inet_pton-tests: New file.
32748         * tests/test-inet_pton.c: New file.
32749
32750 2009-11-05  Bruno Haible  <bruno@clisp.org>
32751
32752         Tests for module 'inet_ntop'.
32753         * modules/inet_ntop-tests: New file.
32754         * tests/test-inet_ntop.c: New file.
32755
32756 2009-11-04  Eric Blake  <ebb9@byu.net>
32757
32758         stdlib-safer: wrap all mkstemp variants
32759         * modules/mkostemp (configure.ac): Set witness.
32760         * modules/mkostemps (configure.ac): Likewise.
32761         * modules/mkstemps (configure.ac): Likewise.
32762         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32763         (mkstemps_safer): Wrap more functions.
32764         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32765         wrapping.
32766         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32767         (mkstemps_safer): Implement the wrappers.
32768
32769         mkstemps, mkostemps: new modules
32770         * modules/mkostemps: New module.
32771         * modules/mkstemps: Likewise.
32772         * lib/mkostemps.c (mkostemps): New file.
32773         * lib/mkstemps.c (mkstemps): Likewise.
32774         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32775         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32777         * modules/stdlib (Makefile.am): Substitute them.
32778         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32779         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32780         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32781         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32782         * MODULES.html.sh (File system functions): Mention them.
32783
32784         tempname: resync from glibc
32785         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32786         same values for __GT_FILE as glibc.  Abort even when assertions
32787         are disabled.
32788         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32789         match its value otherwise.  Allow idempotent inclusion.
32790         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32791         * lib/mkostemp.c (mkostemp): Likewise.
32792         * lib/mkstemp.c (mkstemp): Likewise.
32793         * lib/tmpfile.c (tmpfile): Likewise.
32794         * NEWS: Document this.
32795
32796         utimens: fix use of futimens on older Linux
32797         * lib/utimens.c (fdutimens): Use updated, rather than original,
32798         timespec to avoid bug in older Linux kernel.
32799         Reported by Simon Josefsson.
32800
32801 2009-11-04  Bruno Haible  <bruno@clisp.org>
32802
32803         Make num_processors more flexible and consistent.
32804         * lib/nproc.h (enum nproc_query): New type.
32805         (num_processors): Add a 'query' argument.
32806         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32807         (num_processors): Add a 'query' argument. Test the value of the
32808         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32809         mingw, count the number of CPUs available for the current process.
32810         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32811         Check for sched_getaffinity and sched_getaffinity_np.
32812         * modules/nproc (Depends-on): Add c-ctype, extensions.
32813         * NEWS: Mention the change.
32814
32815 2009-11-03  Bruno Haible  <bruno@clisp.org>
32816
32817         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32818
32819 2009-11-03  Jim Meyering  <meyering@redhat.com>
32820
32821         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32822         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32823         if it is defined.
32824
32825 2009-11-02  Eric Blake  <ebb9@byu.net>
32826
32827         mktime, timegm: share common declaration
32828         * lib/mktime-internal.h: New file.
32829         * lib/mktime.c: Use it rather than open-coding a declaration.
32830         * lib/timegm.c: Likewise.
32831         * modules/mktime (Files): Ship it.
32832         * modules/timegm (Files): Likewise.
32833         Suggested by Bruno Haible.
32834
32835         test-update-copyright: update test to match script changes
32836         * tests/test-update-copyright.sh: Avoid hard-coding perl
32837         location.  Don't update *.bak created by earlier runs.
32838
32839 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32840             Simon Josefsson  <simon@josefsson.org>
32841             Bruno Haible  <bruno@clisp.org>
32842
32843         Fix link error on Solaris 8.
32844         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32845         also in libnsl. Define also INET_PTON_LIB.
32846         * modules/inet_pton (Link): New section.
32847
32848 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32849             Bruno Haible  <bruno@clisp.org>
32850
32851         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32852         * modules/inet_ntop (Link): New section.
32853         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32854
32855 2009-11-02  Eric Blake  <ebb9@byu.net>
32856
32857         maint: avoid compiler warnings in m4 macros
32858         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32859         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32860
32861 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32862
32863         * m4/pmccabe2html.m4: Remove file.
32864         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32865         function.  Change maintainer.
32866         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32867         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32868         Courtès).
32869
32870 2009-10-31  Eric Blake  <ebb9@byu.net>
32871
32872         fseeko: fix m4 regression
32873         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32874         regression from 2009-10-27.
32875         Reported by Ralf Wildenhues.
32876
32877 2009-10-31  Jim Meyering  <meyering@redhat.com>
32878
32879         inttostr: aesthetics and improved (compile-time) safety
32880         Define inttype_is_signed rather than inttype_is_unsigned,
32881         since the sole use is via "#if inttype_is_signed".
32882         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32883         inttype_is_unsigned.
32884         * lib/offtostr.c (inttype_is_signed): Likewise.
32885         * lib/uinttostr.c (inttype_is_signed): Likewise.
32886         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32887         * lib/inttostr.c (inttostr): Use verify to cross-check the
32888         inttype_is_signed value and the signedness of the actual type.
32889         * modules/inttostr (Depends-on): Add verify.
32890
32891 2009-10-30  Eric Blake  <ebb9@byu.net>
32892
32893         build: avoid compiler warnings
32894         * lib/fchmodat.c (lchmod): Mark unused variables.
32895         * lib/getopt.c (_getopt_initialize): Likewise.
32896         * lib/mktime.c (__mktime_internal): Provide prototype.
32897         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32898         older gcc that do not understand #pragma GCC diagnostic.
32899         * lib/uinttostr.c (inttype_is_unsigned): Define.
32900         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32901
32902 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32903
32904         stat: fix compilation on AIX
32905         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32906         only see struct stat64.
32907
32908 2009-10-30  Eric Blake  <ebb9@byu.net>
32909
32910         exclude: make more robust
32911         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32912         rather than masking a coding bug.
32913         Suggested by Bruno Haible.
32914
32915 2009-10-30  Jim Meyering  <meyering@redhat.com>
32916
32917         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32918         Rather than putting #!/usr/bin/perl on the first line,
32919         start with a variant of what's recommended by "man perlrun" that
32920         invokes the first "perl" program from your shell's search path.
32921         * build-aux/gitlog-to-changelog: Replace #!... as above.
32922         Add a "Local Variables" perl mode setting.
32923         Prompted by a patch from Ludovic Courtès.
32924         Improved by Eric Blake.
32925         * build-aux/useless-if-before-free: Likewise.
32926         * build-aux/announce-gen: Likewise.
32927         * build-aux/update-copyright: Likewise.
32928
32929 2009-10-29  Eric Blake  <ebb9@byu.net>
32930
32931         filenamecat-lgpl: adjust clients
32932         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32933         filenamecat.
32934         * modules/renameat (Depends-on): Likewise.
32935
32936         filenamecat: split into filenamecat-lgpl
32937         * modules/filenamecat-lgpl: New module.
32938         * modules/filenamecat (Files): Move library-safe files into
32939         filenamecat-lgpl.
32940         (Depends-on): Add filenamecat-lgpl.
32941         (configure.ac): Declare witness.
32942         * lib/filenamecat.h (file_name_concat): Only declare when using
32943         GPL module.
32944         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32945         Move...
32946         * lib/filenamecat-lgpl.c: ...into new file.
32947         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32948         (gl_FILE_NAME_CONCAT): Use it.
32949         * MODULES.html.sh (File system functions): Mention new module.
32950
32951         argp: avoid memory leak
32952         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32953         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32954         base_name, since the latter malloc()s and can call exit().
32955         Leak introduced 2006-07-03.
32956
32957         dirname-lgpl: adjust clients that don't need full dirname
32958         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32959         * modules/filenamecat (Depends-on): Likewise.
32960         * modules/linkat (Depends-on): Likewise.
32961         * modules/mkancesdirs (Depends-on): Likewise.
32962         * modules/mkdir (Depends-on): Likewise.
32963         * modules/openat (Depends-on): Likewise.
32964         * modules/savewd (Depends-on): Likewise.
32965         * modules/rename (Depends-on): Likewise.
32966         (License): Relax license.
32967         * modules/mkdir-tests (Depends-on): Drop progname.
32968         (Makefile.am): Delete unneeded LDADD.
32969         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32970
32971         dirname: split into dirname-lgpl
32972         * modules/dirname-lgpl: New module.
32973         * modules/dirname (Files): Move library-safe files into
32974         dirname-lgpl.
32975         (Depends-on): Add dirname-lgpl.
32976         (configure.ac): Declare witness.
32977         * modules/double-slash-root (License): Relax license.
32978         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32979         module.
32980         * lib/dirname.c (dir_len, mdir_name): Move...
32981         * lib/dirname-lgpl.c: ...into new file.
32982         * lib/basename.c (last_component, base_len): Move...
32983         * lib/basename-lgpl.c: ...into new file.
32984         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32985         (gl_DIRNAME): Use it.
32986         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32987         Mention new module.
32988         * modules/dirname-tests (Depends-on): Add progname.
32989         * tests/test-dirname.c (program_name): Delete.
32990
32991         mkdir: make safe for libraries
32992         * modules/mkdir (Depends-on): Drop xalloc.
32993         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32994         exit.
32995
32996         tests: avoid some compiler warnings
32997         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32998         literals.
32999         * tests/test-memchr.c (main): Avoid type mismatch.
33000         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33001         * tests/test-base64.c (main): Likewise.
33002         * tests/test-getdelim.c (main): Likewise.
33003         * tests/test-gethostname.c (main): Likewise.
33004         * tests/test-getline.c (main): Likewise.
33005         * tests/test-netinet_in.c (main): Likewise.
33006         * tests/test-select.c (open_server_socket, main): Likewise.
33007         * tests/test-select-stdin.c (main): Likewise.
33008         * tests/test-sockets.c (main): Likewise.
33009         * tests/test-strsignal.c (main): Likewise.
33010         * tests/test-sys_select.c (main): Likewise.
33011         * tests/test-sys_socket.c (main): Likewise.
33012         * tests/test-u64.c (main): Likewise.
33013         * tests/test-xfprintf-posix.c (main): Likewise.
33014         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33015
33016         sockets: avoid compiler warning
33017         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33018
33019         maint: detect usage(1) and other suspicious exits
33020         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33021
33022 2009-10-29  Jim Meyering  <meyering@redhat.com>
33023
33024         timespec: long-to-int truncation could make timespec_cmp malfunction
33025         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33026         a multiple of 2^32 nanoseconds as no difference.
33027
33028 2009-10-28  Jim Meyering  <meyering@redhat.com>
33029
33030         fprintftime: wrap macro code argument in "do {...} while(0)"
33031         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33032         cpy macro must be a statement that can be followed by a semicolon.
33033         Now that the else clause contains a comment and is hence longer
33034         than one line, I require curly braces.  That in turn requires
33035         that we wrap this code block in the standard do...while(0).
33036
33037         fprintftime: remove stray semicolon from previous change
33038         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33039
33040         fprintftime: avoid a warning about ignored fwrite return value
33041         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33042         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33043         that is unsafe.
33044         * modules/fprintftime (Depends-on): Add ignore-value.
33045
33046         exclude: avoid an unwarranted warning
33047         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33048
33049 2009-10-27  Eric Blake  <ebb9@byu.net>
33050
33051         fseek: avoid compilation failure when fflush is replaced
33052         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33053         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33054         module is in use.
33055         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33056         module is not in use; since REPLACE_FSEEK worked otherwise.
33057         (GNULIB_FTELLO): Likewise for ftell.
33058         Reported by Ian Beckwith and others.
33059
33060 2009-10-27  Bruno Haible  <bruno@clisp.org>
33061
33062         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33063         Reported by Jim Meyering.
33064
33065 2009-10-27  Jim Meyering  <jim@meyering.net>
33066             Bruno Haible  <bruno@clisp.org>
33067
33068         Avoid warning despite dropping the return value of fwrite.
33069         * lib/unicodeio.c: Include ignore-value.h.
33070         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33071         * modules/unicodeio (Depends-on): Add ignore-value.
33072
33073 2009-10-26  Eric Blake  <ebb9@byu.net>
33074
33075         areadlinkat: fix fallback path
33076         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33077         pointer and zero.
33078
33079 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33080
33081         Use a better IO block size for modern systems
33082         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33083         * lib/md2.c: Likewise.
33084         * lib/md4.c: Likewise.
33085         * lib/md5.c: Likewise.
33086         * lib/sha1.c: Likewise.
33087         * lib/sha256.c: Likewise.
33088         * lib/sha512.c: Likewise.
33089
33090 2009-10-22  Eric Blake  <ebb9@byu.net>
33091
33092         tests: avoid several compiler warnings
33093         * tests/test-getcwd.c (main): Avoid buffer underflow.
33094         * tests/test-getdate.c (main): String literals are not safe with
33095         putenv, so use setenv.  Declare unused argument.
33096         * modules/getdate-tests (Depends-on): Add setenv.
33097         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33098         problems with string literals in char *.
33099         * tests/test-hash.c (main): Avoid shadowing declaration.
33100         (insert_new): Treat string literals as char const *.
33101         * tests/test-getopt.h (test_getopt): Likewise.
33102         (getopt_loop): Alter types to minimize casting elsewhere.
33103         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33104         (test_getopt_long_posix): Likewise.
33105         (do_getopt_long): Add wrapper to minimize casting.
33106         * tests/test-atexit.c (clear_temp_file): Use void.
33107         * tests/test-areadlink-with-size.c (main): Declare unused
33108         arguments.
33109         * tests/test-areadlink.c (main): Likewise.
33110         * tests/test-areadlinkat-with-size.c (main): Likewise.
33111         * tests/test-areadlinkat.c (main): Likewise.
33112         * tests/test-canonicalize-lgpl.c (main): Likewise.
33113         * tests/test-canonicalize.c (main): Likewise.
33114         * tests/test-dirent-safer.c (main): Likewise.
33115         * tests/test-dirname.c (main): Likewise.
33116         * tests/test-dup2.c (main): Likewise.
33117         * tests/test-fchdir.c (main): Likewise.
33118         * tests/test-fcntl-h.c (main): Likewise.
33119         * tests/test-fcntl-safer.c (main): Likewise.
33120         * tests/test-fdopendir.c (main): Likewise.
33121         * tests/test-fdutimensat.c (main): Likewise.
33122         * tests/test-fflush.c (main): Likewise.
33123         * tests/test-filenamecat.c (main): Likewise.
33124         * tests/test-filevercmp.c (main): Likewise.
33125         * tests/test-fopen-safer.c (main): Likewise.
33126         * tests/test-fopen.c (main): Likewise.
33127         * tests/test-fpending.c (main): Likewise.
33128         * tests/test-fpurge.c (main): Likewise.
33129         * tests/test-freading.c (main): Likewise.
33130         * tests/test-fstatat.c (main): Likewise.
33131         * tests/test-fsync.c (main): Likewise.
33132         * tests/test-futimens.c (main): Likewise.
33133         * tests/test-getndelim2.c (main): Likewise.
33134         * tests/test-gettimeofday.c (main): Likewise.
33135         * tests/test-getopt.c (main): Likewise.
33136         * tests/test-i-ring.c (main): Likewise.
33137         * tests/test-inttypes.c (main): Likewise.
33138         * tests/test-link.c (main): Likewise.
33139         * tests/test-lstat.c (main): Likewise.
33140         * tests/test-math.c (main): Likewise.
33141         * tests/test-md5.c (main): Likewise.
33142         * tests/test-memchr2.c (main): Likewise.
33143         * tests/test-memrchr.c (main): Likewise.
33144         * tests/test-mkdir.c (main): Likewise.
33145         * tests/test-mkdirat.c (main): Likewise.
33146         * tests/test-mkfifoat.c (main): Likewise.
33147         * tests/test-open.c (main): Likewise.
33148         * tests/test-openat-safer.c (main): Likewise.
33149         * tests/test-openat.c (main): Likewise.
33150         * tests/test-quotearg.c (main): Likewise.
33151         * tests/test-rawmemchr.c (main): Likewise.
33152         * tests/test-readlink.c (main): Likewise.
33153         * tests/test-remove.c (main): Likewise.
33154         * tests/test-rename.c (main): Likewise.
33155         * tests/test-renameat.c (main): Likewise.
33156         * tests/test-rmdir.c (main): Likewise.
33157         * tests/test-sha1.c (main): Likewise.
33158         * tests/test-signal.c (main): Likewise.
33159         * tests/test-sigaction.c (main): Likewise.
33160         * tests/test-stat.c (main): Likewise.
33161         * tests/test-stat-time.c (main): Likewise.
33162         * tests/test-stddef.c (main): Likewise.
33163         * tests/test-stdint.c (main): Likewise.
33164         * tests/test-stdio.c (main): Likewise.
33165         * tests/test-stdlib.c (main): Likewise.
33166         * tests/test-strchrnul.c (main): Likewise.
33167         * tests/test-strerror.c (main): Likewise.
33168         * tests/test-string.c (main): Likewise.
33169         * tests/test-strtod.c (main): Likewise.
33170         * tests/test-strverscmp.c (main): Likewise.
33171         * tests/test-symlink.c (main): Likewise.
33172         * tests/test-symlinkat.c (main): Likewise.
33173         * tests/test-sys_stat.c (main): Likewise.
33174         * tests/test-sys_time.c (main): Likewise.
33175         * tests/test-time.c (main): Likewise.
33176         * tests/test-unistd.c (main): Likewise.
33177         * tests/test-unlink.c (main): Likewise.
33178         * tests/test-unlinkat.c (main): Likewise.
33179         * tests/test-utimens.c (main): Likewise.
33180         * tests/test-utimensat.c (main): Likewise.
33181         * tests/test-version-etc.c (main): Likewise.
33182         * tests/test-wchar.c (main): Likewise.
33183         * tests/test-wctype.c (main): Likewise.
33184         * tests/test-xprintf-posix.c (main): Likewise.
33185         * tests/test-posixtm.c (main): Likewise.
33186         (STREQ): Delete unused macro.
33187         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33188         shadowed variables.
33189         * tests/test-memchr.c (main): Likewise.
33190
33191 2009-10-21  Eric Blake  <ebb9@byu.net>
33192
33193         areadlinkat: avoid failure on older glibc
33194         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33195         rather than mis-comparing 0 against FUNC_RESULT of char*.
33196
33197 2009-10-21  Bruno Haible  <bruno@clisp.org>
33198
33199         * modules/stpncpy (License): Relicense under LGPLv2+.
33200         Reported by David Lutterkort <lutter@redhat.com>.
33201
33202 2009-10-20  Eric Blake  <ebb9@byu.net>
33203
33204         utimensat: work around Solaris 9 bug
33205         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33206         has trailing slash bugs.
33207         * tests/test-lutimens.h (test_lutimens): Enhance test.
33208         * tests/test-utimens.h (test_utimens): Likewise.
33209         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33210         * doc/posix-functions/utimes.texi (utimes): Likewise.
33211         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33212         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33213         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33214         * doc/posix-functions/futimens.texi (futimens): Likewise.
33215
33216         fdutimensat: new module
33217         * modules/fdutimensat: New file.
33218         * lib/fdutimensat.c (fdutimensat): Likewise.
33219         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33220         * MODULES.html.sh (File system functions): Mention module.
33221         * modules/fdutimensat-tests: New test.
33222         * tests/test-fdutimensat.c: Likewise.
33223
33224         doc: regenerate INSTALL
33225         * doc/INSTALL: Reflect recent autoconf update.
33226         * doc/INSTALL.ISO: Likewise.
33227         * doc/INSTALL.UTF-8: Likewise.
33228
33229 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33230
33231         acl: warn if ACL support is not detected
33232         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33233
33234 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33235
33236         * lib/nproc.h: Add extern "C" block for C++.
33237
33238 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33239             Bruno Haible  <bruno@clisp.org>
33240
33241         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33242         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33243         * doc/posix-functions/isalpha.texi: Likewise.
33244         * doc/posix-functions/isblank.texi: Likewise.
33245         * doc/posix-functions/iscntrl.texi: Likewise.
33246         * doc/posix-functions/isdigit.texi: Likewise.
33247         * doc/posix-functions/isgraph.texi: Likewise.
33248         * doc/posix-functions/islower.texi: Likewise.
33249         * doc/posix-functions/isprint.texi: Likewise.
33250         * doc/posix-functions/ispunct.texi: Likewise.
33251         * doc/posix-functions/isspace.texi: Likewise.
33252         * doc/posix-functions/isupper.texi: Likewise.
33253         * doc/posix-functions/isxdigit.texi: Likewise.
33254
33255 2009-10-18  Bruno Haible  <bruno@clisp.org>
33256
33257         Tests for module 'isblank'.
33258         * modules/isblank-tests: New file.
33259         * tests/test-isblank.c: New file.
33260
33261         New module 'isblank'.
33262         * lib/isblank.c: New file.
33263         * m4/isblank.m4: New file.
33264         * modules/isblank: New file.
33265         * doc/posix-functions/isblank.texi: Mention the new module.
33266
33267 2009-10-18  Bruno Haible  <bruno@clisp.org>
33268
33269         New module 'ctype'.
33270         * lib/ctype.in.h: New file.
33271         * m4/ctype.m4: New file.
33272         * modules/ctype: New file.
33273         * doc/posix-headers/ctype.texi: Mention the new module.
33274
33275 2009-10-18  Jim Meyering  <meyering@redhat.com>
33276
33277         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33278         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33279         right after its initialization, rather than farther down.
33280         Keeping these in close proximity makes it easier to ensure
33281         that each such variable is initialized.  E.g.,
33282
33283             LIB_CLOCK_GETTIME=
33284             AC_SUBST([LIB_CLOCK_GETTIME])
33285
33286         This change also increments these serial numbers.
33287         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33288         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33290
33291 2009-10-18  Bruno Haible  <bruno@clisp.org>
33292
33293         Don't let environment variables perturb build.
33294         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33295         (gl_PREREQ_GETHRXTIME): ... not here.
33296
33297 2009-10-18  Bruno Haible  <bruno@clisp.org>
33298
33299         Avoid symlink attack in localcharset module.
33300         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33301         (O_NOFOLLOW): Define fallback.
33302         (get_charset_aliases): Don't open the file if it is a symbolic link.
33303         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33304         gl_FCNTL_H.
33305         (gl_FCNTL_H): Require it.
33306         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33307         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33308         Reported by Fergal Glynn <fglynn@veracode.com>.
33309
33310 2009-10-18  Bruno Haible  <bruno@clisp.org>
33311
33312         Implement nproc for mingw.
33313         * lib/nproc.c: Include <windows.h>
33314         (num_processors): On native Windows platforms, try GetSystemInfo.
33315
33316 2009-10-18  Bruno Haible  <bruno@clisp.org>
33317
33318         Implement nproc for IRIX.
33319         * lib/nproc.c: Include <sys/sysmp.h>.
33320         (num_processors): On IRIX systems, try sysmp.
33321         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33322
33323 2009-10-18  Bruno Haible  <bruno@clisp.org>
33324
33325         Implement nproc for HP-UX.
33326         * lib/nproc.c: Include <sys/pstat.h>
33327         (num_processors): On HP-UX systems, try pstat_getdynamic.
33328         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33329         pstat_getdynamic.
33330
33331 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33332             Bruno Haible  <bruno@clisp.org>
33333
33334         Implement nproc for NetBSD, OpenBSD.
33335         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33336         (ARRAY_SIZE): New macro.
33337         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33338         * m4/nproc.m4: New file.
33339         * modules/nproc (Files): Add m4/nproc.m4.
33340         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33341         (Makefile.am): Instead, augment lib_SOURCES.
33342
33343 2009-10-18  Bruno Haible  <bruno@clisp.org>
33344
33345         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33346         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33347         sys/param.h.
33348
33349 2009-10-16  Eric Blake  <ebb9@byu.net>
33350
33351         utimensat: new module
33352         * modules/utimensat: New file.
33353         * lib/utimensat.c (utimensat): Likewise.
33354         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33355         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33356         so we can work around Linux bugs.
33357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33358         * modules/sys_stat (Makefile.am): Substitute them.
33359         * lib/sys_stat.in.h (utimensat): Declare it.
33360         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33361         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33362         * modules/utimensat-tests: New test.
33363         * tests/test-utimensat.c: Likewise.
33364
33365         utimens: let lutimens work on non-symlinks
33366         * lib/utimens.c (lutimens): Fall back to utimens rather than
33367         failing with ENOSYS, when file is not a symlink.
33368         (utimens): Reduce redirection.
33369         * tests/test-lutimens.h (test_lutimens): Update test to cover
33370         non-symlinks.
33371         * tests/test-utimens.h (test_utimens): Update test to cover
33372         symlinks.
33373         * tests/test-utimens.c (main): Update caller.
33374
33375         utimens: cache whether utimensat syscall works
33376         * lib/utimens.c (utimensat_works_really): New cache variable.
33377         (fdutimens, lutimens): Use it to avoid failing syscall.
33378
33379         test-stat-time, test-utimens: improve portability
33380         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33381         ext4 on alpha, and for cygwin.
33382         * tests/test-utimens-common.h: New file.
33383         (nap): Factor delays into single function.
33384         * tests/test-lutimens.h (test_lutimens): Use new header.
33385         * tests/test-futimens.h (test_futimens): Likewise.
33386         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33387         timestamps to occur from same machine, as was done previously for
33388         test_utimens.
33389         * modules/utimens-tests (Files): Ship new file.
33390         * modules/futimens-tests (Files): Likewise.
33391         Reported in part by Jim Meyering.
33392
33393         sys_stat: sort replacement declarations
33394         * lib/sys_stat.in.h: Sort declarations.
33395         * lib/futimens.c (futimens): Fix typo.
33396
33397 2009-10-15  Jim Meyering  <meyering@redhat.com>
33398
33399         don't let environment settings perturb build
33400         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33401         could cause a configure-time and/or build-time malfunction.
33402         Typically, a configure-time function-in-library test is performed
33403         via code like this:
33404
33405           LIB_VAR=
33406           AC_SUBST([LIB_VAR])
33407           prefix_saved_LIBS=$LIBS
33408             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33409                        [test "$ac_cv_search_FUNC" = "none required" ||
33410                         LIB_VAR=$ac_cv_search_FUNC])
33411           LIBS=$prefix_saved_LIBS
33412
33413         However, in each of the files affected by this change, the LIB_VAR=
33414         initialization was omitted.  Thus, when set in the environment, its
33415         value would propagate into generated Makefiles when FUNC is not found
33416         in LIB_NAME.
33417         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33418         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33420
33421 2009-10-14  Eric Blake  <ebb9@byu.net>
33422
33423         fchdir: avoid infinite recursion in mingw
33424         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33425         recursing.
33426
33427         test-stat-time: port to mingw
33428         * tests/test-stat-time.c (force_unlink): Return a value.
33429         (test_ctime) [W32]: Fix compilation error.
33430         (nap): Don't call usleep with too large an argument.  Use
33431         force_unlink.
33432         * doc/pastposix-functions/usleep.texi (usleep): Document the
33433         portability issue.
33434
33435 2009-10-13  Jim Meyering  <meyering@redhat.com>
33436
33437         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33438         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33439         * modules/pipe-filter-ii: Likewise.
33440         * modules/sys_socket-tests: Likewise.
33441         * modules/tsearch-tests: Likewise.
33442         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33443         (check): Depend on it.
33444
33445 2009-10-12  Eric Blake  <ebb9@byu.net>
33446
33447         utimens-tests: port to NFS file systems
33448         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33449         comparisons to avoid spurious failures from timestamp drift
33450         between NFS machines.
33451
33452 2009-10-12  Eric Blake  <ebb9@byu.net>
33453
33454         stat-time-tests: minor cleanups
33455         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33456         * tests/test-stat-time.c (nap): Separate assignment from call.
33457         Suggested by Paolo Bonzini and Bruno Haible.
33458
33459         sys_stat: guarantee struct timespec
33460         * lib/sys_stat.in.h (includes): Always include <time.h>
33461         * modules/sys_stat (Depends-on): Add time.
33462         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33463         mode_t permission values.
33464         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33465         get at subsecond timestamps.
33466
33467 2009-10-10  Eric Blake  <ebb9@byu.net>
33468
33469         futimens: new module
33470         * modules/futimens: New file.
33471         * lib/futimens.c (futimens): Likewise.
33472         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33473         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33474         we can work around Linux bugs.
33475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33476         * modules/sys_stat (Makefile.am): Substitute them.
33477         * lib/sys_stat.in.h (futimens): Declare it.
33478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33479         * doc/posix-functions/futimens.texi (futimens): Likewise.
33480         * modules/futimens-tests: New test.
33481         * tests/test-futimens.c: Likewise.
33482
33483         utimens: introduce fdutimens
33484         * lib/utimens.h (fdutimens): New prototype.
33485         * lib/utimens.c (gl_futimens): Move guts...
33486         (fdutimens): ...to new interface.
33487         * tests/test-utimens.c (do_fdutimens): Use it.
33488
33489         utimens: add UTIME_NOW and UTIME_OMIT support
33490         * lib/utimens.c (validate_timespec, update_timespec): New helper
33491         functions.
33492         (gl_futimens, lutimens): Use them.
33493         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33494         stdbool, sys_stat.
33495         (Link): Mention resulting library dependency.
33496         * modules/utimecmp (Link): Likewise.
33497         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33498         (Makefile.am): Pick up library dependency.
33499         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33500         definition.
33501         * tests/test-sys_stat.c: Test the definitions.
33502         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33503         * NEWS: Document library dependency.
33504
33505         utimecmp: support symlink timestamps
33506         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33507         hashing when possible.  Use pathconf when available.
33508         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33509         * modules/utimecmp (Depends-on): Add lstat.
33510
33511         utimens: add lutimens interface
33512         * lib/utimens.c (lutimens): New function.
33513         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33514         * lib/utimens.h (lutimens): Declare new interface.
33515         * tests/test-utimens.c (main): Enhance test.
33516         * tests/test-lutimens.h (test_lutimens): New file.
33517         * modules/utimens-tests (Files): Distribute it.
33518         (Depends-on): Add symlink.
33519         (configure.ac): Check for usleep.
33520
33521         utimens: validate futimens usage
33522         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33523         fewer syscalls on failure later on.  Avoid compiler warning on
33524         mingw.
33525         * modules/utimens (Depends-on): Add dup2.
33526
33527         utimens: add test
33528         * modules/utimens-tests: New test.
33529         * tests/test-utimens.h: New file.
33530         * tests/test-futimens.h: Likewise.
33531         * tests/test-utimens.c: Likewise.
33532
33533         doc: mention timestamp portability issues
33534         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33535         instead.
33536         * doc/posix-functions/utime.texi (utime): Likewise.
33537         * doc/posix-functions/utimes.texi (utimes): Likewise.
33538         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33539         instead.
33540         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33541         module.
33542         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33543         Mention weakness with symlink timestamps.
33544         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33545         to utimensat/futimens instead.
33546         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33547
33548         test-dup2: enhance test
33549         * tests/test-dup2.c (main): Also check AT_FDCWD.
33550
33551         test-stat-time: avoid more spurious failures
33552         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33553         xfs; and avoid race if the two timestamps cross quantization edge.
33554
33555         relocatable: prefer 'file system' over 'filesystem'
33556         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33557         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33558         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33559         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33560         * lib/relocatable.c (compute_curr_prefix): Likewise.
33561
33562 2009-10-10  Jim Meyering  <meyering@redhat.com>
33563
33564         stat-time-tests: check for the usleep function
33565         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33566
33567 2009-10-10  Bruno Haible  <bruno@clisp.org>
33568
33569         * modules/xnanosleep: Put the Link section after the Include section.
33570
33571 2009-10-09  Eric Blake  <ebb9@byu.net>
33572
33573         dup2: work around FreeBSD 6.1 bug
33574         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33575         * doc/posix-functions/dup2.texi (dup2): Document it.
33576         Reported by Nelson H. F. Beebe and Jim Meyering.
33577
33578         test-stat-time: port to buggy NFS clients
33579         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33580         (test_ctime): Also skip test if mtime and ctime are skewed.
33581
33582         maint: prefer 'file system' over 'filesystem'
33583         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33584         * doc/posix-functions/lstat.texi (lstat): Likewise.
33585         * lib/file-has-acl.c (file_has_acl): Likewise.
33586         * lib/fwriteerror.c [TEST]: Likewise.
33587         * tests/test-areadlink.h (test_areadlink): Likewise.
33588         * tests/test-areadlinkat-with-size.c (main): Likewise.
33589         * tests/test-areadlinkat.c (main): Likewise.
33590         * tests/test-canonicalize-lgpl.c (main): Likewise.
33591         * tests/test-canonicalize.c (main): Likewise.
33592         * tests/test-fstatat.c (main): Likewise.
33593         * tests/test-linkat.c (main): Likewise.
33594         * tests/test-lstat.h (test_lstat_func): Likewise.
33595         * tests/test-mkdir.h (test_mkdir): Likewise.
33596         * tests/test-readlink.h (test_readlink): Likewise.
33597         * tests/test-remove.c (main): Likewise.
33598         * tests/test-rename.h (test_rename): Likewise.
33599         * tests/test-renameat.c (main): Likewise.
33600         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33601         * tests/test-symlink.h (test_symlink): Likewise.
33602         * tests/test-symlinkat.c (main): Likewise.
33603         * tests/test-unlink.h (test_unlink_func): Likewise.
33604         * tests/test-unlinkat.c (main): Likewise.
33605
33606         maint: make realtime library usage explicit
33607         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33608         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33609         * modules/settime (Link): Likewise.
33610         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33611
33612         test-stat-time: speed up execution
33613         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33614         warning on mingw.
33615         (nap): New helper function.
33616         (prepare_test): Use it to reduce sleep time.
33617         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33618         execution.
33619         * modules/stat-time-tests (configure.ac): Check for usleep.
33620
33621 2009-10-09  Jim Meyering  <meyering@redhat.com>
33622
33623         selinux-h: always use getfilecon wrappers
33624         * lib/getfilecon.c: New file.
33625         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33626         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33627         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33628         (fgetfilecon): Provide a stub.
33629         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33630         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33631         file unconditionally.
33632         When <selinux/selinux.h> is found, arrange to use wrappers.
33633         * modules/selinux-h (Files): Add getfilecon.c.
33634         (Makefile.am): Substitute include-next-related bits
33635         into the now-always-generated selinux/selinux.h file.
33636         * doc/glibc-functions/lgetfilecon.texi: New file.
33637         * doc/glibc-functions/fgetfilecon.texi: New file.
33638         * doc/glibc-functions/getfilecon.texi: New file.
33639         * doc/glibc-functions/getfilecon-desc.texi: New file.
33640         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33641         which to pull in the new files.
33642         * MODULES.html.sh (Misc): Add selinux-h.
33643
33644 2009-10-08  Jim Meyering  <meyering@redhat.com>
33645
33646         unistd: fix comment typo
33647         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33648
33649 2009-10-08  Eric Blake  <ebb9@byu.net>
33650
33651         areadlink: use SIZE_MAX consistently
33652         * modules/areadlink (Depends-on): Add stdint.
33653         * modules/areadlink-with-size (Depends-on): Likewise.
33654         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33655         gives NULL; drop sys/types, since unistd gives size_t; and add
33656         stdint for SIZE_MAX.
33657         (SIZE_MAX): Rely on headers.
33658         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33659         and add stdint.
33660         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33661         (SIZE_MAX): Likewise.
33662         (INITIAL_BUF_SIZE): Turn into enum.
33663         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33664
33665 2009-10-08  Jim Meyering  <meyering@redhat.com>
33666
33667         areadlinkat: avoid compilation failure
33668         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33669         Fix typo in comment.
33670
33671 2009-10-07  Eric Blake  <ebb9@byu.net>
33672
33673         areadlinkat-with-size: new module
33674         * modules/areadlinkat-with-size: New module.
33675         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33676         * lib/areadlink.h (areadlinkat): Declare it.
33677         * MODULES.html.sh (File system functions): Mention it.
33678         * modules/areadlinkat-with-size-tests: New test.
33679         * tests/test-areadlinkat-with-size.c: New file.
33680
33681         xreadlinkat: new module
33682         * modules/xreadlinkat: New module.
33683         * lib/xreadlinkat.c (xreadlinkat): New file.
33684         * lib/xreadlink.h (xreadlinkat): Declare it.
33685         * MODULES.html.sh (File system functions): Mention it.
33686
33687         areadlinkat: new module
33688         * lib/at-func.c (FUNC_FAIL): New define.
33689         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33690         * modules/areadlinkat: New module.
33691         * lib/linkat.c (areadlinkat): Move...
33692         * lib/areadlinkat.c (areadlinkat): ...to new file.
33693         * lib/areadlink.h (areadlinkat): Declare it.
33694         * modules/linkat (Depends-on): Add areadlinkat.
33695         * MODULES.html.sh (File system functions): Mention it.
33696         * modules/areadlinkat-tests: New test.
33697         * tests/test-areadlinkat.c: New file.
33698
33699         areadlink, areadlink-with-size: add tests
33700         * modules/areadlink-tests: New test.
33701         * modules/areadlink-with-size-tests: Likewise.
33702         * tests/test-areadlink.h: New file.
33703         * tests/test-areadlink.c: Likewise.
33704         * tests/test-areadlink-with-size.c: Likewise.
33705
33706         maint: minor cleanups
33707         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33708         _UNUSED_PARAMETER_ instead.
33709         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33710         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33711         * modules/linkat-tests (Files): Distribute test-link.h.
33712
33713         openat, utimens: whitespace cleanup
33714         * lib/openat.c: Prefer space throughout, rather than mix of 8
33715         spaces vs. tabs.
33716         * lib/at-func.c: Likewise.
33717         * lib/utimens.c: Likewise.
33718
33719         openat: avoid using wrong fd
33720         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33721         working directory chooses same fd.
33722         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33723
33724         mkdir, mkdirat: fix cygwin 1.5.x bug
33725         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33726         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33727         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33728         bug.
33729         (gl_PREREQ_MKDIR): Delete unused macro.
33730         * modules/mkdir (Files): Track file rename.
33731         (configure.ac): Update macro name.
33732         * modules/openat (Depends-on): Add mkdir.
33733         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33734
33735         mkdir, mkdirat: add tests
33736         * modules/mkdir-tests: New test.
33737         * tests/test-mkdir.h: New file.
33738         * tests/test-mkdir.c: Likewise.
33739         * tests/test-mkdirat.c: Likewise.
33740         * modules/openat-tests (Files): Add new files.
33741         (Makefile.am): Run new test.
33742
33743 2009-10-06  Eric Blake  <ebb9@byu.net>
33744
33745         doc: tweak *at function documentation
33746         * doc/posix-functions/faccessat.texi (faccessat): Mention
33747         known issue with replacement.
33748         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33749         * doc/posix-functions/linkat.texi (linkat): Likewise.
33750         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33751         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33752         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33753         * doc/posix-functions/renameat.texi (renameat): Likewise.
33754         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33755
33756         openat: fix GNU/Hurd bug in unlinkat
33757         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33758         broken.
33759         * doc/posix-functions/unlink.texi (unlink): Document this.
33760         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33761
33762         fdopendir: fix GNU/Hurd bug
33763         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33764         allowing non-directory fds.
33765         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33767         * modules/dirent (Makefile.am): Substitute it.
33768         * lib/dirent.in.h (fdopendir): Declare replacement.
33769         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33770         * tests/test-fdopendir.c (main): Test something other than
33771         /dev/null, since on Hurd that behaves like a directory.
33772
33773         test-symlink: port to GNU/Hurd
33774         * tests/test-symlink.h (test_symlink): Relax expected errno.
33775
33776         doc: tweak more cygwin information
33777         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33778         now compatible with glibc.
33779         * doc/posix-functions/getopt.texi (getopt): Likewise.
33780
33781         getopt-gnu: add another test
33782         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33783         guarantee behavior relied on by m4.
33784         * tests/test-getopt.c (main): Use it.
33785         * modules/getopt-posix-tests (Depends-on): Add setenv.
33786         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33787
33788         getopt: fix compilation on darwin
33789         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33790         include.
33791         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33792         Reported by Ludovic Courtès.
33793
33794 2009-10-06  Bruno Haible  <bruno@clisp.org>
33795
33796         * modules/size_max (Description): Discourage its use.
33797         Reported by Simon Josefsson.
33798
33799 2009-10-06  Jim Meyering  <meyering@redhat.com>
33800
33801         linkat: avoid compilation failure
33802         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33803
33804 2009-10-05  Eric Blake  <ebb9@byu.net>
33805
33806         linkat: support Linux 2.6.17
33807         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33808         linkat on Linux, but allow cache variable override.
33809         * lib/linkat.c (rpl_linkat): Define override.
33810         * modules/linkat (Depends-on): Add symlinkat.
33811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33812         * modules/unistd (Makefile.am): Substitute it.
33813         * lib/unistd.in.h (linkat): Declare replacement.
33814         Reported by Pádraig Brady.
33815
33816         quotearg: port test to systems with C.UTF-8 locale
33817         * tests/test-quotearg.c (struct result_strings): Add another
33818         member, differentiating between C.ASCII and C.UTF-8 handling.
33819         (compare_strings): Add parameter.
33820         (main): Adjust all callers.
33821
33822         getopt: avoid clash with FreeBSD _getopt_internal
33823         * lib/getopt.in.h (_getopt_internal): Override the name.
33824         * lib/getopt_int.h (includes): Pick up any overrides.
33825         Reported by Reuben Thomas.
33826
33827         hash: allow C89 compilation
33828         * lib/hash.c (check_tuning): Move declaration before statement.
33829         Reported by Reuben Thomas.
33830
33831 2009-10-05  Karl Berry  <karl@gnu.org>
33832
33833         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33834
33835 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33836             Bruno Haible  <bruno@clisp.org>
33837
33838         * lib/uname.c (uname): Use a table-driven algorithm to compute
33839         Windows NT versions.
33840
33841 2009-10-04  Bruno Haible  <bruno@clisp.org>
33842
33843         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33844         program_invocation_short_name.
33845         * modules/progname (configure.ac): Test for presence of
33846         program_invocation_short_name.
33847         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33848
33849 2009-10-04  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/progname.c (set_program_name): Fix comment.
33852         Reported by Jim Meyering.
33853
33854 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33855             Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/uname.c: Include <string.h>.
33858         (uname): Do only one call to GetVersionEx in the common case.
33859
33860 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33861             Bruno Haible  <bruno@clisp.org>
33862
33863         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33864         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33865         (uname): Add support for Windows CE and various non-x86 CPU types.
33866
33867 2009-10-03  Bruno Haible  <bruno@clisp.org>
33868
33869         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33870         invocation to tests/configure.ac.
33871         Reported by Ian Beckwith <ianb@erislabs.net>.
33872
33873 2009-10-02  Eric Blake  <ebb9@byu.net>
33874
33875         fchdir: avoid compiler warning
33876         * lib/fchdir.c (canonicalize_file_name)
33877         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33878
33879         test-open: support mingw errno values
33880         * tests/test-open.h (test_open): Relax test.
33881         * tests/test-fopen.h (test_fopen): Likewise.
33882         * tests/test-openat-safer.c (main): Likewise.
33883
33884         open: fix opening directory on mingw
33885         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33886
33887         test-open: on GNU/Hurd, /dev/null is a directory
33888         * tests/test-fopen.h (main): Rename...
33889         (test_fopen): ...to this.  Use a guaranteed non-directory when
33890         confirming open behavior on trailing slash.
33891         * tests/test-openat-safer.c (main): Likewise.
33892         * tests/test-open.h (main): Likewise....
33893         (test_open): ...to this.
33894         * tests/test-fopen.c (main): Adjust caller.
33895         * tests/test-fopen-safer.c (main): Likewise.
33896         * tests/test-open.c (main): Likewise.
33897         * tests/test-fcntl-safer.c (main): Likewise.
33898         Reported by Samuel Thibault.
33899
33900         rename, fchdir: don't ignore chdir failure
33901         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33902         * lib/rename.c (rpl_rename) [W32]: Likewise.
33903         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33904         an empty destination directory if source cannot be renamed,
33905         although there is still possibility for failure.
33906         * doc/posix-functions/rename.texi (rename): Document the race.
33907         Reported by Jim Meyering.
33908
33909         maint: cleanup whitespace in recent commits
33910         * lib/rename.c (rpl_rename): Remove tabs.
33911         * tests/test-link.h (test_link): Likewise.
33912         * lib/fchdir.c (get_name): Likewise.
33913         Reported by Jim Meyering.
33914
33915 2009-10-02  Ben Pfaff  <blp@gnu.org>
33916
33917         relocatable-prog-wrapper: Add missing dependency on
33918         double-slash-root.
33919         * modules/relocatable-prog-wrapper: Add dependency.
33920         Reported by Ian Beckwith <ianb@erislabs.net>.
33921
33922 2009-10-02  Eric Blake  <ebb9@byu.net>
33923
33924         renameat: fix Solaris bugs
33925         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33926         needed fixing.
33927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33928         * modules/stdio (Makefile.am): Substitute it.
33929         * lib/stdio.in.h (renameat): Declare replacement.
33930         * lib/renameat.c (rpl_renameat): Implement fix.
33931
33932         renameat: new module
33933         * modules/renameat: New file.
33934         * lib/renameat.c (renameat): Likewise.
33935         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33937         * modules/stdio (Makefile.am): Substitute them.
33938         * lib/stdio.in.h (renameat): Declare it.
33939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33940         * doc/posix-functions/renameat.texi (renameat): Likewise.
33941         * modules/renameat-tests: New test.
33942         * tests/test-renameat.c: Likewise.
33943
33944         rename: fix mingw bugs
33945         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33946         directory overwrite bugs.
33947
33948         rename: fix another cygwin 1.5 bug
33949         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33950         checks.
33951         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33952         unnecessary cygwin workarounds.  Also work around bug with moving
33953         full directory onto an empty one.
33954         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33955
33956         rename-dest-slash: merge into rename module
33957         * modules/rename-dest-slash (Status): Mark obsolete.
33958         (Depends-on): Add rename.
33959         (Files): Let rename do it all.
33960         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33961         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33962         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33963         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33964         * lib/rename.c (rpl_rename): Update comments.
33965
33966         rename: fix cygwin 1.5.x bugs
33967         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33968         * lib/rename.c (rpl_rename): Work around them.
33969         * modules/rename (Depends-on): Add same-inode.
33970
33971         rename: fix Solaris 10 bug
33972         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33973         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33974         was the only bug.
33975
33976         rename: fix Solaris 9 bug
33977         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33978         on non-directory.  Avoid calling exit.
33979         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33980         strdup.
33981         * modules/rename-tests (Depends-on): Drop lstat.
33982         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33983         (gl_PREREQ_RENAME): Delete unused macro.
33984
33985         rename-dest-slash: fix NetBSD bug
33986         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33987         links.
33988         * modules/rename-dest-slash (Depends-on): Add same-inode.
33989
33990         rename-tests: new test, exposes several platform bugs
33991         * modules/rename-tests: New file.
33992         * tests/test-rename.h: Likewise.
33993         * tests/test-rename.c: Likewise.
33994         * doc/posix-functions/rename.texi (rename): Improve documentation,
33995         including bugs that will eventually be fixed in gnulib.
33996
33997 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33998
33999         * lib/uname.c: Include <stdlib.h>
34000         (uname): Assume version info is available.
34001
34002 2009-10-02  Jim Meyering  <meyering@redhat.com>
34003
34004         gnu-web-doc-update: correct --help output
34005         * build-aux/gnu-web-doc-update: Make --help output relevant.
34006
34007         gnu-web-doc-update: add standard options
34008         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34009
34010         gnu-web-doc-update: New module.
34011         Use this script to automatically update the on-line web documentation
34012         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34013         * modules/gnu-web-doc-update: New file, from coreutils.
34014         * build-aux/gnu-web-doc-update: New script.
34015
34016 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34017
34018         link: LoadLibrary is not needed.
34019         * lib/link.c: Use GetModuleHandle.
34020
34021 2009-10-01  Eric Blake  <ebb9@byu.net>
34022
34023         getopt: bump serial number
34024         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34025         change.
34026
34027         tests: tighten link, rmdir, and remove tests
34028         * tests/test-link.h (includes): No need to use <config.h> here.
34029         Clean up if directory hard link was created, otherwise test for
34030         trailing '.'.
34031         * tests/test-linkat.c (main): Simplify.
34032         * tests/test-remove.c (main): Enhance test for trailing '.'.
34033         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34034
34035 2009-10-01  Jim Meyering  <meyering@redhat.com>
34036
34037         maint.mk: requiring "make major" was annoying, for a "minor" release.
34038         What is intended is "stable", to contrast with alpha and beta,
34039         so require "make stable", not "make major".
34040         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34041         (get_tool_versions): Likewise.
34042         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34043
34044 2009-09-30  Ben Pfaff  <blp@gnu.org>
34045
34046         Fix broken build of replacement for Windows tmpfile().
34047         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34048         flags argument added along with the 'mkostemp' module.
34049
34050 2009-09-28  Bruno Haible  <bruno@clisp.org>
34051
34052         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34053         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34054         to 'remove_elt'.
34055         (gl_list_remove): Update.
34056         * lib/gl_list.c (gl_list_remove): Update.
34057         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34058         to 'remove_elt'.
34059         (gl_oset_remove): Update.
34060         * lib/gl_list.c (gl_oset_remove): Update.
34061         Reported by Eric Blake.
34062
34063 2009-09-28  Eric Blake  <ebb9@byu.net>
34064
34065         doc: mention yet more cygwin 1.7 status
34066         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34067         cygwin.
34068         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34069         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34070
34071         argp: fix test failure
34072         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34073         that are not upper-case.  Pass correct range to tolower.
34074
34075 2009-09-27  Jim Meyering  <meyering@redhat.com>
34076
34077         test-yesno: work around sparc-dash here-document infelicity
34078         Without this change, the literal \177 byte in a here document
34079         would make dash 0.5.5.1-3 access uninitialized memory.
34080         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34081         Instead, use a marker, "@", and filter through tr to create the desired
34082         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34083
34084 2009-09-27  Bruno Haible  <bruno@clisp.org>
34085
34086         Disable untested support for new flavours of ACLs on AIX.
34087         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34088         progress.
34089         * lib/set-mode-acl.c (qset_acl): Likewise.
34090
34091 2008-12-07  Bruno Haible  <bruno@clisp.org>
34092
34093         Add support for new flavours of ACLs on AIX. (Untested.)
34094         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34095         (file_has_acl): Add support for newer AIX.
34096         * lib/set-mode-acl.c (qset_acl): Likewise.
34097         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34098         Rainer Tammer <tammer@tammer.net>.
34099
34100 2009-09-26  Eric Blake  <ebb9@byu.net>
34101
34102         argp: fix compilation of getopt
34103         * lib/getopt.in.h (includes): Use different guard than glibc.
34104         Reported by Sergey Poznyakoff.
34105
34106         doc: mention more cygwin 1.7 status
34107         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34108         bug.
34109         * doc/posix-functions/execl.texi (execl): Likewise.
34110         * doc/posix-functions/execle.texi (execle): Likewise.
34111         * doc/posix-functions/execlp.texi (execlp): Likewise.
34112         * doc/posix-functions/execv.texi (execv): Likewise.
34113         * doc/posix-functions/execve.texi (execve): Likewise.
34114         * doc/posix-functions/execvp.texi (execvp): Likewise.
34115         * doc/glibc-functions/canonicalize_file_name.texi
34116         (canonicalize_file_name): Cygwin 1.7 now provides this.
34117         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34118         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34119         on AT_SYMLINK_NOFOLLOW.
34120
34121 2009-09-24  Eric Blake  <ebb9@byu.net>
34122
34123         test-linkat: make test more robust
34124         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34125
34126         getopt: fix inclusion guards for cygwin
34127         * modules/getopt-posix (Depends-on): Add include-next.
34128         (Makefile.am): Substitute more items in replacement header.
34129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34130         <getopt.h>.
34131         * lib/getopt.in.h (includes): Use split inclusion guard, and
34132         prefer <getopt.h> over include <unistd.h> when one is present.
34133         (option): Also override name of 'struct option'.
34134
34135         same-inode: revert prior change; it is not yet ready
34136         * NEWS: Undo mention of this change.
34137         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34138         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34139         * lib/cycle-check.c (cycle_check): Likewise.
34140         * lib/same.c (same_name): Likewise.
34141         * lib/at-func2.c (at_func2): Likewise.
34142
34143 2009-09-23  Eric Blake  <ebb9@byu.net>
34144
34145         linkat: new module
34146         * modules/linkat: New file.
34147         * lib/at-func2.c (at_func2): Likewise.
34148         * lib/linkat.c (linkat): Likewise.
34149         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34150         * lib/openat-priv.h (at_func2): Add declaration.
34151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34152         * modules/unistd (Makefile.am): Substitute them.
34153         * lib/unistd.in.h (linkat): Declare it.
34154         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34155         * doc/posix-functions/linkat.texi (linkat): Likewise.
34156         * doc/posix-functions/link.texi (link): Tweak wording.
34157         * tests/test-link.c (main): Move guts...
34158         * tests/test-link.h (test_link): ...into new file.
34159         * modules/linkat-tests: New test.
34160         * tests/test-linkat.c: Likewise.
34161         * modules/link-tests (Files): Ship new file.
34162         (Depends-on): Add stdbool.
34163
34164         dirname: add library-safe mdir_name
34165         * lib/dirname.h (mdir_name): New prototype.
34166         * lib/dirname.c (dir_name): Move guts...
34167         (mdir_name): ...to new function that avoids xalloc_die.
34168
34169         fchdir: another mingw fix
34170         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34171         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34172         on mingw (where it has not yet been ported), and make it optional
34173         elsewhere.
34174         (_gl_register_fd): Use it.
34175
34176         same-inode: make SAME_INODE tri-state, to port to mingw
34177         * NEWS: Mention this change.
34178         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34179         st_ino always being 0.
34180         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34181         * lib/cycle-check.c (cycle_check): Likewise.
34182         * lib/same.c (same_name): Likewise.
34183
34184         lstat: avoid mingw compilation error
34185         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34186         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34187         lstat ourselves.
34188         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34189         was adequate.
34190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34191         the checks for lstat.
34192         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34193
34194         link: fix test failure on Solaris 9
34195         * lib/link.c (rpl_link): Don't assume link will catch bogus
34196         trailing slash on source.
34197
34198         test-symlinkat: enhance test
34199         * tests/test-readlink.c (main): Move guts...
34200         * tests/test-readlink.h (test_readlink): ...into new file.
34201         * tests/test-symlink.c (main): Move guts...
34202         * tests/test-symlink.h (test_symlink): ...into new file.
34203         * tests/test-symlinkat.c (main): Use new files for further
34204         coverage.
34205         (do_symlink, do_readlink): New helper functions.
34206         * modules/symlink-tests (Files): Ship new file.
34207         (Depends-on): Add stdbool.
34208         * modules/readlink-tests (Files): Ship new file.
34209         (Depends-on): Add stdbool.
34210         * modules/symlinkat-tests (Files): Use new files.
34211
34212 2009-09-23  Eric Blake  <ebb9@byu.net>
34213
34214         readlink: document portability issue with symlink length
34215         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34216         systems have bogus st_size on symlinks, and mention the
34217         areadlink-with-size module.
34218         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34219         * doc/posix-functions/readlink.texi (readlink): Mention the
34220         areadlink module, and ERANGE failure.
34221         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34222         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34223
34224         readlink: fix Solaris 9 bug with trailing slash
34225         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34226         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34227         * doc/posix-functions/readlink.texi (readlink): Document this.
34228         * modules/readlink-tests: New test.
34229         * tests/test-readlink.c: Likewise.
34230
34231         readlink: fix cygwin 1.5.x bug with return type
34232         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34233         * lib/unistd.in.h (readlink): Use ssize_t.
34234         * lib/readlink.c (readlink): Likewise.
34235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34236         * modules/unistd (Makefile.am): Substitute it.
34237         * lib/unistd.in.h (readlink): Declare replacement.
34238         * doc/posix-functions/readlink.texi (readlink): Document this.
34239
34240         symlink: use throughout gnulib
34241         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34242         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34243         symlink is not used.
34244         * modules/symlinkat (Depends-on): Add symlink.
34245         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34246         * modules/canonicalize-tests (Depends-on): Likewise.
34247         * modules/lstat-tests (Depends-on): Likewise.
34248         * modules/openat-tests (Depends-on): Likewise.
34249         * modules/remove-tests (Depends-on): Likewise.
34250         * modules/rmdir-tests (Depends-on): Likewise.
34251         * modules/unlink-tests (Depends-on): Likewise.
34252         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34253         * tests/test-canonicalize.c (symlink): Likewise.
34254         * tests/test-fstatat.c (symlink): Likewise.
34255         * tests/test-lstat.c (symlink): Likewise.
34256         * tests/test-remove.c (symlink): Likewise.
34257         * tests/test-rmdir.c (symlink): Likewise.
34258         * tests/test-unlink.c (symlink): Likewise.
34259         * tests/test-unlinkat.c (symlink): Likewise.
34260
34261         symlink: new module, for Solaris 9 bug
34262         * modules/symlink: New file.
34263         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34264         * lib/symlink.c: Likewise.
34265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34266         * modules/unistd (Makefile.am): Substitute them.
34267         * lib/unistd.in.h (symlink): Declare replacement.
34268         * MODULES.html.sh (File system functions): Mention it.
34269         * doc/posix-functions/symlink.texi (symlink): Likewise.
34270         * modules/symlink-tests: New test.
34271         * tests/test-symlink.c: Likewise.
34272
34273 2009-09-23  Bruno Haible  <bruno@clisp.org>
34274
34275         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34276         when needed.
34277         Test case: gnulib-tool --import --with-tests atexit inttypes.
34278         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34279
34280 2009-09-23  Bruno Haible  <bruno@clisp.org>
34281
34282         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34283         subcommand, not in a subshell.
34284
34285 2009-09-22  Eric Blake  <ebb9@byu.net>
34286
34287         unistd: sort replacement declarations
34288         * lib/unistd.in.h: Sort declarations.
34289
34290         open, openat: minor optimization
34291         * lib/open.c (open): If open succeeded, len is non-zero.
34292         * lib/openat.c (rpl_openat): Likewise.
34293
34294         link-follow: ensure correct result
34295         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34296         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34297         distinguish between possible failures.
34298
34299 2009-09-21  Eric Blake  <ebb9@byu.net>
34300
34301         fts: avoid compiler warning
34302         * lib/fts.c (dirent_inode_sort_may_be_useful)
34303         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34304
34305 2009-09-19  Bruno Haible  <bruno@clisp.org>
34306
34307         * lib/progreloc.c (canonicalize_file_name): New declaration.
34308
34309 2009-09-19  Eric Blake  <ebb9@byu.net>
34310
34311         link: fix quoting
34312         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34313
34314         openat: fix openat bugs on Solaris 9
34315         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34316         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34317         * modules/openat (Depends-on): Add open.
34318         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34319         * modules/fcntl-h (Makefile.am): Substitute it.
34320         * lib/fcntl.in.h (openat): Declare replacement.
34321         * doc/posix-functions/openat.texi (openat): Document this.
34322
34323         openat: move fstatat and unlinkat into correct files
34324         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34325         compiled.
34326         * lib/openat.c (fstatat, unlinkat): Move...
34327         * lib/fstatat.c (fstatat): ...into correct files.
34328         * lib/unlinkat.c (unlinkat): Likewise.
34329
34330         openat: fix unlinkat bugs on Solaris 9
34331         * lib/unlinkat.c (unlinkat): New file.
34332         * modules/openat (Depends-on): Add unlink.
34333         (Files): Distribute it.
34334         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34335         trailing slash behavior is broken.
34336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34337         * modules/unistd (Makefile.am): Substitute it.
34338         * lib/unistd.in.h (unlinkat): Declare replacement.
34339         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34340
34341         openat: fix fstatat bugs on Solaris 9
34342         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34343         stat.
34344         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34345
34346         test-unlinkat: enhance test, to expose Solaris 9 bug
34347         * tests/test-unlink.c (main): Factor guts...
34348         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34349         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34350         * tests/test-rmdir.c (main): Adjust caller.
34351         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34352         (unlinker): New helper function.
34353         (rmdirat): Enhance check.
34354         * modules/rmdir-tests (Depends-on): Add stdbool.
34355         * modules/unlink-tests (Depends-on): Likewise.
34356         (Files): Add test-unlink.h.
34357         * modules/openat-tests (Files): Likewise.
34358         (Depends-on): Add unlinkdir.
34359
34360         test-fstatat: new test, to expose Solaris 9 bugs
34361         * tests/test-stat.c (main): Factor guts...
34362         * tests/test-stat.h (test_stat_func): ...into new file.
34363         * tests/test-lstat.c (main): Factor guts...
34364         * tests/test-lstat.h (test_lstat_func): ...into new file.
34365         * tests/test-fstatat.c: New file.
34366         * modules/stat-tests (Files): Add test-stat.h.
34367         * modules/lstat-tests (Files): Add test-lstat.h.
34368         (Depends-on): Add stdbool.
34369         * modules/openat-tests (Depends-on): Add pathmax.
34370         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34371         (Makefile.am): Run new test.
34372
34373         remove: new module, for mingw and Solaris 9 bugs
34374         * modules/remove: New file.
34375         * lib/remove.c: Likewise.
34376         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34378         * modules/stdio (Makefile.am): Use them.
34379         * lib/stdio.in.h (remove): Declare replacement.
34380         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34381         * doc/posix-functions/remove.texi (remove): Likewise.
34382         * modules/remove-tests: New test.
34383         * tests/test-remove.c: Likewise.
34384
34385         unlink: new module, for Solaris 9 bug
34386         * modules/unlink: New file.
34387         * lib/unlink.c: Likewise.
34388         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34390         * modules/unistd (Makefile.am): Use them.
34391         * lib/unistd.in.h (stat): Declare replacement.
34392         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34393         * doc/posix-functions/unlink.texi (unlink): Likewise.
34394         * modules/unlink-tests: New test.
34395         * tests/test-unlink.c: Likewise.
34396
34397         lstat: fix Solaris 9 bug
34398         * lib/lstat.c (lstat): Also check for trailing slash on
34399         non-symlink, non-directories.  Use stat module to simplify logic.
34400         * doc/posix-functions/lstat.texi (lstat): Document it.
34401         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34402         (configure.ac): Check for symlink.
34403         * tests/test-lstat.c (main): Add more tests.
34404
34405         stat: add as dependency to other modules
34406         * modules/chown (Depends-on): Add stat.
34407         * modules/euidaccess (Depends-on): Likewise.
34408         * modules/fchdir (Depends-on): Likewise.
34409         * modules/isdir (Depends-on): Likewise.
34410         * modules/link (Depends-on): Likewise.
34411         * modules/lstat (Depends-on): Likewise.
34412         * modules/mkdir-p (Depends-on): Likewise.
34413         * modules/modechange (Depends-on): Likewise.
34414         * modules/open (Depends-on): Likewise.
34415         * modules/readlink (Depends-on): Likewise.
34416         * modules/same (Depends-on): Likewise.
34417
34418         stat: fix Solaris 9 bug
34419         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34420         slash.
34421         * lib/stat.c (rpl_stat): Work around it.
34422         * doc/posix-functions/stat.texi (stat): Update documentation.
34423
34424         stat: new module, for mingw bug
34425         * modules/stat: New file.
34426         * lib/stat.c: Likewise.
34427         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34429         * modules/sys_stat (Makefile.am): Use them.
34430         * lib/sys_stat.in.h (stat): Declare replacement.
34431         * lib/openat.c (fstatat): Deal with lstat and stat being function
34432         macros.
34433         * modules/openat (Depends-on): Add inline.
34434         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34435         * doc/posix-functions/stat.texi (stat): Likewise.
34436         * modules/stat-tests: New test.
34437         * tests/test-stat.c: Likewise.
34438
34439 2009-09-19  Jim Meyering  <meyering@redhat.com>
34440
34441         syntax-check: detect unnecessary inclusion of canonicalize.h
34442         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34443
34444 2009-09-19  Eric Blake  <ebb9@byu.net>
34445
34446         canonicalize-lgpl: adjust clients to use correct header
34447         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34448         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34449         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34450         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34451         * lib/progreloc.c (includes): Likewise.
34452
34453 2009-09-19  Jim Meyering  <meyering@redhat.com>
34454
34455         test-posixtm.c: correct a comment
34456         * tests/test-posixtm.c: Correct first-line comment.
34457         Spotted by Eric Blake.
34458
34459 2009-09-16  Jim Meyering  <meyering@redhat.com>
34460
34461         posixtm-tests: make T const-correct; add a test case
34462         * tests/test-posixtm.c (T): Declare const.
34463         Add a test for -(2^31+1).
34464         Remove useless can-succeed-only-in-2002 test.
34465
34466         posixtm-tests: adjust the sole failing test
34467         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34468         expected output matches what mktime now produces.  Cross-checked via
34469         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34470
34471         posixtm: move #ifdef'd tests into a new module
34472         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34473         * tests/test-posixtm.c: ... this new file.
34474         * modules/posixtm-tests: New module.
34475
34476 2009-09-19  Eric Blake  <ebb9@byu.net>
34477
34478         openat: simplify use of at-func.c
34479         * lib/at-func.c (includes): Include prerequisites here, to
34480         simplify requirements on client files.
34481         * lib/openat-priv.h: Add double-inclusion guard.
34482         * lib/faccessat.c (includes): Simplify.
34483         * lib/fchmodat.c (includes): Likewise.
34484         * lib/fchownat.c (includes): Likewise.
34485         * lib/mkdirat.c (includes): Likewise.
34486         * lib/mkfifoat.c (includes): Likewise.
34487         * lib/symlinkat.c (includes): Likewise.
34488
34489         openat: allow return of fd 0
34490         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34491         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34492         unistd-safer.
34493         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34494         <fcntl.h>; this module does not leak fds.
34495         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34496         must be allowed to return 0, leaving openat_safer to add the
34497         safety.
34498         (openat_permissive): Avoid writing to just-opened fd 2 if
34499         restoring the current directory fails.
34500         * lib/openat-die.c (openat_restore_fail): Add comment.
34501         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34502         (save_cwd): Guarantee safe fd, but without use of open_safer.
34503         * tests/test-openat.c: New test.
34504         * modules/openat-tests (Files, Makefile.am): Distribute and build
34505         new file.
34506
34507         relocatable-prog-wrapper: fix build
34508         * modules/relocatable-prog-wrapper (Files): Update name of
34509         canonicalize m4 file, broken on 2009-09-17.
34510         Reported by emad hajjar <aleppos@hotmail.com>.
34511
34512 2009-09-19  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34515         * lib/safe-alloc.c: Likewise.
34516         Reported by Ian Beckwith <ianb@erislabs.net>.
34517
34518 2009-09-18  Bruno Haible  <bruno@clisp.org>
34519
34520         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34521         Reported by <erobles@sensacd.com.mx>.
34522
34523 2009-09-17  Eric Blake  <ebb9@byu.net>
34524
34525         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34526         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34527         slashes when checking if last component is missing.
34528         * tests/test-canonicalize.c (main): Test this.
34529
34530         canonicalize, canonicalize-lgpl: honor // if distinct from /
34531         * modules/canonicalize (Files): Add double-slash-root.m4.
34532         * modules/canonicalize-lgpl (Files): Likewise.
34533         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34534         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34535         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34536         fallback definition.
34537         (canonicalize_filename_mode): Use it to protect //.
34538         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34539         (__realpath): Likewise.
34540         * tests/test-canonicalize.c (main): Test this.
34541         * tests/test-canonicalize-lgpl.c (main): Likewise.
34542         * modules/canonicalize-tests (Depends-on): Add same-inode.
34543         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34544
34545         canonicalize-lgpl: fix glibc bug with trailing slash
34546         * m4/canonicalize-lgpl.m4: Move contents...
34547         * m4/canonicalize.m4: ...here.
34548         (gl_CANONICALIZE_LGPL): Factor realpath check...
34549         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34550         glibc 2.3.5 bug, fixed 2005-04-27.
34551         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34552         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34553         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34554         * modules/canonicalize-lgpl (Files): Manage file rename.
34555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34556         * modules/stdlib (Makefile.am): Substitute witness.
34557         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34558         is needed.
34559         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34560         replacement is required.
34561         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34562         * doc/glibc-functions/canonicalize_file_name.texi
34563         (canonicalize_file_name): Document this.
34564         * doc/posix-functions/realpath.texi (realpath): Likewise.
34565
34566         canonicalize-lgpl: reject non-directory with trailing slash
34567         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34568         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34569         catches failures in glibc 2.3.5.
34570         * tests/test-canonicalize.c (main): Likewise.
34571
34572         canonicalize-lgpl: use native realpath if it works
34573         * lib/canonicalize-lgpl.c (realpath): Guard with
34574         FUNC_REALPATH_WORKS.
34575         * lib/stdlib.in.h (realpath): Make declaration optional based on
34576         HAVE_REALPATH.
34577         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34578         native realpath works.
34579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34580         * modules/stdlib (Makefile.am): Substitute witness.
34581
34582         canonicalize, canonicalize-lgpl: use <stdlib.h>
34583         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34584         (Include): Mention <stdlib.h>.
34585         (configure.ac): Mention functions we provide.
34586         * modules/canonicalize (configure.ac): Likewise.
34587         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34588         realpath if canonicalize_file_name is missing.
34589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34590         * modules/stdlib (Makefile.am): Substitute witnesses.
34591         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34592         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34593         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34594         * NEWS: Document this.
34595         * doc/glibc-functions/canonicalize_file_name.texi
34596         (canonicalize_file_name): Likewise.
34597         * doc/posix-functions/realpath.texi (realpath): Likewise.
34598         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34599
34600         test-canonicalize: consolidate into single C program
34601         * tests/test-canonicalize.sh: Delete; move setup into...
34602         * tests/test-canonicalize.c (main): ...the program, making it
34603         easier to run in debugger.  Add some tests.
34604         * modules/canonicalize-tests (Files): Remove unused file.
34605         (Depends-on): Add progname.
34606         (configure.ac, Makefile.am): Simplify.
34607
34608         test-canonicalize-lgpl: consolidate into single C program
34609         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34610         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34611         easier to run in debugger.  Add some tests.
34612         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34613         (configure.ac, Makefile.am): Simplify.
34614
34615         canonicalize: avoid resolvepath
34616         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34617         unnecessary checks.
34618         * lib/canonicalize.c (includes): Simplify.
34619         (canonicalize_file_name): Drop resolvepath implementation.
34620         * modules/canonicalize (Depends-on): Drop filenamecat.
34621
34622         canonicalize: don't lose errno
34623         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34624         over calls to free.
34625
34626         canonicalize: simplify errno handling
34627         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34628         assignment.
34629
34630         canonicalize, canonicalize-lgpl: update module dependencies
34631         * modules/canonicalize (Depends-on): Add extensions, lstat,
34632         pathmax, stdlib.
34633         (Files): Drop pathmax.h.
34634         (configure.ac): Adjust macro name.
34635         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34636         lstat, stdlib, sys_stat.
34637         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34638         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34639         extensions.
34640         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34641         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34642         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34643         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34644         declaration, if available.
34645         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34646         we can rely on the readlink module.
34647         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34648         (includes): Use <unistd.h> unconditionally.
34649
34650 2009-09-17  Eric Blake  <ebb9@byu.net>
34651
34652         maint: make Include sections of modules consistent
34653         * modules/alloca: Use only header name; no need to list #include.
34654         * modules/alloca-opt: Likewise.
34655         * modules/arpa_inet: Likewise.
34656         * modules/canon-host: Likewise.
34657         * modules/configmake: Likewise.
34658         * modules/dirent: Likewise.
34659         * modules/eealloc: Likewise.
34660         * modules/environ: Likewise.
34661         * modules/fchdir: Likewise.
34662         * modules/fcntl: Likewise.
34663         * modules/fcntl-h: Likewise.
34664         * modules/gethrxtime: Likewise.
34665         * modules/gettime: Likewise.
34666         * modules/ignore-value: Likewise.
34667         * modules/inet_ntop: Likewise.
34668         * modules/inet_pton: Likewise.
34669         * modules/inttypes: Likewise.
34670         * modules/isnand-nolibm: Likewise.
34671         * modules/isnanf-nolibm: Likewise.
34672         * modules/mbchar: Likewise.
34673         * modules/mbfile: Likewise.
34674         * modules/mbiter: Likewise.
34675         * modules/mbuiter: Likewise.
34676         * modules/netdb: Likewise.
34677         * modules/netinet_in: Likewise.
34678         * modules/nproc: Likewise.
34679         * modules/pagealign_alloc: Likewise.
34680         * modules/poll: Likewise.
34681         * modules/printf-frexp: Likewise.
34682         * modules/pthread: Likewise.
34683         * modules/putenv: Likewise.
34684         * modules/random_r: Likewise.
34685         * modules/relocatable-prog: Likewise.
34686         * modules/search: Likewise.
34687         * modules/select: Likewise.
34688         * modules/selinux-h: Likewise.
34689         * modules/settime: Likewise.
34690         * modules/signal: Likewise.
34691         * modules/size_max: Likewise.
34692         * modules/socklen: Likewise.
34693         * modules/ssize_t: Likewise.
34694         * modules/stdarg: Likewise.
34695         * modules/stdbool: Likewise.
34696         * modules/stddef: Likewise.
34697         * modules/stdint: Likewise.
34698         * modules/stdio: Likewise.
34699         * modules/stdlib: Likewise.
34700         * modules/string: Likewise.
34701         * modules/strings: Likewise.
34702         * modules/sys_file: Likewise.
34703         * modules/sys_ioctl: Likewise.
34704         * modules/sys_select: Likewise.
34705         * modules/sys_socket: Likewise.
34706         * modules/sys_stat: Likewise.
34707         * modules/sys_time: Likewise.
34708         * modules/sys_times: Likewise.
34709         * modules/sys_utsname: Likewise.
34710         * modules/sys_wait: Likewise.
34711         * modules/sysexits: Likewise.
34712         * modules/time: Likewise.
34713         * modules/times: Likewise.
34714         * modules/tmpfile: Likewise.
34715         * modules/trim: Likewise.
34716         * modules/unistd: Likewise.
34717         * modules/wchar: Likewise.
34718         * modules/wctype: Likewise.
34719
34720 2009-09-17  Bruno Haible  <bruno@clisp.org>
34721
34722         Make getdate.y compile on QNX and NetBSD 5 / i386.
34723         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34724         TIME_T_FITS_IN_LONG_INT.
34725         * lib/getdate.y (long_time_t): New type.
34726         (relative_time): Change type of 'seconds' field to long_time_t.
34727         (get_date): Update types of local variables. Check against overflow
34728         during conversion from long_time_t to time_t.
34729         Reported by Matt Kraai <kraai@ftbfs.org>
34730         and Hasso Tepper <hasso@netbsd.org>.
34731
34732 2009-09-17  Bruno Haible  <bruno@clisp.org>
34733
34734         * modules/COPYING: Update copyright years.
34735         * modules/README: Likeiwse.
34736         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34737         Reported by Ian Beckwith <ianb@erislabs.net>.
34738
34739 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34740
34741         * users.txt: Update references for gnuit package.
34742
34743 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34744
34745         * m4/getdelim.m4: Fix typo in copyright line.
34746
34747 2009-09-17  Bruno Haible  <bruno@clisp.org>
34748
34749         * lib/atoll.c: Use the standard header with GPL copyright.
34750         * lib/argz.in.h: Likewise.
34751         * lib/glob.c: Likewise.
34752         * lib/glob-libc.h: Likewise.
34753         * lib/random_r.c: Likewise.
34754         * lib/siglist.h: Likewise.
34755         * lib/strsignal.c: Likewise.
34756         Reported by Ian Beckwith <ianb@erislabs.net>.
34757
34758 2009-09-17  Eric Blake  <ebb9@byu.net>
34759
34760         rmdir: ensure correct dependency order
34761         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34762
34763 2009-09-17  Bruno Haible  <bruno@clisp.org>
34764
34765         Disable assertion that fails on NetBSD 5 / i386.
34766         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34767         Reported by Sam Steingold <sds@gnu.org>
34768         and Hasso Tepper <hasso@netbsd.org>.
34769
34770 2009-09-16  Eric Blake  <ebb9@byu.net>
34771
34772         unlinkdir: port to mingw
34773         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34774         on which no one can unlink a directory.
34775
34776         stdlib: sort witness names
34777         * modules/stdlib (Makefile.am): Sort replacements.
34778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34779         * lib/stdlib.in.h: Likewise.
34780
34781         parse-duration-tests: avoid link failure
34782         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34783         LIBINTL.
34784         Reported by Tom G. Christensen.
34785
34786         openat-tests: ensure unlinkat behaves like rmdir
34787         * tests/test-rmdir.c (main): Factor guts...
34788         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34789         * modules/rmdir-tests (Files): Ship new file.
34790         * modules/openat-tests: New test.
34791         * tests/test-unlinkat.c: Likewise.
34792
34793         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34794         * modules/rmdir-errno (Status, Notice): Now obsolete.
34795
34796         rmdir: work around cygwin 1.5.x and mingw bugs
34797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34798         * lib/rmdir.c (rmdir): Work around it.
34799         * modules/rmdir (Status, Notice): No longer obsolete.
34800         (Files): Add dos.m4.
34801         (Depends-on): Add unistd.
34802         (configure.ac): Set witnesses.
34803         (License): Relax to LGPLv2+.
34804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34805         * modules/unistd (Makefile.am): Substitute witnesses.
34806         * lib/unistd.in.h (rmdir): Declare replacement.
34807         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34808         * modules/rmdir-tests: New tests.
34809         * tests/test-rmdir.c: Likewise.
34810
34811 2009-09-15  Eric Blake  <ebb9@byu.net>
34812
34813         fchdir: improve use of replacement functions
34814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34815         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34816         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34817         REPLACE_CLOSEDIR.
34818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34819         * modules/sys_stat (Makefile.am): Substitute correct witness.
34820         * modules/dirent (Makefile.am): Likewise.
34821         * modules/unistd (Makefile.am): Likewise.
34822         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34823         * lib/unistd.in.h (dup): Likewise.
34824         * lib/sys_stat.in.h (fstat): Likewise.
34825
34826         maint: ignore gnulib-tool temp files
34827         * .gitignore: Ignore files created during gnulib-tool --test.
34828
34829 2009-09-13  Jim Meyering  <meyering@redhat.com>
34830
34831         posixtm: don't reject a time that specify "60" as the number of seconds
34832         * lib/posixtm.c (posixtime): The code to reject invalid dates
34833         would also reject a time specified with the .60 suffix.
34834         But POSIX allows that, in order to accommodate leap seconds.
34835         So don't reject it.
34836         (main): Adjust tests accordingly.
34837         * modules/posixtm (Depends-on): Add stpcpy.
34838
34839 2009-09-11  Jim Meyering  <meyering@redhat.com>
34840
34841         announce-gen: include [$release_type] in emitted Subject:
34842         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34843         e.g., [stable] in the emitted Subject: line.
34844
34845 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34846
34847         Remove obsolete macros from several modules.
34848         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34849         obsolete Autoconf macros with their modern counterparts.
34850         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34851         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34853         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34854         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34855         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34857         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34858         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34859         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34860         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34861         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34862         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34863         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34864         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34865         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34866         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34867         * m4/time_r.m4 (gl_TIME_R): Likewise.
34868         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34869         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34870         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34871
34872         Fix copyright header in build-aux scripts.
34873         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34874         recommendation.
34875         * build-aux/ncftpput-ftp: Likewise.
34876         * build-aux/update-copyright: Likewise.
34877
34878 2009-09-09  Eric Blake  <ebb9@byu.net>
34879
34880         test-link: allow Linux choice of errno
34881         * tests/test-link.c (main): Relax test for alternate error.
34882
34883         strndup: fix improper m4 caching
34884         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34885         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34886         (gl_PREREQ_STRNDUP): Delete.
34887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34888         * modules/string (Makefile.am): Substitute it.
34889         * lib/string.in.h (strndup): Modernize prototype.
34890
34891         getcwd: port to mingw
34892         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34893         different from the POSIX assumptions made throughout the getcwd
34894         module; fortunately, the mingw getcwd does not need replacement.
34895         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34896         * modules/getcwd-tests: New test.
34897         * tests/test-getcwd.c: Likewise.
34898
34899         link: fix platform bugs
34900         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34901         * lib/link.c (link): Work around them.  Fix related mingw bug.
34902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34903         * modules/unistd (Makefile.am): Substitute it.
34904         * lib/unistd.in.h (link): Declare replacement.
34905         * doc/posix-functions/link.texi (link): Document this.
34906         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34907
34908         test-link: consolidate into single C program, test more cases
34909         * tests/test-link.sh: Delete.
34910         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34911         at least Cygwin and Solaris.
34912         * modules/link-tests (Files): Remove unused file.
34913         (Depends-on): Add errno, sys_stat.
34914         (Makefile.am): Simplify.
34915
34916 2009-09-08  Bruno Haible  <bruno@clisp.org>
34917
34918         Work around towlower, towupper bug on mingw.
34919         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34920         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34921         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34922         * doc/posix-functions/towupper.texi: Likewise.
34923         Reported by Eric Blake.
34924
34925 2009-09-08  Jim Meyering  <meyering@redhat.com>
34926
34927         build: don't try to run autoheader if we don't use it
34928         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34929         is not used in configure.ac.
34930
34931 2009-09-08  Eric Blake  <ebb9@byu.net>
34932
34933         euidaccess: fix compilation error
34934         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34935
34936         rawmemchr: relax license
34937         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34938         okay.
34939         Reported by Jim Meyering.
34940
34941         mkfifoat: new module
34942         * modules/mkfifoat: New file.
34943         * lib/mkfifoat.c: Likewise.
34944         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34946         * modules/sys_stat (Makefile.am): Use them.
34947         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34948         * MODULES.html.sh (File system functions): Mention module.
34949         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34950         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34951         * modules/mkfifoat-tests: New test.
34952         * tests/test-mkfifoat.c: Likewise.
34953
34954         strchrnul: relax license
34955         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34956         okay.
34957         Reported by Jim Meyering.
34958
34959 2009-09-08  Eric Blake  <ebb9@byu.net>
34960
34961         fstatat: fix compilation on Solaris
34962         * lib/fstatat.c (includes): Add fcntl.h.
34963         Reported by Pádraig Brady.
34964
34965 2009-09-07  Eric Blake  <ebb9@byu.net>
34966
34967         rename: modernize replacement
34968         * modules/rename (Depends-on): Add stdio.
34969         (configure.ac): Declare witness.
34970         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34971         stdio take care of replacement.
34972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34973         * modules/stdio (Makefile.am): Substitute them.
34974         * lib/stdio.in.h (rename): Declare replacement.
34975         * lib/rename.c (includes): Allow cross-compilation to non-windows
34976         machines.
34977         * doc/posix-functions/rename.texi (rename): Improve
34978         documentation.
34979
34980         stdio: sort witness names
34981         * modules/stdio (Makefile.am): Sort replacements.
34982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34983         * lib/stdio.in.h: Likewise.
34984
34985         getcwd: minor cleanups
34986         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34987         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34988
34989         openat: provide more convenience names
34990         * modules/faccessat (configure.ac): Add C witness.
34991         * lib/unistd.in.h (readlinkat): Fix typo.
34992         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34993         convenience wrappers.
34994         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34995         wrappers in syntax checks.
34996
34997 2009-09-06  Eric Blake  <ebb9@byu.net>
34998
34999         doc: fix comments in recent patches
35000         * lib/faccessat.c: Mention correct function.
35001         * lib/fchmodat.c: Likewise.
35002         * lib/fchownat.c: Likewise.
35003         * lib/symlinkat.c: Likewise.
35004         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35005         constants.
35006
35007         faccessat, symlinkat: continue cleanup of previous patch
35008         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35009         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35010         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35012         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35013         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35014         set.
35015
35016 2009-09-06  Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35019         (fstatat): Declare if GNULIB_FSTATAT is set.
35020         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35021         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35022         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35023         * modules/fcntl-h (Files): Remove m4/openat.m4.
35024         * modules/sys_stat (Files): Remove m4/openat.m4.
35025         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35026         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35027         * modules/unistd (Files): Remove m4/openat.m4.
35028         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35029         GNULIB_OPENAT.
35030         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35031         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35032         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35033         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35034         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35035         gl_OPENAT_DEFAULTS.
35036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35037         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35038         Don't require gl_OPENAT_DEFAULTS.
35039         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35040         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35041         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35042         (gl_OPENAT_DEFAULTS): Remove macro.
35043
35044 2009-09-06  Bruno Haible  <bruno@clisp.org>
35045
35046         * modules/openat (configure.ac): Remove unneeded witness.
35047
35048 2009-09-06  Bruno Haible  <bruno@clisp.org>
35049
35050         Set errno to ENOSYS when a function is entirely unsupported.
35051         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35052         EOPNOTSUPP.
35053         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35054         * modules/chown (Depends-on): Remove errno.
35055
35056 2009-09-06  Bruno Haible  <bruno@clisp.org>
35057
35058         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35059
35060 2009-09-06  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35063
35064 2009-09-06  Ben Pfaff  <blp@gnu.org>
35065             Bruno Haible  <bruno@clisp.org>
35066
35067         Work around a glibc bug in strtok_r.
35068         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35069         Undefine if UNDEFINE_STRTOK_R is set.
35070         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35072         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35073         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35074         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35075         UNDEFINE_STRTOK_R.
35076         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35077
35078 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35079
35080         exclude: minor fix
35081         * lib/exclude.c: Include wctype.h
35082
35083 2009-09-06  Akim Demaille  <demaille@gostai.com>
35084
35085         bootstrap: improve error message
35086         * build-aux/bootstrap (find_tool): Upon failure, report the list
35087         of candidates.
35088         Honor the initial value of the envvar.
35089
35090 2009-09-05  Eric Blake  <ebb9@byu.net>
35091
35092         symlinkat: new module
35093         * modules/symlinkat: New file.
35094         * lib/symlinkat.c: Likewise.
35095         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35097         * modules/unistd (Makefile.am): Use them.
35098         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35099         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35100         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35101         * MODULES.html.sh (File system functions): Mention module.
35102         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35103         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35104         * modules/symlinkat-tests: New test.
35105         * tests/test-symlinkat.c: Likewise.
35106
35107         test-openat-safer: add more checks
35108         * tests/test-openat-safer.c (main): Check more code paths.
35109
35110 2009-09-05  Jim Meyering  <meyering@redhat.com>
35111
35112         syntax-check: detect unnecessary inclusion of openat.h
35113         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35114
35115 2009-09-05  Bruno Haible  <bruno@clisp.org>
35116
35117         Support towlower, towupper.
35118         * doc/posix-functions/towlower.texi: Mention module wctype.
35119         * doc/posix-functions/towupper.texi: Likewise.
35120         * lib/wctype.in.h (towlower, towupper): New functions.
35121         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35122         (ASSERT): New macro.
35123         (e): New variable.
35124         (main): Test also towlower, towupper. Test WEOF argument.
35125         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35126
35127 2009-09-05  Bruno Haible  <bruno@clisp.org>
35128
35129         Fix conversion behaviour when the input is invalid.
35130         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35131         mark occurring in first pass of indirect conversion.
35132         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35133         input.
35134         Found by clang's static analyzer.
35135
35136 2009-09-05  Bruno Haible  <bruno@clisp.org>
35137
35138         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35139         where direct conversion is possible.
35140
35141 2009-09-04  Eric Blake  <ebb9@byu.net>
35142
35143         openat: fail with ENOENT on empty name
35144         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35145         buffer.
35146
35147         link-follow: fix logic bug in prior patch
35148         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35149         reversed sense of yes and no in prior patch.  Avoid confusing
35150         compilation failure with desired semantics.
35151
35152         link-follow: accomodate mingw and cross-compilation
35153         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35154         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35155         cross-compilation results to -1, to make linkat easier to
35156         implement when cross-compiling.  Trivially support mingw.
35157         * modules/link-follow (configure.ac): Call new name.
35158         * NEWS: Mention this.
35159
35160 2009-09-03  Eric Blake  <ebb9@byu.net>
35161
35162         faccessat: compile replacement
35163         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35164         needed.
35165
35166         fts: fix compilation error
35167         * lib/fts.c (includes): Re-add "openat.h", for
35168         openat_needs_fchdir.
35169
35170         faccessat: new module
35171         * modules/faccessat: New file.
35172         * lib/faccessat.c: Likewise.
35173         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35175         * modules/unistd (Makefile.am): Use it.
35176         * lib/unistd.in.h (faccessat): Declare it.
35177         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35178         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35179         * MODULES.html.sh (File system functions): Mention it.
35180         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35181         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35182
35183         euidaccess: prefer POSIX over non-standard implementation
35184         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35185         * lib/euidaccess.c (euidaccess): Use it if available.
35186
35187         openat: make template easier to use
35188         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35189         AT_FUNC_F2 to be undefined.
35190         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35191         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35192         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35193         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35194         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35195         Likewise.
35196         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35197         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35198         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35199         Likewise.
35200
35201         openat: declare in POSIX headers
35202         * NEWS: Mention this.
35203         * modules/openat (configure.ac): Declare witnesses.
35204         (Depends-on): Add fcntl-h, sys_stat, unistd.
35205         (Include): Mention correct headers.
35206         * modules/fcntl-h (Depends-on): Add link-warning.
35207         (Files): Add openat.m4.
35208         (Makefile.am): Substitute witnesses.
35209         * modules/sys_stat (Files, Makefile.am): Likewise.
35210         * modules/unistd (Files, Makefile.am): Likewise.
35211         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35212         (gl_OPENAT_DEFAULTS): New macro.
35213         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35216         (SYS_STAT_H): Remove unused variable.
35217         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35218         * lib/fcntl--.h (includes): Remove unneeded header.
35219         * lib/openat-safer.c (includes): Likewise.
35220         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35221         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35222         appropriate headers.
35223         (__OPENAT_PREFIX): Delete.
35224         * lib/fcntl.in.h (openat): Provide declaration.
35225         (AT_FDCWD): Fix Solaris bug.
35226         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35227         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35228         * lib/fchmodat.c (includes):  Adjust to find declaration.
35229         * lib/fchownat.c (includes): Likewise.
35230         * lib/mkdirat.c (includes): Likewise.
35231         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35232         still visible.
35233
35234 2009-09-02  Eric Blake  <ebb9@byu.net>
35235
35236         errno: use consistently
35237         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35238         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35239         * lib/canonicalize.c (ELOOP): Likewise.
35240         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35241         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35242         * lib/lchown.c (EOPNOTSUPP): Likewise.
35243         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35244         * lib/savewd.c (ESTALE): Likewise.
35245         * lib/settime.c (ENOSYS): Likewise.
35246         * lib/utimens.c (ENOSYS): Likewise.
35247         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35248         * lib/chdir-safer.c (ELOOP): Likewise.
35249         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35250         * modules/c-stack (Depends-on): Add errno.
35251         * modules/canonicalize (Depends-on): Likewise.
35252         * modules/chdir-safer (Depends-on): Likewise.
35253         * modules/fdopendir (Depends-on): Likewise.
35254         * modules/inet_ntop (Depends-on): Likewise.
35255         * modules/inet_pton (Depends-on): Likewise.
35256         * modules/lchown (Depends-on): Likewise.
35257         * modules/openat (Depends-on): Likewise.
35258         * modules/savewd (Depends-on): Likewise.
35259         * modules/settime (Depends-on): Likewise.
35260         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35261
35262         fts: avoid leaking fds
35263         * modules/fts (Depends-on): Add cloexec.
35264         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35265         flag.
35266
35267         fts: make directory fds more robust
35268         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35269         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35270
35271         backupfile, chdir-long, fts, savedir: make safer
35272         * lib/backupfile.c (includes): Use "dirent--.h", since
35273         numbered_backup can write to stderr during readdir.
35274         * lib/savedir.c (includes): Likewise.
35275         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35276         emulation can write to stderr on failure.
35277         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35278         * lib/getcwd.c: Document why opendir_safer is unused.
35279         * lib/glob.c: Likewise.
35280         * lib/scandir.c: Likewise.
35281         * lib/openat-proc.c: Likewise, for open_safer.
35282         * modules/backupfile (Depends-on): Add dirent-safer.
35283         * modules/savedir (Depends-on): Likewise.
35284         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35285         * modules/chdir-long (Depends-on): Add openat-safer.
35286
35287         openat-safer: new module
35288         * modules/openat-safer: New file.
35289         * lib/openat-safer.c: Likewise.
35290         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35291         * lib/fcntl-safer.h (openat_safer): Declare.
35292         * lib/fcntl--.h (openat): Override.
35293         * MODULES.html.sh (File descriptor based I/O): Mention it.
35294         * lib/openat.h: Add double-inclusion guards.
35295         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35296         "fcntl--.h", so we can implement openat.
35297         * modules/openat-safer-tests: New test.
35298         * tests/test-openat-safer.c: New file.
35299
35300         dirent-safer: new module
35301         * modules/dirent-safer: New file.
35302         * lib/dirent--.h: Likewise.
35303         * lib/dirent-safer.h: Likewise.
35304         * lib/opendir-safer.c: Likewise.
35305         * m4/dirent-safer.m4: Likewise.
35306         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35307         * modules/dirent-safer-tests: New test.
35308         * tests/test-dirent-safer.c: New file.
35309         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35310
35311         fdopendir: optimize on mingw
35312         * lib/unistd.in.h (_gl_directory_name): New prototype.
35313         * lib/fchdir.c (_gl_directory_name): Implement it.
35314         (fchdir): Use it to simplify implementation.
35315         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35316         fchdir, when available, to avoid calling [f]chdir().
35317
35318         fdopendir: split into its own module
35319         * lib/openat.c (fdopendir): Move...
35320         * lib/fdopendir.c: ...into new file.
35321         * modules/fdopendir: New module.
35322         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35323         * modules/openat (Depends-on): Add fdopendir.
35324         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35325         fdopendir here.
35326         * modules/savedir (Depends-on): Only need fdopendir, not full
35327         openat.
35328         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35329         * lib/openat.h (fdopendir): Drop prototype.
35330         * lib/dirent.in.h (fdopendir): Provide prototype.
35331         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35332         * modules/dirent (Makefile.am): Substitute them.
35333         * MODULES.html.sh (File system functions): Mention it.
35334         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35335         * modules/fdopendir-tests: New file.
35336         * tests/test-fdopendir.c: Likewise.
35337
35338         fchdir: use more consistent macro convention
35339         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35340         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35341         REPLACE_FCHDIR, rather than relying on config.h macros.
35342         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35343         inside a single make-time REPLACE_FCHDIR block, rather than using
35344         the config.h FCHDIR_REPLACEMENT.
35345         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35346         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35347         Manage fstat replacement.
35348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35349         REPLACE_FCHDIR.
35350         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35351         (Makefile.am): Substitute REPLACE_FCHDIR.
35352         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35353         FCHDIR_REPLACEMENT.
35354         * lib/dup-safer.c (dup_safer): Likewise.
35355         * lib/dup2.c (rpl_dup2): Likewise.
35356         * lib/dup3.c (rpl_dup3): Likewise.
35357         * lib/open.c (rpl_open): Likewise.
35358
35359         fchdir: simplify error handling, and support dup3
35360         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35361         stdbool, malloc-posix, realloc-posix.
35362         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35363         (ensure_dirs_slot): Return false on allocation failure.
35364         (rpl_dup2): Delete.
35365         (_gl_register_dup): New function.
35366         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35367         (_gl_register_fd): Close fd on allocation failure.
35368         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35369         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35370         prototype.
35371         (rpl_dup2_fchdir): Delete prototype.
35372         * lib/open.c (open): Update caller.
35373         * lib/dup2.c (dup2): Track fchdir metadata.
35374         * lib/dup3.c (dup3): Likewise.
35375         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35377
35378 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35379
35380         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35381         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35382         don't pass arguments to AC_OUTPUT.
35383
35384 2009-09-02  Bruno Haible  <bruno@clisp.org>
35385
35386         * modules/mkdtemp (License): Relicense under LGPLv2+.
35387         Reported by Paolo Bonzini.
35388
35389 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35390
35391         Replace uses of obsolete autoconf macros in Jim's modules.
35392         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35393         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35394         can evoke a warning from autoconf when run with -Wobsolete
35395         enabled.  They were declared obsolete for good reasons (see
35396         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35397         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35398         should not continue using the deprecated macros.
35399         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35400         obsolete Autoconf macros with modern counterparts.
35401         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35402         * m4/dos.m4 (gl_AC_DOS): Likewise.
35403         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35405         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35406         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35407         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35408         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35409         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35410         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35411         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35412         Likewise.
35413         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35414         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35415         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35416         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35417         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35418         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35419
35420 2009-09-01  Eric Blake  <ebb9@byu.net>
35421
35422         fchdir: fix off-by-one bug in previous patch
35423         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35424         (_gl_unregister_fd): Delete useless if.
35425
35426 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35427
35428         maint.mk: sort the list of syntax-check rules
35429         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35430         easier to get a sense of progress when the rules are run sequentially
35431         and take a long time.
35432
35433 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35434
35435         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35436         * modules/netinet_in: Likewise.
35437         * modules/sys_file: Likewise.
35438         * modules/sys_ioctl: Likewise.
35439         * modules/sys_select: Likewise.
35440         * modules/sys_socket: Likewise.
35441         * modules/sys_stat: Likewise.
35442         * modules/sys_time: Likewise.
35443         * modules/sys_times: Likewise.
35444         * modules/sys_utsname: Likewise.
35445         * modules/sys_wait: Likewise.
35446
35447 2009-09-01  Jim Meyering  <meyering@redhat.com>
35448
35449         fts: help ensure that return values are not ignored
35450         * lib/fts_.h (__GNUC_PREREQ): Define.
35451         (__attribute_warn_unused_result__): Define.
35452         (fts_children, fts_close, fts_open, fts_read): Declare with
35453         __attribute_warn_unused_result__.
35454
35455         fts: fts_close now fails also when closing a dir file descriptor fails
35456         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35457         and propagate to caller, along with errno.
35458
35459         announce-gen: correct formatting in --help output
35460         * build-aux/announce-gen (usage): Move the one-line description in
35461         --help output "up", to where it belongs, just after Usage:.
35462
35463 2009-08-31  Eric Blake  <ebb9@byu.net>
35464
35465         fchdir: port to mingw
35466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35467         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35468         opened, then use a substitute.
35469         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35470         replacement.
35471         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35472         (_gl_register_fd): No need to check stat if open already filters
35473         all directories.
35474         (fchdir): Fix error condition to match POSIX.
35475         * modules/fchdir (Depends-on): Add sys_stat.
35476         * doc/posix-functions/open.texi (open): Document the limitation.
35477         * modules/fchdir-tests: New file.
35478         * tests/test-fchdir.c: Likewise.
35479
35480         canonicalize: allow cross-testing from cygwin to mingw
35481         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35482         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35483         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35484         Likewise.
35485         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35486         target does not support symlinks.
35487         * tests/test-canonicalize-lgpl.sh: Likewise.
35488
35489         chown: avoid compilation warning on mingw
35490         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35491         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35492         mingw.
35493         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35494         * modules/chown (Depends-on): Add errno.
35495
35496 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35497
35498         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35499         command.
35500
35501 2009-08-31  Jim Meyering  <meyering@redhat.com>
35502
35503         canonicalize: remove useless initialization
35504         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35505         initialization of local, "end".
35506
35507 2009-08-30  Bruno Haible  <bruno@clisp.org>
35508
35509         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35510         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35511         ENOSYS.
35512
35513 2009-08-30  Bruno Haible  <bruno@clisp.org>
35514
35515         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35516         /usr/xpg4/bin/tr when it exists.
35517         * tests/test-pipe-filter-gi1.sh: Likewise.
35518
35519 2009-08-30  Bruno Haible  <bruno@clisp.org>
35520
35521         Work around deficient /usr/bin/id program on Solaris.
35522         * tests/test-file-has-acl.sh (ID): New variable.
35523         * tests/test-set-mode-acl.sh (ID): Likewise.
35524         * tests/test-copy-acl.sh (ID): Likewise.
35525         * tests/test-copy-file.sh (ID): Likewise.
35526
35527 2009-08-30  Bruno Haible  <bruno@clisp.org>
35528
35529         New module 'xstriconveh'.
35530         * lib/xstriconveh.h: New file.
35531         * lib/xstriconveh.c: New file.
35532         * modules/xstriconveh: New file.
35533
35534 2009-08-30  Bruno Haible  <bruno@clisp.org>
35535
35536         Make it easier to use mem_cd_iconveh.
35537         * lib/striconveh.h (iconveh_t): New type.
35538         (iconveh_open, iconveh_close): New declarations.
35539         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35540         with a single 'const iconveh_t *' argument.
35541         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35542         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35543         with a single 'const iconveh_t *' argument.
35544         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35545         * tests/test-striconveh.c (main): Update.
35546         * NEWS: Mention the change.
35547
35548 2009-08-30  Bruno Haible  <bruno@clisp.org>
35549
35550         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35551         problem.
35552
35553 2009-08-30  Bruno Haible  <bruno@clisp.org>
35554
35555         Work around iconv_open problem on Solaris.
35556         * lib/iconv_open-solaris.gperf: New file.
35557         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35559         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35560         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35561         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35562         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35563
35564 2009-08-29  Jim Meyering  <meyering@redhat.com>
35565
35566         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35567         * top/maint.mk (cvs-check): Remove target; it was just an alias
35568         to the better-named vc-diff-check.
35569         (maintainer-distcheck): Remove rule.  It was used only from
35570         the (alpha/beta/major) target, and all of its commands but one
35571         were coreutils-specific.
35572         (vc-dist): Remove rule.
35573         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35574         Run vc-diff-check, not vc-dist.
35575         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35576
35577 2009-08-27  Bruno Haible  <bruno@clisp.org>
35578
35579         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35580         of 0.
35581
35582 2009-08-27  Bruno Haible  <bruno@clisp.org>
35583
35584         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35585         compilers.
35586         * doc/func.texi: Document the SunPRO C bug.
35587
35588 2009-08-27  Bruno Haible  <bruno@clisp.org>
35589
35590         Fix link error on Solaris.
35591         * tests/test-parse-duration.c (xstrdup): Remove function.
35592
35593 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35594
35595         ignore-value: handle pointer types, too
35596         * lib/ignore-value.h (__attribute__): Remove definition.
35597         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35598         of a more concise and more-often effective "(void) i" statement.
35599         (ignore_ptr): New function to suppress warnings from functions that
35600         return pointers, and to make it explicit that one function doesn't
35601         handle all cases.
35602
35603 2009-08-25  Bruno Haible  <bruno@clisp.org>
35604
35605         dup2: work around a Linux bug.
35606         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35607         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35608         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35609         Reported by Simon Josefsson.
35610
35611 2009-08-25  Jim Meyering  <meyering@redhat.com>
35612
35613         libguestfs uses gnulib
35614         * users.txt: Add libguestfs.
35615
35616 2009-08-24  Eric Blake  <ebb9@byu.net>
35617
35618         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35619         * lib/pipe2.c (includes): Add binary-io.h.
35620         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35621
35622 2009-08-24  Bruno Haible  <bruno@clisp.org>
35623
35624         Tolerate declared but missing accept4 syscall.
35625         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35626         available.
35627         * lib/sys_socket.in.h (accept4): If the function is already present,
35628         override it.
35629         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35630         * modules/accept4 (Makefile.am): Compile accept4.c always.
35631         Reported by Paolo Bonzini and Eric Blake.
35632
35633 2009-08-23  Bruno Haible  <bruno@clisp.org>
35634
35635         New module 'accept4'.
35636         * lib/sys_socket.in.h (accept4): New declaration.
35637         * lib/accept4.c: New file.
35638         * m4/accept4.m4: New file.
35639         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35640         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35641         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35642         HAVE_ACCEPT4.
35643         * modules/accept4: New file.
35644         * doc/glibc-functions/accept4.texi: Mention the new module.
35645
35646 2009-08-24  Jim Meyering  <meyering@redhat.com>
35647
35648         progname: also set global program_invocation_name, when possible
35649         Before this change, a libtool-enabled program that calls glibc's
35650         error function would report the program name as
35651         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35652         * modules/progname (configure.ac): Check for a declaration of
35653         program_invocation_name.
35654         * lib/progname.c:  Include <errno.h>.
35655         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35656         Set program_invocation_name.
35657
35658 2009-08-23  Bruno Haible  <bruno@clisp.org>
35659
35660         * lib/dup3.c: Include <string.h>.
35661
35662 2009-08-23  Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35665         * lib/pipe2.c (pipe2): Likewise.
35666         Suggested by Eric Blake.
35667
35668 2009-08-23  Bruno Haible  <bruno@clisp.org>
35669
35670         Tolerate declared but missing dup3 syscall.
35671         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35672         * lib/unistd.in.h (dup3): If the function is already present,
35673         override it.
35674         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35675         * modules/dup3 (Makefile.am): Compile dup3.c always.
35676         Reported by Paolo Bonzini.
35677
35678 2009-08-23  Bruno Haible  <bruno@clisp.org>
35679
35680         Tolerate declared but missing pipe2 syscall.
35681         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35682         available.
35683         * lib/unistd.in.h (pipe2): If the function is already present,
35684         override it.
35685         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35686         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35687         Reported by Paolo Bonzini.
35688
35689 2009-08-23  Bruno Haible  <bruno@clisp.org>
35690
35691         * lib/pipe2.c (pipe2): Move #ifs inside function.
35692
35693 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35694
35695         quotearg: document limitations of quote_these_too
35696         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35697         those limitations are created.
35698         * lib/quotearg.h (set_char_quoting): Document that digits and
35699         letters that are special after backslash are not permitted.
35700         (quotearg_char): Cross-reference set_char_quoting documentation.
35701
35702 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35703
35704         quotearg: implement custom_quoting_style
35705         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35706         right_quote fields.
35707         (set_custom_quoting): New public function.
35708         (quotearg_buffer_restyled): Add left_quote and right_quote
35709         arguments, handle them very much like locale quoting, and update
35710         all uses.
35711         (quotearg_n_custom): New public function.
35712         (quotearg_n_custom_mem): New public function.
35713         (quotearg_custom): New public function.
35714         (quotearg_custom_mem): New public function.
35715         * lib/quotearg.h: Prototype and document new public functions.
35716         (enum quoting_style): For escape_quoting_style and
35717         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35718         ignored even though they're otherwise like c_quoting_style.
35719         Add custom_quoting_style member and document with comparison to
35720         clocale_quoting_style.
35721         * tests/test-quotearg.c (custom_quotes): New array.
35722         (custom_results): New array.
35723         (main): Extend to test custom quoting.
35724
35725 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35726
35727         quotearg: fix right quote escaping when it's in quote_these_too
35728         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35729         quote, be sure to prepend only one backslash.
35730         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35731         (main): Test it.
35732
35733 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35734
35735         quotearg-tests: test escaping of embedded locale quotes
35736         * tests/test-quotearg.c (struct result_strings): Add member for
35737         new input.
35738         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35739         (inputs): Add new input.
35740         (results_g): Add expected results.
35741         (flag_results): Likewise.
35742         (locale_results): Likewise.
35743         (compare_strings): Check those.
35744
35745 2009-08-23  Bruno Haible  <bruno@clisp.org>
35746
35747         Tests for module 'dup3'.
35748         * modules/dup3-tests: New file.
35749         * tests/test-dup3.c: New file.
35750
35751         New module 'dup3'.
35752         * lib/unistd.in.h (dup3): New declaration.
35753         * lib/dup3.c: New file.
35754         * m4/dup3.m4: New file.
35755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35756         HAVE_DUP3.
35757         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35758         * modules/dup3: New file.
35759         * doc/glibc-functions/dup3.texi: Mention the new module.
35760
35761 2009-08-23  Bruno Haible  <bruno@clisp.org>
35762
35763         Tweak the dup2 test.
35764         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35765         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35766         the test file is still empty. Fix argument order of lseek.
35767
35768 2009-08-23  Bruno Haible  <bruno@clisp.org>
35769
35770         Avoid test link errors when the modules getopt-gnu, gettext are used.
35771         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35773
35774 2009-08-23  Bruno Haible  <bruno@clisp.org>
35775
35776         Fix getdtablesize() on mingw.
35777         * lib/getdtablesize.c (getdtablesize): Implement differently.
35778         * lib/unistd.in.h (getdtablesize): Improve comment.
35779
35780 2009-08-23  Bruno Haible  <bruno@clisp.org>
35781
35782         New module 'mkostemp'.
35783         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35784         * lib/stdlib.in.h (mksotemp): New declaration.
35785         * lib/mkostemp.c: New file, from glibc with modifications.
35786         * lib/tempname.h (GT_FILE): Remove outdated comment.
35787         (gen_tempname): Add flags argument.
35788         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35789         (__GT_FILE): Map to 1.
35790         (small_open, large_open): Remove macros.
35791         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35792         * lib/mkstemp.c (mkstemp): Update.
35793         * lib/mkdtemp.c (mkdtemp): Likewise.
35794         * m4/mkostemp.m4: New file.
35795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35796         HAVE_MKOSTEMP.
35797         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35798         HAVE_MKOSTEMP.
35799         * modules/mkostemp: New file, based on modules/mkstemp.
35800         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35801         * NEWS: Mention the change.
35802
35803 2009-08-23  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35806         Reported by Eric Blake.
35807
35808 2009-08-23  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35811         Reported by Eric Blake.
35812
35813 2009-08-23  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35816         * modules/pipe2 (Depends-on): Likewise.
35817
35818 2009-08-23  Eric Blake  <ebb9@byu.net>
35819
35820         fcntl-h: add O_TTY_INIT support
35821         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35822         * tests/test-fcntl-h.c (o): Test it.
35823         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35824
35825         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35826         * modules/fcntl: Move <fcntl.h> header replacement...
35827         * modules/fcntl-h: ...to new name, so as not to collide with
35828         like-named function.
35829         * tests/test-fcntl.c: Rename...
35830         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35831         * modules/fcntl-tests: Rename...
35832         * modules/fcntl-h-tests: ...to this.  Update test file name.
35833         * modules/chdir-long (Depends-on): Update clients.
35834         * modules/chdir-safer (Depends-on): Likewise.
35835         * modules/fcntl-safer (Depends-on): Likewise.
35836         * modules/fts (Depends-on): Likewise.
35837         * modules/mkancesdirs (Depends-on): Likewise.
35838         * modules/mkdir-p (Depends-on): Likewise.
35839         * modules/open (Depends-on): Likewise.
35840         * modules/savewd (Depends-on): Likewise.
35841         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35842         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35843
35844 2009-08-22  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/binary-io (License): Relicense under LGPL.
35847         * modules/pipe2 (License): Likewise.
35848
35849 2009-08-22  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35852         return value.
35853         * lib/pipe-filter-gi.c (filter_init): Likewise.
35854         Reported by Eric Blake.
35855
35856 2009-08-22  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35859         * modules/pipe (Depends-on): Add pipe2.
35860
35861 2009-08-22  Bruno Haible  <bruno@clisp.org>
35862
35863         Tests for module 'pipe2'.
35864         * modules/pipe2-tests: New file.
35865         * tests/test-pipe2.c: New file.
35866
35867         New module 'pipe2'.
35868         * lib/unistd.in.h (pipe2): New declaration.
35869         * lib/pipe2.c: New file.
35870         * m4/pipe2.m4: New file.
35871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35872         HAVE_PIPE2.
35873         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35874         * modules/pipe2: New file.
35875         * doc/glibc-functions/pipe2.texi: Mention the new module.
35876
35877 2009-08-22  Bruno Haible  <bruno@clisp.org>
35878
35879         Reference some new glibc functions.
35880         * doc/glibc-functions/accept4.texi: New file.
35881         * doc/glibc-functions/dup3.texi: New file.
35882         * doc/glibc-functions/mkostemp.texi: New file.
35883         * doc/glibc-functions/pipe2.texi: New file.
35884         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35885         (Glibc sys/socket.h): Refer to accept4.
35886         (Glibc unistd.h): Refer to dup3, pipe2.
35887         Reported by Eric Blake.
35888
35889 2009-08-22  Jim Meyering  <meyering@redhat.com>
35890             Bruno Haible  <bruno@clisp.org>
35891
35892         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35893         This makes it so packages using automake-1.11's silent-rules option
35894         can print e.g., a single "GEN    configmake.h" line, rather than
35895         the 30+ statements that perform the job.  If you want to see the
35896         actual commands, you can still run "make V=1".
35897         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35898         so that make output is abbreviated when those variables are defined
35899         appropriately.
35900         * modules/argz: Likewise.
35901         * modules/arpa_inet: Likewise.
35902         * modules/byteswap: Likewise.
35903         * modules/configmake: Likewise.
35904         * modules/dirent: Likewise.
35905         * modules/errno: Likewise.
35906         * modules/fcntl: Likewise.
35907         * modules/float: Likewise.
35908         * modules/fnmatch: Likewise.
35909         * modules/getopt-posix: Likewise.
35910         * modules/glob: Likewise.
35911         * modules/iconv_open: Likewise.
35912         * modules/inttypes: Likewise.
35913         * modules/localcharset: Likewise.
35914         * modules/locale: Likewise.
35915         * modules/math: Likewise.
35916         * modules/netdb: Likewise.
35917         * modules/netinet_in: Likewise.
35918         * modules/poll: Likewise.
35919         * modules/posix_spawnp-tests: Likewise.
35920         * modules/sched: Likewise.
35921         * modules/search: Likewise.
35922         * modules/selinux-h: Likewise.
35923         * modules/signal: Likewise.
35924         * modules/spawn: Likewise.
35925         * modules/stdarg: Likewise.
35926         * modules/stdbool: Likewise.
35927         * modules/stddef: Likewise.
35928         * modules/stdint: Likewise.
35929         * modules/stdio: Likewise.
35930         * modules/stdlib: Likewise.
35931         * modules/string: Likewise.
35932         * modules/strings: Likewise.
35933         * modules/sys_file: Likewise.
35934         * modules/sys_ioctl: Likewise.
35935         * modules/sys_select: Likewise.
35936         * modules/sys_socket: Likewise.
35937         * modules/sys_stat: Likewise.
35938         * modules/sys_time: Likewise.
35939         * modules/sys_times: Likewise.
35940         * modules/sys_utsname: Likewise.
35941         * modules/sys_wait: Likewise.
35942         * modules/sysexits: Likewise.
35943         * modules/time: Likewise.
35944         * modules/unistd: Likewise.
35945         * modules/wchar: Likewise.
35946         * modules/wctype: Likewise.
35947
35948 2009-08-22  Jim Meyering  <meyering@redhat.com>
35949
35950         announce-gen: detect write failure
35951         * build-aux/announce-gen: Add Coda at end.
35952         Remove equivalent-but-more-verbose block at top.
35953
35954 2009-08-19  Akim Demaille  <demaille@gostai.com>
35955
35956         bootstrap: --help to stdout.
35957         * bootstrap (usage): Don't send --help to stderr.
35958         Use a here doc instead of a long string.
35959
35960 2009-08-21  Eric Blake  <ebb9@byu.net>
35961
35962         test-popen-safer: split from test-popen
35963         * tests/test-popen.c (main): Move...
35964         * tests/test-popen.h: ...into new file.
35965         * tests/test-popen-safer2.c: New file.
35966         * modules/popen-tests (Files): Add test-popen.h.
35967         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35968         Suggested by Bruno Haible.
35969
35970         test-fcntl-safer: split from test-open
35971         * tests/test-open.c (main): Move...
35972         * tests/test-open.h: ...into new file.
35973         * tests/test-fcntl-safer.c: New file.
35974         * modules/open-tests (Files): Add test-open.h.
35975         * modules/fcntl-safer-tests: New file.
35976         Suggested by Bruno Haible.
35977
35978         test-fopen-safer: split from test-fopen
35979         * tests/test-fopen.c (main): Move...
35980         * tests/test-fopen.h: ...into new file.
35981         * tests/test-fopen-safer.c: New file.
35982         * modules/fopen-tests (Files): Add test-fopen.h.
35983         * modules/fopen-safer-tests: New file.
35984         Suggested by Bruno Haible.
35985
35986 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35987
35988         popen-safer: test O_CLOEXEC at run-time.
35989         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35990
35991 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35992
35993         fcntl: move more flags to the header
35994         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35995         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35996         * lib/fcntl.in.h: Do both things here.
35997
35998 2009-08-21  Jim Meyering  <meyering@redhat.com>
35999
36000         consistently remove $@-t before redirecting to it
36001         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36002         * modules/alloca-opt: Likewise.
36003         * modules/byteswap: Likewise.
36004         * modules/fnmatch: Likewise.
36005         * modules/getopt-posix: Likewise.
36006         * modules/glob: Likewise.
36007         * modules/poll: Likewise.
36008         * modules/posix_spawnp-tests: Likewise.
36009         * modules/sys_socket: Likewise.
36010         * modules/sysexits: Likewise.
36011
36012 2009-08-21  Eric Blake  <ebb9@byu.net>
36013
36014         popen: simplify access to original popen
36015         * lib/popen.c (rpl_popen): No need to worry about popen being a
36016         macro.
36017         Reported by Bruno Haible.
36018
36019 2009-08-20  Eric Blake  <ebb9@byu.net>
36020
36021         build: avoid some compiler warnings
36022         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36023         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36024         type.
36025         (new_exclude_segment, excluded_file_pattern_p)
36026         (excluded_file_name_p): Reduce scope.
36027         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36028         old-style declaration.
36029
36030 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36031
36032         * tests/test-exclude1.sh: Handle Windows EOL.
36033         * tests/test-exclude2.sh: Likewise.
36034         * tests/test-exclude3.sh: Likewise.
36035         * tests/test-exclude4.sh: Likewise.
36036         * tests/test-exclude5.sh: Likewise.
36037         * tests/test-exclude6.sh: Likewise.
36038         * tests/test-exclude7.sh: Likewise.
36039
36040 2009-08-19  Akim Demaille  <demaille@gostai.com>
36041
36042         bootstrap: find sha1sum when named gsha1sum.
36043         * bootstrap (find_tool): New.
36044         ($SHA1SUM): New.
36045         Use it.
36046
36047 2009-08-20  Jim Meyering  <meyering@redhat.com>
36048
36049         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36050         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36051         expression that converts "." in a file name to "\." in the resulting
36052         regexp.  Start with a dummy statement, so that prior shell variable
36053         definitions are expanded portably.  Reported by Simon Josefsson.
36054
36055 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36056
36057         Fix polling for writeability of a screen buffer.
36058         * lib/poll.c: Distinguish input and screen buffers for the
36059         Win32 implementation.
36060         * lib/select.c: Likewise.
36061
36062 2009-08-19  Eric Blake  <ebb9@byu.net>
36063
36064         popen-safer: prevent popen from clobbering std descriptors
36065         * modules/popen-safer: New file.
36066         * lib/popen-safer.c: Likewise.
36067         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36068         * lib/stdio--.h (popen): Provide override.
36069         * lib/stdio-safer.h (popen_safer): Provide declaration.
36070         * tests/test-popen.c (includes): Partially test this.
36071         * modules/popen-safer-tests: New file, for more tests.
36072         * tests/test-popen-safer.c: Likewise.
36073         * MODULES.html.sh (file stream based Input/Output): Mention it.
36074
36075         tests: test some of the *-safer modules
36076         * modules/fopen-safer (Depends-on): Add fopen.
36077         * modules/fcntl-safer (Depends-on): Add fcntl.
36078         * modules/stdlib-safer (Depends-on): Add stdlib.
36079         (configure.ac): Set indicator.
36080         * modules/unistd-safer (configure.ac): Likewise.
36081         * modules/tmpfile-safer (configure.ac): Likewise.
36082         (Depends-on): Add tmpfile.
36083         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36084         active.
36085         * tests/test-fopen.c (includes): Test safer versions when they are
36086         in use.
36087         * tests/test-open.c (includes): Likewise.
36088
36089         popen: fix cygwin 1.5 bug when stdin closed
36090         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36091         * modules/popen: New file.
36092         * modules/popen-tests: Likewise.
36093         * tests/test-popen.c: Likewise.
36094         * m4/popen.m4: Likewise.
36095         * lib/popen.c: Likewise.
36096         * lib/stdio.in.h (popen): New declaration.
36097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36098         * modules/stdio (Makefile.am): Likewise.
36099         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36100
36101 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36102
36103         maint.mk: give full control over update-copyright exclusions
36104         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36105         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36106         (update-copyright): Don't force inclusion of top-level
36107         ChangeLog.  Don't force exclusion of all COPYING files, but make
36108         them the default exclusion instead.
36109
36110 2009-08-16  Bruno Haible  <bruno@clisp.org>
36111
36112         Fix test failures on Solaris 10.
36113         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36114         tests when Solaris iconv() is used.
36115         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36116         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36117         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36118         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36119         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36120
36121 2009-08-16  Bruno Haible  <bruno@clisp.org>
36122
36123         Fix test failures on Solaris 10.
36124         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36125         'tr' program and pass it as first argument.
36126         * tests/test-pipe-filter-gi1.sh: Likewise.
36127         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36128         program as first argument.
36129         * tests/test-pipe-filter-gi1.c (main): Likewise.
36130
36131 2009-08-16  Eric Blake  <ebb9@byu.net>
36132
36133         fpurge: fix previous commits
36134         * modules/fpurge (Makefile.am): Make replacement conditional,
36135         partially reverting 2007-04-29 change; missed in previous
36136         attempt.
36137         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36138         is missing.
36139
36140 2009-08-16  Bruno Haible  <bruno@clisp.org>
36141
36142         Clarify fpurge's effect on the file position.
36143         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36144         * tests/test-fpurge.c (main): Make a second pass for checking the file
36145         position.
36146
36147 2009-08-16  Bruno Haible  <bruno@clisp.org>
36148
36149         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36150         declaration of fpurge is missing.
36151         * tests/test-fpurge.c (main): Check that the file has not more contents
36152         than expected. Close the file before removing it.
36153
36154 2009-08-15  Eric Blake  <ebb9@byu.net>
36155
36156         fpurge: don't wrap working cygwin implementation
36157         * lib/fpurge.c (fpurge): Fix comment typo.
36158         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36159         1.7 to avoid replacement.
36160         * tests/test-fpurge.c (main): Enhance test.
36161
36162 2009-08-15  Eric Blake  <ebb9@byu.net>
36163         and Jim Meyering  <meyering@redhat.com>
36164
36165         test-update-copyright: skip if perl is insufficient
36166         * tests/test-update-copyright.sh: Failure to run maintainer tool
36167         should not cause testsuite failure on cygwin 1.5.
36168
36169 2009-08-14  Eric Blake  <ebb9@byu.net>
36170
36171         doc: mention more functions added in cygwin 1.7.0
36172         * doc/posix-headers/limits.texi (limits.h): Update for recent
36173         cygwin additions.
36174         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36175         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36176         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36177         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36178         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36179
36180 2009-08-14  Eric Blake  <ebb9@byu.net>
36181
36182         maint.mk: simplify update-copyright rule
36183         * top/maint.mk (update-copyright-local): Delete, and document how
36184         to do it in cfg.mk instead.
36185         (update-copyright-exclude-regexp): Delete, and document how to do
36186         it in .x-update-copyright instead.
36187         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36188         exclude ChangeLog.
36189
36190 2009-08-14  Bruno Haible  <bruno@clisp.org>
36191
36192         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36193
36194 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36195
36196         maint.mk: support update-copyright-env
36197         * top/maint.mk (update-copyright-env): Define place-holder.
36198         (update-copyright): Expand $(update-copyright-env) before
36199         invoking update-copyright.
36200
36201 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36202
36203         update-copyright: implement forced reformatting
36204         * build-aux/update-copyright: Implement and document
36205         UPDATE_COPYRIGHT_FORCE.
36206         * tests/test-update-copyright.sh: Test it.
36207
36208 2009-08-14  Eric Blake  <ebb9@byu.net>
36209         and Bruno Haible  <bruno@clisp.org>
36210
36211         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36212         * tests/test-locale.c: Revert previous patch related to NULL.
36213         * tests/test-stdio.c: Likewise.
36214         * tests/test-stdlib.c: Likewise.
36215         * tests/test-string.c: Likewise.
36216         * tests/test-unistd.c: Likewise.
36217         * modules/time-tests (Depends-on): Add verify.
36218         * modules/wchar-tests (Depends-on): Likewise.
36219         * tests/test-time.c: Test for NULL compliance.
36220         * tests/test-wchar.c: Likewise.
36221         * modules/locale (Depends-on): Add stddef.
36222         * modules/stdio (Depends-on): Likewise.
36223         * modules/stdlib (Depends-on): Likewise.
36224         * modules/string (Depends-on): Likewise.
36225         * modules/time (Depends-on): Likewise.
36226         * modules/unistd (Depends-on): Likewise.
36227         * modules/wchar (Depends-on): Likewise.
36228         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36229         * lib/stdlib.in.h (includes): Likewise.
36230         * lib/string.in.h (includes): Likewise.
36231         * lib/time.in.h (includes): Likewise.
36232         * lib/unistd.in.h (includes): Likewise.
36233         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36234         replaced.
36235         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36236         * m4/stddef_h.m4: New file.
36237         * modules/stddef: Likewise.
36238         * lib/stddef.in.h: Likewise.
36239         * modules/stddef-tests: Likewise.
36240         * tests/test-stddef.c: Likewise.
36241         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36242         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36243         * doc/posix-headers/locale.texi (locale.h): Likewise.
36244         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36245         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36246         * doc/posix-headers/string.texi (string.h): Likewise.
36247         * doc/posix-headers/time.texi (time.h): Likewise.
36248         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36249         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36250
36251 2009-08-14  Eric Blake  <ebb9@byu.net>
36252
36253         doc: improve git diff of texinfo files
36254         * .gitattributes: Add rule for *.texi files, with hint on how to
36255         use it.
36256         Copied from m4, and based on a report by Bruno Haible.
36257
36258 2009-08-14  Bruno Haible  <bruno@clisp.org>
36259
36260         Disable multithread support by default on Cygwin 1.5.x for real.
36261         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36262
36263 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36264
36265         update-copyright: much ado about intervals
36266         * build-aux/update-copyright: Implement and document
36267         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36268         of copyright year intervals.
36269         Also, document UPDATE_COPYRIGHT_YEAR.
36270         * tests/test-update-copyright.sh: Test it.
36271
36272         update-copyright: convert 2-digit to 4-digit years
36273         * build-aux/update-copyright: Implement and document.
36274         * tests/test-update-copyright.sh: Update.
36275
36276 2009-08-14  Jim Meyering  <meyering@redhat.com>
36277
36278         test-exclude: avoid coreutils "make check" failure
36279         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36280         just as in test-argmatch.c.
36281
36282 2009-08-13  Eric Blake  <ebb9@byu.net>
36283
36284         test-dup2: fix bad assumption
36285         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36286         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36287
36288         test-version-etc: fix CRLF portability issue
36289         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36290         recognize \r.
36291         * tests/test-argp-version-etc-1.sh: Likewise.
36292
36293         getopt: update client modules
36294         * modules/argp (Depends-on): Use getopt-gnu.
36295         * modules/git-merge-changelog (Depends-on): Likewise.
36296         * modules/long-options (Depends-on): Likewise.
36297         * modules/xstrtol (Depends-on): Likewise.
36298
36299 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36300
36301         * tests/test-version-etc.sh: Don't fail on different
36302         project/version.  Don't fail on CRLF differences.  Rewrite to use
36303         multiple -e instead of multiple sed forks, suggested by Eric Blake
36304         <ebb9@byu.net>.
36305         * tests/test-argp-version-etc-1.sh: Likewise.
36306
36307 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36308
36309         * tests/test-version-etc.sh: Don't fail on different
36310         project/version.
36311
36312 2009-08-12  Bruno Haible  <bruno@clisp.org>
36313
36314         Tests for modules 'getopt-posix', 'getopt-gnu'.
36315         * modules/getopt-posix-tests: New file.
36316         * tests/test-getopt.c: New file.
36317         * tests/test-getopt.h: New file.
36318         * tests/test-getopt_long.h: New file.
36319
36320         New modules 'getopt-posix', 'getopt-gnu'.
36321         * modules/getopt-gnu: New file, renamed from modules/getopt.
36322         * modules/getopt-posix: New file.
36323         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36324         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36325         (gl_GETOPT): Remove macro.
36326         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36327         Disable the test against BSD systems that declare optreset. Test
36328         against mingw bug. Test against lack of support of optional arguments
36329         on many platforms.
36330         * doc/glibc-headers/getopt.texi: Update module name and list of
36331         relevant platforms.
36332         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36333         'getopt-gnu' and more portability problems.
36334         * NEWS: Mention the changes.
36335
36336 2009-08-12  Bruno Haible  <bruno@clisp.org>
36337
36338         Ensure that optarg etc. get declared by <unistd.h>.
36339         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36340         AC_USE_SYSTEM_EXTENSIONS.
36341         * modules/getopt (Depends-on): Add 'extensions'.
36342
36343 2009-08-12  Bruno Haible  <bruno@clisp.org>
36344
36345         Avoid test link errors.
36346         * modules/pipe-filter-ii-tests (Makefile.am): Define
36347         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36348         * modules/pipe-filter-gi-tests (Makefile.am): Define
36349         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36350         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36351
36352 2009-08-12  Bruno Haible  <bruno@clisp.org>
36353
36354         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36355         gl_GETOPT_SUBSTITUTE before.
36356         (gl_GETOPT): Use it.
36357         * m4/argp.m4 (gl_ARGP): Update.
36358         Reported by Sergey Poznyakoff.
36359
36360         * m4/getopt.m4: Reorder macros.
36361         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36362         (gl_GETOPT_SUBSTITUTE): Remove macro.
36363
36364 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36365
36366         Minor improvement in gitlog-to-changelog
36367
36368         * build-aux/gitlog-to-changelog: New option `--format' makes
36369         output format string configurable.
36370
36371 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36372
36373         Optimize exclude: use hash tables for non-wildcard patterns.
36374
36375         * lib/exclude.c: Include hash.h and mbuiter.h
36376         (struct exclude_pattern, exclude_segment): New data types.
36377         (struct exclude): Rewrite.
36378         (fnmatch_pattern_has_wildcards): New function.
36379         (new_exclude_segment, free_exclude_segment): New functions.
36380         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36381         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36382         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36383         * modules/exclude: Depend on hash and mbuiter.
36384
36385         * modules/exclude-tests: New file.
36386         * tests/test-exclude.c: New file.
36387         * tests/test-exclude1.sh: New file.
36388         * tests/test-exclude2.sh: New file.
36389         * tests/test-exclude3.sh: New file.
36390         * tests/test-exclude4.sh: New file.
36391         * tests/test-exclude5.sh: New file.
36392         * tests/test-exclude6.sh: New file.
36393         * tests/test-exclude7.sh: New file.
36394
36395 2009-08-12  Bruno Haible  <bruno@clisp.org>
36396
36397         Ensure that getopt() gets declared by <unistd.h>.
36398         * lib/unistd.in.h: Conditionally include getopt.h.
36399         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36400         Set GNULIB_UNISTD_H_GETOPT.
36401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36402         GNULIB_UNISTD_H_GETOPT.
36403         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36404
36405 2009-08-12  Bruno Haible  <bruno@clisp.org>
36406
36407         Clarify logic.
36408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36409         gl_replace_getopt instead of GETOPT_H.
36410
36411 2009-08-12  Bruno Haible  <bruno@clisp.org>
36412
36413         * m4/getopt.m4: Add comments.
36414
36415 2009-08-12  Bruno Haible  <bruno@clisp.org>
36416
36417         Disable multithread support by default on Cygwin 1.5.x.
36418         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36419         set gl_use_threads=no if not specified otherwise.
36420
36421 2009-08-11  Bruno Haible  <bruno@clisp.org>
36422
36423         Avoid compilation error on NetBSD 5.0.
36424         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36425         * tests/test-stdio.c: Likewise.
36426         * tests/test-stdlib.c: Likewise.
36427         * tests/test-string.c: Likewise.
36428         * tests/test-unistd.c: Likewise.
36429         Reported by Greg Troxel <gdt@ir.bbn.com>
36430         at <https://savannah.gnu.org/support/?106973>.
36431
36432 2009-08-11  Bruno Haible  <bruno@clisp.org>
36433
36434         * modules/dup2-tests (Depends-on): Remove close.
36435
36436         Undo 2009-07-19 commit.
36437         * modules/acl-tests (Depends-on): Remove close.
36438         * modules/binary-io-tests (Depends-on): Likewise.
36439         * modules/closein-tests (Depends-on): Likewise.
36440         * modules/flock-tests (Depends-on): Likewise.
36441         * modules/fsync-tests (Depends-on): Likewise.
36442         * modules/lseek-tests (Depends-on): Likewise.
36443         * modules/pipe-tests (Depends-on): Likewise.
36444         * modules/posix_spawn-tests (Depends-on): Likewise.
36445         * modules/posix_spawnp-tests (Depends-on): Likewise.
36446         * modules/stat-time-tests (Depends-on): Likewise.
36447         * modules/yesno-tests (Depends-on): Likewise.
36448
36449 2009-08-10  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36452
36453 2009-08-10  Bruno Haible  <bruno@clisp.org>
36454
36455         Fix a gcc warning.
36456         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36457
36458 2009-08-10  Bruno Haible  <bruno@clisp.org>
36459
36460         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36461         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36462         not only the first time.
36463         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36464         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36465         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36466         is 1, not only the the first time.
36467
36468 2009-08-10  Bruno Haible  <bruno@clisp.org>
36469
36470         Make it possible to use module 'gethostname' without module 'close'.
36471         * lib/unistd.in.h (close): Evoke a link error only if
36472         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36474         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36475         * modules/unistd (Makefile.am): Substitute
36476         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36477         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36478         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36479         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36480         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36481         * modules/sys_ioctl (Makefile.am): Substitute
36482         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36483         * modules/socket (configure.ac): On native Windows, set
36484         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36485         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36486         Reported by Sam Steingold <sds@gnu.org>.
36487
36488 2009-08-10  Bruno Haible  <bruno@clisp.org>
36489
36490         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36491         * modules/ioctl (configure.ac): Likewise.
36492
36493 2009-08-10  Bruno Haible  <bruno@clisp.org>
36494
36495         Avoid collision between gnulib wrapper and libintl wrapper.
36496         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36497         already defined in intl/printf.c.
36498         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36499         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36500
36501 2009-08-09  Bruno Haible  <bruno@clisp.org>
36502
36503         Make <sys/select.h> really self-contained, also on Solaris 10.
36504         * lib/sys_select.in.h: Include <string.h>.
36505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36506         Solaris 10 problem.
36507         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36508         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36509         Reported by Jim Meyering.
36510
36511 2009-08-09  Bruno Haible  <bruno@clisp.org>
36512
36513         Avoid warnings from 'aclocal' that are due to a use of macro name
36514         AM_XGETTEXT_OPTION that is not defined in automake.
36515         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36516         automake.
36517         * modules/error (configure.ac): Likewise.
36518         * modules/propername (configure.ac): Likewise.
36519         * modules/vasprintf (configure.ac): Likewise.
36520         * modules/verror (configure.ac): Likewise.
36521         * modules/xprintf (configure.ac): Likewise.
36522         * modules/xvasprintf (configure.ac): Likewise.
36523
36524 2009-08-08  Bruno Haible  <bruno@clisp.org>
36525
36526         Avoid compilation error in C++ mode.
36527         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36528         Reported by Sam Steingold <sds@gnu.org>.
36529
36530 2009-08-08  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36533         for the various Unix platforms.
36534         * doc/posix-headers/limits.texi: Update platforms list regarding
36535         HOST_NAME_MAX.
36536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36537
36538 2009-08-07  Jim Meyering  <meyering@redhat.com>
36539
36540         selinux-at: fix typo in a comment
36541         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36542         Spotted by Paolo Bonzini.
36543
36544         selinux-at: remove redundant m4 code, add documentation
36545         * modules/selinux-at (configure.ac): Remove redundant code.
36546         LIB_SELINUX is already set via the dependent module, selinux-h.
36547         (Include): Add quotes around selinux-at.h.
36548         * lib/selinux-at.h: Add documentation.
36549         Reported by Bruno Haible in
36550         http://marc.info/?l=gnulib-bug&m=124958988300749
36551
36552 2009-08-07  Bruno Haible  <bruno@clisp.org>
36553
36554         Avoid link error on MacOS X 10.3 and 10.4.
36555         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36556         on non-ELF systems.
36557         * lib/argp-pv.c (argp_program_version): Likewise.
36558         Reported by Simon Josefsson.
36559
36560 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36561
36562         * tests/test-version-etc.sh: Use $EXEEXT.
36563
36564 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36565
36566         update-copyright: update documentation to point to maint.mk
36567         * build-aux/update-copyright: Here.
36568
36569 2009-08-06  Jim Meyering  <meyering@redhat.com>
36570
36571         maint.mk: support update-copyright-local
36572         * top/maint.mk (update-copyright-local): Define place-holder.
36573         (update-copyright): Depend on $(update-copyright-local).
36574
36575 2009-08-06  Jim Meyering  <meyering@redhat.com>
36576
36577         selinux-at: new module
36578         Initially written for coreutils, this module will soon be
36579         used by findutils, too.
36580         * MODULES.html.sh [Misc]: Add selinux-at.
36581         * lib/selinux-at.h: New file, from coreutils.
36582         * lib/selinux-at.c: Likewise.
36583         * modules/selinux-at: Likewise.
36584         (License): Change from LGPL to GPL, since it depends
36585         on the GPL'd openat module.
36586
36587         doc: update README
36588         * README: Remove references to cogito.
36589         Remove cvs-repo-updating instructions from 2007.
36590         Don't imply that CVS is better if you have limited disk space.
36591
36592 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36593
36594         update-copyright: support C-style comments
36595         * build-aux/update-copyright: Implement and document.
36596         * tests/test-update-copyright.sh: Test.
36597
36598 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36599
36600         update-copyright: support omitted "(C)"
36601         * build-aux/update-copyright: Implement and document.  Also,
36602         allow variable whitespace before "(C)".
36603         * tests/test-update-copyright.sh: Test.
36604
36605 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36606
36607         update-copyright: don't trip on non-FSF copyright statements
36608         * build-aux/update-copyright: Fix so that the first correctly
36609         formatted FSF copyright statement is recognized no matter what
36610         appears before it.  Update documentation.
36611         * tests/test-update-copyright.sh: Test that.
36612
36613 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36614
36615         update-copyright: clean up code a little
36616         * build-aux/update-copyright: Append "_re" to the name of any
36617         variable holding a regular expression.
36618         Replace "old" and "new" with "stmt" in variable names.
36619         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36620         handled correctly.
36621         Format code more consistently.
36622
36623 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36624
36625         update-copyright-tests: improve portability
36626         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36627         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36628
36629 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36630
36631         update-copyright: support @copyright{} and &copy;
36632         * build-aux/update-copyright: Implement and document.
36633         * tests/test-update-copyright.sh: Test.
36634
36635 2009-08-04  Jim Meyering  <meyering@redhat.com>
36636
36637         update-copyright-tests: correctly test EOL=\r\n handling
36638         * tests/test-update-copyright.sh: Put \r at the end of some lines
36639         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36640
36641         maint.mk: make update-copyright exclusion list more configurable
36642         * top/maint.mk (update-copyright): Default to excluding COPYING,
36643         but allow an override, in case someone does want to update that file.
36644
36645         maint.mk: don't update copyright date in COPYING
36646         * top/maint.mk (update-copyright): Exclude COPYING.
36647
36648         maint.mk: add a copyright-updating rule
36649         * top/maint.mk (update-copyright): New rule.
36650         Derived from coreutils/Makefile.am.
36651
36652         update-copyright: rename some variables
36653         * build-aux/update-copyright: Rename a few variables for clarity.
36654         Tweak syntax.  List Joel E. Denny as coauthor.
36655
36656 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36657
36658         update-copyright: fix bug for 2-digit last year and add tests
36659         * build-aux/update-copyright: Fix bug.
36660         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36661         specified.
36662         * modules/update-copyright-tests: New
36663         * tests/test-update-copyright.sh: New.
36664
36665 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36666
36667         update-copyright: handle leading tabs in line prefix
36668         * build-aux/update-copyright: Count leading tabs as 8 spaces
36669         when computing margin.  This helps with the formatting of
36670         ChangeLogs, for example.
36671         Fix documentation a little.
36672
36673 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36674
36675         update-copyright: support EOL=\r\n
36676         * build-aux/update-copyright: Implement that.
36677
36678 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36679
36680         update-copyright: automatically format copyright statements
36681         * build-aux/update-copyright: Implement that.
36682         Also, be a little more predictable and safer by always failing
36683         when the full copyright format is not perfectly recognized as an
36684         unbroken whole.  Discussed at
36685         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36686         Rewrite documentation.
36687
36688 2009-08-03  Bruno Haible  <bruno@clisp.org>
36689
36690         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36691
36692 2009-08-02  Bruno Haible  <bruno@clisp.org>
36693
36694         Tests for module 'uname'.
36695         * modules/uname-tests: New file.
36696         * tests/test-uname.c: New file.
36697
36698         New module 'uname'.
36699         * lib/uname.c: New file.
36700         * m4/uname.m4: New file.
36701         * modules/uname: New file.
36702         * doc/posix-functions/uname.texi: Mention the new module.
36703
36704 2009-08-02  Bruno Haible  <bruno@clisp.org>
36705
36706         Tests for module 'sys_utsname'.
36707         * modules/sys_utsname-tests: New file.
36708         * tests/test-sys_utsname.c: New file.
36709
36710         New module 'sys_utsname'.
36711         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36712         * m4/sys_utsname_h.m4: New file.
36713         * modules/sys_utsname: New file.
36714         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36715
36716 2009-08-02  Bruno Haible  <bruno@clisp.org>
36717
36718         Implicitly initialize the sockets library.
36719         * lib/gethostname.c: Include sockets.h.
36720         (rpl_gethostname): Invoke gl_sockets_startup.
36721         * lib/socket.c: Include sockets.h.
36722         (rpl_socket): Invoke gl_sockets_startup.
36723         * modules/gethostname (Depends-on): Add sockets.
36724         * modules/socket (Depends-on): Likewise.
36725         * tests/test-poll.c: Don't include sockets.h.
36726         (main): Don't invoke gl_sockets_startup.
36727         * tests/test-select.c: Don't include sockets.h.
36728         (main): Don't invoke gl_sockets_startup.
36729
36730 2009-08-02  Bruno Haible  <bruno@clisp.org>
36731
36732         Allow multiple calls to gl_sockets_startup.
36733         * lib/sockets.c (initialized_sockets_version): New variable.
36734         (gl_sockets_startup): Do nothing if already called for this or a higher
36735         version.
36736         (gl_sockets_cleanup): Reset initialized_sockets_version.
36737
36738 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36739
36740         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36741         different project/version.
36742
36743 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36744             Bruno Haible  <bruno@clisp.org>
36745
36746         Tests for module 'pipe-filter-gi'.
36747         * modules/pipe-filter-gi-tests: New file.
36748         * tests/test-pipe-filter-gi1.sh: New file.
36749         * tests/test-pipe-filter-gi1.c: New file.
36750         * tests/test-pipe-filter-gi2.sh: New file.
36751         * tests/test-pipe-filter-gi2-main.c: New file.
36752         * tests/test-pipe-filter-gi2-child.c: New file.
36753
36754         New module 'pipe-filter-gi'.
36755         * lib/pipe-filter-gi.c: New file.
36756         * modules/pipe-filter-gi: New file.
36757
36758 2009-08-02  Bruno Haible  <bruno@clisp.org>
36759             Paolo Bonzini  <bonzini@gnu.org>
36760
36761         Tests for module 'pipe-filter-ii'.
36762         * modules/pipe-filter-ii-tests: New file.
36763         * tests/test-pipe-filter-ii1.sh: New file.
36764         * tests/test-pipe-filter-ii1.c: New file.
36765         * tests/test-pipe-filter-ii2.sh: New file.
36766         * tests/test-pipe-filter-ii2-main.c: New file.
36767         * tests/test-pipe-filter-ii2-child.c: New file.
36768
36769         New module 'pipe-filter-ii'.
36770         * lib/pipe-filter.h: New file.
36771         * lib/pipe-filter-ii.c: New file.
36772         * lib/pipe-filter-aux.h: New file.
36773         * modules/pipe-filter-ii: New file.
36774
36775 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36776
36777         * lib/gc-libgcrypt.c: Change copyright to FSF.
36778         * lib/gc-gnulib.c: Likewise.
36779
36780 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36781
36782         * lib/gethostname.c: Include limits.h.
36783
36784 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36785             Bruno Haible  <bruno@clisp.org>
36786
36787         Ensure HOST_NAME_MAX as part of the gethostname module.
36788         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36789         define also HOST_NAME_MAX.
36790         * tests/test-gethostname.c: Include <limits.h>.
36791         (main): Check also HOST_NAME_MAX.
36792         * doc/posix-headers/limits.texi: Document the mingw problem.
36793
36794 2009-08-02  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36797         Add comments.
36798
36799 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36800
36801         * lib/gethostname.c: Add Windows wrapper.
36802         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36803         * modules/gethostname: Depend on sys_socket & errno, for also
36804         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36805         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36806
36807 2009-07-31  Jim Meyering  <meyering@redhat.com>
36808
36809         getloadavg: fix symbol name in comment
36810         * lib/getloadavg.c: Correct a typo I introduced when adding
36811         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36812         Matt Kraai spotted the problem.
36813
36814 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36815
36816         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36817         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36818         code also if ! defined N_NAME_POINTER.
36819         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36820         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36821         but the n_name member is a 12-byte array.
36822
36823 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36824
36825         update-copyright: generalize comment handling
36826         * build-aux/update-copyright: Handle copyright statements
36827         within more comment styles.
36828         Document usage.
36829         Report any file with an external copyright holder or parse failure.
36830
36831 2009-07-29  Jim Meyering  <meyering@redhat.com>
36832
36833         mktime: correct setting of REPLACE_MKTIME
36834         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36835
36836         update-copyright: new module
36837         * modules/update-copyright: New file.
36838         * build-aux/update-copyright: New file.
36839         * MODULES.html.sh (maint+release support): Add update-copyright.
36840
36841 2009-07-27  Bruno Haible  <bruno@clisp.org>
36842
36843         Fix compilation error when <ctime> is used and mktime is replaced.
36844         * lib/time.in.h (mktime): New declaration.
36845         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36846         REPLACE_MKTIME instead of defining mktime in config.h.
36847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36848         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36849         Reported by Ross McFarland <rwmcfa1@neces.com>.
36850
36851 2009-07-27  Bruno Haible  <bruno@clisp.org>
36852
36853         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36854         Reported by Matt Kraai <mkraai@beckman.com>.
36855
36856 2009-07-25  Jim Meyering  <meyering@redhat.com>
36857
36858         maint.mk: avoid warnings about missing files
36859         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36860         diagnostic when .prev-version does not exist.
36861         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36862         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36863         nonexistent cfg.mk.
36864         Suggestions from Simon Josefsson.
36865
36866 2009-07-25  Bruno Haible  <bruno@clisp.org>
36867
36868         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36869         defined as macros. Needed on QNX 6.4.1.
36870         Reported by Matt Kraai <mkraai@beckman.com>.
36871
36872 2009-07-23  Jim Meyering  <meyering@redhat.com>
36873
36874         maint.mk: invoke "make dist" with a working value of XZ_OPT
36875         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36876
36877 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36878
36879         Make fseeko.c compile on QNX.
36880         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36881
36882 2009-07-22  Peter Simons  <simons@cryp.to>
36883
36884         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36885         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36886         * lib/md4.h: Likewise.
36887         * lib/md5.h: Likewise.
36888         * lib/sha1.h: Likewise.
36889         * lib/sha256.h: Likewise.
36890         * lib/sha512.h: Likewise.
36891
36892         tests-sha1: don't assign literal string to 'char *' variable
36893         * tests/test-sha1.c (main): Declare locals with "const" to match
36894         attributes of the right hand side.
36895
36896 2009-07-21  Eric Blake  <ebb9@byu.net>
36897
36898         dup2: fix more mingw problems
36899         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36900         fd to itself.
36901         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36902         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36903         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36904         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36905         care of mingw bugs.
36906
36907 2009-07-21  Jim Meyering  <meyering@redhat.com>
36908
36909         vc-list-files: avoid failure when /bin/sh is dash
36910         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36911         On some Debian based systems, /bin/sh is a symlink to dash, and running
36912         this command would omit the "/" following each 'tests' prefix:
36913           dash -x build-aux/vc-list-files -C . tests
36914         That is because bash and dash work differently:
36915           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36916           bash ok
36917           dash odd
36918
36919 2009-07-21  Eric Blake  <ebb9@byu.net>
36920
36921         dup2-tests: test previous patch
36922         * modules/dup2-tests: New file.
36923         * tests/test-dup2.c: Likewise.
36924         * tests/test-open.c (main): Avoid unspecified behavior.
36925         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36926         test.
36927
36928         dup2: work around mingw and cygwin 1.5 bug
36929         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36931         * modules/unistd (Makefile.am): Substitute it.
36932         * lib/unistd.in.h (dup2): Declare the replacement.
36933         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36934         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36935         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36936         * modules/execute (Depends-on): Add dup2.
36937         * modules/fseterr (Depends-on): Likewise.
36938         * modules/pipe (Depends-on): Likewise.
36939         * modules/posix_spawn-internal (Depends-on): Likewise.
36940
36941 2009-07-21  Bruno Haible  <bruno@clisp.org>
36942
36943         * modules/.gitattributes: New file.
36944
36945 2009-07-20  Bruno Haible  <bruno@clisp.org>
36946
36947         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36948         (main): Use it.
36949
36950 2009-07-20  Eric Blake  <ebb9@byu.net>
36951
36952         test-pipe: make a bit more robust.
36953         * tests/test-pipe.c (myerr): Allow error messages regardless of
36954         what we do to stderr.
36955         (test_pipe): Rearrange to avoid deadlock.
36956         (child_main): Try a larger read, to ensure we avoided deadlock.
36957         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36958         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36959         if misused.
36960
36961 2009-07-19  Jim Meyering  <meyering@redhat.com>
36962
36963         fts: avoid false-positive cycle-detection
36964         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36965         for each new command line argument.
36966
36967 2009-07-19  Bruno Haible  <bruno@clisp.org>
36968
36969         Fix build error on mingw with the modules sys_select and unistd.
36970         * modules/acl-tests (Depends-on): Add close.
36971         * modules/binary-io-tests (Depends-on): Likewise.
36972         * modules/closein-tests (Depends-on): Likewise.
36973         * modules/flock-tests (Depends-on): Likewise.
36974         * modules/fsync-tests (Depends-on): Likewise.
36975         * modules/lseek-tests (Depends-on): Likewise.
36976         * modules/pipe-tests (Depends-on): Likewise.
36977         * modules/posix_spawn-tests (Depends-on): Likewise.
36978         * modules/posix_spawnp-tests (Depends-on): Likewise.
36979         * modules/stat-time-tests (Depends-on): Likewise.
36980         * modules/yesno-tests (Depends-on): Likewise.
36981
36982 2009-07-19  Bruno Haible  <bruno@clisp.org>
36983
36984         Unify conditionals.
36985         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36986         macros, not at the compiler macros.
36987         * lib/pipe.c: Likewise.
36988         * lib/execute.c: Likewise.
36989         * lib/spawni.c: Likewise.
36990
36991 2009-07-19  Bruno Haible  <bruno@clisp.org>
36992
36993         Fix handling of closed stdin/stdout/stderr on mingw.
36994         * lib/w32spawn.h: Include unistd.h.
36995         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36996         file descriptor with O_NOINHERIT flag.
36997         (fd_safer_noinherit): New function, based on fd-safer.c.
36998         (dup_safer_noinherit): New function, based on dup-safer.c.
36999         (undup_safer_noinherit): New function.
37000         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37001         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37002         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37003         instead of fd_safer.
37004         * tests/test-pipe.c: Include <windows.h>.
37005         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37006         result.
37007
37008         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37009         from main.
37010         (test_pipe): Pass an extra argument for disambiguation.
37011         (main): Invoke parent_main or child_main.
37012
37013         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37014         consistently.
37015
37016 2009-07-18  Eric Blake  <ebb9@byu.net>
37017
37018         test-pipe: fix mingw build
37019         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37020
37021 2009-07-18  Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/pipe-tests (Makefile.am): Fix typo.
37024
37025 2009-07-18  Eric Blake  <ebb9@byu.net>
37026
37027         error: fix mingw build
37028         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37029         Reported by Bruno Haible.
37030
37031         error: avoid undefined use of stdout
37032         * lib/error.c (error, error_at_line): Check that fd 1 is open
37033         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37034         is handling faults and the close_stdout module wants to report the
37035         detection of closed stdout as an error.
37036
37037 2009-07-17  Eric Blake  <ebb9@byu.net>
37038
37039         pipe: be robust in face of closed fds
37040         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37041         should cause child to misbehave.
37042         * modules/pipe-tests: New module.
37043         * tests/test-pipe.c: New file.
37044         * tests/test-pipe.sh: New file.
37045         Reported by Akim Demaille.
37046
37047 2009-07-14  Bruno Haible  <bruno@clisp.org>
37048
37049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37050         Reported by anonymous kc.
37051
37052 2009-07-07  Jim Meyering  <meyering@redhat.com>
37053
37054         maint.mk: don't look for translatable strings in *.m4 or *.mk
37055         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37056         when searching for translatable strings.
37057
37058 2009-07-05  Jim Meyering  <meyering@redhat.com>
37059
37060         remove superfluous parentheses in STREQ definition
37061         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37062         * lib/getugroups.c (STREQ): Likewise.
37063         * lib/fnmatch.c (STREQ): Likewise.
37064         Spotted by Bruno Haible.
37065
37066 2009-07-04  Jim Meyering  <meyering@redhat.com>
37067
37068         argv-iter: new module
37069         * MODULES.html.sh: Add argv-iter.
37070         * lib/argv-iter.c, lib/argv-iter.h: New files.
37071         * modules/argv-iter: New file.
37072         * modules/argv-iter-tests: New file.
37073         * tests/test-argv-iter.c: Test it.
37074
37075 2009-07-04  Bruno Haible  <bruno@clisp.org>
37076
37077         Fix assertion.
37078         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37079         contains more exact copies of a given entry than file2, leave the extra
37080         copies unpaired rather than aborting.
37081         Reported by Eric Blake.
37082
37083 2009-07-02  Bruno Haible  <bruno@clisp.org>
37084
37085         Speedup git-merge-changelog for git cherry-pick.
37086         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37087         (entries_mapping_get): New function, extracted from compute_mapping.
37088         (entries_mapping_reverse_get): New function.
37089         (compute_mapping): Add a 'full' argument. Return the result in a
37090         'struct entries_mapping'.
37091         (main): Update. Access the mappings through entries_mapping_get.
37092         Reported by Eric Blake.
37093
37094 2009-07-02  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37097         best_i.
37098
37099 2009-07-02  Bruno Haible  <bruno@clisp.org>
37100
37101         Speed up approximate search for matching ChangeLog entries.
37102         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37103         argument. Call fstrcmp_bounded instead of fstrcmp.
37104         (compute_mapping, try_split_merged_entry, main): Update callers.
37105
37106 2009-07-02  Bruno Haible  <bruno@clisp.org>
37107
37108         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37109
37110 2009-06-30  Bruno Haible  <bruno@clisp.org>
37111
37112         Reduce the number of uc_is_cased calls.
37113         * lib/unicase.h (casing_suffix_context_t): Add
37114         'first_char_except_ignorable' field.
37115         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37116         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37117         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37118         Update initializer.
37119         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37120         case-ignorable characters.
37121         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37122         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37123         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37124         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37125         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37126
37127 2009-06-30  Bruno Haible  <bruno@clisp.org>
37128
37129         Tests for module 'unicase/ignorable'.
37130         * modules/unicase/ignorable-tests: New file.
37131         * tests/unicase/test-ignorable.c: New file, generated by
37132         gen-uni-tables.
37133
37134         Tests for module 'unicase/cased'.
37135         * modules/unicase/cased-tests: New file.
37136         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37137         * tests/unicase/test-predicate-part1.h: New file, derived from
37138         tests/unictype/test-predicate-part1.h.
37139         * tests/unicase/test-predicate-part2.h: New file, same as
37140         tests/unictype/test-predicate-part2.h.
37141
37142         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37143         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37144         (output_casing_properties): New function.
37145         (main): Call it.
37146         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37147         * lib/unicase/cased.c: Include unictype/bitmap.h.
37148         (uc_is_cased): Define through a bitmap lookup.
37149         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37150         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37151         (uc_is_case_ignorable): Define through a bitmap lookup.
37152         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37153         lib/unictype/bitmap.h.
37154         (Depends-on): Add inline. Clean up.
37155         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37156         lib/unictype/bitmap.h.
37157         (Depends-on): Add inline. Clean up.
37158         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37159         recognition.
37160         * tests/unicase/test-u16-tolower.c (main): Likewise.
37161         * tests/unicase/test-u32-tolower.c (main): Likewise.
37162
37163 2009-06-30  Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37166         * lib/unicase/u16-casemap.c: Likewise.
37167         * lib/unicase/u32-casemap.c: Likewise.
37168
37169 2009-06-29  Bruno Haible  <bruno@clisp.org>
37170
37171         Define u32_casefold as a wrapper around u32_ct_casefold.
37172         * lib/unicase/u32-casefold.c: Update.
37173         * modules/unicase/u32-casefold (Depends-on): Add
37174         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37175         unicase/empty-suffix-context. Clean up.
37176
37177         Define u16_casefold as a wrapper around u16_ct_casefold.
37178         * lib/unicase/u16-casefold.c: Update.
37179         * modules/unicase/u16-casefold (Depends-on): Add
37180         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37181         unicase/empty-suffix-context. Clean up.
37182
37183         Define u8_casefold as a wrapper around u8_ct_casefold.
37184         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37185         * lib/unicase/u8-casefold.c: Update.
37186         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37187         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37188
37189         Define u32_totitle as a wrapper around u32_ct_totitle.
37190         * lib/unicase/u32-totitle.c: Update.
37191         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37192         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37193
37194         Define u16_totitle as a wrapper around u16_ct_totitle.
37195         * lib/unicase/u16-totitle.c: Update.
37196         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37197         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37198
37199         Define u8_totitle as a wrapper around u8_ct_totitle.
37200         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37201         functions.
37202         (FUNC): Delegate to U_CT_TOTITLE.
37203         * lib/unicase/u8-totitle.c: Update.
37204         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37205         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37206
37207         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37208         invocation.
37209         * modules/unicase/u32-tolower (Depends-on): Add
37210         unicase/empty-prefix-context, unicase/empty-suffix-context.
37211
37212         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37213         invocation.
37214         * modules/unicase/u16-tolower (Depends-on): Add
37215         unicase/empty-prefix-context, unicase/empty-suffix-context.
37216
37217         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37218         * modules/unicase/u8-tolower (Depends-on): Add
37219         unicase/empty-prefix-context, unicase/empty-suffix-context.
37220
37221         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37222         invocation.
37223         * modules/unicase/u32-toupper (Depends-on): Add
37224         unicase/empty-prefix-context, unicase/empty-suffix-context.
37225
37226         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37227         invocation.
37228         * modules/unicase/u16-toupper (Depends-on): Add
37229         unicase/empty-prefix-context, unicase/empty-suffix-context.
37230
37231         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37232         * modules/unicase/u8-toupper (Depends-on): Add
37233         unicase/empty-prefix-context, unicase/empty-suffix-context.
37234
37235         New module 'unicase/u32-ct-casefold'.
37236         * lib/unicase/u32-ct-casefold.c: New file.
37237         * modules/unicase/u32-ct-casefold: New file.
37238
37239         New module 'unicase/u16-ct-casefold'.
37240         * lib/unicase/u16-ct-casefold.c: New file.
37241         * modules/unicase/u16-ct-casefold: New file.
37242
37243         New module 'unicase/u8-ct-casefold'.
37244         * lib/unicase/u8-ct-casefold.c: New file.
37245         * lib/unicase/u-ct-casefold.h: New file, derived from
37246         lib/unicase/u-casefold.h.
37247         * modules/unicase/u8-ct-casefold: New file.
37248
37249         New module 'unicase/u32-ct-totitle'.
37250         * lib/unicase/u32-ct-totitle.c: New file.
37251         * modules/unicase/u32-ct-totitle: New file.
37252
37253         New module 'unicase/u16-ct-totitle'.
37254         * lib/unicase/u16-ct-totitle.c: New file.
37255         * modules/unicase/u16-ct-totitle: New file.
37256
37257         New module 'unicase/u8-ct-totitle'.
37258         * lib/unicase/u8-ct-totitle.c: New file.
37259         * lib/unicase/u-ct-totitle.h: New file, derived from
37260         lib/unicase/u-totitle.h.
37261         * modules/unicase/u8-ct-totitle: New file.
37262
37263         New module 'unicase/u32-ct-tolower'.
37264         * lib/unicase/u32-ct-tolower.c: New file.
37265         * modules/unicase/u32-ct-tolower: New file.
37266
37267         New module 'unicase/u16-ct-tolower'.
37268         * lib/unicase/u16-ct-tolower.c: New file.
37269         * modules/unicase/u16-ct-tolower: New file.
37270
37271         New module 'unicase/u8-ct-tolower'.
37272         * lib/unicase/u8-ct-tolower.c: New file.
37273         * modules/unicase/u8-ct-tolower: New file.
37274
37275         New module 'unicase/u32-ct-toupper'.
37276         * lib/unicase/u32-ct-toupper.c: New file.
37277         * modules/unicase/u32-ct-toupper: New file.
37278
37279         New module 'unicase/u16-ct-toupper'.
37280         * lib/unicase/u16-ct-toupper.c: New file.
37281         * modules/unicase/u16-ct-toupper: New file.
37282
37283         New module 'unicase/u8-ct-toupper'.
37284         * lib/unicase/u8-ct-toupper.c: New file.
37285         * modules/unicase/u8-ct-toupper: New file.
37286
37287         Add context arguments to u*_casemap functions.
37288         * lib/unicase/unicasemap.h: Include unicase.h.
37289         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37290         suffix_context arguments.
37291         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37292         functions.
37293         (FUNC): Add prefix_context and suffix_context arguments. Use
37294         uc_is_cased and uc_is_case_ignorable.
37295         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37296         * lib/unicase/u16-casemap.c: Likewise.
37297         * lib/unicase/u32-casemap.c: Likewise.
37298         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37299         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37300         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37301         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37302         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37303         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37304
37305         New module 'unicase/u32-suffix-context'.
37306         * lib/unicase/u32-suffix-context.c: New file.
37307         * modules/unicase/u32-suffix-context: New file.
37308
37309         New module 'unicase/u16-suffix-context'.
37310         * lib/unicase/u16-suffix-context.c: New file.
37311         * modules/unicase/u16-suffix-context: New file.
37312
37313         New module 'unicase/u8-suffix-context'.
37314         * lib/unicase/u8-suffix-context.c: New file.
37315         * lib/unicase/u-suffix-context.h: New file.
37316         * modules/unicase/u8-suffix-context: New file.
37317
37318         New module 'unicase/empty-suffix-context'.
37319         * lib/unicase/empty-suffix-context.c: New file.
37320         * modules/unicase/empty-suffix-context: New file.
37321
37322         New module 'unicase/u32-prefix-context'.
37323         * lib/unicase/u32-prefix-context.c: New file.
37324         * modules/unicase/u32-prefix-context: New file.
37325
37326         New module 'unicase/u16-prefix-context'.
37327         * lib/unicase/u16-prefix-context.c: New file.
37328         * modules/unicase/u16-prefix-context: New file.
37329
37330         New module 'unicase/u8-prefix-context'.
37331         * lib/unicase/u8-prefix-context.c: New file.
37332         * lib/unicase/u-prefix-context.h: New file.
37333         * lib/unicase/context.h: New file.
37334         * modules/unicase/u8-prefix-context: New file.
37335
37336         New module 'unicase/empty-prefix-context'.
37337         * lib/unicase/empty-prefix-context.c: New file.
37338         * modules/unicase/empty-prefix-context: New file.
37339
37340         New module 'unicase/ignorable'.
37341         * lib/unicase/ignorable.c: New file.
37342         * modules/unicase/ignorable: New file.
37343
37344         New module 'unicase/cased'.
37345         * lib/unicase/caseprop.h: New file.
37346         * lib/unicase/cased.c: New file.
37347         * modules/unicase/cased: New file.
37348
37349         New functions for case mapping of substrings.
37350         * lib/unicase.h (casing_prefix_context_t): New type.
37351         (unicase_empty_prefix_context): New variable.
37352         (u8_casing_prefix_context, u16_casing_prefix_context,
37353         u32_casing_prefix_context, u8_casing_prefixes_context,
37354         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37355         declarations.
37356         (casing_suffix_context_t): New type.
37357         (unicase_empty_suffix_context): New variable.
37358         (u8_casing_suffix_context, u16_casing_suffix_context,
37359         u32_casing_suffix_context, u8_casing_suffixes_context,
37360         u16_casing_suffixes_context, u32_casing_suffixes_context,
37361         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37362         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37363         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37364         declarations.
37365
37366 2009-06-28  Jim Meyering  <meyering@redhat.com>
37367
37368         boostrap: indent only with spaces
37369         * build-aux/bootstrap: Indent only with spaces, never TABs.
37370
37371         bootstrap: split long lines
37372         * build-aux/bootstrap: Keep line length < 80.
37373
37374         bootstrap: sync from coreutils
37375         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37376         just as autoreconf does.  Verify a list of prerequisite
37377         package-name,version-number pairs if defined in bootstrap.conf.
37378         Refer to README-prereq, if prerequisites are not satisfied.
37379
37380 2009-06-27  Eric Blake  <ebb9@byu.net>
37381
37382         tests: add test for bogus NULL definition
37383         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37384         * tests/test-stdlib.c: Likewise.
37385         * tests/test-string.c: Likewise.
37386         * tests/test-locale.c: Likewise.
37387         * tests/test-unistd.c: Likewise.
37388         * modules/stdio-tests (Depends-on): Add verify.
37389         * modules/stdlib-tests (Depends-on): Likewise.
37390         * modules/string-tests (Depends-on): Likewise.
37391         * modules/locale-tests (Depends-on): Likewise.
37392         * modules/unistd-tests (Depends-on): Likewise.
37393
37394 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37395
37396         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37397         self-explaining comment.
37398         * m4/selinux-selinux-h: Update serial.
37399         (gl_LIBSELINUX): New macro, adding a warning for missing development
37400         packages to code extracted from...
37401         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37402         Add warning for missing development packages here, too.
37403
37404 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37405
37406         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37407
37408 2009-06-25  Eric Blake  <ebb9@byu.net>
37409
37410         version-etc: fix regression
37411         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37412         gcc.
37413         (version_etc): Use it, to catch bugs with trailing NULL.
37414         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37415         (version_etc_va): Fix logic bug.
37416         * modules/version-etc-tests: Add test.
37417         * tests/test-version-etc.c: New file.
37418         * tests/test-version-etc.sh: Likewise.
37419
37420 2009-06-25  Sam Steingold  <sds@gnu.org>
37421
37422         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37423         mbtowc declaration.
37424
37425 2009-06-25  Eric Blake  <ebb9@byu.net>
37426
37427         fpurge: migrate into <stdio.h>
37428         * lib/fpurge.h: Delete...
37429         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37430         * lib/fpurge.c (fpurge): Change declaring header.
37431         * modules/fpurge (Files): Drop deleted file.
37432         (Depends-on): Add stdio.
37433         (configure.ac): Set witness.
37434         * modules/stdio (Makefile.am): Support fpurge macros.
37435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37437         * lib/fflush.c: Update client.
37438         * tests/test-fpurge.c: Likewise.
37439         * NEWS: Mention the change.
37440
37441 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37442
37443         * lib/argp-version-etc.c (program_authors): Add const
37444         qualifier.
37445         * lib/version-etc.c: Fix typos in the comments.
37446         * modules/argp-version-etc: Depends on version-etc.
37447
37448 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37449
37450         argp-version-etc: new module.
37451
37452         * lib/argp-version-etc.c: New file.
37453         * lib/argp-version-etc.h: New file.
37454         * modules/argp-version-etc: New file.
37455         * modules/argp-version-etc-tests: New file.
37456         * tests/test-argp-version-etc.c: New test.
37457         * tests/test-argp-version-etc-1.sh: New test.
37458
37459 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37460
37461         Provide additional interfaces and documentation for version-etc
37462         module.
37463
37464         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37465         interfaces.
37466         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37467         prototypes.
37468
37469 2009-06-24  Bruno Haible  <bruno@clisp.org>
37470
37471         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37472         HAVE_LIB${NAME} macro.
37473         Reported by Sam Steingold <sds@gnu.org>.
37474
37475 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37476
37477         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37478         needed.
37479
37480 2009-06-21  Bruno Haible  <bruno@clisp.org>
37481
37482         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37483         work.
37484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37485         together with LIB${NAME}, LTLIB${NAME}.
37486         Reported by Sam Steingold <sds@gnu.org>.
37487
37488 2009-06-20  Jim Meyering  <meyering@redhat.com>
37489
37490         tests: make sc_require_test_exit_idiom more generic
37491         * top/maint.mk (Exit_witness_file): New overridable variable.
37492         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37493         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37494
37495 2009-06-19  Jim Meyering  <meyering@redhat.com>
37496
37497         hash: reverse order of src/dst parameters in an internal interface
37498         * lib/hash.c (transfer_entries): Reverse order of parameters to
37499         put DST before SRC.  Adjust callers.
37500
37501         tests: test-hash: avoid wholesale duplication
37502         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37503         Instead, use a loop and add a single conditional.
37504
37505         tests: test-hash: allow seed selection via a command line argument
37506         * tests/test-hash.c (get_seed): New function.
37507         (main): Use it.
37508
37509 2009-06-19  Eric Blake  <ebb9@byu.net>
37510
37511         hash: avoid memory leak on allocation failure
37512         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37513         failure.  Factor repeated algorithm...
37514         (transfer_entries): ...into new helper routine.
37515         (hash_delete): React to hash_rehash return value.
37516
37517         hash: reduce memory pressure in hash_rehash no-op case
37518         * lib/hash.c (next_prime): Avoid overflow.
37519         (hash_initialize): Factor bucket size computation...
37520         (compute_bucket_size): ...into new helper function.
37521         (hash_rehash): Use new function and open coding to reduce memory
37522         pressure, and avoid a memory leak in USE_OBSTACK code.
37523         Reported by Jim Meyering.
37524
37525 2009-06-18  Eric Blake  <ebb9@byu.net>
37526
37527         hash: make rotation more obvious
37528         * modules/hash (Depends-on): Add bitrotate and stdint.
37529         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37530         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37531         (SIZE_MAX): Rely on headers for definition.
37532         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37533         (raw_hasher): Use rotr_sz.
37534         Suggested by Jim Meyering.
37535
37536         hash: fix memory leak in last patch
37537         * lib/hash.c (hash_rehash): Avoid memory leak.
37538
37539         hash: avoid no-op rehashing
37540         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37541
37542         hash: provide default callback functions
37543         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37544         (hash_initialize): Use them as defaults.
37545         * tests/test-hash.c (main): Test this.
37546
37547         hash: minor optimization
37548         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37549         when possible.
37550         (hash_initialize): Document this promise.
37551         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37552         * tests/test-hash.c (hash_compare_strings): Test this.
37553
37554 2009-06-18  Bruno Haible  <bruno@clisp.org>
37555
37556         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37557         going to be replaced anyway.
37558
37559 2009-06-18  Bruno Haible  <bruno@clisp.org>
37560
37561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37562         in one place.
37563         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37564         be replaced anyway.
37565
37566 2009-06-18  Eric Blake  <ebb9@byu.net>
37567
37568         hash: check for resize before insertion
37569         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37570         threshold before insertion, so that a pathological hash_rehash
37571         that fills every bucket can still trigger another rehash.
37572
37573 2009-06-18  Jim Meyering  <meyering@redhat.com>
37574
37575         hash-tests: add a loop around the small tests
37576         * tests/test-hash.c (main): Repeat small tests with selected
37577         small initial table sizes.
37578
37579 2009-06-17  Eric Blake  <ebb9@byu.net>
37580
37581         hash: minor cleanups
37582         * lib/hash.h (hash_entry): Make opaque, by moving...
37583         * lib/hash.c (hash_entry): ...here.
37584         (hash_insert): Clarify restrictions on what can be inserted.
37585         (hash_get_next): Clarify when it is safe to remove an element
37586         during traversal.
37587         (check_tuning): Skip verification when tuning is known safe.
37588         (hash_initialize): Clarify restrictions on tuning.
37589
37590 2009-06-17  Jim Meyering  <jim@meyering.net>
37591         and Eric Blake  <ebb9@byu.net>
37592
37593         hash-tests: new module
37594         * modules/hash-tests: New file.
37595         * tests/test-hash.c: New file.
37596
37597 2009-06-17  Eric Blake  <ebb9@byu.net>
37598
37599         strstr-simple: document new module
37600         * MODULES.html.sh: Document new module.
37601
37602         strstr, strcasestr: replace on platforms with broken memchr
37603         * modules/strstr: Split into...
37604         * modules/strstr-simple: ...new module that does not care about
37605         performance, but does care about glibc bug.
37606         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37607         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37608         if platform memchr is broken, per Debian bug 521737.
37609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37610         memchr.
37611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37612         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37613         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37614         * modules/mountlist (Depends-on): Add strstr-simple.
37615         * modules/gen-uni-tables (Depends-on): Likewise.
37616         * modules/argz (Depends-on): Add strstr.
37617
37618 2009-06-17  Bruno Haible  <bruno@clisp.org>
37619
37620         * modules/posix_spawn-internal (Depends-on): Add errno.
37621
37622 2009-06-17  Bruno Haible  <bruno@clisp.org>
37623
37624         Define missing ESTALE on Interix 3.5.
37625         * lib/errno.in.h (ESTALE): Assign a value if missing.
37626         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37628         missing.
37629         * doc/posix-headers/errno.texi: Mention the Interix bug.
37630         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37631
37632 2009-06-15  Eric Blake  <ebb9@byu.net>
37633
37634         memchr, memchr2: add valgrind exception
37635         * lib/memchr.valgrind: New file.
37636         * lib/memchr2.valgrind: New file.
37637         * modules/memchr (Files): Distribute valgrind file.
37638         * modules/memchr2 (Files): Likewise.
37639
37640         docs: memchr is no longer obsolete
37641         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37642         * lib/string.in.h (memchr): Simplify logic.
37643
37644 2009-06-14  Jim Meyering  <meyering@redhat.com>
37645
37646         link-follow: fix the "checking..." message to not mention trailing slash
37647         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37648         never considered trailing slashes.
37649
37650 2009-06-14  Bruno Haible  <bruno@clisp.org>
37651
37652         * m4/memchr.m4: Mention also the bug on IA-64.
37653         * doc/posix-functions/memchr.texi: Likewise.
37654
37655 2009-06-12  Eric Blake  <ebb9@byu.net>
37656
37657         memchr: detect broken x86_64 and alpha implementations
37658         * modules/memchr-tests (Depends-on): Move mmap detection...
37659         * modules/memchr (Depends-on): ...here.
37660         (configure.ac): Set indicator.
37661         * lib/string.in.h (memchr): Declare replacement.
37662         * modules/string (Makefile.am): Trigger replacement.
37663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37664         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37665         bugs.
37666         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37667         * modules/getpagesize (License): Relax license.
37668
37669 2009-06-11  Bruno Haible  <bruno@clisp.org>
37670
37671         * lib/idpriv.h: Add more references.
37672
37673 2009-06-08  Bruno Haible  <bruno@clisp.org>
37674
37675         Tests for module 'idpriv-droptemp'.
37676         * modules/idpriv-droptemp-tests: New file.
37677         * tests/test-idpriv-droptemp.sh: New file.
37678         * tests/test-idpriv-droptemp.su.sh: New file.
37679         * tests/test-idpriv-droptemp.c: New file.
37680
37681         New module 'idpriv-droptemp'.
37682         * lib/idpriv-droptemp.c: New file.
37683         * modules/idpriv-droptemp: New file.
37684
37685 2009-06-08  Bruno Haible  <bruno@clisp.org>
37686
37687         Tests for module 'idpriv-drop'.
37688         * modules/idpriv-drop-tests: New file.
37689         * tests/test-idpriv-drop.sh: New file.
37690         * tests/test-idpriv-drop.su.sh: New file.
37691         * tests/test-idpriv-drop.c: New file.
37692
37693         New module 'idpriv-drop'.
37694         * lib/idpriv.h: New file.
37695         * lib-idpriv-drop.c: New file.
37696         * m4/idpriv.m4: New file.
37697         * modules/idpriv-drop: New file.
37698
37699 2009-06-08  Bruno Haible  <bruno@clisp.org>
37700
37701         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37702         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37703         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37704         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37705         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37706         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37707         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37708
37709 2009-06-08  Eric Blake  <ebb9@byu.net>
37710
37711         test-strstr: use memory fence, when possible
37712         * tests/test-strstr.c (main): Use memory fence, in order to be
37713         more likely to trigger Debian bug 521737.
37714         * modules/strstr-tests (Files): Pull in additional files.
37715
37716         memchr: no longer obsolete, for wider field testing
37717         * modules/memchr (Status, Notice): Delete, this module is no
37718         longer obsolete.
37719         * modules/vasnprintf (Depends-on): Add memchr.
37720
37721 2009-06-07  Jim Meyering  <meyering@redhat.com>
37722
37723         hash: declare some functions with the warn_unused_result attribute
37724         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37725
37726 2009-06-07  Bruno Haible  <bruno@clisp.org>
37727
37728         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37729         Reported by Eric Blake.
37730
37731 2009-06-06  Eric Blake  <ebb9@byu.net>
37732
37733         test-alignof: fix typo with long double
37734         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37735         compiler error.
37736
37737 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37738
37739         Escape non-texinfo { and }s.
37740         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37741         markup error.
37742
37743 2009-06-04  Jim Meyering  <meyering@redhat.com>
37744
37745         gitlog-to-changelog: don't infloop on an empty commit log
37746         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37747         Reported by Boris Petersen <transacid@centerim.org>.
37748
37749 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37750
37751         version-etc: extend for packagers
37752         Add three new configure options, intended for packagers:
37753           --with-packager="packager name"
37754           --with-packager-version="packager-specific version"
37755           --with-packager-bug-reports="packager bug reporting"
37756         An example with coreutils:
37757           $ ./configure \
37758             --with-packager=Gentoo \
37759             --with-packager-bug-report=http://bugs.gentoo.org/ \
37760             --with-packager-version="patchset 1.6"
37761           $ ./src/ls --version | head -n2
37762           ls (GNU coreutils) 7.1-dirty
37763           Packaged by Gentoo (patchset 1.6)
37764         Note that the bug reporting info via --help doesn't show up because
37765         coreutils uses its own custom emit_bug_reporting_address() implementation
37766         in src/system.h.  If it didn't, it'd look like:
37767           $ ./src/ls --help | tail -n4
37768           Report bugs to <bug-coreutils@gnu.org>.
37769           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37770           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37771           General help using GNU software: <http://www.gnu.org/gethelp/>.
37772         * lib/version-etc.c: Print new information, if provided.
37773         * m4/version-etc.m4: New file.
37774         * modules/version-etc (Files): Add m4/version-etc.m4.
37775         (configure.ac): Add gl_VERSION_ETC.
37776
37777 2009-05-31  Bruno Haible  <bruno@clisp.org>
37778
37779         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37780         and 'int64_t'.
37781         * modules/alignof-tests (Dependencies): Add stdint.
37782         Reported by Eric Blake.
37783
37784 2009-05-31  Bruno Haible  <bruno@clisp.org>
37785
37786         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37787         restriction due to compiler bugs.
37788         Reported by Eric Blake.
37789
37790 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37791             Bruno Haible  <bruno@clisp.org>
37792
37793         Fix test-alignof failure.
37794         * lib/alignof.h (alignof_slot): New macro.
37795         (alignof_type): New macro, with the same semantics as the previous
37796         'alignof'.
37797         (alignof): Alias to alignof_slot.
37798         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37799         check that the results are usable as constant expressions.
37800
37801 2009-05-31  Bruno Haible  <bruno@clisp.org>
37802
37803         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37804         * tests/test-memchr.c (main): Check that memchr does not read past the
37805         first occurrence of the byte.
37806         * tests/test-strstr.c (main): Update comment.
37807         Suggested by Eric Blake.
37808
37809 2009-05-30  Bruno Haible  <bruno@clisp.org>
37810
37811         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37812         detail how to use dumpbin.
37813         Reported by David Byron <dbyron@dbyron.com>.
37814
37815 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37816
37817         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37818
37819 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37820
37821         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37822
37823 2009-05-28  Bruno Haible  <bruno@clisp.org>
37824
37825         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37826         build-aux/ files.
37827
37828 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37829
37830         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37831
37832 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37833
37834         * gnulib-tool (sed_transform_main_lib_file)
37835         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37836         regexps.
37837
37838 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37839
37840         * tests/test-strstr.c: Add another self-test.
37841         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37842         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37843
37844 2009-05-23  Bruno Haible  <bruno@clisp.org>
37845
37846         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37847         change.
37848
37849 2009-05-21  Bruno Haible  <bruno@clisp.org>
37850
37851         Simplify use of mode_t varargs.
37852         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37853         uses 'mode_t' or 'int'.
37854         * lib/openat.c (openat): Likewise.
37855         * lib/open-safer.c (open_safer): Likewise.
37856         * m4/mode_t.m4: New file.
37857         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37858         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37859         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37860         * modules/open (Files): Add m4/mode_t.m4.
37861         * modules/openat (Files): Likewise.
37862         * modules/fcntl-safer (Files): Likewise.
37863         Suggested by Eric Blake.
37864
37865 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37866
37867         * doc/glibc-functions/fallocate.texi: New file.
37868         * doc/gnulib.texi: Include it.
37869
37870 2009-05-21  Eric Blake  <ebb9@byu.net>
37871             Bruno Haible  <bruno@clisp.org>
37872
37873         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37874         invocations.
37875         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37876
37877 2009-05-21  Eric Blake  <ebb9@byu.net>
37878             Bruno Haible  <bruno@clisp.org>
37879
37880         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37881         include_next. Fix of 2008-11-20 commit.
37882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37883         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37884         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37885         NEXT_MATH_H.
37886         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37887         instead of NEXT_MATH_H.
37888
37889 2009-05-21  Bruno Haible  <bruno@clisp.org>
37890
37891         Avoid redefinition warnings for SIZE_MAX.
37892         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37893         Reported by Simon Josefsson.
37894
37895 2009-05-21  Bruno Haible  <bruno@clisp.org>
37896
37897         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37898         AC_CACHE_VAL.
37899
37900 2009-05-20  Bruno Haible  <bruno@clisp.org>
37901
37902         Make zeroptr.h work on mingw.
37903         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37904         mprotect.
37905         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37906         * modules/memchr2-tests (configure.ac): Likewise.
37907         * modules/memcmp-tests (configure.ac): Likewise.
37908         * modules/memmem-tests (configure.ac): Likewise.
37909         * modules/memrchr-tests (configure.ac): Likewise.
37910         Reported by Simon Josefsson.
37911
37912 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37913
37914         * tests/test-glob.c: Include string.h for strcmp prototype.
37915
37916 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37917
37918         * modules/getdelim (Depends-on): Add explicit stdint, although it
37919         was implicitly already pulled in via realloc-posix.
37920         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37921
37922 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37923
37924         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37925         G. Christensen" <tgc@jupiterrise.com>.
37926         * m4/sys_socket_h.m4: Check for sa_family_t.
37927         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37928         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37929         * tests/test-sys_socket.c: Check that sa_family_t works.
37930
37931 2009-05-18  Eric Blake  <ebb9@byu.net>
37932
37933         maint.mk: allow gnulib_dir in VPATH build
37934         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37935
37936 2009-05-15  Jim Meyering  <meyering@redhat.com>
37937
37938         maint.mk: Give gnulib_dir a default definition.
37939         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37940         Thus, most packages no longer need to specify this variable in cfg.mk
37941
37942 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37943
37944         rename.m4: fix typos that would make non-mingw cross-configure fail
37945         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37946
37947 2009-05-13  Eric Blake  <ebb9@byu.net>
37948
37949         mmap-anon: avoid out-of-order autoconf expansion
37950         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37951         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37952         * modules/memchr-tests (Depends-on): Add extensions.
37953         * modules/memchr2-tests (Depends-on): Add extensions.
37954         * modules/memcmp-tests (Depends-on): Add extensions.
37955         * modules/memmem-tests (Depends-on): Add extensions.
37956         * modules/memrchr-tests (Depends-on): Add extensions.
37957
37958 2009-05-13  Bruno Haible  <bruno@clisp.org>
37959
37960         Make some tests ISO C 99 compliant.
37961         * tests/zerosize-ptr.h: New file.
37962         * tests/test-memchr.c: Include zerosize-ptr.h.
37963         (main): Use a zero-size object pointer instead of NULL.
37964         * tests/test-memchr2.c: Include zerosize-ptr.h.
37965         (main): Use a zero-size object pointer instead of NULL.
37966         * tests/test-memcmp.c: Include zerosize-ptr.h.
37967         (main): Use a zero-size object pointer instead of NULL.
37968         * tests/test-memmem.c: Include zerosize-ptr.h.
37969         (main): Use a zero-size object pointer instead of NULL.
37970         * tests/test-memrchr.c: Include zerosize-ptr.h.
37971         (main): Use a zero-size object pointer instead of NULL.
37972         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37973         m4/mmap-anon.m4.
37974         (Depends-on): Add getpagesize.
37975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37976         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37977         m4/mmap-anon.m4.
37978         (Depends-on): Add getpagesize.
37979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37980         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37981         m4/mmap-anon.m4.
37982         (Depends-on): Add getpagesize.
37983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37984         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37985         m4/mmap-anon.m4.
37986         (Depends-on): Add getpagesize.
37987         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37988         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37989         m4/mmap-anon.m4.
37990         (Depends-on): Add getpagesize.
37991         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37992
37993 2009-05-12  Bruno Haible  <bruno@clisp.org>
37994
37995         Tests for module 'alignof'.
37996         * modules/alignof-tests: New file.
37997         * tests/test-alignof.c: New file.
37998
37999 2009-05-12  Bruno Haible  <bruno@clisp.org>
38000
38001         Fix alignof macro.
38002         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38003         vendor compilers that are always correct.
38004
38005 2009-05-12  Bruno Haible  <bruno@clisp.org>
38006
38007         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38008         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38009         not whether its fully works.
38010
38011 2009-05-12  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38014
38015 2009-05-12  Jim Meyering  <meyering@redhat.com>
38016
38017         * top/maint.mk: Adjust backslash alignment.
38018
38019 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38020
38021         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38022
38023 2009-05-11  Eric Blake  <ebb9@byu.net>
38024
38025         argp: avoid undefined behavior
38026         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38027         macros.
38028
38029 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38030
38031         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38032         user.name to prevent git commit from complaining.
38033
38034 2009-05-10  Bruno Haible  <bruno@clisp.org>
38035
38036         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38037         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38038         it rewrites every file name only once.
38039         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38040
38041 2009-05-08  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38044         instead of 'max'.
38045
38046 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38047
38048         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38049         sockaddr_storage test.
38050
38051 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38052
38053         * modules/sys_socket (Makefile.am): Substitute
38054         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38055         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38056         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38057         * tests/test-sys_socket.c: Check sockaddr_storage.
38058
38059 2009-05-08  Bruno Haible  <bruno@clisp.org>
38060
38061         New module 'alignof'.
38062         * lib/alignof.h: New file.
38063         * modules/alignof: New file.
38064
38065 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38066             Bruno Haible  <bruno@clisp.org>
38067
38068         Fix test-file-has-acl on FreeBSD.
38069         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38070         mask is implicitly added.
38071         * tests/test-file-has-acl.c: Include <signal.h>.
38072         (main): Terminate the test after 5 seconds.
38073         * modules/acl-tests (configure.ac): Check for alarm function.
38074
38075 2009-05-04  Bruno Haible  <bruno@clisp.org>
38076
38077         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38078         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38079         * modules/errno (configure.ac): Drop AC_REQUIRE.
38080         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38081         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38082
38083 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38084
38085         * modules/glob-tests: New module.
38086         * tests/test-glob.c: Add.
38087
38088 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38089
38090         * modules/fnmatch-tests: New module.
38091         * tests/test-fnmatch.c: Add.
38092
38093 2009-05-04  Eric Blake  <ebb9@byu.net>
38094
38095         maint: make the new no-submodule-changes rule VPATH-safe
38096         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38097
38098 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38099             Bruno Haible  <bruno@clisp.org>
38100
38101         acl: Fix infinite loop on FreeBSD.
38102         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38103         of return value from acl_get_entry.
38104         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38105         Likewise.
38106
38107 2009-05-03  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/acl-internal.h (acl_entries): Clarify return value.
38110         * lib/acl_entries.c (acl_entries): Likewise.
38111
38112 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38113
38114         Bug fix in acl module.
38115         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38116
38117 2009-05-03  Bruno Haible  <bruno@clisp.org>
38118
38119         Create gperf-generated file in the source dir, not in the build dir.
38120         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38121         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38122         * modules/unicase/locale-language (unicase/locale-languages.h):
38123         Likewise.
38124         * modules/unicase/special-casing (unicase/special-casing-table.h):
38125         Likewise.
38126         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38127         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38128         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38129         Reported by Ralf Wildenhues.
38130
38131 2009-05-03  Bruno Haible  <bruno@clisp.org>
38132
38133         * modules/fnmatch (Description, configure.ac): Taken from
38134         fnmatch-posix.
38135         * modules/fnmatch-posix: Turn into a symbolic reference to the
38136         'fnmatch' module, and deprecate.
38137         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38138
38139 2009-05-03  Bruno Haible  <bruno@clisp.org>
38140
38141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38142         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38143         Reported by Ralf Wildenhues.
38144
38145 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38146
38147         * m4/fnmatch.m4: Fix fnmatch re-define.
38148
38149 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38150
38151         priv-set: new module and tests; adapt write-any-file
38152         * lib/priv-set.c: New file.
38153         * lib/priv-set.h: New file.
38154         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38155         * lib/write-any-file.c: Simplify by using priv-set module.
38156         * m4/priv-set.m4: New file.
38157         * modules/priv-set: New file.
38158         * modules/unlinkdir: Add dependency on priv-set module.
38159         * modules/write-any-file: Likewise.
38160
38161         Tests for module 'priv-set'.
38162         * modules/priv-set-tests: New file.
38163         * tests/test-priv-set.c: New file.
38164
38165 2009-05-03  Jim Meyering  <meyering@redhat.com>
38166             Bruno Haible  <bruno@clisp.org>
38167
38168         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38169         use the converted UTF-8 variant of the name instead.
38170
38171 2009-05-03  Jim Meyering  <meyering@redhat.com>
38172
38173         tests: tighten some getdate tests
38174         * tests/test-getdate.c (main): Tighten tests: require equality,
38175         not just greater than.  Set TZ envvar to UTC0.
38176
38177 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38178
38179         getdate: correctly interpret "next monday" when run on a Monday
38180         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38181         that e.g., "next tues" (when run on a tuesday) results in a date
38182         that is one week in the future, and not today's date.
38183         I.e., add a week when the wday is the same as the current one.
38184         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38185         and earlier by Martin Bernreuther and Jan Minář.
38186         * tests/test-getdate.c (main): Check that "next DAY" is always in
38187         the future and that "last DAY" is always in the past.
38188
38189 2009-05-02  Jim Meyering  <meyering@redhat.com>
38190
38191         build: ensure that a release build fails when a submodule is unclean
38192         * top/maint.mk (no-submodule-changes): New rule.
38193         (alpha beta major): Depend on it.
38194
38195 2009-05-02  Bruno Haible  <bruno@clisp.org>
38196
38197         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38199         shell variable gl_fnmatch_required to detect which variant is
38200         requested.
38201         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38202         gl_FUNC_FNMATCH_POSIX.
38203         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38204         exclude fnmatch-posix.
38205
38206 2009-05-02  Bruno Haible  <bruno@clisp.org>
38207
38208         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38209         * modules/mbsrtowcs (License): Change to LGPLv2+.
38210         * modules/strnlen1 (License): Likewise.
38211         Reported by Simon Josefsson.
38212
38213 2009-05-02  Bruno Haible  <bruno@clisp.org>
38214
38215         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38216         "cross".
38217         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38218         gnulib-tool was called with option --source-base=lib.
38219
38220 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38221
38222         Use automake *-local hooks without commands, for extensibility.
38223         * modules/localcharset (Makefile.am): Rename install-exec-local
38224         rule to install-exec-localcharset, and make it a prerequisite of
38225         install-exec-local.  Likewise, rename the uninstall-local rule to
38226         uninstall-localcharset, and make it a prerequisite of the former.
38227
38228 2009-05-01  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38231         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38232         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38234         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38235         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38236         m4/locale-zh.m4, m4/codeset.m4.
38237
38238         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38239         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38240         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38241         m4/locale-zh.m4.
38242
38243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38244         REPLACE_WCRTOMB if mbstate_t must be replaced.
38245         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38246         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38247
38248 2009-05-01  Bruno Haible  <bruno@clisp.org>
38249
38250         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38251         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38252         dngettext, dcngettext, textdomain, bindtextdomain,
38253         bind_textdomain_codeset): Undefine before redefining.
38254
38255 2009-04-30  Bruno Haible  <bruno@clisp.org>
38256
38257         Fix bug introduced on 2009-04-25.
38258         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38259         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38260         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38261         is defined.
38262         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38263         is defined.
38264         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38265         is defined.
38266         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38267
38268 2009-04-28  Bruno Haible  <bruno@clisp.org>
38269
38270         Comment tweaks.
38271         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38272         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38273         * lib/unicase.h (u*_casexfrm): Likewise.
38274         Reported by Paolo Bonzini.
38275
38276 2009-04-28  Bruno Haible  <bruno@clisp.org>
38277
38278         Fix a compilation error.
38279         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38280         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38281         Reported by Jim Meyering.
38282
38283 2009-04-27  Bruno Haible  <bruno@clisp.org>
38284
38285         New module 'libunistring'.
38286         * modules/libunistring: New file.
38287         * m4/libunistring.m4: New file.
38288         * MODULES.html.sh (Unicode string functions): Add it.
38289
38290 2009-04-27  Eric Blake  <ebb9@byu.net>
38291
38292         maint.mk: allow package-specific header to provide <config.h>
38293         * top/maint.mk (sc_require_config_h): New variable.
38294         (sc_require_config_h, sc_require_config_h_first): Use it.
38295
38296 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38297
38298         * top/maint.mk (sc_avoid_if_before_free): Except
38299         useless-if-before-free script.
38300
38301 2009-04-27  Eric Blake  <ebb9@byu.net>
38302
38303         maintainer-makefile: depend on all required helper scripts
38304         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38305         useless-if-before-free.
38306         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38307         version, rather than assuming gnulib checkout is available.
38308         Reported by Simen Josefsson.
38309
38310 2009-04-26  Bruno Haible  <bruno@clisp.org>
38311
38312         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38313         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38314         "../" or "..".
38315
38316 2009-04-26  Bruno Haible  <bruno@clisp.org>
38317
38318         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38319         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38320         AC_LIB_HAVE_LINKFLAGS.
38321
38322 2009-04-26  Bruno Haible  <bruno@clisp.org>
38323
38324         Simplify calling convention of u*_conv_from_encoding.
38325         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38326         u32_conv_from_encoding): Expect a resultbuf argument and return the
38327         result directly as a pointer.
38328         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38329         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38330         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38331         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38332         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38333         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38334         Update.
38335         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38336         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38337         * lib/vasnprintf.c (VASNPRINTF): Update.
38338         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38339         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38340         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38341         * NEWS: Mention the change.
38342
38343 2009-04-26  Bruno Haible  <bruno@clisp.org>
38344
38345         Simplify calling convention of u*_conv_to_encoding.
38346         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38347         u32_conv_to_encoding): Expect a resultbuf argument and return the
38348         result directly as a pointer.
38349         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38350         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38351         freeing scaled_offsets if mem_iconveha failed.
38352         * lib/unicase/u-casexfrm.h (FUNC): Update.
38353         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38354         * lib/vasnprintf.c (VASNPRINTF): Update.
38355         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38356         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38357         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38358         * NEWS: Mention the change.
38359
38360 2009-04-26  Bruno Haible  <bruno@clisp.org>
38361
38362         Avoid test failures on AIX and OSF/1.
38363         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38364         malloc(0).
38365         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38366         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38367         Likewise.
38368         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38369         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38370         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38371         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38372         * doc/posix-functions/malloc.texi: Document the portability problem
38373         related to malloc(0).
38374
38375 2009-04-26  Bruno Haible  <bruno@clisp.org>
38376
38377         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38378         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38379         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38380
38381 2009-04-25  Bruno Haible  <bruno@clisp.org>
38382
38383         Avoid link error when creating a namespace clean library.
38384         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38385         as macro with arguments if already defined as an alias.
38386         * lib/signbitf.c (gl_signbitf): Don't undefine.
38387         * lib/signbitd.c (gl_signbitd): Don't undefine.
38388         * lib/signbitl.c (gl_signbitl): Don't undefine.
38389
38390 2009-04-25  Jim Meyering  <meyering@redhat.com>
38391
38392         vc-list-files: fix another quoting bug
38393         * build-aux/vc-list-files: Avoid sed backslash expansion
38394         of pathological directory names.
38395
38396 2009-04-25  Eric Blake  <ebb9@byu.net>
38397
38398         vc-list-files: fix shell quoting error
38399         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38400         timestamp.
38401
38402 2009-04-25  Jim Meyering  <meyering@redhat.com>
38403
38404         vc-list-files: restore lost functionality with subdir argument
38405         * build-aux/vc-list-files: When given a non-"." sub-directory
38406         argument, substitute the $dir/ prefix back onto each resulting name.
38407         Otherwise, coreutils' root_tests check would fail.
38408
38409 2009-04-24  Eric Blake  <ebb9@byu.net>
38410
38411         vc-list-files: ignore git symlinks
38412         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38413         than ls-files, to ignore git symlinks.
38414
38415         maint.mk: import improvements from m4
38416         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38417         (move_if_change): Delete unused macro.
38418         (news-date-check, vc-diff-check): Support VPATH builds.
38419         (announcement): Likewise.  Split --bootstrap-tools list...
38420         (boostrap-tools): ...into separate list, which can be overridden
38421         in cfg.mk.
38422         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38423         requiring dependency on useless-if-before-free module.
38424         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38425         Support VPATH builds.
38426
38427 2009-04-24  Jim Meyering  <meyering@redhat.com>
38428
38429         maint.mk: remove coreutils-specific rules and variables
38430         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38431         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38432         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38433
38434         maint.mk: remove obsolete rule
38435         * top/maint.mk (rel-check): Remove rule.
38436         (WGET, WGETFLAGS): Remove now-unused variables.
38437
38438 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38439
38440         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38441         consistency.
38442
38443         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38444         '$(PATH_SEPARATOR)' instead of ':'.
38445
38446 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38447
38448         * lib/getopt1.c (main): Use 'const' for static array.
38449
38450 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38451
38452         * top/maint.mk: Sync with coreutils.
38453         * NEWS: Explain incompatibilities.
38454
38455 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38456             Bruno Haible  <bruno@clisp.org>
38457
38458         Fix cross-compilation results.
38459         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38460         statement, as third argument of AC_TRY_RUN.
38461         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38462         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38463         Likewise.
38464         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38465         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38466         Likewise.
38467         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38468         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38469         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38470
38471 2009-04-20  Bruno Haible  <bruno@clisp.org>
38472
38473         Avoid test failure on mingw.
38474         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38475
38476 2009-04-20  Bruno Haible  <bruno@clisp.org>
38477
38478         Avoid compilation error on mingw.
38479         * modules/localename-tests (Depends-on): Add locale.
38480
38481 2009-04-19  Bruno Haible  <bruno@clisp.org>
38482
38483         Support for building a shared library on Windows platforms.
38484         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38485         (main): Test the presence of UNINORM_NFC here.
38486         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38487         (main): Test the presence of UNINORM_NFD here.
38488         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38489         (main): Test the presence of UNINORM_NFKC here.
38490         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38491         (main): Test the presence of UNINORM_NFKD here.
38492
38493 2009-04-19  Bruno Haible  <bruno@clisp.org>
38494
38495         Avoid a compiler warning.
38496         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38497         Change type of variable 'sequence'.
38498
38499 2009-04-19  Bruno Haible  <bruno@clisp.org>
38500
38501         * modules/configmake (Makefile.am): When the contents of configmake.h
38502         does not change, arrange to preserve its modification time.
38503
38504 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38505
38506         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38507         gettext domain.
38508
38509 2009-04-16  Jim Meyering  <meyering@redhat.com>
38510
38511         useless-if-before-free: improve conversion code
38512         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38513         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38514
38515 2009-04-14  Bruno Haible  <bruno@clisp.org>
38516
38517         * modules/fcntl (Depends-on): Add extensions.
38518         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38519
38520 2009-04-12  Ben Pfaff  <blp@gnu.org>
38521
38522         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38523         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38524
38525 2009-03-20  Ben Pfaff  <blp@gnu.org>
38526
38527         Make rename replace existing destinations on Windows.
38528         * m4/rename.m4: Add test for Mingw.
38529         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38530         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38531         * doc/posix-functions/rename.texi: Document.
38532
38533 2009-04-10  Bruno Haible  <bruno@clisp.org>
38534
38535         New include file "iconveh.h".
38536         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38537         * lib/striconveh.h: Include it.
38538         (enum iconv_ilseq_handler): Remove definition.
38539         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38540         striconveh.h.
38541         * lib/striconveha.c: Include striconveh.h.
38542         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38543         * modules/striconveh (Files): Add lib/iconveh.h.
38544         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38545         lib/striconveh.h.
38546
38547 2009-04-10  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/uniconv.h: Update comment.
38550
38551 2009-04-10  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38554         always.
38555         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38556         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38557         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38558         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38559         "unistring-notinline.h", so that the function gets defined always.
38560         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38561         * lib/unistr/u8-uctomb.c: Likewise.
38562         * lib/unistr/u16-mbtouc.c: Likewise.
38563         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38564         * lib/unistr/u16-uctomb.c: Likewise.
38565         * lib/unistr/u32-mbtouc.c: Likewise.
38566         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38567         * lib/unistr/u32-uctomb.c: Likewise.
38568
38569 2009-04-10  Bruno Haible  <bruno@clisp.org>
38570
38571         Mark 'utime' obsolete.
38572         * modules/utime (Status, Notice): New sections.
38573         Suggested by Jim Meyering.
38574
38575         Fix cross-compile guess for utime test.
38576         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38577         autoconf.
38578         * doc/posix-functions/utime.texi: Give more precisions.
38579         Reported by Jan <ipif@ymail.com>.
38580
38581 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38582
38583         filevercmp: correct today's change
38584         * lib/filevercmp.c: Also handle coreutils' test inputs.
38585         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38586
38587         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38588         for reporting it.
38589         * lib/filevercmp.c: Special handle for "", "." and "..".
38590         * tests/test-filevercmp.c: Enlarge the set suite.
38591
38592 2009-04-07  Jim Meyering  <meyering@redhat.com>
38593
38594         useless-if-before-free: show how to remove braced useless free, too
38595         * build-aux/useless-if-before-free: still only in a comment, though.
38596
38597 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38598
38599         maint.mk: import changes to syntax-check macros from coreutils
38600         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38601         Use them in the relevant macros.
38602
38603 2009-04-06  Bruno Haible  <bruno@clisp.org>
38604
38605         Fix unportable use of bit-fields.
38606         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38607         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38608         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38609
38610 2009-04-06  Bruno Haible  <bruno@clisp.org>
38611
38612         Avoid test failures on AIX and OSF/1.
38613         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38614         that malloc(0) = NULL.
38615         * tests/unicase/test-u8-tolower.c (check): Likewise.
38616         * tests/unicase/test-u8-totitle.c (check): Likewise.
38617         * tests/unicase/test-u8-toupper.c (check): Likewise.
38618         * tests/unicase/test-u16-casefold.c (check): Likewise.
38619         * tests/unicase/test-u16-tolower.c (check): Likewise.
38620         * tests/unicase/test-u16-totitle.c (check): Likewise.
38621         * tests/unicase/test-u16-toupper.c (check): Likewise.
38622         * tests/unicase/test-u32-casefold.c (check): Likewise.
38623         * tests/unicase/test-u32-tolower.c (check): Likewise.
38624         * tests/unicase/test-u32-totitle.c (check): Likewise.
38625         * tests/unicase/test-u32-toupper.c (check): Likewise.
38626         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38627         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38628         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38629         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38630         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38631         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38632         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38633         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38634         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38635         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38636         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38637         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38638
38639 2009-04-05  Bruno Haible  <bruno@clisp.org>
38640
38641         Work around an autoconf limitation.
38642         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38643         comment line if it would be longer than 3 KB.
38644
38645 2009-04-05  Bruno Haible  <bruno@clisp.org>
38646
38647         Avoid test failure with libiconv-1.13.
38648         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38649         of the expected test results.
38650
38651 2009-04-05  Bruno Haible  <bruno@clisp.org>
38652
38653         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38654         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38655         that it should be installed.
38656
38657 2009-04-05  Bruno Haible  <bruno@clisp.org>
38658
38659         * gnulib-tool: New option --copy-file.
38660         (func_usage): Document it.
38661         (func_dest_tmpfilename): Moved out of func_import.
38662         (func_add_file, func_update_file): New functions, extracted from
38663         func_import.
38664         (func_import): Update.
38665
38666 2009-04-05  Karl Berry  <karl@gnu.org>
38667
38668         * README: prominently mention gnulib-tool.
38669         Rearrange sections so getting the code is near the top.
38670
38671 2009-04-05  Bruno Haible  <bruno@clisp.org>
38672
38673         * lib/unicase.h: Mention u*_cmp2.
38674         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38675         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38676         * lib/unicase/ulc-casecmp.c: Likewise.
38677         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38678         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38679         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38680         unistr/u8-cmp.
38681         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38682         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38683         unistr/u16-cmp.
38684         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38685         unistr/u32-cmp.
38686
38687         * lib/uninorm.h: Mention u*_cmp2.
38688         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38689         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38690         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38691         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38692         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38693         unistr/u8-cmp.
38694         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38695         unistr/u16-cmp.
38696         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38697         unistr/u32-cmp.
38698
38699         New module 'unistr/u32-cmp2'.
38700         * lib/unistr/u32-cmp2.c: New file.
38701         * modules/unistr/u32-cmp2: New file.
38702
38703         New module 'unistr/u16-cmp2'.
38704         * lib/unistr/u16-cmp2.c: New file.
38705         * modules/unistr/u16-cmp2: New file.
38706
38707         New module 'unistr/u8-cmp2'.
38708         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38709         * lib/unistr/u8-cmp2.c: New file.
38710         * lib/unistr/u-cmp2.h: New file.
38711         * modules/unistr/u8-cmp2: New file.
38712
38713 2009-04-05  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/unictype.h (uc_property_is_valid): New macro.
38716         * tests/unictype/test-pr_byname.c (main): Use it.
38717
38718         * lib/unistr.h: Doc fixes.
38719         * lib/uniconv.h: Doc fixes.
38720         * lib/unictype.h: Doc fixes.
38721
38722 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38723
38724         Port coreutils 7.2 to Solaris 8.
38725
38726         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38727         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38728         for Solaris 8.  This is a bit of a hack, as it means it's the
38729         caller's responsibility to add -lnsl if needed, but most likely it
38730         won't be needed since only getaddrinfo uses this and getaddrinfo
38731         isn't needed on Solaris 8.
38732
38733         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38734         problem to Solaris 8 encountered with coreutils 7.2, which
38735         resulted in a message "fnmatch.c:292: warning: passing argument 4
38736         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38737         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38738
38739 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38740
38741         * m4/ld-version-script.m4: Add FIXME comment.
38742
38743 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38744
38745         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38746         SOVERSION variable.
38747
38748 2009-04-02  Bruno Haible  <bruno@clisp.org>
38749
38750         * Makefile (info, html, dvi, pdf): Combine the rules.
38751         Suggested by Jim Meyering.
38752
38753 2009-04-01  Bruno Haible  <bruno@clisp.org>
38754
38755         * Makefile (info, html, dvi, pdf): New targets.
38756         Reported by Reuben Thomas <rrt@sc3d.org>.
38757
38758 2009-04-01  Bruno Haible  <bruno@clisp.org>
38759
38760         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38761         can be put into PATH.
38762         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38763
38764 2009-04-01  Bruno Haible  <bruno@clisp.org>
38765
38766         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38767
38768 2009-04-01  Bruno Haible  <bruno@clisp.org>
38769
38770         Rename module 'visibility'.
38771         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38772         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38773         * doc/gnulib.texi: Update.
38774         * MODULES.html.sh (Misc): Update.
38775         * NEWS: Mention the change.
38776
38777 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38778
38779         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38780         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38781         Eric Blake <ebb9@byu.net> for review.
38782         * MODULES.html.sh: Add lib-msvc-compat.
38783         * doc/gnulib.texi: Link to new section.
38784         * m4/ld-output-def.m4: New file.
38785         * doc/ld-output-def.texi: New file.
38786
38787 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38788
38789         Rename ld-version-script to lib-symbol-versions.  Suggested by
38790         Bruno Haible <bruno@clisp.org>.
38791         * modules/ld-version-script: Renamed to lib-symbol-versions.
38792         * doc/ld-version-script.texi: Fix module name.
38793         * MODULES.html.sh: Add lib-symbol-versions.
38794
38795 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38796
38797         * modules/u64-tests: New file.
38798         * tests/test-u64.c: New file.
38799
38800 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38801
38802         * MODULES.html.sh: Mention u64.
38803         * modules/u64: New module.
38804         * modules/crypto/sha512: Depend on u64 module instead of providing
38805         u64.h.
38806
38807 2009-03-27  Eric Blake  <ebb9@byu.net>
38808
38809         test-strerror: make debugging EAI_SYSTEM easier
38810         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38811         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38812         failure was EAI_SYSTEM.
38813
38814 2009-03-25  Bruno Haible  <bruno@clisp.org>
38815
38816         Fix a problem with --enable-relocatable on Solaris 7.
38817         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38818         since 2008-02-24.
38819
38820 2009-03-25  Eric Blake  <ebb9@byu.net>
38821
38822         test-sockets: avoid gcc warning
38823         * tests/test-sockets.c (main): Silence compiler warning.
38824
38825 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38826
38827         New modules nproc, pthread, contributed by Glen Lenker.
38828
38829         * MODULES.html.sh: Add pthread, nproc.
38830         * lib/nproc.c: New file.
38831         * lib/nproc.h: New file.
38832         * lib/pthread.in.h: New file.
38833         * m4/pthread.m4: New file.
38834         * modules/nproc: New file.
38835         * modules/pthread: New file.
38836
38837 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38838
38839         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38840         New variable.
38841
38842 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38843
38844         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38845         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38846         * tests/test-filevercmp.c: Add tests for backup suffixes.
38847
38848 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38849
38850         * modules/stdlib (Depends-on): Add stdint, needed when defining
38851         struct random_data on, for example, HP-UX 10.20.  Reported by
38852         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38853
38854 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38855
38856         * lib/readline.c (readline): Call fflush on stdout after printing
38857         prompt.
38858
38859 2009-03-20  Bruno Haible  <bruno@clisp.org>
38860
38861         Remove dependency from 'close' module to -lws2_32 on native Windows.
38862         * lib/close-hook.h: New file.
38863         * lib/close-hook.c: New file.
38864         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38865         w32sock.h.
38866         (_gl_close_fd_maybe_socket): Remove function.
38867         (rpl_close): Invoke execute_all_close_hooks instead of
38868         _gl_close_fd_maybe_socket.
38869         * lib/sockets.c: Include close-hook.h, w32sock.h.
38870         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38871         (close_sockets_hook): New variable.
38872         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38873         (gl_sockets_cleanup): Unregister it.
38874         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38875         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38876         * modules/close-hook: New file.
38877         * modules/close (Files): Remove lib/w32sock.h.
38878         (Depends-on): Add close-hook.
38879         (Link): Remove section.
38880         * modules/sockets (Files): Add lib/w32sock.h.
38881         (Depends-on): Add close-hook.
38882         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38883         invocation.
38884         * NEWS: Mention that LIB_CLOSE is gone.
38885
38886 2009-03-23  Eric Blake  <ebb9@byu.net>
38887
38888         signal-tests: test previous patch
38889         * tests/test-signal.c: New file.
38890         * modules/signal-tests: Likewise.
38891
38892         signal.h: always support 'volatile sig_atomic_t'
38893         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38894         (gl_SIGNAL_H_DEFAULTS): Add a default.
38895         * modules/signal (Makefile.am): Substitute if needed.
38896         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38897         users can blindly add volatile.
38898         * doc/posix-headers/signal.texi (signal.h): Document it.
38899         Reported by Matthew Woehlke.
38900
38901 2009-03-23  Jim Meyering  <meyering@redhat.com>
38902
38903         pathmax: PATH_MAX: use pathconf only when available
38904         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38905         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38906         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38907         This avoids a link failure in a PSP cross-compilation environment
38908         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38909
38910         * lib/vasnprintf.c (divide): Fix typo in comment.
38911
38912 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38913
38914         * gnulib-tool (func_filter_filelist): Fix comment.
38915
38916 2009-03-20  Bruno Haible  <bruno@clisp.org>
38917
38918         Make sockets.h self-contained.
38919         * lib/sockets.c: Include sockets.h first.
38920         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38921
38922 2009-03-19  Eric Blake  <ebb9@byu.net>
38923
38924         doc: mention more functions added in cygwin 1.7.0
38925         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38926         addition.
38927         * doc/posix-functions/log2f.texi: Likewise.
38928
38929 2009-03-19  Jim Meyering  <meyering@redhat.com>
38930
38931         fsusage: avoid syntax error due to statement-before-declaration
38932         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38933         after all declarations.  Reported by Matthew Woehlke in
38934         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38935
38936 2009-03-18  Eric Blake  <ebb9@byu.net>
38937
38938         build-aux/compile: sync from automake
38939         * build-aux/compile: New file, from automake.
38940         * config/srclist.txt: Mention build-aux/compile.
38941
38942 2009-03-17  Bruno Haible  <bruno@clisp.org>
38943
38944         * lib/git-merge-changelog.c: Fix typo in comment.
38945         Reported by Reuben Thomas <rrt@sc3d.org>.
38946
38947 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38948
38949         * m4/regex.m4: update and improve help for
38950         --without-included-regex.
38951
38952 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38953
38954         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38955         failure on missing include files.
38956
38957 2009-03-17  Eric Blake  <ebb9@byu.net>
38958
38959         doc: mention more functions added in cygwin 1.7.0
38960         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38961         addition.
38962         * doc/posix-functions/fwscanf.texi: Likewise.
38963         * doc/posix-functions/swprintf.texi: Likewise.
38964         * doc/posix-functions/swscanf.texi: Likewise.
38965         * doc/posix-functions/vfwprintf.texi: Likewise.
38966         * doc/posix-functions/vfwscanf.texi: Likewise.
38967         * doc/posix-functions/vswprintf.texi: Likewise.
38968         * doc/posix-functions/vswscanf.texi: Likewise.
38969         * doc/posix-functions/vwprintf.texi: Likewise.
38970         * doc/posix-functions/vwscanf.texi: Likewise.
38971         * doc/posix-functions/wcscasecmp.texi: Likewise.
38972         * doc/posix-functions/wcsdup.texi: Likewise.
38973         * doc/posix-functions/wcsftime.texi: Likewise.
38974         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38975         * doc/posix-functions/wprintf.texi: Likewise.
38976         * doc/posix-functions/wscanf.texi: Likewise.
38977         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38978
38979 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38980
38981         maint.mk: really add $(AM_MAKEFLAGS)
38982         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38983         was inadvertently omitted in the last commit.
38984         Spotted by Bruno Haible.
38985
38986         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38987         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38988         $(AM_MAKEFLAGS)' rather than plain `make'.
38989
38990         gnulib-tool: execute $MAKE not make
38991         * gnulib-tool: Default $MAKE to 'make'.
38992         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38993         than make.  Initialize $MAKE in the do-autobuild script.
38994
38995         gnulib-tool: use $MAKE not make in generated files
38996         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38997         make, in generated files.  Initialize $MAKE in the do-autobuild
38998         script.
38999
39000         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39001
39002         GNUmakefile: disable parallelism only for multiple, recursive targets
39003         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39004         additions in the Makefile.
39005         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39006         by Automake.
39007         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39008         are listed on the command line and at least one of them is
39009         listed in $(ALL_RECURSIVE_TARGETS).
39010
39011 2009-03-14  Bruno Haible  <bruno@clisp.org>
39012
39013         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39014         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39015         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39016         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39017         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39018         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39019         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39020         unistr/u8-uctomb.
39021         * modules/unistr/u8-strchr (Depends-on): Likewise.
39022         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39023         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39024         unistr/u16-uctomb.
39025         * modules/unistr/u16-strchr (Depends-on): Likewise.
39026         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39027
39028 2009-03-12  Bruno Haible  <bruno@clisp.org>
39029
39030         Work around select() bug on Interix 3.5.
39031         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39032         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39033         * m4/select.m4: New file.
39034         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39035         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39036         * modules/select (Files): Add m4/select.m4.
39037         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39038         * modules/nanosleep (Depends-on): Add select.
39039         * modules/poll (Depends-on): Likewise.
39040         * doc/posix-functions/select.texi: Mention the Interix bug.
39041         Reported by Markus Duft <mduft@gentoo.org>.
39042
39043         * lib/select.c: Renamed from lib/winsock-select.c.
39044         * modules/select (Files): Add lib/select.c, remove
39045         lib/winsock-select.c.
39046         (configure.ac): Update.
39047
39048 2009-03-12  Jim Meyering  <meyering@redhat.com>
39049
39050         avoid gcc warnings about unused macro definitions
39051         * lib/readtokens.c (STREQ): Remove unused definition.
39052         * lib/xmalloc.c (SIZE_MAX): Likewise.
39053         * lib/openat-die.c (N_): Likewise.
39054         * lib/mountlist.c (SIZE_MAX): Remove definition.
39055         Instead, include <stdint.h>.
39056         * lib/readutmp.c: Likewise.
39057         * modules/readutmp (Depends-on): Add stdint.
39058         * modules/mountlist (Depends-on): Add stdint.
39059         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39060
39061 2009-03-10  Bruno Haible  <bruno@clisp.org>
39062
39063         Tests for module 'mbmemcasecoll'.
39064         * modules/mbmemcasecoll-tests: New file.
39065         * tests/test-mbmemcasecoll1.sh: New file.
39066         * tests/test-mbmemcasecoll2.sh: New file.
39067         * tests/test-mbmemcasecoll3.sh: New file.
39068         * tests/test-mbmemcasecoll.c: New file.
39069
39070         New module 'mbmemcasecoll'.
39071         * lib/mbmemcasecoll.h: New file.
39072         * lib/mbmemcasecoll.c: New file.
39073         * modules/mbmemcasecoll: New file.
39074
39075         * tests/test-mbmemcasecmp.h: New file, extracted from
39076         tests/test-mbmemcasecmp.c.
39077         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39078         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39079         (main): Update.
39080         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39081
39082 2009-03-09  Bruno Haible  <bruno@clisp.org>
39083
39084         Tests for module 'mbmemcasecmp'.
39085         * modules/mbmemcasecmp-tests: New file.
39086         * tests/test-mbmemcasecmp1.sh: New file.
39087         * tests/test-mbmemcasecmp2.sh: New file.
39088         * tests/test-mbmemcasecmp3.sh: New file.
39089         * tests/test-mbmemcasecmp.c: New file.
39090
39091         New module 'mbmemcasecmp'.
39092         * lib/mbmemcasecmp.h: New file.
39093         * lib/mbmemcasecmp.c: New file.
39094         * modules/mbmemcasecmp: New file.
39095
39096 2009-03-09  Bruno Haible  <bruno@clisp.org>
39097
39098         Tests for module 'unicase/ulc-casecoll'.
39099         * modules/unicase/ulc-casecoll-tests: New file.
39100         * tests/unicase/test-ulc-casecoll1.sh: New file.
39101         * tests/unicase/test-ulc-casecoll2.sh: New file.
39102         * tests/unicase/test-ulc-casecoll.c: New file.
39103
39104         New module 'unicase/ulc-casecoll'.
39105         * lib/unicase.h (ulc_casecoll): New declaration.
39106         * lib/unicase/ulc-casecoll.c: New file.
39107         * modules/unicase/ulc-casecoll: New file.
39108
39109         New module 'unicase/ulc-casexfrm'.
39110         * lib/unicase.h (ulc_casexfrm): New declaration.
39111         * lib/unicase/ulc-casexfrm.c: New file.
39112         * modules/unicase/ulc-casexfrm: New file.
39113
39114 2009-03-09  Bruno Haible  <bruno@clisp.org>
39115
39116         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39117         invocations.
39118
39119         * m4/mbscasecmp.m4: Remove file.
39120         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39121         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39122
39123         * m4/mbscasestr.m4: Remove file.
39124         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39125         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39126
39127         * m4/mbschr.m4: Remove file.
39128         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39129         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39130
39131         * m4/mbscspn.m4: Remove file.
39132         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39133         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39134
39135         * m4/mbslen.m4: Remove file.
39136         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39137         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39138
39139         * m4/mbsncasecmp.m4: Remove file.
39140         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39141         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39142
39143         * m4/mbsnlen.m4: Remove file.
39144         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39145         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39146
39147         * m4/mbspbrk.m4: Remove file.
39148         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39149         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39150
39151         * m4/mbspcasecmp.m4: Remove file.
39152         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39153         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39154
39155         * m4/mbsrchr.m4: Remove file.
39156         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39157         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39158
39159         * m4/mbssep.m4: Remove file.
39160         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39161         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39162
39163         * m4/mbsspn.m4: Remove file.
39164         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39165         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39166
39167         * m4/mbsstr.m4: Remove file.
39168         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39169         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39170
39171         * m4/mbstok_r.m4: Remove file.
39172         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39173         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39174
39175         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39176
39177         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39178         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39179
39180         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39181
39182 2009-03-08  Bruno Haible  <bruno@clisp.org>
39183
39184         Tests for module 'unicase/ulc-casecmp'.
39185         * modules/unicase/ulc-casecmp-tests: New file.
39186         * tests/unicase/test-ulc-casecmp1.sh: New file.
39187         * tests/unicase/test-ulc-casecmp2.sh: New file.
39188         * tests/unicase/test-ulc-casecmp.c: New file.
39189
39190         New module 'unicase/ulc-casecmp'.
39191         * lib/unicase.h (ulc_casecmp): New declaration.
39192         * lib/unicase/ulc-casecmp.c: New file.
39193         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39194         'const SRC_UNIT *'.
39195         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39196         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39197         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39198         * modules/unicase/ulc-casecmp: New file.
39199
39200         Tests for module 'unicase/u32-is-cased'.
39201         * modules/unicase/u32-is-cased-tests: New file.
39202         * tests/unicase/test-u32-is-cased.c: New file.
39203
39204         Tests for module 'unicase/u16-is-cased'.
39205         * modules/unicase/u16-is-cased-tests: New file.
39206         * tests/unicase/test-u16-is-cased.c: New file.
39207
39208         Tests for module 'unicase/u8-is-cased'.
39209         * modules/unicase/u8-is-cased-tests: New file.
39210         * tests/unicase/test-u8-is-cased.c: New file.
39211         * tests/unicase/test-is-cased.h: New file.
39212
39213         New module 'unicase/u32-is-cased'.
39214         * lib/unicase/u32-is-cased.c: New file.
39215         * modules/unicase/u32-is-cased: New file.
39216
39217         New module 'unicase/u16-is-cased'.
39218         * lib/unicase/u16-is-cased.c: New file.
39219         * modules/unicase/u16-is-cased: New file.
39220
39221         New module 'unicase/u8-is-cased'.
39222         * lib/unicase/u8-is-cased.c: New file.
39223         * lib/unicase/u-is-cased.h: New file.
39224         * modules/unicase/u8-is-cased: New file.
39225
39226         Tests for module 'unicase/u32-is-casefolded'.
39227         * modules/unicase/u32-is-casefolded-tests: New file.
39228         * tests/unicase/test-u32-is-casefolded.c: New file.
39229
39230         Tests for module 'unicase/u16-is-casefolded'.
39231         * modules/unicase/u16-is-casefolded-tests: New file.
39232         * tests/unicase/test-u16-is-casefolded.c: New file.
39233
39234         Tests for module 'unicase/u8-is-casefolded'.
39235         * modules/unicase/u8-is-casefolded-tests: New file.
39236         * tests/unicase/test-u8-is-casefolded.c: New file.
39237         * tests/unicase/test-is-casefolded.h: New file.
39238
39239         New module 'unicase/u32-is-casefolded'.
39240         * lib/unicase/u32-is-casefolded.c: New file.
39241         * modules/unicase/u32-is-casefolded: New file.
39242
39243         New module 'unicase/u16-is-casefolded'.
39244         * lib/unicase/u16-is-casefolded.c: New file.
39245         * modules/unicase/u16-is-casefolded: New file.
39246
39247         New module 'unicase/u8-is-casefolded'.
39248         * lib/unicase/u8-is-casefolded.c: New file.
39249         * modules/unicase/u8-is-casefolded: New file.
39250
39251         Tests for module 'unicase/u32-is-titlecase'.
39252         * modules/unicase/u32-is-titlecase-tests: New file.
39253         * tests/unicase/test-u32-is-titlecase.c: New file.
39254
39255         Tests for module 'unicase/u16-is-titlecase'.
39256         * modules/unicase/u16-is-titlecase-tests: New file.
39257         * tests/unicase/test-u16-is-titlecase.c: New file.
39258
39259         Tests for module 'unicase/u8-is-titlecase'.
39260         * modules/unicase/u8-is-titlecase-tests: New file.
39261         * tests/unicase/test-u8-is-titlecase.c: New file.
39262         * tests/unicase/test-is-titlecase.h: New file.
39263
39264         New module 'unicase/u32-is-titlecase'.
39265         * lib/unicase/u32-is-titlecase.c: New file.
39266         * modules/unicase/u32-is-titlecase: New file.
39267
39268         New module 'unicase/u16-is-titlecase'.
39269         * lib/unicase/u16-is-titlecase.c: New file.
39270         * modules/unicase/u16-is-titlecase: New file.
39271
39272         New module 'unicase/u8-is-titlecase'.
39273         * lib/unicase/u8-is-titlecase.c: New file.
39274         * modules/unicase/u8-is-titlecase: New file.
39275
39276         Tests for module 'unicase/u32-is-lowercase'.
39277         * modules/unicase/u32-is-lowercase-tests: New file.
39278         * tests/unicase/test-u32-is-lowercase.c: New file.
39279
39280         Tests for module 'unicase/u16-is-lowercase'.
39281         * modules/unicase/u16-is-lowercase-tests: New file.
39282         * tests/unicase/test-u16-is-lowercase.c: New file.
39283
39284         Tests for module 'unicase/u8-is-lowercase'.
39285         * modules/unicase/u8-is-lowercase-tests: New file.
39286         * tests/unicase/test-u8-is-lowercase.c: New file.
39287         * tests/unicase/test-is-lowercase.h: New file.
39288
39289         New module 'unicase/u32-is-lowercase'.
39290         * lib/unicase/u32-is-lowercase.c: New file.
39291         * modules/unicase/u32-is-lowercase: New file.
39292
39293         New module 'unicase/u16-is-lowercase'.
39294         * lib/unicase/u16-is-lowercase.c: New file.
39295         * modules/unicase/u16-is-lowercase: New file.
39296
39297         New module 'unicase/u8-is-lowercase'.
39298         * lib/unicase/u8-is-lowercase.c: New file.
39299         * modules/unicase/u8-is-lowercase: New file.
39300
39301         Tests for module 'unicase/u32-is-uppercase'.
39302         * modules/unicase/u32-is-uppercase-tests: New file.
39303         * tests/unicase/test-u32-is-uppercase.c: New file.
39304
39305         Tests for module 'unicase/u16-is-uppercase'.
39306         * modules/unicase/u16-is-uppercase-tests: New file.
39307         * tests/unicase/test-u16-is-uppercase.c: New file.
39308
39309         Tests for module 'unicase/u8-is-uppercase'.
39310         * modules/unicase/u8-is-uppercase-tests: New file.
39311         * tests/unicase/test-u8-is-uppercase.c: New file.
39312         * tests/unicase/test-is-uppercase.h: New file.
39313
39314         New module 'unicase/u32-is-uppercase'.
39315         * lib/unicase/u32-is-uppercase.c: New file.
39316         * modules/unicase/u32-is-uppercase: New file.
39317
39318         New module 'unicase/u16-is-uppercase'.
39319         * lib/unicase/u16-is-uppercase.c: New file.
39320         * modules/unicase/u16-is-uppercase: New file.
39321
39322         New module 'unicase/u8-is-uppercase'.
39323         * lib/unicase/u8-is-uppercase.c: New file.
39324         * modules/unicase/u8-is-uppercase: New file.
39325
39326         New module 'unicase/u32-is-invariant'.
39327         * lib/unicase/u32-is-invariant.c: New file.
39328         * modules/unicase/u32-is-invariant: New file.
39329
39330         New module 'unicase/u16-is-invariant'.
39331         * lib/unicase/u16-is-invariant.c: New file.
39332         * modules/unicase/u16-is-invariant: New file.
39333
39334         New module 'unicase/u8-is-invariant'.
39335         * lib/unicase/u8-is-invariant.c: New file.
39336         * lib/unicase/invariant.h: New file.
39337         * lib/unicase/u-is-invariant.h: New file.
39338         * modules/unicase/u8-is-invariant: New file.
39339
39340         Tests for module 'unicase/u32-casecoll'.
39341         * modules/unicase/u32-casecoll-tests: New file.
39342         * tests/unicase/test-u32-casecoll.c: New file.
39343
39344         Tests for module 'unicase/u16-casecoll'.
39345         * modules/unicase/u16-casecoll-tests: New file.
39346         * tests/unicase/test-u16-casecoll.c: New file.
39347
39348         Tests for module 'unicase/u8-casecoll'.
39349         * modules/unicase/u8-casecoll-tests: New file.
39350         * tests/unicase/test-u8-casecoll.c: New file.
39351
39352         New module 'unicase/u32-casecoll'.
39353         * lib/unicase/u32-casecoll.c: New file.
39354         * modules/unicase/u32-casecoll: New file.
39355
39356         New module 'unicase/u16-casecoll'.
39357         * lib/unicase/u16-casecoll.c: New file.
39358         * modules/unicase/u16-casecoll: New file.
39359
39360         New module 'unicase/u8-casecoll'.
39361         * lib/unicase/u8-casecoll.c: New file.
39362         * lib/unicase/u-casecoll.h: New file.
39363         * modules/unicase/u8-casecoll: New file.
39364
39365         New module 'unicase/u32-casexfrm'.
39366         * lib/unicase/u32-casexfrm.c: New file.
39367         * modules/unicase/u32-casexfrm: New file.
39368
39369         New module 'unicase/u16-casexfrm'.
39370         * lib/unicase/u16-casexfrm.c: New file.
39371         * modules/unicase/u16-casexfrm: New file.
39372
39373         New module 'unicase/u8-casexfrm'.
39374         * lib/unicase/u8-casexfrm.c: New file.
39375         * lib/unicase/u-casexfrm.h: New file.
39376         * modules/unicase/u8-casexfrm: New file.
39377
39378         Tests for module 'unicase/u32-casecmp'.
39379         * modules/unicase/u32-casecmp-tests: New file.
39380         * tests/unicase/test-u32-casecmp.c: New file.
39381
39382         Tests for module 'unicase/u16-casecmp'.
39383         * modules/unicase/u16-casecmp-tests: New file.
39384         * tests/unicase/test-u16-casecmp.c: New file.
39385
39386         Tests for module 'unicase/u8-casecmp'.
39387         * modules/unicase/u8-casecmp-tests: New file.
39388         * tests/unicase/test-u8-casecmp.c: New file.
39389         * tests/unicase/test-casecmp.h: New file.
39390
39391         New module 'unicase/u32-casecmp'.
39392         * lib/unicase/u32-casecmp.c: New file.
39393         * modules/unicase/u32-casecmp: New file.
39394
39395         New module 'unicase/u16-casecmp'.
39396         * lib/unicase/u16-casecmp.c: New file.
39397         * modules/unicase/u16-casecmp: New file.
39398
39399         New module 'unicase/u8-casecmp'.
39400         * lib/unicase/u8-casecmp.c: New file.
39401         * lib/unicase/u-casecmp.h: New file.
39402         * modules/unicase/u8-casecmp: New file.
39403
39404         Tests for module 'unicase/u32-casefold'.
39405         * modules/unicase/u32-casefold-tests: New file.
39406         * tests/unicase/test-u32-casefold.c: New file.
39407
39408         Tests for module 'unicase/u16-casefold'.
39409         * modules/unicase/u16-casefold-tests: New file.
39410         * tests/unicase/test-u16-casefold.c: New file.
39411
39412         Tests for module 'unicase/u8-casefold'.
39413         * modules/unicase/u8-casefold-tests: New file.
39414         * tests/unicase/test-u8-casefold.c: New file.
39415
39416         New module 'unicase/u32-casefold'.
39417         * lib/unicase/u32-casefold.c: New file.
39418         * modules/unicase/u32-casefold: New file.
39419
39420         New module 'unicase/u16-casefold'.
39421         * lib/unicase/u16-casefold.c: New file.
39422         * modules/unicase/u16-casefold: New file.
39423
39424         New module 'unicase/u8-casefold'.
39425         * lib/unicase/u8-casefold.c: New file.
39426         * lib/unicase/u-casefold.h: New file.
39427         * modules/unicase/u8-casefold: New file.
39428
39429         New module 'unicase/tocasefold'.
39430         * lib/unicase/casefold.h: New file.
39431         * lib/unicase/tocasefold.c: New file.
39432         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39433         * modules/unicase/tocasefold: New file.
39434
39435         Tests for module 'unicase/u32-totitle'.
39436         * modules/unicase/u32-totitle-tests: New file.
39437         * tests/unicase/test-u32-totitle.c: New file.
39438
39439         Tests for module 'unicase/u16-totitle'.
39440         * modules/unicase/u16-totitle-tests: New file.
39441         * tests/unicase/test-u16-totitle.c: New file.
39442
39443         Tests for module 'unicase/u8-totitle'.
39444         * modules/unicase/u8-totitle-tests: New file.
39445         * tests/unicase/test-u8-totitle.c: New file.
39446
39447         New module 'unicase/u32-totitle'.
39448         * lib/unicase/u32-totitle.c: New file.
39449         * modules/unicase/u32-totitle: New file.
39450
39451         New module 'unicase/u16-totitle'.
39452         * lib/unicase/u16-totitle.c: New file.
39453         * modules/unicase/u16-totitle: New file.
39454
39455         New module 'unicase/u8-totitle'.
39456         * lib/unicase/u8-totitle.c: New file.
39457         * lib/unicase/u-totitle.h: New file.
39458         * modules/unicase/u8-totitle: New file.
39459
39460         Tests for module 'unicase/u32-tolower'.
39461         * modules/unicase/u32-tolower-tests: New file.
39462         * tests/unicase/test-u32-tolower.c: New file.
39463
39464         Tests for module 'unicase/u16-tolower'.
39465         * modules/unicase/u16-tolower-tests: New file.
39466         * tests/unicase/test-u16-tolower.c: New file.
39467
39468         Tests for module 'unicase/u8-tolower'.
39469         * modules/unicase/u8-tolower-tests: New file.
39470         * tests/unicase/test-u8-tolower.c: New file.
39471
39472         New module 'unicase/u32-tolower'.
39473         * lib/unicase/u32-tolower.c: New file.
39474         * modules/unicase/u32-tolower: New file.
39475
39476         New module 'unicase/u16-tolower'.
39477         * lib/unicase/u16-tolower.c: New file.
39478         * modules/unicase/u16-tolower: New file.
39479
39480         New module 'unicase/u8-tolower'.
39481         * lib/unicase/u8-tolower.c: New file.
39482         * modules/unicase/u8-tolower: New file.
39483
39484         Tests for module 'unicase/u32-toupper'.
39485         * modules/unicase/u32-toupper-tests: New file.
39486         * tests/unicase/test-u32-toupper.c: New file.
39487
39488         Tests for module 'unicase/u16-toupper'.
39489         * modules/unicase/u16-toupper-tests: New file.
39490         * tests/unicase/test-u16-toupper.c: New file.
39491
39492         Tests for module 'unicase/u8-toupper'.
39493         * modules/unicase/u8-toupper-tests: New file.
39494         * tests/unicase/test-u8-toupper.c: New file.
39495
39496         New module 'unicase/u32-toupper'.
39497         * lib/unicase/u32-toupper.c: New file.
39498         * modules/unicase/u32-toupper: New file.
39499
39500         New module 'unicase/u16-toupper'.
39501         * lib/unicase/u16-toupper.c: New file.
39502         * modules/unicase/u16-toupper: New file.
39503
39504         New module 'unicase/u8-toupper'.
39505         * lib/unicase/u8-toupper.c: New file.
39506         * modules/unicase/u8-toupper: New file.
39507
39508         New module 'unicase/u32-casemap'.
39509         * lib/unicase/u32-casemap.c: New file.
39510         * modules/unicase/u32-casemap: New file.
39511
39512         New module 'unicase/u16-casemap'.
39513         * lib/unicase/u16-casemap.c: New file.
39514         * modules/unicase/u16-casemap: New file.
39515
39516         New module 'unicase/u8-casemap'.
39517         * lib/unicase/unicasemap.h: New file.
39518         * lib/unicase/u8-casemap.c: New file.
39519         * lib/unicase/u-casemap.h: New file.
39520         * modules/unicase/u8-casemap: New file.
39521
39522         New module 'unicase/special-casing'.
39523         * lib/unicase/special-casing.h: New file.
39524         * lib/unicase/special-casing.c: New file.
39525         * lib/unicase/special-casing-table.gperf: New file, generated by
39526         gen-uni-tables.c.
39527         * modules/unicase/special-casing: New file.
39528
39529         Tests for module 'unicase/locale-language'.
39530         * modules/unicase/locale-language-tests: New file.
39531         * tests/unicase/test-locale-language.sh: New file.
39532         * tests/unicase/test-locale-language.c: New file.
39533
39534         New module 'unicase/locale-language'.
39535         * lib/unicase/locale-language.c: New file.
39536         * lib/unicase/locale-languages.gperf: New file.
39537         * modules/unicase/locale-language: New file.
39538
39539         Generate more tables for case conversion and case folding.
39540         * lib/gen-uni-tables.c (SCC_*): New enum items.
39541         (struct special_casing_rule): New type.
39542         (casing_rules, num_casing_rules, allocated_casing_rules): New
39543         variables.
39544         (add_casing_rule, fill_casing_rules): New functions.
39545         (struct casefold_rule): New type.
39546         (casefolding_rules, num_casefolding_rules,
39547         allocated_casefolding_rules): New variables.
39548         (fill_casefolding_rules): New function.
39549         (unicode_casefold): New variable.
39550         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39551         sort_casing_rules, output_casing_rules): New functions.
39552         (main): Accept to more arguments: SpecialCasing.txt and
39553         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39554         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39555         Output mapping for casefolding.
39556
39557         * lib/unicase.h: Include stdbool.h, uninorm.h.
39558         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39559         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39560         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39561         arguments.
39562         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39563         resultp arguments.
39564         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39565         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39566         resultp arguments.
39567         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39568         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39569         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39570         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39571         declarations.
39572         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39573
39574 2009-03-08  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39577         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39578         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39579         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39580
39581 2009-03-07  Bruno Haible  <bruno@clisp.org>
39582
39583         Adjust u*_normcmp, u*_normcoll API.
39584         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39585         u16_normcoll, u32_normcoll): Change failure conventions.
39586         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39587         errno and return -1.
39588         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39589
39590 2009-03-07  Bruno Haible  <bruno@clisp.org>
39591
39592         Tests for module 'uninorm/u32-normcoll'.
39593         * modules/uninorm/u32-normcoll-tests: New file.
39594         * tests/uninorm/test-u32-normcoll.c: New file.
39595
39596         Tests for module 'uninorm/u16-normcoll'.
39597         * modules/uninorm/u16-normcoll-tests: New file.
39598         * tests/uninorm/test-u16-normcoll.c: New file.
39599
39600         Tests for module 'uninorm/u8-normcoll'.
39601         * modules/uninorm/u8-normcoll-tests: New file.
39602         * tests/uninorm/test-u8-normcoll.c: New file.
39603
39604 2009-03-07  Bruno Haible  <bruno@clisp.org>
39605
39606         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39607         tests/uninorm/test-u32-normcmp.c.
39608         * tests/uninorm/test-u32-normcmp.c: Include it.
39609         (test_nonascii): New function, extracted from main. Add some more
39610         tests.
39611         (main): Invoke test_ascii and test_nonascii.
39612         * modules/uninorm/u32-normcmp-tests (Files): Add
39613         tests/uninorm/test-u32-normcmp.h.
39614         (Depends-on): Remove uninorm/u32-normcmp.
39615
39616         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39617         tests/uninorm/test-u16-normcmp.c.
39618         * tests/uninorm/test-u16-normcmp.c: Include it.
39619         (test_nonascii): New function, extracted from main. Add some more
39620         tests.
39621         (main): Invoke test_ascii and test_nonascii.
39622         * modules/uninorm/u16-normcmp-tests (Files): Add
39623         tests/uninorm/test-u16-normcmp.h.
39624         (Depends-on): Remove uninorm/u16-normcmp.
39625
39626         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39627         tests/uninorm/test-u8-normcmp.c.
39628         * tests/uninorm/test-u8-normcmp.c: Include it.
39629         (test_nonascii): New function, extracted from main. Add some more
39630         tests.
39631         (main): Invoke test_ascii and test_nonascii.
39632         * modules/uninorm/u8-normcmp-tests (Files): Add
39633         tests/uninorm/test-u8-normcmp.h.
39634         (Depends-on): Remove uninorm/u8-normcmp.
39635
39636 2009-03-07  Bruno Haible  <bruno@clisp.org>
39637
39638         New module 'uninorm/u32-normcoll'.
39639         * lib/uninorm/u32-normcoll.c: New file.
39640         * modules/uninorm/u32-normcoll: New file.
39641
39642         New module 'uninorm/u16-normcoll'.
39643         * lib/uninorm/u16-normcoll.c: New file.
39644         * modules/uninorm/u16-normcoll: New file.
39645
39646         New module 'uninorm/u8-normcoll'.
39647         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39648         declarations.
39649         * lib/uninorm/u8-normcoll.c: New file.
39650         * lib/uninorm/u-normcoll.h: New file.
39651         * modules/uninorm/u8-normcoll: New file.
39652
39653         New module 'uninorm/u32-normxfrm'.
39654         * lib/uninorm/u32-normxfrm.c: New file.
39655         * modules/uninorm/u32-normxfrm: New file.
39656
39657         New module 'uninorm/u16-normxfrm'.
39658         * lib/uninorm/u16-normxfrm.c: New file.
39659         * modules/uninorm/u16-normxfrm: New file.
39660
39661         New module 'uninorm/u8-normxfrm'.
39662         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39663         declarations.
39664         * lib/uninorm/u8-normxfrm.c: New file.
39665         * lib/uninorm/u-normxfrm.h: New file.
39666         * modules/uninorm/u8-normxfrm: New file.
39667
39668 2009-03-07  Bruno Haible  <bruno@clisp.org>
39669
39670         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39671         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39672         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39673
39674 2009-03-07  Bruno Haible  <bruno@clisp.org>
39675
39676         New module 'memxfrm'.
39677         * lib/memxfrm.h: New file.
39678         * lib/memxfrm.c: New file.
39679         * modules/memxfrm: New file.
39680
39681 2009-03-07  Bruno Haible  <bruno@clisp.org>
39682
39683         New module 'memcmp2'.
39684         * lib/memcmp2.h: New file.
39685         * lib/memcmp2.c: New file.
39686         * modules/memcmp2: New file.
39687
39688 2009-03-07  Bruno Haible  <bruno@clisp.org>
39689
39690         Tests for module 'uninorm/decomposing-form'.
39691         * modules/uninorm/decomposing-form-tests: New file.
39692         * tests/uninorm/test-decomposing-form.c: New file.
39693
39694         New module 'uninorm/decomposing-form'.
39695         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39696         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39697         Add 'decomposing_variant' field.
39698         * lib/uninorm/decomposing-form.c: New file.
39699         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39700         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39701         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39702         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39703         * modules/uninorm/decomposing-form: New file.
39704         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39705         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39706
39707 2009-03-07  Bruno Haible  <bruno@clisp.org>
39708
39709         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39710         strings.
39711
39712 2009-03-06  Bruno Haible  <bruno@clisp.org>
39713
39714         Tests for module 'uninorm/u32-normcmp'.
39715         * tests/uninorm/test-u32-normcmp.c: New file.
39716         * modules/uninorm/u32-normcmp-tests: New file.
39717
39718         Tests for module 'uninorm/u16-normcmp'.
39719         * tests/uninorm/test-u16-normcmp.c: New file.
39720         * modules/uninorm/u16-normcmp-tests: New file.
39721
39722         Tests for module 'uninorm/u8-normcmp'.
39723         * tests/uninorm/test-u8-normcmp.c: New file.
39724         * modules/uninorm/u8-normcmp-tests: New file.
39725
39726         New module 'uninorm/u32-normcmp'.
39727         * lib/uninorm/u32-normcmp.c: New file.
39728         * modules/uninorm/u32-normcmp: New file.
39729
39730         New module 'uninorm/u16-normcmp'.
39731         * lib/uninorm/u16-normcmp.c: New file.
39732         * modules/uninorm/u16-normcmp: New file.
39733
39734         New module 'uninorm/u8-normcmp'.
39735         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39736         declarations.
39737         * lib/uninorm/u8-normcmp.c: New file.
39738         * lib/uninorm/u-normcmp.h: New file.
39739         * modules/uninorm/u8-normcmp: New file.
39740
39741 2009-03-06  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39744         Reported by Eric Blake.
39745
39746 2009-03-06  Eric Blake  <ebb9@byu.net>
39747             Bruno Haible  <bruno@clisp.org>
39748
39749         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39750         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39751         condition.
39752         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39753         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39754         condition.
39755         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39756
39757 2009-03-06  Eric Blake  <ebb9@byu.net>
39758
39759         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39760         to avoid compiler warnings.
39761         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39762
39763 2009-03-05  Bruno Haible  <bruno@clisp.org>
39764
39765         * tests/test-ftell.c (main): Disable test beyond end of file on
39766         FreeMiNT.
39767         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39768
39769 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39770
39771         * lib/filevercmp.c: Move hidden files up in ordering.
39772         * tests/test-filevercmp.c: Add tests for hidden files.
39773
39774 2009-03-04  Bruno Haible  <bruno@clisp.org>
39775
39776         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39777         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39778         AM_CFLAGS.
39779         Reported by Simon Josefsson.
39780
39781 2009-03-03  Bruno Haible  <bruno@clisp.org>
39782
39783         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39784         Reported by Simon Josefsson.
39785
39786         * doc/ld-version-script.texi: Update node reference.
39787
39788 2009-03-03  Bruno Haible  <bruno@clisp.org>
39789
39790         * modules/visibility (License): Change to 'unlimited'.
39791         Suggested by Simon Josefsson.
39792
39793 2009-03-03  Jim Meyering  <meyering@redhat.com>
39794
39795         unlinkdir: cannot_unlink_dir may modify process state
39796         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39797         it's neither thread-safe nor appropriate for use in a library.
39798
39799 2009-03-03  Eric Blake  <ebb9@byu.net>
39800
39801         test-closein: silence test under Darwin
39802         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39803         care if it dies from EPIPE or EBADF.
39804
39805 2009-03-03  Bruno Haible  <bruno@clisp.org>
39806
39807         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39808         earlier.
39809         * doc/visibility.texi: Fix @node and @section.
39810
39811 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39812
39813         * doc/gnulib.texi: Link to sections for ld version script and
39814         visibility.
39815         * doc/visibility.texi: Add @node and @section.
39816         * modules/ld-version-script: New module.
39817         * m4/ld-version-script.m4: New file.
39818         * doc/ld-version-script.texi: New file.
39819
39820 2009-03-02  David Lutterkort  <lutter@redhat.com>
39821
39822         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39824
39825 2009-03-02  Bruno Haible  <bruno@clisp.org>
39826
39827         * doc/visibility.texi: Mention libtool's -export-symbols option.
39828
39829 2009-03-02  Jim Meyering  <meyering@redhat.com>
39830
39831         announce-gen: new option: --no-print-checksums
39832         * build-aux/announce-gen (usage): Describe it.
39833         (print_checksums): Print a newline here, not in the [*] footnote.
39834         (main): Honor it.
39835
39836 2009-03-01  Bruno Haible  <bruno@clisp.org>
39837
39838         Use socklen_t in the native Windows replacements prototypes.
39839         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39840         instead of 'int'.
39841         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39842         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39843         * modules/getsockopt (Depends-on): Add socklen.
39844         * modules/setsockopt (Depends-on): Add socklen.
39845
39846 2009-03-01  Bruno Haible  <bruno@clisp.org>
39847
39848         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39849         least 4.2.
39850
39851 2009-03-01  Eric Blake  <ebb9@byu.net>
39852             Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39855         error messages.
39856         * lib/wait-process.c (wait_subprocess): Omit error message about
39857         deadly signal sent to the child of termsigp != NULL.
39858
39859 2009-03-01  Eric Blake  <ebb9@byu.net>
39860
39861         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39862
39863 2009-03-01  Bruno Haible  <bruno@clisp.org>
39864
39865         Avoid a gcc warning.
39866         * tests/test-sched.c (b): Make global.
39867         Reported by Eric Blake.
39868
39869 2009-01-19  Martin Lambers  <marlam@marlam.de>
39870
39871         Provide POSIX semantics for socket timeout options on W32.
39872         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39873         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39874         * modules/setsockopt: Depend on sys_time module for struct timeval.
39875         * modules/getsockopt: Depend on sys_time module for struct timeval.
39876
39877 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39878
39879         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39880         __USE_GNU, for consistency with netdb.in.h.
39881         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39882
39883 2009-03-01  Bruno Haible  <bruno@clisp.org>
39884
39885         More support for FreeMiNT.
39886         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39887         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39888
39889 2009-03-01  Bruno Haible  <bruno@clisp.org>
39890
39891         More support for FreeMiNT.
39892         * lib/fpurge.c (fpurge): Correct last commit.
39893         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39894
39895 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39896
39897         Fix unportable awk script in vc-list-files.
39898         * build-aux/vc-list-files: In the replacement awk script, use
39899         substr with a second argument of 1, not zero.
39900         Report by Simon Josefsson.
39901
39902 2009-02-28  Bruno Haible  <bruno@clisp.org>
39903
39904         More support for FreeMiNT.
39905         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39906         to FreeMiNT today.
39907         * lib/fwriting.c (fwriting): Likewise.
39908         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39909
39910 2009-02-28  Bruno Haible  <bruno@clisp.org>
39911
39912         * tests/test-freadseek.c (main): Disable test beyond end of file on
39913         FreeMiNT.
39914         * tests/test-ftello.c (main): Likewise.
39915         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39916
39917 2009-02-28  Bruno Haible  <bruno@clisp.org>
39918
39919         Add tentative support for FreeMiNT.
39920         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39921         * lib/fpurge.c (fpurge): Likewise.
39922         * lib/freadable.c (freadable): Likewise.
39923         * lib/freading.c (freading): Likewise.
39924         * lib/freadptr.c (freadptr): Likewise.
39925         * lib/freadseek.c (freadptrinc): Likewise.
39926         * lib/fseeko.c (rpl_fseeko): Likewise.
39927         * lib/fseterr.c (fseterr): Likewise.
39928         * lib/fwritable.c (fwritable): Likewise.
39929         * lib/fwriting.c (fwriting): Likewise.
39930         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39931         Hourihane.
39932         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39933
39934 2009-02-28  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39937         SIGCHLD.
39938         Reported by Jim Meyering.
39939
39940 2009-02-28  Bruno Haible  <bruno@clisp.org>
39941
39942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39943         Mention the results of these tests on various platforms.
39944         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39945         order.
39946         * doc/posix-functions/printf.texi: Likewise.
39947         * doc/posix-functions/snprintf.texi: Likewise.
39948         * doc/posix-functions/sprintf.texi: Likewise.
39949         * doc/posix-functions/vfprintf.texi: Likewise.
39950         * doc/posix-functions/vprintf.texi: Likewise.
39951         * doc/posix-functions/vsnprintf.texi: Likewise.
39952         * doc/posix-functions/vsprintf.texi: Likewise.
39953         * doc/glibc-functions/obstack_printf.texi: Likewise.
39954         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39955
39956 2009-02-28  Bruno Haible  <bruno@clisp.org>
39957
39958         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39959         Reported by Loïc Minier <lool@dooz.org>.
39960
39961 2009-02-27  Bruno Haible  <bruno@clisp.org>
39962
39963         * gnulib-tool (func_import): Make the sed expression used to create the
39964         sed script for updating the .gitignore file POSIX compliant.
39965         Reported by Eric Blake.
39966
39967 2009-02-27  Bruno Haible  <bruno@clisp.org>
39968
39969         * gnulib-tool (sed): Don't alias as "sed --posix".
39970         Reported by Eric Blake.
39971
39972 2009-02-27  Bruno Haible  <bruno@clisp.org>
39973
39974         Avoid test link errors.
39975         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39976         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39977         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39978         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39980
39981 2009-02-27  Bruno Haible  <bruno@clisp.org>
39982
39983         Avoid spurious "(cached)" in configure output.
39984         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39985         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39986         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39987         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39991         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39992         Reported by Eric Blake.
39993
39994 2009-02-27  Eric Blake  <ebb9@byu.net>
39995
39996         printf: fix regression in previous patch
39997         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39998
39999 2009-02-27  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40002         value.
40003         * lib/stdint.in.h: Likewise.
40004         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40005
40006 2009-02-27  Eric Blake  <ebb9@byu.net>
40007
40008         doc: mention more functions added in cygwin 1.7.0
40009         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40010         addition.
40011         * doc/posix-functions/open_wmemstream.texi: Likewise.
40012         * doc/posix-functions/wcsnlen.texi: Likewise.
40013         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40014         * doc/posix-functions/wcstod.texi: Likewise.
40015         * doc/posix-functions/wcstof.texi: Likewise.
40016         * doc/posix-functions/wcstoimax.texi: Likewise.
40017         * doc/posix-functions/wcstok.texi: Likewise.
40018         * doc/posix-functions/wcstoumax.texi: Likewise.
40019
40020         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40021         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40022         * doc/posix-functions/fprintf.texi: Update.
40023         * doc/posix-functions/printf.texi: Update.
40024         * doc/posix-functions/snprintf.texi: Update.
40025         * doc/posix-functions/sprintf.texi: Update.
40026         * doc/posix-functions/vfprintf.texi: Update.
40027         * doc/posix-functions/vprintf.texi: Update.
40028         * doc/posix-functions/vsnprintf.texi: Update.
40029         * doc/posix-functions/vsprintf.texi: Update.
40030         * doc/glibc-functions/obstack_printf.texi: Update.
40031         * doc/glibc-functions/obstack_vprintf.texi: Update.
40032
40033 2009-02-26  Eric Blake  <ebb9@byu.net>
40034
40035         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40036         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40037         compilation bug by using runtime conversion.
40038         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40039         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40040         * modules/ceill-tests (Files): Use nan.h.
40041         * modules/floorl-tests (Files): Likewise.
40042         * modules/frexpl-tests (Files): Likewise.
40043         * modules/isnanl-tests (Files): Likewise.
40044         * modules/ldexpl-tests (Files): Likewise.
40045         * modules/roundl-tests (Files): Likewise.
40046         * modules/truncl-tests (Files): Likewise.
40047         * tests/test-ceill.c (main): Use a working NaN.
40048         * tests/test-floorl.c (main): Likewise.
40049         * tests/test-frexpl.c (main): Likewise.
40050         * tests/test-isnan.c (test_long_double): Likewise.
40051         * tests/test-isnanl.h (main): Likewise.
40052         * tests/test-ldexpl.h (main): Likewise.
40053         * tests/test-roundl.h (main): Likewise.
40054         * tests/test-truncl.h (main): Likewise.
40055         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40056
40057 2009-02-26  Eric Blake  <ebb9@byu.net>
40058             Bruno Haible  <bruno@clisp.org>
40059
40060         Work around a *printf bug with %ls on Solaris.
40061         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40062         precision is specified, sprintf stops converting the wide string
40063         argument when the number of bytes that have been produced by this
40064         conversion equals or exceeds the precision.
40065         * doc/posix-functions/fprintf.texi: Update.
40066         * doc/posix-functions/printf.texi: Update.
40067         * doc/posix-functions/snprintf.texi: Update.
40068         * doc/posix-functions/sprintf.texi: Update.
40069         * doc/posix-functions/vfprintf.texi: Update.
40070         * doc/posix-functions/vprintf.texi: Update.
40071         * doc/posix-functions/vsnprintf.texi: Update.
40072         * doc/posix-functions/vsprintf.texi: Update.
40073         * doc/glibc-functions/obstack_printf.texi: Update.
40074         * doc/glibc-functions/obstack_vprintf.texi: Update.
40075
40076 2009-02-26  Eric Blake  <ebb9@byu.net>
40077
40078         stdlib: favor compiler check of random.h
40079         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40080         to avoid an ObjC random.h installed by Swarm.
40081
40082 2009-02-26  Bruno Haible  <bruno@clisp.org>
40083
40084         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40085         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40086         Reported by Gary V. Vaughan <gary@gnu.org>.
40087
40088 2009-02-26  Bruno Haible  <bruno@clisp.org>
40089
40090         Fix *printf behaviour regarding the %ls directive.
40091         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40092         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40093         NEED_PRINTF_DIRECTIVE_LS.
40094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40095         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40097         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40098         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40099         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40100         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40105         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40109         * doc/posix-functions/fprintf.texi: Update.
40110         * doc/posix-functions/printf.texi: Update.
40111         * doc/posix-functions/snprintf.texi: Update.
40112         * doc/posix-functions/sprintf.texi: Update.
40113         * doc/posix-functions/vfprintf.texi: Update.
40114         * doc/posix-functions/vprintf.texi: Update.
40115         * doc/posix-functions/vsnprintf.texi: Update.
40116         * doc/posix-functions/vsprintf.texi: Update.
40117         * doc/glibc-functions/obstack_printf.texi: Update.
40118         * doc/glibc-functions/obstack_vprintf.texi: Update.
40119         Reported by Eric Blake.
40120
40121 2009-02-25  Bruno Haible  <bruno@clisp.org>
40122
40123         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40124         with known value.
40125         Reported by Gary V. Vaughan <gary@gnu.org>.
40126
40127 2009-02-25  Bruno Haible  <bruno@clisp.org>
40128
40129         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40130         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40131         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40132         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40133         Reported by Gary V. Vaughan <gary@gnu.org>.
40134
40135 2009-02-25  Bruno Haible  <bruno@clisp.org>
40136
40137         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40138         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40139         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40140         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40141         Reported by Gary V. Vaughan <gary@gnu.org>.
40142
40143 2009-02-25  Eric Blake  <ebb9@byu.net>
40144
40145         tests: skip fseek/ftell tests if ungetc is broken
40146         * m4/ungetc.m4: New file.
40147         * modules/fseek-tests: Split test, so ungetc dependency is
40148         separate from rest of test.
40149         * modules/fseeko-tests: Likewise.
40150         * modules/ftell-tests: Likewise.
40151         * modules/ftello-tests: Likewise.
40152         * tests/test-fseek.c (main): Isolate ungetc dependency.
40153         * tests/test-fseeko.c (main): Likewise.
40154         * tests/test-ftell.c (main): Likewise.
40155         * tests/test-ftello.c (main): Likewise.
40156         * tests/test-fseek2.sh: New file.
40157         * tests/test-fseeko2.sh: Likewise.
40158         * tests/test-ftell2.sh: Likewise.
40159         * tests/test-ftello2.sh: Likewise.
40160
40161 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40162
40163         test-getaddrinfo: fix usage of skip return code 77
40164         * tests/test-gettaddrinfo.c: Return skip code 77 only
40165         for first occurance of skip (4x77 is not 77)
40166
40167 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40168
40169         strtod: avoid C99 decl-after-statement
40170         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40171
40172 2009-02-24  Eric Blake  <ebb9@byu.net>
40173
40174         strtod: detect HP-UX 11.31 bug
40175         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40176         Reported by Gary V. Vaughan.
40177
40178 2009-02-23  Bruno Haible  <bruno@clisp.org>
40179
40180         Fix invalid read past end of memory block.
40181         * lib/vasnprintf.c (DCHAR_SET): Define.
40182         (local_wcslen): Define only when needed.
40183         (local_strnlen, local_wcsnlen): New functions.
40184         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40185         directives that involve a conversion ourselves.
40186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40187         wcsnlen, mbrtowc, wcrtomb.
40188         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40189         * tests/test-vasprintf-posix.c (test_function): Likewise.
40190         * tests/test-snprintf-posix.h (test_function): Likewise.
40191         * tests/test-sprintf-posix.h (test_function): Likewise.
40192         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40193
40194 2009-02-22  Bruno Haible  <bruno@clisp.org>
40195
40196         Implement new clarified decomposition of Hangul syllables.
40197         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40198         of type LTV, return only a pairwise decomposition.
40199         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40200         Likewise.
40201         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40202         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40203         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40204
40205 2009-02-22  Bruno Haible  <bruno@clisp.org>
40206
40207         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40208         zero-length results and shrink excess allocated memory.
40209         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40210         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40211         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40212         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40213         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40214         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40215         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40216         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40217         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40218         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40219         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40220         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40221
40222 2009-02-21  Bruno Haible  <bruno@clisp.org>
40223
40224         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40225         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40226         spaces after a period. Put a space between a macro name and its
40227         argument list. Trivial rewordings.
40228         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40229         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40230         (main): Return 0 explicitly.
40231
40232 2009-02-21  Bruno Haible  <bruno@clisp.org>
40233
40234         Tests for module 'uninorm/filter'.
40235         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40236         * modules/uninorm/filter-tests: New file.
40237
40238         New module 'uninorm/filter'.
40239         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40240         uninorm_filter_flush, uninorm_filter_free): New declarations.
40241         * lib/uninorm/uninorm-filter.c: New file.
40242         * modules/uninorm/filter: New file.
40243
40244 2009-02-21  Bruno Haible  <bruno@clisp.org>
40245
40246         Tests for module 'uninorm/nfkc'.
40247         * tests/uninorm/test-nfkc.c: New file.
40248         * tests/uninorm/test-u8-nfkc.c: New file.
40249         * tests/uninorm/test-u16-nfkc.c: New file.
40250         * tests/uninorm/test-u32-nfkc.c: New file.
40251         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40252         * tests/uninorm/test-u32-nfkc-big.c: New file.
40253         * modules/uninorm/nfkc-tests: New file.
40254
40255         New module 'uninorm/nfkc'.
40256         * lib/uninorm/nfkc.c: New file.
40257         * modules/uninorm/nfkc: New file.
40258
40259         Tests for module 'uninorm/nfkd'.
40260         * tests/uninorm/test-nfkd.c: New file.
40261         * tests/uninorm/test-u8-nfkd.c: New file.
40262         * tests/uninorm/test-u16-nfkd.c: New file.
40263         * tests/uninorm/test-u32-nfkd.c: New file.
40264         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40265         * tests/uninorm/test-u32-nfkd-big.c: New file.
40266         * modules/uninorm/nfkd-tests: New file.
40267
40268         New module 'uninorm/nfkd'.
40269         * lib/uninorm/nfkd.c: New file.
40270         * modules/uninorm/nfkd: New file.
40271
40272         Tests for module 'uninorm/nfc'.
40273         * tests/uninorm/test-nfc.c: New file.
40274         * tests/uninorm/test-u8-nfc.c: New file.
40275         * tests/uninorm/test-u16-nfc.c: New file.
40276         * tests/uninorm/test-u32-nfc.c: New file.
40277         * tests/uninorm/test-u32-nfc-big.sh: New file.
40278         * tests/uninorm/test-u32-nfc-big.c: New file.
40279         * modules/uninorm/nfc-tests: New file.
40280
40281         New module 'uninorm/nfc'.
40282         * lib/uninorm/nfc.c: New file.
40283         * modules/uninorm/nfc: New file.
40284
40285         Tests for module 'uninorm/nfd'.
40286         * tests/uninorm/test-nfd.c: New file.
40287         * tests/uninorm/test-u8-nfd.c: New file.
40288         * tests/uninorm/test-u16-nfd.c: New file.
40289         * tests/uninorm/test-u32-nfd.c: New file.
40290         * tests/uninorm/test-u32-nfd-big.sh: New file.
40291         * tests/uninorm/test-u32-nfd-big.c: New file.
40292         * tests/uninorm/test-u32-normalize-big.h: New file.
40293         * tests/uninorm/test-u32-normalize-big.c: New file.
40294         * tests/uninorm/NormalizationTest.txt: New file, created from
40295         Unicode 5.1.0 NormalizationTest.txt.
40296         * modules/uninorm/nfd-tests: New file.
40297
40298         New module 'uninorm/nfd'.
40299         * lib/uninorm/nfd.c: New file.
40300         * modules/uninorm/nfd: New file.
40301
40302         New module 'uninorm/u32-normalize'.
40303         * lib/uninorm/u32-normalize.c: New file.
40304         * modules/uninorm/u32-normalize: New file.
40305
40306         New module 'uninorm/u16-normalize'.
40307         * lib/uninorm/u16-normalize.c: New file.
40308         * modules/uninorm/u16-normalize: New file.
40309
40310         New module 'uninorm/u8-normalize'.
40311         * lib/uninorm/u8-normalize.c: New file.
40312         * lib/uninorm/normalize-internal.h: New file.
40313         * lib/uninorm/u-normalize-internal.h: New file.
40314         * modules/uninorm/u8-normalize: New file.
40315
40316         New module 'uninorm/decompose-internal'.
40317         * lib/uninorm/decompose-internal.c: New file.
40318         * modules/uninorm/decompose-internal: New file.
40319
40320         Tests for module 'uninorm/composition'.
40321         * tests/uninorm/test-composition.c: New file.
40322         * modules/uninorm/composition-tests: New file.
40323
40324         New module 'uninorm/composition'.
40325         * lib/uninorm/composition.c: New file.
40326         * lib/uninorm/composition-table.gperf: New file, generated by
40327         gen-uni-tables.
40328         * modules/uninorm/composition: New file.
40329
40330         Tests for module 'uninorm/compat-decomposition'.
40331         * tests/uninorm/test-compat-decomposition.c: New file.
40332         * modules/uninorm/compat-decomposition-tests: New file.
40333
40334         New module 'uninorm/compat-decomposition'.
40335         * lib/uninorm/decompose-internal.h: New file.
40336         * lib/uninorm/compat-decomposition.c: New file.
40337         * modules/uninorm/compat-decomposition: New file.
40338
40339         Tests for module 'uninorm/canonical-decomposition'.
40340         * tests/uninorm/test-canonical-decomposition.c: New file.
40341         * modules/uninorm/canonical-decomposition-tests: New file.
40342
40343         New module 'uninorm/canonical-decomposition'.
40344         * lib/uninorm/canonical-decomposition.c: New file.
40345         * modules/uninorm/canonical-decomposition: New file.
40346
40347         Tests for module 'uninorm/decomposition'.
40348         * tests/uninorm/test-decomposition.c: New file.
40349         * modules/uninorm/decomposition-tests: New file.
40350
40351         New module 'uninorm/decomposition'.
40352         * lib/uninorm/decomposition.c: New file.
40353         * modules/uninorm/decomposition: New file.
40354
40355         New module 'uninorm/decomposition-table'.
40356         * lib/uninorm/decomposition-table.h: New file.
40357         * lib/uninorm/decomposition-table.c: New file.
40358         * lib/uninorm/decomposition-table1.h: New file, generated by
40359         gen-uni-tables.
40360         * lib/uninorm/decomposition-table2.h: New file, generated by
40361         gen-uni-tables.
40362         * modules/uninorm/decomposition-table: New file.
40363
40364         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40365         (UC_DECOMP_*): New enumeration items.
40366         (get_decomposition): New function.
40367         (struct decomp_table): New type.
40368         (output_decomposition, output_decomposition_tables): New functions.
40369         (unicode_composition_exclusions): New variable.
40370         (fill_composition_exclusions, debug_output_composition_tables): New
40371         functions.
40372         (main): Accept one more argument. Invoke fill_composition_exclusions.
40373         Output decomposition and composition tables.
40374
40375         New module 'uninorm/base'.
40376         * lib/uninorm.h: New file.
40377         * lib/unictype.h: Update comment.
40378         * modules/uninorm/base: New file.
40379
40380 2009-02-21  David Lutterkort  <lutter@redhat.com>
40381
40382         Tests for module 'safe-alloc'.
40383         * tests/test-safe-alloc.c: New file.
40384         * modules/safe-alloc-tests: New file.
40385
40386         New module 'safe-alloc'.
40387         * lib/safe-alloc.h: New file.
40388         * lib/safe-alloc.c: New file.
40389         * m4/safe-alloc.m4: New file.
40390         * modules/safe-alloc: New file.
40391         * doc/safe-alloc.texi: New file.
40392         * doc/gnulib.texi: Include it.
40393         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40394         safe-alloc.
40395
40396 2009-02-18  Bruno Haible  <bruno@clisp.org>
40397
40398         Fix link error on non-glibc systems.
40399         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40400         variable.
40401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40402
40403 2009-02-18  Jim Meyering  <meyering@redhat.com>
40404
40405         fts: avoid used-uninitialized error due to recent change
40406         * lib/fts.c (fts_read): Guard uses of the new member,
40407         parent->fts_n_dirs_remaining, since it's not relevant for
40408         the parent of a directory specified on the command-line.
40409
40410 2009-02-17  James Youngman  <jay@gnu.org>
40411             Bruno Haible  <bruno@clisp.org>
40412
40413         * m4/include_next.m4: Reformulate comment.
40414
40415 2009-02-16  Jim Meyering  <meyering@redhat.com>
40416
40417         fts: add #if guards so that the fts_lgpl module still builds
40418         * lib/fts.c: Guard just-added hash-table-using parts with
40419         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40420         Reported by Simon Josefsson.
40421
40422 2009-02-15  Bruno Haible  <bruno@clisp.org>
40423
40424         * modules/array-mergesort-tests: New file.
40425         * tests/test-array-mergesort.c: New file.
40426
40427         New module 'array-mergesort'.
40428         * modules/array-mergesort: New file.
40429         * lib/array-mergesort.h: New file.
40430
40431 2009-02-15  Bruno Haible  <bruno@clisp.org>
40432
40433         Fix 2009-02-07 commit.
40434         * lib/gen-uni-tables.c (output_predicate, output_category,
40435         output_combclass, output_bidi_category, output_decimal_digit,
40436         output_digit, output_numeric, output_mirror, output_scripts,
40437         output_ident_category, output_simple_mapping): Fix format directives.
40438         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40439
40440 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40441
40442         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40443         fixes are available from IBM.
40444
40445 2009-02-13  Jim Meyering  <meyering@redhat.com>
40446
40447         fts: arrange not to stat non-directories in more cases
40448         This makes GNU find (when it doesn't need to stat each file)
40449         *much* more efficient at traversing reiserfs file systems.
40450         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40451         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40452         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40453         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40454         (leaf_optimization_applies): New function.
40455         (LCO_hash, LCO_compare): New helper functions.
40456         (link_count_optimize_ok): New function.
40457         (fts_stat): Initialize new member (if dir).
40458         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40459         we've just stat'ed a directory.  Skip the stat call when possible.
40460         ---
40461         Note this AFS-related exchange:
40462         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40463         and note find's pioctl call in find/fstype.c.
40464         But that is necessary only if you want to enable the
40465         optimization for AFS, and for now, I don't.
40466
40467         fts: move a function definition "up" (no semantic change)
40468         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40469         "up" to precede upcoming use of a related function.
40470
40471 2009-02-11  Jim Meyering  <meyering@redhat.com>
40472
40473         fts: correct internal computation of nlinks (optimization-related)
40474         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40475         whether the current entry is a directory, so don't test it.
40476
40477 2009-02-10  Bruno Haible  <bruno@clisp.org>
40478
40479         Tests for module 'uniwbrk/ulc-wordbreaks'.
40480         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40481         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40482         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40483
40484         Tests for module 'uniwbrk/u32-wordbreaks'.
40485         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40486         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40487
40488         Tests for module 'uniwbrk/u16-wordbreaks'.
40489         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40490         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40491
40492         Tests for module 'uniwbrk/u8-wordbreaks'.
40493         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40494         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40495
40496 2009-02-10  Bruno Haible  <bruno@clisp.org>
40497
40498         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40499         property.
40500         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40501         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40502         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40503
40504 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40505
40506         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40507         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40508
40509 2009-02-10  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40512         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40513         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40514         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40515         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40516         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40517
40518 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40519
40520         * lib/sockets.h (gl_fd_to_handle): New function.
40521
40522         * tests/test-sockets.c: Call gl_fd_to_handle.
40523
40524 2009-02-09  Bruno Haible  <bruno@clisp.org>
40525
40526         * doc/havelib.texi: Document the conventions on bi-arch systems.
40527
40528 2009-02-08  Bruno Haible  <bruno@clisp.org>
40529
40530         Document the AC_LIB_LINKFLAGS macro.
40531         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40532         * doc/gnulib.texi: Include it.
40533
40534 2009-02-08  Bruno Haible  <bruno@clisp.org>
40535
40536         Fix wrong order of sections, compared to TOC.
40537         * doc/gnulib.texi: Include relocatable-maint.texi after the
40538         "Regular expressions" node, not before.
40539
40540 2009-02-08  Bruno Haible  <bruno@clisp.org>
40541
40542         Tests for module 'unicase/totitle'.
40543         * modules/unicase/totitle-tests: New file.
40544
40545         Tests for module 'unicase/tolower'.
40546         * modules/unicase/tolower-tests: New file.
40547
40548         Tests for module 'unicase/toupper'.
40549         * modules/unicase/toupper-tests: New file.
40550         * tests/unicase/test-mapping-part1.h: New file.
40551         * tests/unicase/test-mapping-part2.h: New file.
40552
40553         New module 'unicase/totitle'.
40554         * modules/unicase/totitle: New file.
40555         * lib/unicase/totitle.c: New file.
40556
40557         New module 'unicase/tolower'.
40558         * modules/unicase/tolower: New file.
40559         * lib/unicase/tolower.c: New file.
40560
40561         New module 'unicase/toupper'.
40562         * modules/unicase/toupper: New file.
40563         * lib/unicase/toupper.c: New file.
40564         * lib/unicase/simple-mapping.h: New file.
40565
40566         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40567         (mapping_table): New structure.
40568         (output_simple_mapping): New function.
40569         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40570         * modules/gen-uni-tables (Description): Update.
40571         * lib/unicase/toupper.h: New file, automatically generated by
40572         gen-uni-tables.
40573         * lib/unicase/tolower.h: New file, automatically generated by
40574         gen-uni-tables.
40575         * lib/unicase/totitle.h: New file, automatically generated by
40576         gen-uni-tables.
40577         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40578         gen-uni-tables.
40579         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40580         gen-uni-tables.
40581         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40582         gen-uni-tables.
40583
40584         New module 'unicase/base'.
40585         * modules/unicase/base: New file.
40586         * lib/unicase.h: New file.
40587
40588 2009-02-08  Bruno Haible  <bruno@clisp.org>
40589
40590         New module 'uniwbrk/ulc-wordbreaks'.
40591         * modules/uniwbrk/ulc-wordbreaks: New file.
40592         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40593
40594         New module 'uniwbrk/u32-wordbreaks'.
40595         * modules/uniwbrk/u32-wordbreaks: New file.
40596         * lib/uniwbrk/u32-wordbreaks.c: New file.
40597
40598         New module 'uniwbrk/u16-wordbreaks'.
40599         * modules/uniwbrk/u16-wordbreaks: New file.
40600         * lib/uniwbrk/u16-wordbreaks.c: New file.
40601
40602         New module 'uniwbrk/u8-wordbreaks'.
40603         * modules/uniwbrk/u8-wordbreaks: New file.
40604         * lib/uniwbrk/u8-wordbreaks.c: New file.
40605         * lib/uniwbrk/u-wordbreaks.h: New file.
40606
40607         New module 'uniwbrk/table'.
40608         * modules/uniwbrk/table: New file.
40609         * lib/uniwbrk/wbrktable.h: New file.
40610         * lib/uniwbrk/wbrktable.c: New file.
40611
40612         New module 'uniwbrk/wordbreak-property'.
40613         * modules/uniwbrk/wordbreak-property: New file.
40614         * lib/uniwbrk/wordbreak-property.c: New file.
40615
40616         * lib/gen-uni-tables.c (WBP_*): New enum items.
40617         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40618         (unicode_org_wbp): New variable.
40619         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40620         New functions.
40621         (wbp_table): New structure.
40622         (output_wbp, output_wbrk_tables): New functions.
40623         (main): Accept additional argument. Invoke fill_org_wbp,
40624         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40625         output_wbrk_tables.
40626         * modules/gen-uni-tables (Description): Update.
40627         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40628         gen-uni-tables.
40629
40630         New module 'uniwbrk/base'.
40631         * modules/uniwbrk/base: New file.
40632         * lib/uniwbrk.h: New file.
40633
40634 2009-02-08  Bruno Haible  <bruno@clisp.org>
40635
40636         Update to Unicode 5.1.0.
40637         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40638         U+2185..U+2188.
40639         (is_property_default_ignorable_code_point): Don't include characters
40640         of category Cc or Cs and not-a-characters.
40641         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40642         U+0D79, U+109E, U+109F, U+A60C.
40643         * lib/unictype/bidi_of.h: Regenerated.
40644         * lib/unictype/blocks.h: Regenerated.
40645         * lib/unictype/categ_C.h: Regenerated.
40646         * lib/unictype/categ_Cf.h: Regenerated.
40647         * lib/unictype/categ_Cn.h: Regenerated.
40648         * lib/unictype/categ_L.h: Regenerated.
40649         * lib/unictype/categ_Ll.h: Regenerated.
40650         * lib/unictype/categ_Lm.h: Regenerated.
40651         * lib/unictype/categ_Lo.h: Regenerated.
40652         * lib/unictype/categ_Lu.h: Regenerated.
40653         * lib/unictype/categ_M.h: Regenerated.
40654         * lib/unictype/categ_Mc.h: Regenerated.
40655         * lib/unictype/categ_Me.h: Regenerated.
40656         * lib/unictype/categ_Mn.h: Regenerated.
40657         * lib/unictype/categ_N.h: Regenerated.
40658         * lib/unictype/categ_Nd.h: Regenerated.
40659         * lib/unictype/categ_Nl.h: Regenerated.
40660         * lib/unictype/categ_No.h: Regenerated.
40661         * lib/unictype/categ_P.h: Regenerated.
40662         * lib/unictype/categ_Pd.h: Regenerated.
40663         * lib/unictype/categ_Pe.h: Regenerated.
40664         * lib/unictype/categ_Pf.h: Regenerated.
40665         * lib/unictype/categ_Pi.h: Regenerated.
40666         * lib/unictype/categ_Po.h: Regenerated.
40667         * lib/unictype/categ_Ps.h: Regenerated.
40668         * lib/unictype/categ_S.h: Regenerated.
40669         * lib/unictype/categ_Sk.h: Regenerated.
40670         * lib/unictype/categ_Sm.h: Regenerated.
40671         * lib/unictype/categ_So.h: Regenerated.
40672         * lib/unictype/categ_of.h: Regenerated.
40673         * lib/unictype/combining.h: Regenerated.
40674         * lib/unictype/ctype_alnum.h: Regenerated.
40675         * lib/unictype/ctype_alpha.h: Regenerated.
40676         * lib/unictype/ctype_graph.h: Regenerated.
40677         * lib/unictype/ctype_lower.h: Regenerated.
40678         * lib/unictype/ctype_print.h: Regenerated.
40679         * lib/unictype/ctype_punct.h: Regenerated.
40680         * lib/unictype/ctype_upper.h: Regenerated.
40681         * lib/unictype/decdigit.h: Regenerated.
40682         * lib/unictype/digit.h: Regenerated.
40683         * lib/unictype/mirror.h: Regenerated.
40684         * lib/unictype/numeric.h: Regenerated.
40685         * lib/unictype/pr_alphabetic.h: Regenerated.
40686         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40687         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40688         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40689         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40690         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40691         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40692         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40693         * lib/unictype/pr_combining.h: Regenerated.
40694         * lib/unictype/pr_dash.h: Regenerated.
40695         * lib/unictype/pr_decimal_digit.h: Regenerated.
40696         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40697         * lib/unictype/pr_deprecated.h: Regenerated.
40698         * lib/unictype/pr_diacritic.h: Regenerated.
40699         * lib/unictype/pr_extender.h: Regenerated.
40700         * lib/unictype/pr_format_control.h: Regenerated.
40701         * lib/unictype/pr_grapheme_base.h: Regenerated.
40702         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40703         * lib/unictype/pr_grapheme_link.h: Regenerated.
40704         * lib/unictype/pr_id_continue.h: Regenerated.
40705         * lib/unictype/pr_id_start.h: Regenerated.
40706         * lib/unictype/pr_ideographic.h: Regenerated.
40707         * lib/unictype/pr_ignorable_control.h: Regenerated.
40708         * lib/unictype/pr_lowercase.h: Regenerated.
40709         * lib/unictype/pr_math.h: Regenerated.
40710         * lib/unictype/pr_numeric.h: Regenerated.
40711         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40712         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40713         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40714         * lib/unictype/pr_other_id_continue.h: Regenerated.
40715         * lib/unictype/pr_other_lowercase.h: Regenerated.
40716         * lib/unictype/pr_other_math.h: Regenerated.
40717         * lib/unictype/pr_punctuation.h: Regenerated.
40718         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40719         * lib/unictype/pr_soft_dotted.h: Regenerated.
40720         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40721         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40722         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40723         * lib/unictype/pr_uppercase.h: Regenerated.
40724         * lib/unictype/pr_xid_continue.h: Regenerated.
40725         * lib/unictype/pr_xid_start.h: Regenerated.
40726         * lib/unictype/pr_zero_width.h: Regenerated.
40727         * lib/unictype/scripts.h: Regenerated.
40728         * lib/unictype/scripts_byname.gperf: Regenerated.
40729         * lib/unictype/sy_java_ident.h: Regenerated.
40730         * lib/unilbrk/lbrkprop1.h: Regenerated.
40731         * lib/unilbrk/lbrkprop2.h: Regenerated.
40732         * tests/unictype/test-categ_C.c: Regenerated.
40733         * tests/unictype/test-categ_Cf.c: Regenerated.
40734         * tests/unictype/test-categ_Cn.c: Regenerated.
40735         * tests/unictype/test-categ_L.c: Regenerated.
40736         * tests/unictype/test-categ_Ll.c: Regenerated.
40737         * tests/unictype/test-categ_Lm.c: Regenerated.
40738         * tests/unictype/test-categ_Lo.c: Regenerated.
40739         * tests/unictype/test-categ_Lu.c: Regenerated.
40740         * tests/unictype/test-categ_M.c: Regenerated.
40741         * tests/unictype/test-categ_Mc.c: Regenerated.
40742         * tests/unictype/test-categ_Me.c: Regenerated.
40743         * tests/unictype/test-categ_Mn.c: Regenerated.
40744         * tests/unictype/test-categ_N.c: Regenerated.
40745         * tests/unictype/test-categ_Nd.c: Regenerated.
40746         * tests/unictype/test-categ_Nl.c: Regenerated.
40747         * tests/unictype/test-categ_No.c: Regenerated.
40748         * tests/unictype/test-categ_P.c: Regenerated.
40749         * tests/unictype/test-categ_Pd.c: Regenerated.
40750         * tests/unictype/test-categ_Pe.c: Regenerated.
40751         * tests/unictype/test-categ_Pf.c: Regenerated.
40752         * tests/unictype/test-categ_Pi.c: Regenerated.
40753         * tests/unictype/test-categ_Po.c: Regenerated.
40754         * tests/unictype/test-categ_Ps.c: Regenerated.
40755         * tests/unictype/test-categ_S.c: Regenerated.
40756         * tests/unictype/test-categ_Sk.c: Regenerated.
40757         * tests/unictype/test-categ_Sm.c: Regenerated.
40758         * tests/unictype/test-categ_So.c: Regenerated.
40759         * tests/unictype/test-ctype_alnum.c: Regenerated.
40760         * tests/unictype/test-ctype_alpha.c: Regenerated.
40761         * tests/unictype/test-ctype_graph.c: Regenerated.
40762         * tests/unictype/test-ctype_lower.c: Regenerated.
40763         * tests/unictype/test-ctype_print.c: Regenerated.
40764         * tests/unictype/test-ctype_punct.c: Regenerated.
40765         * tests/unictype/test-ctype_upper.c: Regenerated.
40766         * tests/unictype/test-decdigit.h: Regenerated.
40767         * tests/unictype/test-digit.h: Regenerated.
40768         * tests/unictype/test-numeric.h: Regenerated.
40769         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40770         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40771         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40772         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40773         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40774         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40775         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40776         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40777         * tests/unictype/test-pr_combining.c: Regenerated.
40778         * tests/unictype/test-pr_dash.c: Regenerated.
40779         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40780         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40781         * tests/unictype/test-pr_deprecated.c: Regenerated.
40782         * tests/unictype/test-pr_diacritic.c: Regenerated.
40783         * tests/unictype/test-pr_extender.c: Regenerated.
40784         * tests/unictype/test-pr_format_control.c: Regenerated.
40785         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40786         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40787         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40788         * tests/unictype/test-pr_id_continue.c: Regenerated.
40789         * tests/unictype/test-pr_id_start.c: Regenerated.
40790         * tests/unictype/test-pr_ideographic.c: Regenerated.
40791         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40792         * tests/unictype/test-pr_lowercase.c: Regenerated.
40793         * tests/unictype/test-pr_math.c: Regenerated.
40794         * tests/unictype/test-pr_numeric.c: Regenerated.
40795         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40796         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40797         Regenerated.
40798         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40799         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40800         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40801         * tests/unictype/test-pr_other_math.c: Regenerated.
40802         * tests/unictype/test-pr_punctuation.c: Regenerated.
40803         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40804         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40805         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40806         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40807         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40808         * tests/unictype/test-pr_uppercase.c: Regenerated.
40809         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40810         * tests/unictype/test-pr_xid_start.c: Regenerated.
40811         * tests/unictype/test-pr_zero_width.c: Regenerated.
40812
40813         Update to Unicode 5.1.0.
40814         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40815         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40816         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40817         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40818         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40819         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40820         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40821         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40822         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40823         (nonspacing_table_ind): Update.
40824         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40825
40826         Update to Unicode 5.1.0.
40827         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40828         code transform.
40829         * lib/uniname/uniname.c (unicode_character_name,
40830         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40831         * lib/uniname/uninames.h: Regenerated.
40832         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40833
40834 2009-02-07  Bruno Haible  <bruno@clisp.org>
40835
40836         Merge gen-ctype and gen-lbrk into a single program.
40837         * lib/gen-uni-tables.c: New file, incorporating
40838         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40839         Add directory prefixes to the names of the generated files.
40840         * lib/unictype/gen-ctype.c: Remove file.
40841         * lib/unilbrk/gen-lbrk.c: Remove file.
40842         * modules/gen-uni-tables: New file.
40843         * modules/unictype/gen-ctype: Remove file.
40844         * modules/unilbrk/gen-lbrk: Remove file.
40845
40846 2009-02-07  Bruno Haible  <bruno@clisp.org>
40847
40848         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40849
40850         New module 'unistr/u32-strcoll'.
40851         * modules/unistr/u32-strcoll: New file.
40852         * lib/unistr/u32-strcoll.c: New file.
40853
40854         New module 'unistr/u16-strcoll'.
40855         * modules/unistr/u16-strcoll: New file.
40856         * lib/unistr/u16-strcoll.c: New file.
40857
40858         New module 'unistr/u8-strcoll'.
40859         * modules/unistr/u8-strcoll: New file.
40860         * lib/unistr/u8-strcoll.c: New file.
40861         * lib/unistr/u-strcoll.h: New file.
40862
40863 2009-02-07  Bruno Haible  <bruno@clisp.org>
40864
40865         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40866         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40867         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40868         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40869         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40870         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40871
40872 2009-02-07  Bruno Haible  <bruno@clisp.org>
40873
40874         Make 64-bit clean.
40875         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40876         output_combclass, output_bidi_category, output_decimal_digit,
40877         output_digit, output_numeric, output_mirror, output_scripts,
40878         output_ident_category): Use proper width specifier in format strings.
40879
40880 2009-02-07  Bruno Haible  <bruno@clisp.org>
40881
40882         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40883         failure behaviour.
40884
40885 2009-02-07  Jim Meyering  <meyering@redhat.com>
40886
40887         regex: avoid compilation failure with upcoming gcc-4.4
40888         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40889         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40890         "... error: integer overflow in preprocessor expression".
40891
40892 2009-02-05  Ben Pfaff  <blp@gnu.org>
40893
40894         Fix link errors on Windows when close module is used.
40895         * modules/close: Add $(LIB_CLOSE) to Link section.
40896         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40897         $(LIB_CLOSE) on Windows.
40898
40899 2009-02-05  Jim Meyering  <meyering@redhat.com>
40900
40901         still avoid unused-parameter warnings, but do it cleanly
40902         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40903         (get_fs_usage): Cast to void instead.
40904         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40905         (dev_from_mount_options, read_file_system_list): Cast to void.
40906         Prompted by Bruno Haible.
40907
40908 2009-02-04  Jim Meyering  <meyering@redhat.com>
40909
40910         fsusage.c: correct copyright year
40911         * lib/fsusage.c: Reflect year in which the change is pushed into
40912
40913         avoid misc. warnings
40914         * lib/fsusage.c (UNUSED_PARAM): Define.
40915         (get_fs_usage): Mark parameter "disk" as unused.
40916         * lib/getugroups.c (getgrent): Use "void" in prototype.
40917         * lib/mountlist.c: Mark unused parameters.
40918         (read_file_system_list): Declare a local with "const".
40919         * lib/nanosleep.c (getnow): Declare static.
40920         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40921
40922         dirfd: set errno upon failure
40923         * lib/dirfd.c: Include <errno.h>.
40924         Set errno to ENOTSUP when returning -1.
40925         * modules/dirfd (Depends-on): Add errno.
40926         Suggested by John Kodis <kodis@comcast.net>.
40927
40928 2009-02-01  Bruno Haible  <bruno@clisp.org>
40929
40930         Don't assume sizeof (long) >= sizeof (void *).
40931         * lib/memcmp.c: Include stdint.h.
40932         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40933         srcp2 to 'const byte *'.
40934         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40935         types to uintptr_t.
40936         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40937         * modules/memcmp (Depends-on): Add stdint.
40938         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40939
40940 2009-01-30  Eric Blake  <ebb9@byu.net>
40941
40942         fix more require-before-expand issues
40943         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40944         expand, AC_PROG_AWK.
40945         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40946
40947 2009-01-28  Eric Blake  <ebb9@byu.net>
40948
40949         version-etc: use consistent URL formatting
40950         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40951         Improve formatting.  Use fputs for string without %.
40952
40953 2009-01-28  Jim Meyering  <meyering@redhat.com>
40954
40955         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40956         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40957         "underquoted definition of NAME" from autoconf-2.59.
40958
40959 2009-01-28  Bruno Haible  <bruno@clisp.org>
40960
40961         * doc/gnulib.texi: Add "Obsolete modules" to index.
40962
40963 2009-01-28  Jim Meyering  <meyering@redhat.com>
40964
40965         useless-if-before-free: recognize more variants
40966         * build-aux/useless-if-before-free: Also recognize e.g.,
40967         if (NULL != p) free (p);
40968
40969 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40970
40971         test-getaddrinfo: skip (don't fail) this test when there's no network
40972         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40973         on the presumption that it means you lack network access.
40974
40975 2009-01-26  Jim Meyering  <meyering@redhat.com>
40976
40977         fflush: avoid warnings on modern systems
40978         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40979         pos and result, into scopes where they're used.
40980
40981 2009-01-26  Eric Blake  <ebb9@byu.net>
40982
40983         Silence warning reintroduced by recent extensions patch.
40984         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40985         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40986         autoconf.
40987
40988         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40989         * m4/00gnulib.m4: New file.
40990         * gnulib-tool (func_get_filelist): Always use it.
40991         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40992         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40993
40994 2009-01-25  Bruno Haible  <bruno@clisp.org>
40995
40996         Make test-quotearg work on MacOS X and AIX.
40997         * tests/test-quotearg.sh: New file.
40998         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40999         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41000         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41001         include <libintl.h>.
41002         (fake_locale): Remove variable.
41003         (gettext, dgettext, dcgettext): Remove functions.
41004         (main): Instead of setting a fake locale, set a real locale. Call
41005         textdomain and bindtextdomain.
41006         * modules/quotearg-tests (Files): Add the new files.
41007         (Depends-on): Add gettext, setenv, unsetenv.
41008         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41009         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41010         Augment TESTS_ENVIRONMENT.
41011
41012 2009-01-25  Bruno Haible  <bruno@clisp.org>
41013
41014         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41015         fr_FR.ISO8859-1 locale on MacOS X.
41016         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41017         ja_JP.eucJP locale on MacOS X.
41018         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41019         zh_CN.GB18030 locale on MacOS X.
41020
41021 2009-01-25  Bruno Haible  <bruno@clisp.org>
41022
41023         Avoid link errors on MacOS X 10.3.
41024         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41025         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41026
41027 2009-01-25  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41030         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41031         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41032         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41033         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41034         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41035         posix_spawnattr_init, posix_spawnattr_setsigmask,
41036         posix_spawnattr_setflags, posix_spawnattr_destroy.
41037
41038         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41039         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41040         * modules/execute (Files): Remove m4/posix_spawn.m4.
41041         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41042         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41043         posix_spawnattr_init, posix_spawnattr_setsigmask,
41044         posix_spawnattr_setflags, posix_spawnattr_destroy.
41045
41046 2009-01-25  Bruno Haible  <bruno@clisp.org>
41047
41048         * lib/glthread/threadlib.c: Include <stdlib.h>.
41049
41050 2009-01-25  Bruno Haible  <bruno@clisp.org>
41051
41052         * lib/glthread/threadlib.c (dummy): New declaration.
41053
41054 2009-01-25  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41057         multibyte characters also for the GB18030 encoding. Don't crash when
41058         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41059
41060 2009-01-25  Bruno Haible  <bruno@clisp.org>
41061
41062         Avoid redefining 'struct random_data' on OSF/1 5.1.
41063         * lib/stdlib.in.h: Include <random.h> if it exists.
41064         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41065         HAVE_RANDOM_H. Include <random.h> when testing whether
41066         'struct random_data' exists.
41067         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41068
41069 2009-01-25  Bruno Haible  <bruno@clisp.org>
41070
41071         Don't install charset.alias on MacOS X >= 10.3.
41072         * lib/localcharset.c (DARWIN7): New macro.
41073         (get_charset_aliases): Hardcode the result for Darwin7.
41074         * modules/localcharset (install-exec-local): Don't install
41075         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41076
41077 2009-01-25  Bruno Haible  <bruno@clisp.org>
41078
41079         Don't install charset.alias on mingw and Cygwin.
41080         * modules/localcharset (install-exec-local): Don't install
41081         charset.alias on mingw and Cygwin, if the file does not yet exist.
41082         The result for these platforms is hardcoded in localcharset.c.
41083
41084 2009-01-25  Bruno Haible  <bruno@clisp.org>
41085
41086         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41088         before requiring AC_USE_SYSTEM_EXTENSIONS.
41089
41090 2009-01-25  Jim Meyering  <meyering@redhat.com>
41091
41092         c-strtod: avoid warnings
41093         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41094         "assignment discards qualifiers from pointer target type" warnings.
41095
41096 2009-01-24  Bruno Haible  <bruno@clisp.org>
41097
41098         Add support for non-UTF-8 locales on MacOS X.
41099         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41100         canonical encodings. For Darwin 7 and newer, don't map traditional
41101         encodings to UTF-8.
41102         Reported by Vincent Lefevre <vincent@vinc17.org>
41103         at <http://savannah.gnu.org/bugs/?25235>.
41104
41105 2009-01-24  Bruno Haible  <bruno@clisp.org>
41106
41107         * doc/gnulib.texi (Obsolete modules): New section.
41108         Reported by Mike Frysinger <vapier@gentoo.org>.
41109
41110 2009-01-24  Bruno Haible  <bruno@clisp.org>
41111
41112         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41113         (%.dvi): New rule.
41114
41115 2009-01-24  Bruno Haible  <bruno@clisp.org>
41116
41117         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41118         Reported by Eric Blake.
41119
41120 2009-01-24  Bruno Haible  <bruno@clisp.org>
41121
41122         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41123         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41124         Reported by Gary V. Vaughan <gary@gnu.org>.
41125
41126 2009-01-24  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41129
41130 2009-01-23  Bruno Haible  <bruno@clisp.org>
41131
41132         Make c-strtod, c-strtold usable in libraries.
41133         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41134         (C_STRTOD): Call strdup instead of xstrdup.
41135         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41136         * modules/c-strtold (Depends-on): Likewise.
41137         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41138         * NEWS: Mention the change.
41139         Reported by Michael Gold <mgold@ncf.ca>.
41140
41141 2009-01-23  Jim Meyering  <meyering@redhat.com>
41142
41143         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41144         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41145         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41146
41147 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41148
41149         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41150         GNU CoreUtils.
41151         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41152         * modules/version-etc (Description): Update.
41153
41154 2009-01-22  Bruno Haible  <bruno@clisp.org>
41155
41156         Cache the C locale object.
41157         * lib/c-strtod.c (c_locale_cache): New variable.
41158         (c_locale): New function.
41159         (C_STRTOD): Use it, and don't call freelocale.
41160         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41161         Suggested by Paolo Bonzini.
41162
41163 2009-01-21  Bruno Haible  <bruno@clisp.org>
41164
41165         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41166         conditions other than overflow.
41167
41168 2009-01-21  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/c-strtod.c: Include errno.h.
41171         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41172         value from STRTOD_L and STRTOD.
41173
41174 2009-01-21  Bruno Haible  <bruno@clisp.org>
41175         and Jim Meyering  <meyering@redhat.com>
41176
41177         nanosleep: skip configure test (fail it) for apple universal builds
41178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41179         universal builds, assume that nanosleep does not work.
41180         * modules/nanosleep (Depends-on): Add multiarch.
41181
41182         mktime: skip configure test (fail it) for apple universal builds
41183         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41184         universal builds, assume that mktime does not work.
41185         * modules/mktime (Depends-on): Add multiarch.
41186
41187 2009-01-21  Eric Blake  <ebb9@byu.net>
41188
41189         multiarch: avoid expand-before-require warning
41190         * modules/multiarch (configure.ac): Require, rather than expand,
41191         gl_MULTIARCH.
41192         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41193         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41194         enforce that all clients require it.  Partial reversion of
41195         2008-12-29 patch.
41196
41197         error: avoid expand-before-require warning
41198         * modules/errno (configure.ac): Require, rather than expand,
41199         gl_HEADER_ERRNO_H.
41200         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41201         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41202         enforce that all clients require it.
41203
41204         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41205         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41206         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41207         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41208
41209 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41210
41211         Revert:
41212         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41213
41214         regex: do not depend on obsolete modules.
41215         * modules/regex: Remove memcmp and memmove.
41216
41217 2009-01-20  Bruno Haible  <bruno@clisp.org>
41218
41219         Make the 'link' module link on Windows NT 4.
41220         * lib/link.c (_WIN32_WINNT): Don't define.
41221         (CreateHardLinkFuncType): New type.
41222         (CreateHardLinkFunc, initialized): New variables.
41223         (initialize): New function.
41224         (link): Invoke CreateHardLink indirectly through the function pointer.
41225
41226 2009-01-20  Bruno Haible  <bruno@clisp.org>
41227
41228         Fix compilation failure on mingw.
41229         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41230
41231 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41232
41233         * doc/c-strtod.texi: Mention a couple of restrictions.
41234
41235 2009-01-20  Jim Meyering  <meyering@redhat.com>
41236
41237         gettimeofday: move more declarations out of functions
41238         * lib/gettimeofday.c: Move extern declarations of tzset and
41239         gmtime out of containing functions.  Prompted by Bruno Haible.
41240
41241 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41242
41243         regex: do not depend on obsolete modules.
41244         * modules/regex: Remove memcmp and memmove.
41245
41246 2009-01-19  Bruno Haible  <bruno@clisp.org>
41247
41248         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41249         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41250         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41251         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41252         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41253
41254 2009-01-19  Bruno Haible  <bruno@clisp.org>
41255
41256         * tests/test-link.c: Include <errno.h>.
41257         (main): Exit with code 77 when a hard link cannot be created due to
41258         the file system.
41259         * tests/test-link.sh: Skip test when a hard link cannot be created due
41260         to the file system.
41261         Suggested by Eric Blake.
41262
41263 2009-01-19  Martin Lambers  <marlam@marlam.de>
41264
41265         * modules/link-tests: New file.
41266         * tests/test-link.sh: New file.
41267         * tests/test-link.c: New file.
41268
41269 2009-01-19  Eric Blake  <ebb9@byu.net>
41270
41271         doc: mention another function added in cygwin 1.7.0
41272         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41273         Another new function in cygwin 1.7.
41274
41275 2009-01-19  Bruno Haible  <bruno@clisp.org>
41276
41277         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41278         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41279         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41280         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41281         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41282         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41283         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41284         * m4/md4.m4 (gl_MD4): Likewise.
41285         * m4/md5.m4 (gl_MD5): Likewise.
41286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41287         * m4/sha1.m4 (gl_SHA1): Likewise.
41288         * m4/sha256.m4 (gl_SHA256): Likewise.
41289         * m4/sha512.m4 (gl_SHA512): Likewise.
41290
41291 2009-01-19  Bruno Haible  <bruno@clisp.org>
41292
41293         * modules/uniname/uniname-tests (Depends-on): Add progname.
41294         * tests/uniname/test-uninames.c: Include progname.h.
41295         (main): Call set_program_name.
41296
41297         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41298         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41299         (main): Call set_program_name.
41300
41301         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41302         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41303         (main): Call set_program_name.
41304
41305         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41306         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41307         (main): Call set_program_name.
41308
41309         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41310         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41311         (main): Call set_program_name.
41312
41313         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41314         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41315         (main): Call set_program_name.
41316
41317         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41318         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41319         (main): Call set_program_name.
41320
41321         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41322         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41323         (main): Call set_program_name.
41324
41325         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41326         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41327         (main): Call set_program_name.
41328
41329 2009-01-19  Eric Blake  <ebb9@byu.net>
41330
41331         test-unistd: test previous patch
41332         * tests/test-unistd.c: Test *_FILENO macros.
41333
41334         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41335         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41336         Guarantee a definition.
41337         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41338         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41339         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41340         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41341         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41342         Likewise.
41343         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41344         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41345         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41346         Likewise.
41347         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41348         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41349         (STDERR_FILENO): Likewise.
41350         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41351         (STDERR_FILENO): Likewise.
41352         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41353         (STDERR_FILENO): Likewise.
41354         Reported by Elbert Pol.
41355
41356 2009-01-19  Eric Blake  <ebb9@byu.net>
41357
41358         doc: mention more functions added in cygwin 1.7.0
41359         * doc/posix-functions/abort.texi (abort): Update wording related
41360         to cygwin.
41361         * doc/posix-functions/daylight.texi (daylight): Likewise.
41362         * doc/posix-functions/optarg.texi (optarg): Likewise.
41363         * doc/posix-functions/optarg.texi (opterr): Likewise.
41364         * doc/posix-functions/optarg.texi (optind): Likewise.
41365         * doc/posix-functions/optarg.texi (optopt): Likewise.
41366         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41367         worked in 1.5.x, and was withdrawn in 1.7.
41368         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41369         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41370         cygwin versions.
41371         * doc/posix-functions/perror.texi (perror): Likewise.
41372         * doc/posix-functions/printf.texi (printf): Likewise.
41373         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41374         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41375         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41376         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41377         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41378         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41379         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41380         Likewise.
41381         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41382         Likewise.
41383         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41384         this function.
41385         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41386         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41387         Likewise.
41388         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41389         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41390         * doc/posix-functions/confstr.texi (confstr): Likewise.
41391         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41392         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41393         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41394         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41395         * doc/posix-functions/fputws.texi (fputws): Likewise.
41396         * doc/posix-functions/fwide.texi (fwide): Likewise.
41397         * doc/posix-functions/getwc.texi (getwc): Likewise.
41398         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41399         * doc/posix-functions/putwc.texi (putwc): Likewise.
41400         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41401         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41402         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41403         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41404         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41405         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41406         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41407         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41408         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41409         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41410         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41411
41412 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41413
41414         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41415         * lib/ioctl.c: Include <sys/ioctl.h>.
41416
41417 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41418
41419         * modules/getdate-tests (Depends-on): Add progname.
41420         * tests/test-getdate.c: Use progname module, to avoid link errors
41421         on non-glibc systems.
41422
41423 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41424
41425         * modules/filenamecat-tests (Depends-on): Add progname.
41426         * modules/fstrcmp-tests (Depends-on): Likewise.
41427
41428         * tests/test-filenamecat.c: Use progname module, to avoid link
41429         errors on non-glibc systems.
41430         * tests/test-fstrcmp.c: Likewise.
41431
41432 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41433
41434         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41435         * lib/gettimeofday.c: Move extern declaration out of function.
41436
41437 2009-01-18  Bruno Haible  <bruno@clisp.org>
41438
41439         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41440         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41441         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41442
41443 2009-01-18  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/strftime.c (MEMPCPY): Remove unused macro.
41446         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41447
41448 2009-01-18  Martin Lambers  <marlam@marlam.de>
41449
41450         New module 'link'.
41451         * lib/unistd.in.h (link): New declaration.
41452         * lib/link.c: New file.
41453         * m4/link.m4: New file.
41454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41455         HAVE_LINK.
41456         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41457         * modules/link: New file.
41458         * doc/posix-functions/link.texi: Mention the new module.
41459
41460 2009-01-18  Bruno Haible  <bruno@clisp.org>
41461
41462         * tests/test-avltree_list.c (main): Call set_program_name.
41463         * tests/test-avltree_oset.c (main): Likewise.
41464         * tests/test-obstack-printf.c: Include progname.h.
41465         (main): Call set_program_name.
41466         * tests/test-quotearg.c: Include progname.h.
41467         (main): Call set_program_name.
41468         * tests/test-xmemdup0.c: Include progname.h.
41469         (main): Call set_program_name.
41470
41471 2009-01-18  Bruno Haible  <bruno@clisp.org>
41472
41473         New module 'alphasort'.
41474         * lib/dirent.in.h (alphasort): New declaration.
41475         * lib/alphasort.c: New file, from glibc with modifications.
41476         * m4/alphasort.m4: New file.
41477         * modules/alphasort: New file.
41478         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41479         HAVE_ALPHASORT.
41480         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41481         HAVE_ALPHASORT.
41482         * doc/posix-functions/alphasort.texi: Mention the new module and the
41483         portability problems.
41484
41485 2009-01-18  Bruno Haible  <bruno@clisp.org>
41486
41487         New module 'scandir'.
41488         * lib/dirent.in.h (scandir): New declaration.
41489         * lib/scandir.c: New file, from glibc with modifications.
41490         * m4/scandir.m4: New file.
41491         * modules/scandir: New file.
41492         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41493         HAVE_SCANDIR.
41494         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41495         HAVE_SCANDIR.
41496         * doc/posix-functions/scandir.texi: Mention the new module and the
41497         portability problems.
41498
41499 2009-01-17  Bruno Haible  <bruno@clisp.org>
41500
41501         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41502         Update documentation.
41503         (func_remove_suffix): Escape all dots in the suffix. Update
41504         documentation.
41505         (func_filter_filelist): Update documentation.
41506         Reported by Ralf Wildenhues.
41507
41508 2009-01-17  Bruno Haible  <bruno@clisp.org>
41509
41510         * modules/dprintf-posix-tests: New file.
41511         * tests/test-dprintf-posix.sh: New file.
41512         * tests/test-dprintf-posix.c: New file.
41513
41514         New modules 'dprintf', 'dprintf-posix'.
41515         * lib/stdio.in.h (dprintf): New declaration.
41516         * lib/dprintf.c: New file.
41517         * m4/dprintf.m4: New file.
41518         * m4/dprintf-posix.m4: New file.
41519         * modules/dprintf: New file.
41520         * modules/dprintf-posix: New file.
41521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41522         HAVE_DPRINTF, REPLACE_DPRINTF.
41523         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41524         HAVE_DPRINTF, REPLACE_DPRINTF.
41525         * doc/posix-functions/dprintf.texi: Mention the new modules.
41526
41527 2009-01-17  Bruno Haible  <bruno@clisp.org>
41528
41529         * modules/vdprintf-posix-tests: New file.
41530         * tests/test-vdprintf-posix.sh: New file.
41531         * tests/test-vdprintf-posix.c: New file.
41532
41533         New modules 'vdprintf', 'vdprintf-posix'.
41534         * lib/stdio.in.h (vdprintf): New declaration.
41535         * lib/vdprintf.c: New file.
41536         * m4/vdprintf.m4: New file.
41537         * m4/vdprintf-posix.m4: New file.
41538         * modules/vdprintf: New file.
41539         * modules/vdprintf-posix: New file.
41540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41541         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41542         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41543         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41544         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41545
41546 2009-01-17  Bruno Haible  <bruno@clisp.org>
41547
41548         Fix replacement of fopen on mingw.
41549         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41550         mingw.
41551
41552 2009-01-17  Bruno Haible  <bruno@clisp.org>
41553
41554         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41555         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41556
41557 2009-01-17  Bruno Haible  <bruno@clisp.org>
41558
41559         Avoid test-fflush2.sh failure on mingw.
41560         * tests/test-fflush2.c: Include binary-io.h.
41561         (main): Put standard input into binary mode.
41562         * modules/fflush-tests (Depends-on): Add binary-io.
41563
41564 2009-01-17  Bruno Haible  <bruno@clisp.org>
41565
41566         * lib/wchar.in.h: In another particular situation, include only the
41567         system's <wchar.h> file.
41568         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41569         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41570         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41571
41572 2009-01-17  Bruno Haible  <bruno@clisp.org>
41573
41574         Support for stripping executables in --enable-relocatable.
41575         * build-aux/install-reloc: Expect one more argument, or an environment
41576         variable RELOC_STRIP_PROG. If set, strip the destination program and
41577         its wrapper.
41578         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41579         RELOC_STRIP_PROG.
41580         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41581         to set RELOCATABLE_STRIP.
41582         * NEWS: Mention the new Makefile requirement.
41583
41584 2009-01-17  Bruno Haible  <bruno@clisp.org>
41585
41586         * build-aux/install-reloc: Remove debugging information left over by
41587         C compiler on MacOS X.
41588
41589 2009-01-17  Bruno Haible  <bruno@clisp.org>
41590
41591         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41592         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41593         _NSGetExecutablePath.
41594
41595 2009-01-16  Jim Meyering  <meyering@redhat.com>
41596
41597         strerror: avoid warnings about discarding "const"
41598         * lib/strerror.c (rpl_strerror): Instead of returning a const
41599         string from each and every "case", use a variable, and add a single
41600         cast after the switch.
41601
41602 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41603
41604         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41605
41606 2009-01-16  Bruno Haible  <bruno@clisp.org>
41607
41608         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41609         array initializer syntax that also works in C++ mode.
41610         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41611
41612 2009-01-16  Jim Meyering  <meyering@redhat.com>
41613
41614         poll: suppress a warning
41615         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41616         to ignore "...unsigned expression < 0 is always false" warnings.
41617
41618 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41619
41620         poll: remove declarations of unused variables
41621         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41622         sockbuf and optlen.
41623
41624 2009-01-15  Bruno Haible  <bruno@clisp.org>
41625
41626         Make fflush-after-ungetc POSIX compliant on BSD systems.
41627         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41628         (clear_ungetc_buffer): Implement also for other systems.
41629         (rpl_fflush): On glibc systems, invoke
41630         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41631         clear_ungetc_buffer after fetching the stream's position, not before.
41632
41633 2009-01-15  Bruno Haible  <bruno@clisp.org>
41634
41635         Make fflush-after-ungetc POSIX compliant on glibc systems.
41636         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41637         after ungetc.
41638         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41639         (rpl_fflush): On glibc systems, simply call the system's fflush
41640         function after clearing the ungetc buffer.
41641         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41642         Instead, lseek only to the end of file, then use the system's fseeko
41643         for the rest. On glibc systems, reset the EOF indicator bit.
41644
41645 2009-01-15  Jim Meyering  <meyering@redhat.com>
41646
41647         openmp.m4: revert quote-adding change, for portability to older autoconf
41648         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41649         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41650         Simon Josefsson noticed the problem when using autoconf-2.61.
41651
41652 2009-01-15  Bruno Haible  <bruno@clisp.org>
41653
41654         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41655         * tests/test-fflush2.c (ASSERT): Always fail.
41656         (main): Add two tests for fflush() after ungetc(), taking into account
41657         the Austin Group's clarification.
41658         Suggested by Eric Blake.
41659
41660 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41661
41662         mktime.m4: remove K&R-style function prototypes
41663         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41664         for the Sun C++ compiler.
41665
41666 2009-01-14  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41669         while including <wchar.h>.
41670         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41671         the system's <wchar.h> file.
41672         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41673
41674 2009-01-14  Bruno Haible  <bruno@clisp.org>
41675
41676         * m4/csharp.m4: Don't mention gettext on the serial number line.
41677         * m4/csharpexec.m4: Likewise.
41678         * m4/eaccess.m4: Likewise.
41679         * m4/javaexec.m4: Likewise.
41680         * m4/sig_atomic_t.m4: Likewise.
41681         * m4/tmpdir.m4: Likewise.
41682         * m4/intldir.m4: Bump gettext version.
41683         * m4/lib-ld.m4: Likewise.
41684
41685 2009-01-14  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/progname.c (set_program_name): Add more comments.
41688         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41689
41690 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41691
41692         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41693         were sys/stat.h does not define it.
41694
41695 2009-01-14  Jim Meyering  <meyering@redhat.com>
41696
41697         many *.m4 files: improve m4 quoting
41698         99% of this change was performed by running the following commands:
41699         git ls-files | grep '\.m4$' | xargs perl -pi \
41700           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41701           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41702           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41703           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41704         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41705         The remainder were to add Copyright dates, increment serial numbers,
41706         undo some changes in comments, exclude m4/intl.m4, and add quotes
41707         around the "1" in ",1" where the unusual spacing prohibited the
41708         above regexps from doing the job.  For more details, see
41709         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41710         * m4/acl.m4: Modified.
41711         * m4/afs.m4: Likewise.
41712         * m4/alloca.m4: Likewise.
41713         * m4/argp.m4: Likewise.
41714         * m4/argz.m4: Likewise.
41715         * m4/atexit.m4: Likewise.
41716         * m4/bison-i18n.m4: Likewise.
41717         * m4/bison.m4: Likewise.
41718         * m4/byteswap.m4: Likewise.
41719         * m4/c-stack.m4: Likewise.
41720         * m4/c-strtod.m4: Likewise.
41721         * m4/calloc.m4: Likewise.
41722         * m4/canonicalize-lgpl.m4: Likewise.
41723         * m4/chown.m4: Likewise.
41724         * m4/clock_time.m4: Likewise.
41725         * m4/codeset.m4: Likewise.
41726         * m4/copy-file.m4: Likewise.
41727         * m4/csharp.m4: Likewise.
41728         * m4/csharpcomp.m4: Likewise.
41729         * m4/csharpexec.m4: Likewise.
41730         * m4/d-ino.m4: Likewise.
41731         * m4/d-type.m4: Likewise.
41732         * m4/dirfd.m4: Likewise.
41733         * m4/double-slash-root.m4: Likewise.
41734         * m4/eaccess.m4: Likewise.
41735         * m4/eealloc.m4: Likewise.
41736         * m4/environ.m4: Likewise.
41737         * m4/errno_h.m4: Likewise.
41738         * m4/euidaccess.m4: Likewise.
41739         * m4/execute.m4: Likewise.
41740         * m4/fatal-signal.m4: Likewise.
41741         * m4/fchdir.m4: Likewise.
41742         * m4/fcntl_h.m4: Likewise.
41743         * m4/fileblocks.m4: Likewise.
41744         * m4/filenamecat.m4: Likewise.
41745         * m4/findprog.m4: Likewise.
41746         * m4/flexmember.m4: Likewise.
41747         * m4/fnmatch.m4: Likewise.
41748         * m4/fopen.m4: Likewise.
41749         * m4/fpending.m4: Likewise.
41750         * m4/fprintf-posix.m4: Likewise.
41751         * m4/free.m4: Likewise.
41752         * m4/frexp.m4: Likewise.
41753         * m4/frexpl.m4: Likewise.
41754         * m4/fsusage.m4: Likewise.
41755         * m4/ftruncate.m4: Likewise.
41756         * m4/gc-camellia.m4: Likewise.
41757         * m4/gc-random.m4: Likewise.
41758         * m4/gc.m4: Likewise.
41759         * m4/getaddrinfo.m4: Likewise.
41760         * m4/getcwd-abort-bug.m4: Likewise.
41761         * m4/getcwd-path-max.m4: Likewise.
41762         * m4/getdate.m4: Likewise.
41763         * m4/getdomainname.m4: Likewise.
41764         * m4/getgroups.m4: Likewise.
41765         * m4/gethostname.m4: Likewise.
41766         * m4/gethrxtime.m4: Likewise.
41767         * m4/getline.m4: Likewise.
41768         * m4/getloadavg.m4: Likewise.
41769         * m4/getndelim2.m4: Likewise.
41770         * m4/getpass.m4: Likewise.
41771         * m4/gettext.m4: Likewise.
41772         * m4/gettime.m4: Likewise.
41773         * m4/gettimeofday.m4: Likewise.
41774         * m4/gnulib-common.m4: Likewise.
41775         * m4/group-member.m4: Likewise.
41776         * m4/host-os.m4: Likewise.
41777         * m4/iconv.m4: Likewise.
41778         * m4/iconv_open.m4: Likewise.
41779         * m4/inet_ntop.m4: Likewise.
41780         * m4/inet_pton.m4: Likewise.
41781         * m4/inline.m4: Likewise.
41782         * m4/intldir.m4: Likewise.
41783         * m4/intlmacosx.m4: Likewise.
41784         * m4/intmax.m4: Likewise.
41785         * m4/intmax_t.m4: Likewise.
41786         * m4/inttypes.m4: Likewise.
41787         * m4/inttypes_h.m4: Likewise.
41788         * m4/inttypes-pri.m4: Likewise.
41789         * m4/isapipe.m4: Likewise.
41790         * m4/isnand.m4: Likewise.
41791         * m4/isnanf.m4: Likewise.
41792         * m4/isnanl.m4: Likewise.
41793         * m4/javacomp.m4: Likewise.
41794         * m4/javaexec.m4: Likewise.
41795         * m4/jm-winsz1.m4: Likewise.
41796         * m4/jm-winsz2.m4: Likewise.
41797         * m4/lchown.m4: Likewise.
41798         * m4/lcmessage.m4: Likewise.
41799         * m4/ldexpl.m4: Likewise.
41800         * m4/lib-ld.m4: Likewise.
41801         * m4/lib-link.m4: Likewise.
41802         * m4/libsigsegv.m4: Likewise.
41803         * m4/link-follow.m4: Likewise.
41804         * m4/localcharset.m4: Likewise.
41805         * m4/locale-fr.m4: Likewise.
41806         * m4/locale-ja.m4: Likewise.
41807         * m4/locale-tr.m4: Likewise.
41808         * m4/locale-zh.m4: Likewise.
41809         * m4/lock.m4: Likewise.
41810         * m4/longlong.m4: Likewise.
41811         * m4/ls-mntd-fs.m4: Likewise.
41812         * m4/lstat.m4: Likewise.
41813         * m4/malloc.m4: Likewise.
41814         * m4/mathl.m4: Likewise.
41815         * m4/mbrtowc.m4: Likewise.
41816         * m4/mbstate_t.m4: Likewise.
41817         * m4/mbswidth.m4: Likewise.
41818         * m4/memchr.m4: Likewise.
41819         * m4/memcmp.m4: Likewise.
41820         * m4/memcpy.m4: Likewise.
41821         * m4/memmem.m4: Likewise.
41822         * m4/memmove.m4: Likewise.
41823         * m4/mempcpy.m4: Likewise.
41824         * m4/memrchr.m4: Likewise.
41825         * m4/memset.m4: Likewise.
41826         * m4/minmax.m4: Likewise.
41827         * m4/mkdir-slash.m4: Likewise.
41828         * m4/mkdtemp.m4: Likewise.
41829         * m4/mktime.m4: Likewise.
41830         * m4/mmap-anon.m4: Likewise.
41831         * m4/mountlist.m4: Likewise.
41832         * m4/nanosleep.m4: Likewise.
41833         * m4/nls.m4: Likewise.
41834         * m4/nocrash.m4: Likewise.
41835         * m4/open.m4: Likewise.
41836         * m4/openat.m4: Likewise.
41837         * m4/openmp.m4: Likewise.
41838         * m4/pathmax.m4: Likewise.
41839         * m4/perl.m4: Likewise.
41840         * m4/physmem.m4: Likewise.
41841         * m4/pipe.m4: Likewise.
41842         * m4/po.m4: Likewise.
41843         * m4/poll.m4: Likewise.
41844         * m4/posixtm.m4: Likewise.
41845         * m4/posixver.m4: Likewise.
41846         * m4/printf-frexp.m4: Likewise.
41847         * m4/printf-frexpl.m4: Likewise.
41848         * m4/printf-posix.m4: Likewise.
41849         * m4/printf-posix-rpl.m4: Likewise.
41850         * m4/printf.m4: Likewise.
41851         * m4/progtest.m4: Likewise.
41852         * m4/putenv.m4: Likewise.
41853         * m4/readline.m4: Likewise.
41854         * m4/readlink.m4: Likewise.
41855         * m4/readutmp.m4: Likewise.
41856         * m4/realloc.m4: Likewise.
41857         * m4/regex.m4: Likewise.
41858         * m4/relocatable.m4: Likewise.
41859         * m4/relocatable-lib.m4: Likewise.
41860         * m4/rename-dest-slash.m4: Likewise.
41861         * m4/rename.m4: Likewise.
41862         * m4/rmdir-errno.m4: Likewise.
41863         * m4/rmdir.m4: Likewise.
41864         * m4/roundf.m4: Likewise.
41865         * m4/roundl.m4: Likewise.
41866         * m4/rpmatch.m4: Likewise.
41867         * m4/save-cwd.m4: Likewise.
41868         * m4/selinux-selinux-h.m4: Likewise.
41869         * m4/setenv.m4: Likewise.
41870         * m4/settime.m4: Likewise.
41871         * m4/sig2str.m4: Likewise.
41872         * m4/sig_atomic_t.m4: Likewise.
41873         * m4/signalblocking.m4: Likewise.
41874         * m4/signbit.m4: Likewise.
41875         * m4/sigpipe.m4: Likewise.
41876         * m4/sockets.m4: Likewise.
41877         * m4/sockpfaf.m4: Likewise.
41878         * m4/st_dm_mode.m4: Likewise.
41879         * m4/stat-time.m4: Likewise.
41880         * m4/stdbool.m4: Likewise.
41881         * m4/stdint.m4: Likewise.
41882         * m4/stdint_h.m4: Likewise.
41883         * m4/stpcpy.m4: Likewise.
41884         * m4/stpncpy.m4: Likewise.
41885         * m4/strcase.m4: Likewise.
41886         * m4/strchrnul.m4: Likewise.
41887         * m4/strcspn.m4: Likewise.
41888         * m4/strdup.m4: Likewise.
41889         * m4/strftime.m4: Likewise.
41890         * m4/strndup.m4: Likewise.
41891         * m4/strnlen.m4: Likewise.
41892         * m4/strpbrk.m4: Likewise.
41893         * m4/strptime.m4: Likewise.
41894         * m4/strsep.m4: Likewise.
41895         * m4/strtod.m4: Likewise.
41896         * m4/strtoimax.m4: Likewise.
41897         * m4/strtok_r.m4: Likewise.
41898         * m4/strtol.m4: Likewise.
41899         * m4/strtoll.m4: Likewise.
41900         * m4/strtoul.m4: Likewise.
41901         * m4/strtoull.m4: Likewise.
41902         * m4/strtoumax.m4: Likewise.
41903         * m4/strverscmp.m4: Likewise.
41904         * m4/threadlib.m4: Likewise.
41905         * m4/timegm.m4: Likewise.
41906         * m4/tm_gmtoff.m4: Likewise.
41907         * m4/tmpdir.m4: Likewise.
41908         * m4/tmpfile.m4: Likewise.
41909         * m4/tzset.m4: Likewise.
41910         * m4/uintmax_t.m4: Likewise.
41911         * m4/unlinkdir.m4: Likewise.
41912         * m4/unlocked-io.m4: Likewise.
41913         * m4/uptime.m4: Likewise.
41914         * m4/userspec.m4: Likewise.
41915         * m4/utimbuf.m4: Likewise.
41916         * m4/utime.m4: Likewise.
41917         * m4/utimes-null.m4: Likewise.
41918         * m4/utimes.m4: Likewise.
41919         * m4/vararrays.m4: Likewise.
41920         * m4/vasnprintf.m4: Likewise.
41921         * m4/vfprintf-posix.m4: Likewise.
41922         * m4/vprintf-posix.m4: Likewise.
41923         * m4/wait-process.m4: Likewise.
41924         * m4/wchar_t.m4: Likewise.
41925         * m4/wint_t.m4: Likewise.
41926         * m4/write-any-file.m4: Likewise.
41927         * m4/yield.m4: Likewise.
41928
41929 2009-01-13  Bruno Haible  <bruno@clisp.org>
41930
41931         Avoid test-copy-file.sh failures when ACL support insufficient.
41932         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41933         TESTS_ENVIRONMENT.
41934         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41935         Reported by Jim Meyering.
41936
41937 2009-01-13  Bruno Haible  <bruno@clisp.org>
41938
41939         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41940         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41941         * modules/unistdio/u8-printf-parse (Files): Likewise.
41942         * modules/unistdio/u32-printf-parse (Files): Likewise.
41943         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41944
41945 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41946
41947         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41948         and m4/inttypes_h.m4 too.
41949
41950 2009-01-12  Eric Blake  <ebb9@byu.net>
41951
41952         tests: IRIX 6.2 cc can't compile -0.0 into .data
41953         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41954         rather than at compile-time.
41955         * tests/test-floorl.c (minus_zero): Likewise.
41956         * tests/test-frexpl.c (minus_zero): Likewise.
41957         * tests/test-isnan.c (minus_zerol): Likewise.
41958         * tests/test-isnanl.h (minus_zero): Likewise.
41959         * tests/test-ldexpl.c (minus_zero): Likewise.
41960         * tests/test-roundl.c (minus_zero): Likewise.
41961         * tests/test-signbit.c (minus_zerol): Likewise.
41962         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41963         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41964         * tests/test-truncl.c (minus_zero): Likewise.
41965         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41966         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41967         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41968
41969 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41970
41971         regex: fix glibc bug 9697
41972         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41973         handling.
41974
41975 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41976
41977         regex: fix glibc bug 697
41978         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41979         being NULL also if there are no backreferences.
41980
41981 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41982
41983         regex: merge glibc changes
41984         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41985         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41986         re_string_skip_chars, re_string_reconstruct): Likewise.
41987         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41988
41989 2009-01-07  Jim Meyering  <meyering@redhat.com>
41990
41991         poll: filter through cppi
41992         * lib/poll.c: Indent cpp directives to reflect nesting.
41993
41994 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41995
41996         poll: don't return uninitialized
41997         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41998
41999 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42000
42001         avoid compile failure on AIX 6.1
42002         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42003         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42004
42005 2009-01-04  Jim Meyering  <meyering@redhat.com>
42006
42007         remove duplicate inclusion of <stdio.h>
42008         * tests/test-fprintf-posix.c: Likewise.
42009         * tests/test-printf-posix.c: Likewise.
42010         * tests/test-snprintf-posix.c: Likewise.
42011         * tests/test-sprintf-posix.c: Likewise.
42012         * tests/test-vasprintf-posix.c: Likewise.
42013         * tests/test-vfprintf-posix.c: Likewise.
42014         * tests/test-vprintf-posix.c: Likewise.
42015         * tests/test-vsnprintf-posix.c: Likewise.
42016         * tests/test-vsprintf-posix.c: Likewise.
42017
42018 2009-01-03  Jim Meyering  <meyering@redhat.com>
42019
42020         gnulib-tool: fix sed-based filtering
42021         * gnulib-tool (func_filter_filelist): Remove extra backslash
42022         in sed_fff_filter definition.
42023
42024 2009-01-02  Jim Meyering  <meyering@redhat.com>
42025
42026         strftime: avoid compilation failure on Solaris 2.6
42027         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42028         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42029         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42030         be available.  Reported by Tom G. Christensen.  Details in
42031         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42032
42033 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42034             Bruno Haible  <bruno@clisp.org>
42035
42036         Speed up gnulib-tool by doing more string processing through shell
42037         built-ins.
42038         * gnulib-tool (fast_func_append): New variable.
42039         (func_remove_prefix, func_remove_suffix): New functions.
42040         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42041         (func_filter_filelist): New function.
42042         (func_get_dependencies): Use func_remove_suffix instead of sed.
42043         (func_get_automake_snippet): Use func_filter_filelist instead of a
42044         subshell and sed invocation.
42045
42046 2009-01-01  Bruno Haible  <bruno@clisp.org>
42047
42048         Fix a security bug.
42049         * gnulib-tool (func_import, import, update): Don't allow the characters
42050         '"', '$', '`', '\' in macro arguments that become part of commands that
42051         are evaluated.
42052
42053 2009-01-01  Bruno Haible  <bruno@clisp.org>
42054
42055         * gnulib-tool (func_reset_sigpipe): Add more comments.
42056
42057 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42058
42059         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42060         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42061         already know the answer.
42062
42063 2009-01-01  Jim Meyering  <meyering@redhat.com>
42064
42065         * lib/version-etc.c (version_etc_va): Update copyright year.
42066
42067 2008-12-30  Bruno Haible  <bruno@clisp.org>
42068
42069         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42070         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42071         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42072
42073 2008-12-29  Eric Blake  <ebb9@byu.net>
42074
42075         multiarch: avoid autoconf AC_REQUIRE bug
42076         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42077         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42078         2.63 and older.
42079         Reported by Bruno Haible, and analyzed in
42080         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42081
42082 2008-12-29  Bruno Haible  <bruno@clisp.org>
42083
42084         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42085         files in subdirectories correctly.
42086         Reported by Ralf Wildenhues.
42087
42088 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42089
42090         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42091         rather than 'join FILE -', for Solaris join.
42092
42093 2008-12-29  Bruno Haible  <bruno@clisp.org>
42094
42095         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42096         quoting.
42097         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42098         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42099         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42100         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42101         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42102         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42103         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42104         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42105         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42106         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42107         * m4/nls.m4 (AM_NLS): Likewise.
42108         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42109         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42110         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42111         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42112         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42113         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42114         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42115         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42116         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42117         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42118         * m4/xsize.m4 (gl_XSIZE): Likewise.
42119         Suggested by Jim Meyering.
42120
42121 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42122
42123         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42124         * lib/parse-duration.c: use a switch instead of cascading if's.
42125
42126 2008-12-29  Eric Blake  <ebb9@byu.net>
42127
42128         wchar.h: supply WEOF on Irix 5.3
42129         * lib/wchar.in.h (wint_t): Also supply WEOF.
42130         * lib/wctype.in.h (wint_t): Likewise.
42131         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42132         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42133         Reported by Tom G. Christensen.
42134
42135 2008-12-26  Bruno Haible  <bruno@clisp.org>
42136
42137         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42138         i486, i586, i686.
42139
42140 2008-12-26  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42143
42144 2008-12-26  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42147         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42148         not __STDC_CONSTANT_MACROS.
42149         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42150
42151 2008-12-25  Bruno Haible  <bruno@clisp.org>
42152
42153         Add support for universal builds to vasnprintf.
42154         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42155         universal builds, guess no.
42156         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42157         * modules/vasprintf-posix (Depends-on): Likewise.
42158         * modules/fprintf-posix (Depends-on): Likewise.
42159         * modules/vfprintf-posix (Depends-on): Likewise.
42160         * modules/snprintf-posix (Depends-on): Likewise.
42161         * modules/vsnprintf-posix (Depends-on): Likewise.
42162         * modules/sprintf-posix (Depends-on): Likewise.
42163         * modules/vsprintf-posix (Depends-on): Likewise.
42164         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42165         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42166         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42167         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42168         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42169         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42171
42172         Add support for universal builds to <inttypes.h>.
42173         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42174         _SCNu64_PREFIX): In Apple
42175         universal builds, define directly, using _LP64.
42176         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42177         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42178         * modules/inttypes (Depends-on): Add multiarch.
42179         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42180
42181         Add support for universal builds to <stdint.h>.
42182         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42183         universal builds, define directly, using _LP64.
42184         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42185         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42186         and size_t.
42187         * modules/stdint (Depends-on): Add multiarch.
42188         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42189
42190         New module 'multiarch'.
42191         * modules/multiarch: New file.
42192         * m4/multiarch.m4: New file.
42193
42194 2008-12-25  Bruno Haible  <bruno@clisp.org>
42195
42196         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42197
42198 2008-12-25  Bruno Haible  <bruno@clisp.org>
42199
42200         * modules/btowc (License): Relicense under LGPLv2+.
42201         * modules/mbsinit (License): Likewise.
42202         * modules/mbrtowc (License): Likewise.
42203         * modules/wcrtomb (License): Likewise.
42204         * modules/streq (License): Likewise.
42205         Reported by David Lutterkort <lutter@redhat.com>.
42206
42207 2008-12-23  Bruno Haible  <bruno@clisp.org>
42208
42209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42210
42211 2008-12-23  Bruno Haible  <bruno@clisp.org>
42212
42213         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42215         GETADDRINFO_LIB, not in LIBS.
42216         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42217         * modules/canon-host (Link): Likewise.
42218         * NEWS: Mention the change.
42219         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42220         GETADDRINFO_LIB.
42221
42222 2008-12-22  Bruno Haible  <bruno@clisp.org>
42223
42224         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42225         * doc/posix-functions/iswalpha_l.texi: Likewise.
42226         * doc/posix-functions/iswblank_l.texi: Likewise.
42227         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42228         * doc/posix-functions/iswctype_l.texi: Likewise.
42229         * doc/posix-functions/iswdigit_l.texi: Likewise.
42230         * doc/posix-functions/iswgraph_l.texi: Likewise.
42231         * doc/posix-functions/iswlower_l.texi: Likewise.
42232         * doc/posix-functions/iswprint_l.texi: Likewise.
42233         * doc/posix-functions/iswpunct_l.texi: Likewise.
42234         * doc/posix-functions/iswspace_l.texi: Likewise.
42235         * doc/posix-functions/iswupper_l.texi: Likewise.
42236         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42237         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42238         * doc/posix-functions/open_wmemstream.texi: Likewise.
42239         * doc/posix-functions/swscanf.texi: Likewise.
42240         * doc/posix-functions/towctrans_l.texi: Likewise.
42241         * doc/posix-functions/towlower.texi: Likewise.
42242         * doc/posix-functions/towlower_l.texi: Likewise.
42243         * doc/posix-functions/towupper.texi: Likewise.
42244         * doc/posix-functions/towupper_l.texi: Likewise.
42245         * doc/posix-functions/vfwprintf.texi: Likewise.
42246         * doc/posix-functions/vfwscanf.texi: Likewise.
42247         * doc/posix-functions/vswscanf.texi: Likewise.
42248         * doc/posix-functions/vwprintf.texi: Likewise.
42249         * doc/posix-functions/vwscanf.texi: Likewise.
42250         * doc/posix-functions/wcpcpy.texi: Likewise.
42251         * doc/posix-functions/wcpncpy.texi: Likewise.
42252         * doc/posix-functions/wcscasecmp.texi: Likewise.
42253         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42254         * doc/posix-functions/wcscoll_l.texi: Likewise.
42255         * doc/posix-functions/wcsdup.texi: Likewise.
42256         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42257         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42258         * doc/posix-functions/wcsnlen.texi: Likewise.
42259         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42260         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42261         * doc/posix-functions/wctrans_l.texi: Likewise.
42262         * doc/posix-functions/wctype_l.texi: Likewise.
42263         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42264         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42265         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42266         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42267         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42268         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42269         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42270         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42271         * doc/glibc-functions/wcschrnul.texi: Likewise.
42272         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42273         * doc/glibc-functions/wcstod_l.texi: Likewise.
42274         * doc/glibc-functions/wcstof_l.texi: Likewise.
42275         * doc/glibc-functions/wcstol_l.texi: Likewise.
42276         * doc/glibc-functions/wcstold_l.texi: Likewise.
42277         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42278         * doc/glibc-functions/wcstoq.texi: Likewise.
42279         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42280         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42281         * doc/glibc-functions/wcstouq.texi: Likewise.
42282         * doc/glibc-functions/wmempcpy.texi: Likewise.
42283
42284 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42285             Eric Blake  <ebb9@byu.net>
42286             Paolo Bonzini  <bonzini@gnu.org>
42287             Bruno Haible  <bruno@clisp.org>
42288
42289         Make c-stack work on Haiku.
42290         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42291         (c_stack_action): Use SA_ONSTACK flag.
42292
42293 2008-12-22  Bruno Haible  <bruno@clisp.org>
42294
42295         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42296
42297 2008-12-22  Bruno Haible  <bruno@clisp.org>
42298
42299         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42300         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42301         being overridden.
42302         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42303         New macros.
42304         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42306         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42307         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42308
42309 2008-12-22  Bruno Haible  <bruno@clisp.org>
42310
42311         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42312         from test code.
42313
42314 2008-12-22  Eric Blake  <ebb9@byu.net>
42315
42316         Avoid gcc warnings on cygwin.
42317         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42318         Avoid unused variable.
42319         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42320         Likewise.
42321
42322 2008-12-22  Bruno Haible  <bruno@clisp.org>
42323
42324         Remove HAVE_MBRTOWC conditionals.
42325         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42326         (mbscasecmp): Assume mbrtowc function.
42327         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42328         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42329         * lib/mbschr.c: Include mbuiter.h unconditionally.
42330         (mbschr): Assume mbrtowc function.
42331         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42332         (mbscspn): Assume mbrtowc function.
42333         * lib/mbslen.c: Include mbuiter.h unconditionally.
42334         (mbslen): Assume mbrtowc function.
42335         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42336         (mbsncasecmp): Assume mbrtowc function.
42337         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42338         (mbsnlen): Assume mbrtowc function.
42339         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42340         (mbspbrk): Assume mbrtowc function.
42341         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42342         (mbspcasecmp): Assume mbrtowc function.
42343         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42344         (mbsrchr): Assume mbrtowc function.
42345         * lib/mbssep.c: Include mbuiter.h unconditionally.
42346         (mbssep): Assume mbrtowc function.
42347         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42348         (mbsspn): Assume mbrtowc function.
42349         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42350         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42351         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42352         (mbstok_r): Assume mbrtowc function.
42353         * lib/propername.c: Include mbuiter.h unconditionally.
42354         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42355         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42356         (trim2): Assume mbrtowc function.
42357         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42358         (mbsnwidth): Assume mbrtowc function.
42359         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42360         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42361         fallback definitions.
42362         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42363
42364 2008-12-22  Bruno Haible  <bruno@clisp.org>
42365
42366         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42367
42368 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42369
42370         * modules/regex: Request emulations for the mb*/wc* functions we need.
42371         * m4/regex.m4: Don't look for those functions here.
42372         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42373
42374 2008-12-22  Bruno Haible  <bruno@clisp.org>
42375
42376         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42377
42378 2008-12-21  Bruno Haible  <bruno@clisp.org>
42379
42380         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42381         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42382         (Include): Remove conditionalization.
42383         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42384         (Include): Remove conditionalization.
42385         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42386         (Include): Remove conditionalization.
42387         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42388         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42389         * NEWS: Mention the change.
42390         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42391         via Sergey Poznyakoff <gray@gnu.org.ua>.
42392
42393 2008-12-21  Bruno Haible  <bruno@clisp.org>
42394
42395         * MODULES.html.sh (Extended multibyte and wide character utilities
42396         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42397         wcrtomb, wcsrtombs.
42398         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42399         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42400         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42401         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42402
42403 2008-12-21  Bruno Haible  <bruno@clisp.org>
42404
42405         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42406
42407 2008-12-21  Bruno Haible  <bruno@clisp.org>
42408
42409         * modules/wcsnrtombs-tests: New file.
42410         * tests/test-wcsnrtombs1.sh: New file.
42411         * tests/test-wcsnrtombs2.sh: New file.
42412         * tests/test-wcsnrtombs3.sh: New file.
42413         * tests/test-wcsnrtombs4.sh: New file.
42414         * tests/test-wcsnrtombs.c: New file.
42415
42416         New module 'wcsnrtombs'.
42417         * lib/wchar.in.h (wcsnrtombs): New declaration.
42418         * lib/wcsnrtombs.c: New file.
42419         * lib/wcsrtombs-state.c: New file.
42420         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42421         (internal_state): Remove variable.
42422         * m4/wcsnrtombs.m4: New file.
42423         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42424         compilation units.
42425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42426         HAVE_WCSNRTOMBS.
42427         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42428         HAVE_WCSNRTOMBS.
42429         * modules/wcsnrtombs: New file.
42430         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42431         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42432
42433 2008-12-21  Bruno Haible  <bruno@clisp.org>
42434
42435         * modules/wcsrtombs-tests: New file.
42436         * tests/test-wcsrtombs1.sh: New file.
42437         * tests/test-wcsrtombs2.sh: New file.
42438         * tests/test-wcsrtombs3.sh: New file.
42439         * tests/test-wcsrtombs4.sh: New file.
42440         * tests/test-wcsrtombs.c: New file.
42441
42442         New module 'wcsrtombs'.
42443         * lib/wchar.in.h (wcsrtombs): New declaration.
42444         * lib/wcsrtombs.c: New file.
42445         * m4/wcsrtombs.m4: New file.
42446         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42447         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42449         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42450         * modules/wcsrtombs: New file.
42451         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42452         bugs.
42453
42454 2008-12-21  Bruno Haible  <bruno@clisp.org>
42455
42456         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42457         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42458         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42459         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42460         if not correct.
42461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42462         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42463         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42464         m4/locale-zh.m4, m4/codeset.m4.
42465         * doc/posix-functions/wcrtomb.texi: Document the bug.
42466
42467 2008-12-21  Bruno Haible  <bruno@clisp.org>
42468
42469         Work around a btowc() bug on IRIX 6.5.
42470         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42471         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42472         REPLACE_WTOBC if not.
42473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42474         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42475         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42476
42477 2008-12-21  Bruno Haible  <bruno@clisp.org>
42478
42479         * modules/wcrtomb-tests: New file.
42480         * tests/test-wcrtomb.sh: New file.
42481         * tests/test-wcrtomb.c: New file.
42482
42483         New module 'wcrtomb'.
42484         * lib/wchar.in.h (wcrtomb): New declaration.
42485         * lib/wcrtomb.c: New file.
42486         * m4/wcrtomb.m4: New file.
42487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42488         HAVE_WCRTOMB.
42489         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42490         HAVE_WCRTOMB.
42491         * modules/wcrtomb: New file.
42492         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42493
42494 2008-12-21  Bruno Haible  <bruno@clisp.org>
42495
42496         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42497         * modules/mbsrtowcs (Files): Likewise.
42498         * modules/wctob (Files): Likewise.
42499         * modules/c-strcase-tests (Files): Likewise.
42500         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42501         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42502         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42503         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42504         * modules/vasnprintf-posix-tests (Files): Likewise.
42505
42506 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42507
42508         gitlog-to-changelog: pass all command-line arguments to git-log
42509         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42510         it is sometimes convenient to filter the commits in various ways.
42511         gitlog-to-changelog only allows --since to specify a start date,
42512         but git-log itself supports many other filtering mechanisms.
42513         At the moment, I want to filter by branch name.  Rather than
42514         adding a --branch option to gitlog-to-changelog, it seems more
42515         flexible to simply pass all options directly to git-log and let
42516         git do the work.  Notice that this effectively makes --since a
42517         redundant option for gitlog-to-changelog, but removing it would
42518         require current usage to change since calls would then require
42519         an additional '--'.
42520
42521 2008-12-21  Bruno Haible  <bruno@clisp.org>
42522
42523         * modules/mbsnrtowcs-tests: New file.
42524         * tests/test-mbsnrtowcs1.sh: New file.
42525         * tests/test-mbsnrtowcs2.sh: New file.
42526         * tests/test-mbsnrtowcs3.sh: New file.
42527         * tests/test-mbsnrtowcs4.sh: New file.
42528         * tests/test-mbsnrtowcs.c: New file.
42529
42530         New module 'mbsnrtowcs'.
42531         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42532         * lib/mbsnrtowcs.c: New file.
42533         * lib/mbsrtowcs-state.c: New file.
42534         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42535         (internal_state): Remove variable.
42536         * m4/mbsnrtowcs.m4: New file.
42537         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42538         compilation units.
42539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42540         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42541         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42542         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42543         * modules/mbsnrtowcs: New file.
42544         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42545         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42546         portability problem.
42547
42548 2008-12-21  Bruno Haible  <bruno@clisp.org>
42549
42550         Work around mbsrtowcs bug.
42551         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42552         (gl_FUNC_MBSRTOWCS): Invoke it.
42553         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42554         m4/locale-zh.m4.
42555         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42556
42557 2008-12-21  Bruno Haible  <bruno@clisp.org>
42558
42559         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42560
42561 2008-12-21  Bruno Haible  <bruno@clisp.org>
42562
42563         Update doc for AIX.
42564         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42565         16-bit wchar_t type.
42566         * doc/posix-functions/btowc.texi: Likewise.
42567         * doc/posix-functions/fgetwc.texi: Likewise.
42568         * doc/posix-functions/fgetws.texi: Likewise.
42569         * doc/posix-functions/fputwc.texi: Likewise.
42570         * doc/posix-functions/fputws.texi: Likewise.
42571         * doc/posix-functions/fwide.texi: Likewise.
42572         * doc/posix-functions/fwprintf.texi: Likewise.
42573         * doc/posix-functions/fwscanf.texi: Likewise.
42574         * doc/posix-functions/getwchar.texi: Likewise.
42575         * doc/posix-functions/getwc.texi: Likewise.
42576         * doc/posix-functions/iswalnum.texi: Likewise.
42577         * doc/posix-functions/iswalpha.texi: Likewise.
42578         * doc/posix-functions/iswblank.texi: Likewise.
42579         * doc/posix-functions/iswcntrl.texi: Likewise.
42580         * doc/posix-functions/iswctype.texi: Likewise.
42581         * doc/posix-functions/iswdigit.texi: Likewise.
42582         * doc/posix-functions/iswgraph.texi: Likewise.
42583         * doc/posix-functions/iswlower.texi: Likewise.
42584         * doc/posix-functions/iswprint.texi: Likewise.
42585         * doc/posix-functions/iswpunct.texi: Likewise.
42586         * doc/posix-functions/iswspace.texi: Likewise.
42587         * doc/posix-functions/iswupper.texi: Likewise.
42588         * doc/posix-functions/iswxdigit.texi: Likewise.
42589         * doc/posix-functions/mbrtowc.texi: Likewise.
42590         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42591         * doc/posix-functions/mbstowcs.texi: Likewise.
42592         * doc/posix-functions/mbtowc.texi: Likewise.
42593         * doc/posix-functions/putwchar.texi: Likewise.
42594         * doc/posix-functions/putwc.texi: Likewise.
42595         * doc/posix-functions/swprintf.texi: Likewise.
42596         * doc/posix-functions/tolower.texi: Likewise.
42597         * doc/posix-functions/toupper.texi: Likewise.
42598         * doc/posix-functions/towctrans.texi: Likewise.
42599         * doc/posix-functions/ungetwc.texi: Likewise.
42600         * doc/posix-functions/vswprintf.texi: Likewise.
42601         * doc/posix-functions/wcrtomb.texi: Likewise.
42602         * doc/posix-functions/wcscat.texi: Likewise.
42603         * doc/posix-functions/wcschr.texi: Likewise.
42604         * doc/posix-functions/wcscmp.texi: Likewise.
42605         * doc/posix-functions/wcscoll.texi: Likewise.
42606         * doc/posix-functions/wcscpy.texi: Likewise.
42607         * doc/posix-functions/wcscspn.texi: Likewise.
42608         * doc/posix-functions/wcsftime.texi: Likewise.
42609         * doc/posix-functions/wcslen.texi: Likewise.
42610         * doc/posix-functions/wcsncat.texi: Likewise.
42611         * doc/posix-functions/wcsncmp.texi: Likewise.
42612         * doc/posix-functions/wcsncpy.texi: Likewise.
42613         * doc/posix-functions/wcspbrk.texi: Likewise.
42614         * doc/posix-functions/wcsrchr.texi: Likewise.
42615         * doc/posix-functions/wcsrtombs.texi: Likewise.
42616         * doc/posix-functions/wcsspn.texi: Likewise.
42617         * doc/posix-functions/wcsstr.texi: Likewise.
42618         * doc/posix-functions/wcstod.texi: Likewise.
42619         * doc/posix-functions/wcstof.texi: Likewise.
42620         * doc/posix-functions/wcstoimax.texi: Likewise.
42621         * doc/posix-functions/wcstok.texi: Likewise.
42622         * doc/posix-functions/wcstold.texi: Likewise.
42623         * doc/posix-functions/wcstoll.texi: Likewise.
42624         * doc/posix-functions/wcstol.texi: Likewise.
42625         * doc/posix-functions/wcstombs.texi: Likewise.
42626         * doc/posix-functions/wcstoull.texi: Likewise.
42627         * doc/posix-functions/wcstoul.texi: Likewise.
42628         * doc/posix-functions/wcstoumax.texi: Likewise.
42629         * doc/posix-functions/wcswidth.texi: Likewise.
42630         * doc/posix-functions/wcsxfrm.texi: Likewise.
42631         * doc/posix-functions/wctob.texi: Likewise.
42632         * doc/posix-functions/wctomb.texi: Likewise.
42633         * doc/posix-functions/wctrans.texi: Likewise.
42634         * doc/posix-functions/wctype.texi: Likewise.
42635         * doc/posix-functions/wcwidth.texi: Likewise.
42636         * doc/posix-functions/wmemchr.texi: Likewise.
42637         * doc/posix-functions/wmemcmp.texi: Likewise.
42638         * doc/posix-functions/wmemcpy.texi: Likewise.
42639         * doc/posix-functions/wmemmove.texi: Likewise.
42640         * doc/posix-functions/wmemset.texi: Likewise.
42641         * doc/posix-functions/wprintf.texi: Likewise.
42642         * doc/posix-functions/wscanf.texi: Likewise.
42643
42644 2008-12-21  Bruno Haible  <bruno@clisp.org>
42645
42646         Update doc for HP-UX 11.11.
42647         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42648         in HP-UX version 11.00, not in all versions of HP-UX 11.
42649         * doc/posix-functions/fwide.texi: Likewise.
42650         * doc/posix-functions/fwprintf.texi: Likewise.
42651         * doc/posix-functions/fwscanf.texi: Likewise.
42652         * doc/posix-functions/inet_ntop.texi: Likewise.
42653         * doc/posix-functions/inet_pton.texi: Likewise.
42654         * doc/posix-functions/mbrlen.texi: Likewise.
42655         * doc/posix-functions/mbrtowc.texi: Likewise.
42656         * doc/posix-functions/mbsinit.texi: Likewise.
42657         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42658         * doc/posix-functions/swprintf.texi: Likewise.
42659         * doc/posix-functions/swscanf.texi: Likewise.
42660         * doc/posix-functions/towctrans.texi: Likewise.
42661         * doc/posix-functions/vfwprintf.texi: Likewise.
42662         * doc/posix-functions/vswprintf.texi: Likewise.
42663         * doc/posix-functions/vwprintf.texi: Likewise.
42664         * doc/posix-functions/wcrtomb.texi: Likewise.
42665         * doc/posix-functions/wcsrtombs.texi: Likewise.
42666         * doc/posix-functions/wcsstr.texi: Likewise.
42667         * doc/posix-functions/wctob.texi: Likewise.
42668         * doc/posix-functions/wctrans.texi: Likewise.
42669         * doc/posix-functions/wmemchr.texi: Likewise.
42670         * doc/posix-functions/wmemcmp.texi: Likewise.
42671         * doc/posix-functions/wmemcpy.texi: Likewise.
42672         * doc/posix-functions/wmemmove.texi: Likewise.
42673         * doc/posix-functions/wmemset.texi: Likewise.
42674         * doc/posix-functions/wprintf.texi: Likewise.
42675         * doc/posix-functions/wscanf.texi: Likewise.
42676
42677 2008-12-21  Bruno Haible  <bruno@clisp.org>
42678
42679         Work around a portability problem.
42680         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42681         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42682
42683 2008-12-20  Bruno Haible  <bruno@clisp.org>
42684
42685         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42686         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42687         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42689         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42690
42691         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42692         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42693         set.
42694         (GNULIB_defined_mbstate_t): New macro.
42695         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42696         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42697         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42698         reuses the system's mbrtowc function but works around the bugs.
42699         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42700         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42701         macros.
42702         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42703         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42704         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42705         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42706         REPLACE_MBSINIT if mbsinit needs to be overridden.
42707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42708         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42709         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42710         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42711         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42712         m4/locale-zh.m4.
42713         (Depends): Add mbsinit.
42714         * modules/mbsinit (Depends): Add mbrtowc.
42715         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42716
42717 2008-12-20  Bruno Haible  <bruno@clisp.org>
42718
42719         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42720         so that there are no conversion errors on AIX.
42721         * tests/test-mbsrtowcs.c (main): LIkewise.
42722
42723 2008-12-20  Bruno Haible  <bruno@clisp.org>
42724
42725         Work around wctob bug on Solaris <= 9.
42726         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42727         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42729         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42730         * modules/wctob (Files): Add m4/locale-fr.m4.
42731         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42732
42733 2008-12-20  Bruno Haible  <bruno@clisp.org>
42734
42735         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42736         /dev/null.
42737         * tests/test-select-in.sh: Likewise.
42738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42739
42740 2008-12-20  Bruno Haible  <bruno@clisp.org>
42741
42742         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42743         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42744         Cygwin 1.5.x.
42745
42746 2008-12-20  Bruno Haible  <bruno@clisp.org>
42747
42748         Ensure mbstate_t is defined on HP-UX 11.11.
42749         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42750         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42751         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42752         AC_USE_SYSTEM_EXTENSIONS.
42753         * modules/fnmatch (Depends-on): Add extensions.
42754         * modules/mbrlen (Depends-on): Likewise.
42755         * modules/mbrtowc (Depends-on): Likewise.
42756         * modules/mbsinit (Depends-on): Likewise.
42757         * modules/mbsrtowcs (Depends-on): Likewise.
42758         * modules/mbswidth (Depends-on): Likewise.
42759         * modules/quotearg (Depends-on): Likewise.
42760         * modules/strftime (Depends-on): Likewise.
42761
42762 2008-12-20  Bruno Haible  <bruno@clisp.org>
42763
42764         Ensure wctob is declared on IRIX 6.5.
42765         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42766         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42767         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42769         of HAVE_WCTOB.
42770         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42771         HAVE_WCTOB.
42772         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42773
42774 2008-12-19  Bruno Haible  <bruno@clisp.org>
42775
42776         * modules/mbsrtowcs-tests: New file.
42777         * tests/test-mbsrtowcs1.sh: New file.
42778         * tests/test-mbsrtowcs2.sh: New file.
42779         * tests/test-mbsrtowcs3.sh: New file.
42780         * tests/test-mbsrtowcs4.sh: New file.
42781         * tests/test-mbsrtowcs.c: New file.
42782
42783         New module 'mbsrtowcs'.
42784         * lib/wchar.in.h (mbsrtowcs): New declaration.
42785         * lib/mbsrtowcs.c: New file.
42786         * m4/mbsrtowcs.m4: New file.
42787         * modules/mbsrtowcs: New file.
42788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42789         HAVE_MBSRTOWCS.
42790         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42791         HAVE_MBSRTOWCS.
42792         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42793
42794 2008-12-19  Bruno Haible  <bruno@clisp.org>
42795
42796         New module 'mbrlen'.
42797         * lib/wchar.in.h (mbrlen): New declaration.
42798         * lib/mbrlen.c: New file.
42799         * m4/mbrlen.m4: New file.
42800         * modules/mbrlen: New file.
42801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42802         HAVE_MBRLEN.
42803         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42804         HAVE_MBRLEN.
42805         * doc/posix-functions/mbrlen.texi: Document the new module.
42806
42807 2008-12-19  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42810         * modules/mbrtowc (Depends-on): Add verify.
42811         Suggested by Paul Eggert.
42812
42813 2008-12-18  Bruno Haible  <bruno@clisp.org>
42814
42815         * modules/mbsinit-tests: New file.
42816         * tests/test-mbsinit.sh: New file.
42817         * tests/test-mbsinit.c: New file.
42818
42819 2008-12-18  Bruno Haible  <bruno@clisp.org>
42820
42821         * modules/mbrtowc-tests: New file.
42822         * tests/test-mbrtowc1.sh: New file.
42823         * tests/test-mbrtowc2.sh: New file.
42824         * tests/test-mbrtowc3.sh: New file.
42825         * tests/test-mbrtowc4.sh: New file.
42826         * tests/test-mbrtowc.c: New file.
42827
42828         New module 'mbrtowc'.
42829         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42830         mbsinit and mbrtowc.
42831         (mbrtowc): New declaration.
42832         * lib/mbrtowc.c: New file.
42833         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42834         * modules/mbrtowc: New file.
42835         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42836         HAVE_MBRTOWC.
42837         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42838         HAVE_MBRTOWC.
42839         * doc/posix-functions/mbrtowc.texi: Document the new module.
42840
42841 2008-12-18  Bruno Haible  <bruno@clisp.org>
42842
42843         New module 'wctob'.
42844         * lib/wchar.in.h (wctob): New declaration.
42845         * lib/wctob.c: New file.
42846         * m4/wctob.m4: New file.
42847         * modules/wctob: New file.
42848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42849         HAVE_WCTOB.
42850         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42851         * doc/posix-functions/wctob.texi: Document the new module.
42852
42853 2008-12-18  Bruno Haible  <bruno@clisp.org>
42854
42855         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42856         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42857
42858 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42859
42860         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42861         G. Christensen" <tgc@jupiterrise.com>.
42862
42863         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42864         G. Christensen" <tgc@jupiterrise.com>.
42865
42866         * lib/flock.c: Need to include string.h.  Reported by "Tom
42867         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42868         <ebb9@byu.net>.
42869
42870 2008-12-18  Bruno Haible  <bruno@clisp.org>
42871
42872         * m4/locale-ja.m4: New file, from GNU gettext.
42873
42874 2008-12-17  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42877         Suggested by Eric Blake.
42878
42879 2008-12-17  Bruno Haible  <bruno@clisp.org>
42880
42881         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42882
42883 2008-12-17  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42886         * modules/mbsinit (Depends-on): Add verify.
42887         Suggested by Paul Eggert.
42888
42889 2008-12-17  Bruno Haible  <bruno@clisp.org>
42890
42891         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42892         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42893         gl_FUNC_MBRTOWC.
42894         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42895         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42896         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42897         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42898         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42899         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42900         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42901         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42902         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42903         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42904         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42905         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42906         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42907         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42908         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42909         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42910         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42911         * modules/trim (configure.ac): Likewise.
42912
42913 2008-12-17  Bruno Haible  <bruno@clisp.org>
42914
42915         * modules/btowc-tests: New file.
42916         * tests/test-btowc1.sh: New file.
42917         * tests/test-btowc2.sh: New file.
42918         * tests/test-btowc.c: New file.
42919
42920         New module 'btowc'.
42921         * lib/wchar.in.h (btowc): New declaration.
42922         * lib/btowc.c: New file.
42923         * m4/btowc.m4: New file.
42924         * modules/btowc: New file.
42925         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42926         HAVE_BTOWC.
42927         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42928         * doc/posix-functions/btowc.texi: Document the new module.
42929
42930 2008-12-17  Bruno Haible  <bruno@clisp.org>
42931
42932         New module 'mbsinit'.
42933         * lib/wchar.in.h (mbsinit): New declaration.
42934         * lib/mbsinit.c: New file.
42935         * m4/mbsinit.m4: New file.
42936         * modules/mbsinit: New file.
42937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42938         HAVE_MBSINIT.
42939         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42940         HAVE_MBSINIT.
42941         * doc/posix-functions/mbsinit.texi: Document the new module.
42942
42943 2008-12-16  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/unistd.in.h: Add comment.
42946         * tests/test-environ.c: Don't include <stdlib.h>.
42947
42948 2008-12-16  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/parse-duration.h (parse_duration): Document return value
42951         convention.
42952         * lib/parse-duration.c: Include specification header first. Add
42953         comments.
42954         (_): Remove macro.
42955         (parse_year_month_day, parse_hour_minute_second): Move side effects
42956         outside of strchr call.
42957         (parse_non_iso8601): Move side effects outside of isspace call.
42958         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42959         call.
42960
42961 2008-12-16  Bruno Haible  <bruno@clisp.org>
42962
42963         * tests/test-parse-duration.sh: Produce no output when the test
42964         succeeds.
42965
42966 2008-12-16  Bruno Haible  <bruno@clisp.org>
42967
42968         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42969         expressions.
42970
42971 2008-12-15  Bruno Haible  <bruno@clisp.org>
42972
42973         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42974         * doc/glibc-functions/flistxattr.texi: Likewise.
42975         * doc/glibc-functions/fopencookie.texi: Likewise.
42976         * doc/glibc-functions/fremovexattr.texi: Likewise.
42977         * doc/glibc-functions/fsetxattr.texi: Likewise.
42978         * doc/glibc-functions/getxattr.texi: Likewise.
42979         * doc/glibc-functions/lgetxattr.texi: Likewise.
42980         * doc/glibc-functions/listxattr.texi: Likewise.
42981         * doc/glibc-functions/llistxattr.texi: Likewise.
42982         * doc/glibc-functions/lremovexattr.texi: Likewise.
42983         * doc/glibc-functions/lsetxattr.texi: Likewise.
42984         * doc/glibc-functions/removexattr.texi: Likewise.
42985         * doc/glibc-functions/setxattr.texi: Likewise.
42986         * doc/posix-functions/open_memstream.texi: Likewise.
42987
42988 2008-12-15  Eric Blake  <ebb9@byu.net>
42989
42990         Update doc for cygwin 1.7.
42991         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42992         functions.
42993         * doc/posix-functions/fchmodat.texi: Likewise.
42994         * doc/posix-functions/fchownat.texi: Likewise.
42995         * doc/posix-functions/fdopendir.texi: Likewise.
42996         * doc/posix-functions/fmemopen.texi: Likewise.
42997         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42998         * doc/posix-functions/fstatat.texi: Likewise.
42999         * doc/posix-functions/futimens.texi: Likewise.
43000         * doc/posix-functions/gai_strerror.texi: Likewise.
43001         * doc/posix-functions/getaddrinfo.texi: Likewise.
43002         * doc/posix-functions/getnameinfo.texi: Likewise.
43003         * doc/posix-functions/if_freenameindex.texi: Likewise.
43004         * doc/posix-functions/if_indextoname.texi: Likewise.
43005         * doc/posix-functions/if_nameindex.texi: Likewise.
43006         * doc/posix-functions/if_nametoindex.texi: Likewise.
43007         * doc/posix-functions/insque.texi: Likewise.
43008         * doc/posix-functions/linkat.texi: Likewise.
43009         * doc/posix-functions/llrint.texi: Likewise.
43010         * doc/posix-functions/llrintf.texi: Likewise.
43011         * doc/posix-functions/llrintl.texi: Likewise.
43012         * doc/posix-functions/lockf.texi: Likewise.
43013         * doc/posix-functions/lrintl.texi: Likewise.
43014         * doc/posix-functions/mkdirat.texi: Likewise.
43015         * doc/posix-functions/mkfifoat.texi: Likewise.
43016         * doc/posix-functions/mknodat.texi: Likewise.
43017         * doc/posix-functions/mq_close.texi: Likewise.
43018         * doc/posix-functions/mq_getattr.texi: Likewise.
43019         * doc/posix-functions/mq_notify.texi: Likewise.
43020         * doc/posix-functions/mq_open.texi: Likewise.
43021         * doc/posix-functions/mq_receive.texi: Likewise.
43022         * doc/posix-functions/mq_send.texi: Likewise.
43023         * doc/posix-functions/mq_setattr.texi: Likewise.
43024         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43025         * doc/posix-functions/mq_timedsend.texi: Likewise.
43026         * doc/posix-functions/mq_unlink.texi: Likewise.
43027         * doc/posix-functions/open_memstream.texi: Likewise.
43028         * doc/posix-functions/openat.texi: Likewise.
43029         * doc/posix-functions/posix_fadvise.texi: Likewise.
43030         * doc/posix-functions/posix_fallocate.texi: Likewise.
43031         * doc/posix-functions/posix_madvise.texi: Likewise.
43032         * doc/posix-functions/posix_memalign.texi: Likewise.
43033         * doc/posix-functions/posix_openpt.texi: Likewise.
43034         * doc/posix-functions/readlinkat.texi: Likewise.
43035         * doc/posix-functions/remque.texi: Likewise.
43036         * doc/posix-functions/renameat.texi: Likewise.
43037         * doc/posix-functions/rintl.texi: Likewise.
43038         * doc/posix-functions/sem_unlink.texi: Likewise.
43039         * doc/posix-functions/shm_open.texi: Likewise.
43040         * doc/posix-functions/shm_unlink.texi: Likewise.
43041         * doc/posix-functions/signgam.texi: Likewise.
43042         * doc/posix-functions/sigset.texi: Likewise.
43043         * doc/posix-functions/stpcpy.texi: Likewise.
43044         * doc/posix-functions/stpncpy.texi: Likewise.
43045         * doc/posix-functions/strerror.texi: Likewise.
43046         * doc/posix-functions/strtod.texi: Likewise.
43047         * doc/posix-functions/symlinkat.texi: Likewise.
43048         * doc/posix-functions/unlinkat.texi: Likewise.
43049         * doc/posix-functions/utimensat.texi: Likewise.
43050         * doc/glibc-functions/bindresvport.texi: Likewise.
43051         * doc/glibc-functions/dn_expand.texi: Likewise.
43052         * doc/glibc-functions/exp10.texi: Likewise.
43053         * doc/glibc-functions/exp10f.texi: Likewise.
43054         * doc/glibc-functions/fgetxattr.texi: Likewise.
43055         * doc/glibc-functions/flistxattr.texi: Likewise.
43056         * doc/glibc-functions/fopencookie.texi: Likewise.
43057         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43058         * doc/glibc-functions/fremovexattr.texi: Likewise.
43059         * doc/glibc-functions/fsetxattr.texi: Likewise.
43060         * doc/glibc-functions/getifaddrs.texi: Likewise.
43061         * doc/glibc-functions/getxattr.texi: Likewise.
43062         * doc/glibc-functions/lgetxattr.texi: Likewise.
43063         * doc/glibc-functions/listxattr.texi: Likewise.
43064         * doc/glibc-functions/llistxattr.texi: Likewise.
43065         * doc/glibc-functions/lremovexattr.texi: Likewise.
43066         * doc/glibc-functions/lsetxattr.texi: Likewise.
43067         * doc/glibc-functions/pow10.texi: Likewise.
43068         * doc/glibc-functions/pow10f.texi: Likewise.
43069         * doc/glibc-functions/rcmd_af.texi: Likewise.
43070         * doc/glibc-functions/removexattr.texi: Likewise.
43071         * doc/glibc-functions/res_init.texi: Likewise.
43072         * doc/glibc-functions/res_mkquery.texi: Likewise.
43073         * doc/glibc-functions/res_query.texi: Likewise.
43074         * doc/glibc-functions/res_querydomain.texi: Likewise.
43075         * doc/glibc-functions/res_send.texi: Likewise.
43076         * doc/glibc-functions/rresvport_af.texi: Likewise.
43077         * doc/glibc-functions/setxattr.texi: Likewise.
43078         * doc/glibc-functions/strcasestr.texi: Likewise.
43079
43080 2008-12-15  Bruno Haible  <bruno@clisp.org>
43081
43082         Fix compilation error on OSF/1 4.0.
43083         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43084         <sys/time.h>, simply delegate to the system header.
43085         Reported by Daniel Richard G. <oss@teragram.com>.
43086
43087 2008-12-15  Bruno Haible  <bruno@clisp.org>
43088
43089         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43090         * doc/posix-functions/fchmodat.texi: Likewise.
43091         * doc/posix-functions/fchownat.texi: Likewise.
43092         * doc/posix-functions/fdopendir.texi: Likewise.
43093         * doc/posix-functions/fstatat.texi: Likewise.
43094         * doc/posix-functions/mkdirat.texi: Likewise.
43095         * doc/posix-functions/unlinkat.texi: Likewise.
43096
43097 2008-12-14  Bruno Haible  <bruno@clisp.org>
43098
43099         Update doc for POSIX:2008.
43100         * doc/posix-functions/faccessat.texi: New file.
43101         * doc/posix-functions/fchmodat.texi: New file.
43102         * doc/posix-functions/fchownat.texi: New file.
43103         * doc/posix-functions/fdopendir.texi: New file.
43104         * doc/posix-functions/fstatat.texi: New file.
43105         * doc/posix-functions/futimens.texi: New file.
43106         * doc/posix-functions/linkat.texi: New file.
43107         * doc/posix-functions/mkdirat.texi: New file.
43108         * doc/posix-functions/mkfifoat.texi: New file.
43109         * doc/posix-functions/mknodat.texi: New file.
43110         * doc/posix-functions/open_wmemstream.texi: New file.
43111         * doc/posix-functions/openat.texi: New file.
43112         * doc/posix-functions/psiginfo.texi: New file.
43113         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43114         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43115         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43116         * doc/posix-functions/readlinkat.texi: New file.
43117         * doc/posix-functions/renameat.texi: New file.
43118         * doc/posix-functions/strerror_l.texi: New file.
43119         * doc/posix-functions/symlinkat.texi: New file.
43120         * doc/posix-functions/unlinkat.texi: New file.
43121         * doc/posix-functions/utimensat.texi: New file.
43122         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43123
43124 2008-12-14  Bruno Haible  <bruno@clisp.org>
43125
43126         Update doc for POSIX:2008.
43127         * doc/posix-functions/alphasort.texi: Renamed from
43128         doc/glibc-functions/alphasort.texi.
43129         * doc/posix-functions/dirfd.texi: Renamed from
43130         doc/glibc-functions/dirfd.texi.
43131         * doc/posix-functions/dprintf.texi: Renamed from
43132         doc/glibc-functions/dprintf.texi.
43133         * doc/posix-functions/duplocale.texi: Renamed from
43134         doc/glibc-functions/duplocale.texi.
43135         * doc/posix-functions/fexecve.texi: Renamed from
43136         doc/glibc-functions/fexecve.texi.
43137         * doc/posix-functions/fmemopen.texi: Renamed from
43138         doc/glibc-functions/fmemopen.texi.
43139         * doc/posix-functions/freelocale.texi: Renamed from
43140         doc/glibc-functions/freelocale.texi.
43141         * doc/posix-functions/getdate_err.texi: Renamed from
43142         doc/glibc-functions/getdate_err.texi.
43143         * doc/posix-functions/isalnum_l.texi: Renamed from
43144         doc/glibc-functions/isalnum_l.texi.
43145         * doc/posix-functions/isalpha_l.texi: Renamed from
43146         doc/glibc-functions/isalpha_l.texi.
43147         * doc/posix-functions/isblank_l.texi: Renamed from
43148         doc/glibc-functions/isblank_l.texi.
43149         * doc/posix-functions/iscntrl_l.texi: Renamed from
43150         doc/glibc-functions/iscntrl_l.texi.
43151         * doc/posix-functions/isdigit_l.texi: Renamed from
43152         doc/glibc-functions/isdigit_l.texi.
43153         * doc/posix-functions/isgraph_l.texi: Renamed from
43154         doc/glibc-functions/isgraph_l.texi.
43155         * doc/posix-functions/islower_l.texi: Renamed from
43156         doc/glibc-functions/islower_l.texi.
43157         * doc/posix-functions/isprint_l.texi: Renamed from
43158         doc/glibc-functions/isprint_l.texi.
43159         * doc/posix-functions/ispunct_l.texi: Renamed from
43160         doc/glibc-functions/ispunct_l.texi.
43161         * doc/posix-functions/isspace_l.texi: Renamed from
43162         doc/glibc-functions/isspace_l.texi.
43163         * doc/posix-functions/isupper_l.texi: Renamed from
43164         doc/glibc-functions/isupper_l.texi.
43165         * doc/posix-functions/iswalnum_l.texi: Renamed from
43166         doc/glibc-functions/iswalnum_l.texi.
43167         * doc/posix-functions/iswalpha_l.texi: Renamed from
43168         doc/glibc-functions/iswalpha_l.texi.
43169         * doc/posix-functions/iswblank_l.texi: Renamed from
43170         doc/glibc-functions/iswblank_l.texi.
43171         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43172         doc/glibc-functions/iswcntrl_l.texi.
43173         * doc/posix-functions/iswctype_l.texi: Renamed from
43174         doc/glibc-functions/iswctype_l.texi.
43175         * doc/posix-functions/iswdigit_l.texi: Renamed from
43176         doc/glibc-functions/iswdigit_l.texi.
43177         * doc/posix-functions/iswgraph_l.texi: Renamed from
43178         doc/glibc-functions/iswgraph_l.texi.
43179         * doc/posix-functions/iswlower_l.texi: Renamed from
43180         doc/glibc-functions/iswlower_l.texi.
43181         * doc/posix-functions/iswprint_l.texi: Renamed from
43182         doc/glibc-functions/iswprint_l.texi.
43183         * doc/posix-functions/iswpunct_l.texi: Renamed from
43184         doc/glibc-functions/iswpunct_l.texi.
43185         * doc/posix-functions/iswspace_l.texi: Renamed from
43186         doc/glibc-functions/iswspace_l.texi.
43187         * doc/posix-functions/iswupper_l.texi: Renamed from
43188         doc/glibc-functions/iswupper_l.texi.
43189         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43190         doc/glibc-functions/iswxdigit_l.texi.
43191         * doc/posix-functions/isxdigit_l.texi: Renamed from
43192         doc/glibc-functions/isxdigit_l.texi.
43193         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43194         doc/glibc-functions/mbsnrtowcs.texi.
43195         * doc/posix-functions/mkdtemp.texi: Renamed from
43196         doc/glibc-functions/mkdtemp.texi.
43197         * doc/posix-functions/newlocale.texi: Renamed from
43198         doc/glibc-functions/newlocale.texi.
43199         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43200         doc/glibc-functions/nl_langinfo_l.texi.
43201         * doc/posix-functions/open_memstream.texi: Renamed from
43202         doc/glibc-functions/open_memstream.texi.
43203         * doc/posix-functions/opterr.texi: Renamed from
43204         doc/glibc-functions/opterr.texi.
43205         * doc/posix-functions/optind.texi: Renamed from
43206         doc/glibc-functions/optind.texi.
43207         * doc/posix-functions/optopt.texi: Renamed from
43208         doc/glibc-functions/optopt.texi.
43209         * doc/posix-functions/psignal.texi: Renamed from
43210         doc/glibc-functions/psignal.texi.
43211         * doc/posix-functions/scandir.texi: Renamed from
43212         doc/glibc-functions/scandir.texi.
43213         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43214         doc/glibc-functions/sched_get_priority_min.texi.
43215         * doc/posix-functions/signgam.texi: Renamed from
43216         doc/glibc-functions/signgam.texi.
43217         * doc/posix-functions/stpcpy.texi: Renamed from
43218         doc/glibc-functions/stpcpy.texi.
43219         * doc/posix-functions/stpncpy.texi: Renamed from
43220         doc/glibc-functions/stpncpy.texi.
43221         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43222         doc/glibc-functions/strcasecmp_l.texi.
43223         * doc/posix-functions/strcoll_l.texi: Renamed from
43224         doc/glibc-functions/strcoll_l.texi.
43225         * doc/posix-functions/strfmon_l.texi: Renamed from
43226         doc/glibc-functions/strfmon_l.texi.
43227         * doc/posix-functions/strftime_l.texi: Renamed from
43228         doc/glibc-functions/strftime_l.texi.
43229         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43230         doc/glibc-functions/strncasecmp_l.texi.
43231         * doc/posix-functions/strndup.texi: Renamed from
43232         doc/glibc-functions/strndup.texi.
43233         * doc/posix-functions/strnlen.texi: Renamed from
43234         doc/glibc-functions/strnlen.texi.
43235         * doc/posix-functions/strsignal.texi: Renamed from
43236         doc/glibc-functions/strsignal.texi.
43237         * doc/posix-functions/strxfrm_l.texi: Renamed from
43238         doc/glibc-functions/strxfrm_l.texi.
43239         * doc/posix-functions/timer_gettime.texi: Renamed from
43240         doc/glibc-functions/timer_gettime.texi.
43241         * doc/posix-functions/tolower_l.texi: Renamed from
43242         doc/glibc-functions/tolower_l.texi.
43243         * doc/posix-functions/toupper_l.texi: Renamed from
43244         doc/glibc-functions/toupper_l.texi.
43245         * doc/posix-functions/towctrans_l.texi: Renamed from
43246         doc/glibc-functions/towctrans_l.texi.
43247         * doc/posix-functions/towlower_l.texi: Renamed from
43248         doc/glibc-functions/towlower_l.texi.
43249         * doc/posix-functions/towupper_l.texi: Renamed from
43250         doc/glibc-functions/towupper_l.texi.
43251         * doc/posix-functions/uselocale.texi: Renamed from
43252         doc/glibc-functions/uselocale.texi.
43253         * doc/posix-functions/vdprintf.texi: Renamed from
43254         doc/glibc-functions/vdprintf.texi.
43255         * doc/posix-functions/wcpcpy.texi:
43256         Renamed from doc/glibc-functions/wcpcpy.texi.
43257         * doc/posix-functions/wcpncpy.texi: Renamed from
43258         doc/glibc-functions/wcpncpy.texi.
43259         * doc/posix-functions/wcscasecmp.texi: Renamed from
43260         doc/glibc-functions/wcscasecmp.texi.
43261         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43262         doc/glibc-functions/wcscasecmp_l.texi.
43263         * doc/posix-functions/wcscoll_l.texi: Renamed from
43264         doc/glibc-functions/wcscoll_l.texi.
43265         * doc/posix-functions/wcsdup.texi: Renamed from
43266         doc/glibc-functions/wcsdup.texi.
43267         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43268         doc/glibc-functions/wcsncasecmp.texi.
43269         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43270         doc/glibc-functions/wcsncasecmp_l.texi.
43271         * doc/posix-functions/wcsnlen.texi: Renamed from
43272         doc/glibc-functions/wcsnlen.texi.
43273         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43274         doc/glibc-functions/wcsnrtombs.texi.
43275         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43276         doc/glibc-functions/wcsxfrm_l.texi.
43277         * doc/posix-functions/wctrans_l.texi: Renamed from
43278         doc/glibc-functions/wctrans_l.texi.
43279         * doc/posix-functions/wctype_l.texi: Renamed from
43280         doc/glibc-functions/wctype_l.texi.
43281         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43282         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43283         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43284         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43285         these subsections.
43286         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43287         Remove sections.
43288
43289 2008-12-14  Bruno Haible  <bruno@clisp.org>
43290
43291         Update doc for POSIX:2008.
43292         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43293
43294 2008-12-14  Bruno Haible  <bruno@clisp.org>
43295
43296         Update doc for POSIX:2008.
43297         * doc/pastposix-functions/bcmp.texi: Renamed from
43298         doc/posix-functions/bcmp.texi.
43299         * doc/pastposix-functions/bcopy.texi: Renamed from
43300         doc/posix-functions/bcopy.texi.
43301         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43302         doc/posix-functions/bsd_signal.texi.
43303         * doc/pastposix-functions/bzero.texi: Renamed from
43304         doc/posix-functions/bzero.texi.
43305         * doc/pastposix-functions/ecvt.texi: Renamed from
43306         doc/posix-functions/ecvt.texi.
43307         * doc/pastposix-functions/fcvt.texi: Renamed from
43308         doc/posix-functions/fcvt.texi.
43309         * doc/pastposix-functions/ftime.texi: Renamed from
43310         doc/posix-functions/ftime.texi.
43311         * doc/pastposix-functions/gcvt.texi: Renamed from
43312         doc/posix-functions/gcvt.texi.
43313         * doc/pastposix-functions/getcontext.texi: Renamed from
43314         doc/posix-functions/getcontext.texi.
43315         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43316         doc/posix-functions/gethostbyaddr.texi.
43317         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43318         doc/posix-functions/gethostbyname.texi.
43319         * doc/pastposix-functions/getwd.texi: Renamed from
43320         doc/posix-functions/getwd.texi.
43321         * doc/pastposix-functions/h_errno.texi: Renamed from
43322         doc/posix-functions/h_errno.texi.
43323         * doc/pastposix-functions/index.texi: Renamed from
43324         doc/posix-functions/index.texi.
43325         * doc/pastposix-functions/makecontext.texi: Renamed from
43326         doc/posix-functions/makecontext.texi.
43327         * doc/pastposix-functions/mktemp.texi: Renamed from
43328         doc/posix-functions/mktemp.texi.
43329         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43330         doc/posix-functions/pthread_attr_getstackaddr.texi.
43331         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43332         doc/posix-functions/pthread_attr_setstackaddr.texi.
43333         * doc/pastposix-functions/rindex.texi: Renamed from
43334         doc/posix-functions/rindex.texi.
43335         * doc/pastposix-functions/scalb.texi: Renamed from
43336         doc/posix-functions/scalb.texi.
43337         * doc/pastposix-functions/setcontext.texi: Renamed from
43338         doc/posix-functions/setcontext.texi.
43339         * doc/pastposix-functions/swapcontext.texi: Renamed from
43340         doc/posix-functions/swapcontext.texi.
43341         * doc/pastposix-functions/ualarm.texi: Renamed from
43342         doc/posix-functions/ualarm.texi.
43343         * doc/pastposix-functions/usleep.texi: Renamed from
43344         doc/posix-functions/usleep.texi.
43345         * doc/pastposix-functions/vfork.texi: Renamed from
43346         doc/posix-functions/vfork.texi.
43347         * doc/pastposix-functions/wcswcs.texi: Renamed from
43348         doc/posix-functions/wcswcs.texi.
43349         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43350         (Function Substitutes): Update.
43351
43352 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43353
43354         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43355         m4/strerror.m4.
43356
43357 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43358             Bruno Haible  <bruno@clisp.org>
43359
43360         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43361
43362 2008-12-13  Bruno Haible  <bruno@clisp.org>
43363
43364         * modules/strtoull (Depends-on): Remove unistd.
43365
43366 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43367
43368         * modules/strtoull (Depends-on): Add stdlib.
43369
43370 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43371
43372         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43373
43374 2008-12-10  Jim Meyering  <meyering@redhat.com>
43375
43376         gl_ASSERT: don't say assertions are disabled when they're not
43377         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43378         "checking whether to enable assertions... no", when they are in
43379         fact enabled.  This is solely a bug in the output of configure.
43380         In spite of saying "no", NDEBUG was not defined in that case.
43381         Also, as noted by Eric Blake, leave assertions enabled upon
43382         --enable-assert=INVALID.
43383
43384 2008-12-10  Bruno Haible  <bruno@clisp.org>
43385
43386         Change MODULES.html to refer to POSIX:2008 where possible.
43387         * MODULES.html.sh (POSIX2008_URL): New variable.
43388         (posix_headers): Remove sys/timeb, ucontext.
43389         (posix2001_headers): New variable.
43390         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43391         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43392         index, makecontext, mktemp, pthread_attr_getstackaddr,
43393         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43394         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43395         (posix2001_functions): New variable.
43396         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43397         otherwise.
43398
43399 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43400
43401         add missing include to parse-duration.c
43402         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43403         * modules/parse-duration (Depends-on): Add xalloc.
43404
43405         fix sed script reading maint.mk
43406         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43407         (syntax-check-rules): Use it.
43408
43409 2008-12-09  Bruno Haible  <bruno@clisp.org>
43410
43411         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43412         MacOS X 10.4/PowerPC.
43413         Reported by Simon Josefsson.
43414
43415 2008-12-08  Jim Meyering  <meyering@redhat.com>
43416
43417         work around mingw's lack of some S_IF definitions
43418         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43419         Reported by Simon Josefsson.
43420
43421 2008-12-08  Bruno Haible  <bruno@clisp.org>
43422
43423         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43424         applied to variables. Needed on MacOS X 10.4/PowerPC.
43425         Reported by Simon Josefsson.
43426
43427 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43428         and Eric Blake  <ebb9@byu.net>
43429
43430         assert: honor --enable-assert
43431         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43432         order to honor --enable-assert, rather than treating it as a
43433         synonym for --disable-assert.
43434
43435 2008-12-08  Jim Meyering  <meyering@redhat.com>
43436
43437         * lib/posixtm.c: Remove now-useless declaration of mktime.
43438
43439         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43440
43441 2008-12-07  Bruno Haible  <bruno@clisp.org>
43442
43443         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43444         test_once): Mark functions as static.
43445         * tests/test-tls.c (test_tls): Likewise.
43446
43447 2008-12-07  Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43450         iconv_register_autodetect.
43451
43452 2008-12-07  Jim Meyering  <meyering@redhat.com>
43453
43454         posixtm.c: avoid a warning
43455         * lib/posixtm.c (posixtime): Don't initialize tm0.
43456         It's no longer needed to placate gcc4's -Wuninitialized,
43457         and the attempt to placate would elicit a new warning.
43458
43459         unicodeio.c: mark unused parameters
43460         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43461         (fallback_failure_callback): Likewise.
43462
43463 2008-12-07  Bruno Haible  <bruno@clisp.org>
43464
43465         * gnulib-tool (func_create_testdir): When building the tests
43466         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43467         Reported by Simon Josefsson.
43468
43469 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43470
43471         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43472
43473 2008-12-06  Bruno Haible  <bruno@clisp.org>
43474
43475         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43476         Suggested by Eric Blake.
43477
43478 2008-12-06  Bruno Haible  <bruno@clisp.org>
43479
43480         Fix a c-stack test failure on MacOS X.
43481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43482         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43483         handler for SIGBUS as well.
43484         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43485         install a signal handler for SIGBUS as well.
43486         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43487
43488 2008-12-06  Bruno Haible  <bruno@clisp.org>
43489
43490         Advocacy documentation.
43491         * doc/gnulib-intro.texi (Benefits): New section.
43492         * doc/gnulib.texi: Update.
43493
43494 2008-12-06  Bruno Haible  <bruno@clisp.org>
43495
43496         Document the 'manywarnings' module.
43497         * doc/manywarnings.texi: New file.
43498         * doc/gnulib.texi: Include it.
43499
43500 2008-12-05  Eric Blake  <ebb9@byu.net>
43501
43502         tests: silence some gcc warnings
43503         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43504         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43505         type mismatches.
43506
43507 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43508             Bruno Haible  <bruno@clisp.org>
43509
43510         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43511
43512 2008-11-29  Jim Meyering  <meyering@redhat.com>
43513
43514         unicodeio.c: mark unused parameters
43515         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43516         (fallback_failure_callback): Likewise.
43517
43518         fts: fix a thinko
43519         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43520         (set_stat_type): Return S_IF*-valued "type" directly.
43521         Prompted by James Youngman's spotting a related bug.
43522         Confirmed by further testing through find.
43523
43524         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43525         * lib/fts.c (D_TYPE): Define.
43526         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43527         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43528         (s_ifmt_shift_bits): New function.
43529         (set_stat_type): New function.
43530         (fts_build): When not calling fts_stat, call set_stat_type
43531         to propagate dirent.d_type info to fts_read caller.
43532         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43533         fts_statp->st_mode type information may be valid.
43534
43535 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43536
43537         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43538         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43539         <sds@gnu.org>.
43540
43541 2008-11-20  Bruno Haible  <bruno@clisp.org>
43542
43543         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43544         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43545         INCLUDE_NEXT.
43546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43547         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43548         * modules/math (Makefile.am): Substitute
43549         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43550         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43551
43552 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43553             Bruno Haible  <bruno@clisp.org>
43554
43555         * lib/stdint.in.h: Define all type macros so that their expansion is
43556         a single typedef'ed token. Fixes a compilation failure in Boost which
43557         does "using ::int8_t;".
43558
43559 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43560
43561         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43562         gl_MANYWARN_ALL_GCC.
43563         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43564         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43565         * modules/manywarnings: New file.
43566         * MODULES.html.sh: Mention manywarnings module.
43567
43568 2008-11-18  Bruno Haible  <bruno@clisp.org>
43569
43570         * doc/gnulib-tool.texi (Unit tests): New section.
43571
43572 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43573
43574         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43575         paths like 'lib/po/foo.po'.
43576
43577 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43578
43579         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43580         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43581
43582 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43583
43584         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43585         parameter works.
43586
43587 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43588
43589         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43590
43591 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43592
43593         * modules/parse-duration-tests: New file.
43594         * tests/test-parse-duration.sh: New file.
43595         * tests/test-parse-duration.c: New file.
43596
43597         New module 'parse-duration'.
43598         * lib/parse-duration.h: New file.
43599         * lib/parse-duration.c: New file.
43600         * modules/parse-duration: New file.
43601
43602 2008-11-17  Bruno Haible  <bruno@clisp.org>
43603
43604         * tests/test-select-out.sh: Comment out the first pipe test.
43605         Reported by Simon Josefsson.
43606
43607 2008-11-17  Bruno Haible  <bruno@clisp.org>
43608
43609         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43611         gl_HOSTENT.
43612
43613 2008-11-17  Bruno Haible  <bruno@clisp.org>
43614
43615         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43616         -lnetwork and -lnet. Needed for Haiku and BeOS.
43617
43618 2008-11-16  Bruno Haible  <bruno@clisp.org>
43619
43620         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43621
43622 2008-11-16  Bruno Haible  <bruno@clisp.org>
43623
43624         Avoid test failure on Haiku.
43625         * tests/test-fsync.c: Include <errno.h>.
43626         (main): Don't require that fsync (0) fails.
43627
43628 2008-11-15  Bruno Haible  <bruno@clisp.org>
43629
43630         New module 'hostent'.
43631         * modules/hostent: New file.
43632         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43633
43634 2008-11-15  Bruno Haible  <bruno@clisp.org>
43635
43636         New module 'servent'.
43637         * modules/servent: New file.
43638         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43639
43640 2008-11-15  Bruno Haible  <bruno@clisp.org>
43641
43642         Avoid generating same test program with two different rules.
43643         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43644         test-frexp to test-frexp-nolibm.
43645         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43646         test-frexpl to test-frexpl-nolibm.
43647
43648 2008-11-15  Bruno Haible  <bruno@clisp.org>
43649
43650         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43651         $(FREXPL_LIBM).
43652
43653 2008-11-15  Bruno Haible  <bruno@clisp.org>
43654
43655         * lib/netdb.in.h: Activate the definitions also when the system's
43656         <netdb.h> has 'struct addrinfo'.
43657         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43658         EAI_OVERFLOW or AI_NUMERICSERV.
43659         * doc/posix-headers/netdb.texi: Document the problem.
43660
43661 2008-11-15  Bruno Haible  <bruno@clisp.org>
43662
43663         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43664
43665         Make the 'sched' module work on platforms where <sched.h> exists but
43666         is incomplete (such as Haiku).
43667         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43668         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43669         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43670         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43671         HAVE_STRUCT_SCHED_PARAM.
43672         * modules/sched (Depends-on): Add include_next.
43673         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43674         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43675         * doc/posix-headers/sched.texi: Document the issue.
43676
43677 2008-11-13  Jim Meyering  <meyering@redhat.com>
43678
43679         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43680         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43681         test would fail due to the difference in the Report bugs to ...
43682         line.  The expected address is empty, "<>", while the actual
43683         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43684
43685 2008-11-12  Bruno Haible  <bruno@clisp.org>
43686
43687         lstat: don't compile lstat.c on systems lacking lstat
43688         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43689         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43690         Reported by Daniel P. Berrange via Jim Meyering.
43691
43692 2008-11-12  Jim Meyering  <meyering@redhat.com>
43693
43694         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43695
43696 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43697
43698         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43699         instead.
43700
43701 2008-11-12  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/unicodeio.c: Include unistr.h.
43704         (utf8_wctomb): Remove function.
43705         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43706
43707 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43708
43709         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43710         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43711         <bruno@clisp.org>.
43712         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43713
43714 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43715
43716         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43717         * doc/gnulib.texi: Add section for warnings.
43718
43719 2008-11-11  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/sockets.h: Add a comment.
43722
43723 2008-11-11  Karl Berry  <karl@gnu.org>
43724
43725         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43726
43727 2008-11-11  Eric Blake  <ebb9@byu.net>
43728
43729         fdl.texi: avoid git symlinks
43730         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43731
43732 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43733
43734         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43735
43736 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43737
43738         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43739         (gl_WARN_ADD): Substitute $2 if literal.
43740
43741 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43742
43743         * m4/warning.m4: Remove.
43744
43745 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43746
43747         * m4/warnings.m4: Almost complete rewrite. :-)
43748
43749 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43750
43751         * modules/warnings: New module.
43752         * m4/warnings.m4: New file.
43753         * MODULES.html.sh: Mention warnings module.
43754         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43755         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43756
43757 2008-11-10  Eric Blake  <ebb9@byu.net>
43758
43759         fdl.texi: make a symlink to the latest version
43760         * doc/standards.texi: Revert today's earlier change.
43761         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43762         * doc/fdl.texi: ...and replace this with a symlink to the newer
43763         fdl-1.3.texi.
43764
43765 2008-11-10  Bruno Haible  <bruno@clisp.org>
43766
43767         * tests/test-select-fd.c (main): Accept the result file name as fourth
43768         argument.
43769         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43770         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43771
43772 2008-11-10  Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43775         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43776         as autoconf-substituted macros.
43777         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43779         gl_NETDB_H_DEFAULTS. Set these variables.
43780         * modules/netdb (Makefile.am): Substitute these variables.
43781
43782 2008-11-10  Eric Blake  <ebb9@byu.net>
43783
43784         standards.texi: include correct file for FDL 1.3
43785         * doc/standards.texi (GNU Free Documentation License): Change
43786         include file to pull in FDL 1.3, not 1.2.
43787
43788         fdl.texi: revert accidental change to license
43789         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43790
43791 2008-11-10  Bruno Haible  <bruno@clisp.org>
43792
43793         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43794         cross-compiling guesses also when the native compile gives no result.
43795
43796 2008-11-10  Bruno Haible  <bruno@clisp.org>
43797
43798         * lib/spawni.c (__spawni): Force variable into the stack.
43799
43800 2008-11-10  Bruno Haible  <bruno@clisp.org>
43801
43802         Add support for Haiku.
43803         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43804         glibc and BeOS, but also on Haiku.
43805         * lib/fpurge.c (fpurge): Likewise.
43806         * lib/freadable.c (freadable): Likewise.
43807         * lib/freadahead.c (freadahead): Likewise.
43808         * lib/freading.c (freading): Likewise.
43809         * lib/freadptr.c (freadptr): Likewise.
43810         * lib/freadseek.c (freadptrinc): Likewise.
43811         * lib/fseeko.c (rpl_fseeko): Likewise.
43812         * lib/fseterr.c (fseterr): Likewise.
43813         * lib/fwritable.c (fwritable): Likewise.
43814         * lib/fwriting.c (fwriting): Likewise.
43815         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43816
43817 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43818
43819         * lib/config.charset: Treat Haiku like BeOS.
43820
43821 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43822
43823         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43824         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43825
43826 2008-11-08  Bruno Haible  <bruno@clisp.org>
43827
43828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43829         AC_CACHE_CHECK.
43830
43831 2008-11-08  Bruno Haible  <bruno@clisp.org>
43832
43833         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43834
43835 2008-11-08  Bruno Haible  <bruno@clisp.org>
43836
43837         * tests/test-select-fd.c: New file.
43838         * tests/test-select-in.sh: New file.
43839         * tests/test-select-out.sh: New file.
43840         * tests/test-select-stdin.c: New file.
43841         * modules/select-tests (Files): Add the new files.
43842         (Depends-on): Add gettimeofday.
43843         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43844         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43845         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43846
43847 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43848             Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43851
43852 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43853
43854         * build-aux/pmccabe2html: Added support for C++ source files.
43855
43856 2008-11-05  Ben Pfaff  <blp@gnu.org>
43857
43858         Fix lib/close.c build on Windows.
43859         * modules/close (Files): Add lib/w32sock.h.
43860
43861 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43862
43863         Accept Bison's NEWS format.
43864         * build-aux/announce-gen (print_news_deltas): Tweak
43865         $re_prefix.
43866
43867 2008-11-04  Bruno Haible  <bruno@clisp.org>
43868
43869         * modules/random_r (Maintainer): Add glibc.
43870
43871 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43872
43873         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43874         by karl@freefriends.org (Karl Berry).
43875         * doc/alloca.texi: Likewise.
43876         * doc/c-ctype.texi: Likewise.
43877         * doc/c-strcase.texi: Likewise.
43878         * doc/c-strcaseeq.texi: Likewise.
43879         * doc/c-strcasestr.texi: Likewise.
43880         * doc/c-strstr.texi: Likewise.
43881         * doc/c-strtod.texi: Likewise.
43882         * doc/c-strtold.texi: Likewise.
43883         * doc/ctime.texi: Likewise.
43884         * doc/error.texi: Likewise.
43885         * doc/fdl.texi: Likewise.
43886         * doc/gcd.texi: Likewise.
43887         * doc/getdate.texi: Likewise.
43888         * doc/gnulib-intro.texi: Likewise.
43889         * doc/gnulib-tool.texi: Likewise.
43890         * doc/gnulib.texi: Likewise.
43891         * doc/inet_ntoa.texi: Likewise.
43892         * doc/maintain.texi: Likewise.
43893         * doc/make-stds.texi: Likewise.
43894         * doc/quote.texi: Likewise.
43895         * doc/regexprops-generic.texi: Likewise.
43896         * doc/standards.texi: Likewise.
43897         * doc/verify.texi: Likewise.
43898         * doc/visibility.texi: Likewise.
43899         * doc/gnulib.texi (GNU Free Documentation License): Include
43900         fdl-1.3.texi instead of fdl.texi.
43901
43902 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43903
43904         * doc/fdl-1.3.texi: New file, from
43905         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43906         * modules/fdl-1.3: Add.
43907         * MODULES.html.sh: Add fdl-1.3.
43908
43909 2008-11-03  Bruno Haible  <bruno@clisp.org>
43910
43911         Make determination of absolute name of header file work with AIX xlc.
43912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43913         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43914         preprocessing.
43915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43916         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43917
43918 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43919
43920         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43921         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43922         <ludo@gnu.org>.
43923
43924 2008-11-02  Bruno Haible  <bruno@clisp.org>
43925
43926         Mark 'strpbrk' obsolete.
43927         * modules/strpbrk (Status, Notice): New sections.
43928         * modules/strtok_r (Depends-on): Add strpbrk.
43929
43930 2008-11-02  Bruno Haible  <bruno@clisp.org>
43931
43932         Mark 'strdup' obsolete.
43933         * modules/strdup (Status, Notice): New sections.
43934         * modules/findprog (Depends-on): Add strdup.
43935         * modules/getaddrinfo (Depends-on): Likewise.
43936         * modules/localename (Depends-on): Likewise.
43937         * modules/relocatable-lib (Depends-on): Likewise.
43938         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43939         * modules/relocatable-prog (Depends-on): Likewise.
43940         * modules/trim (Depends-on): Likewise.
43941         * modules/unictype/gen-ctype (Depends-on): Likewise.
43942         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43943
43944 2008-11-02  Bruno Haible  <bruno@clisp.org>
43945
43946         Mark 'strcspn' obsolete.
43947         * modules/strcspn (Status, Notice): New sections.
43948
43949 2008-11-02  Bruno Haible  <bruno@clisp.org>
43950
43951         Mark 'rmdir' obsolete.
43952         * modules/rmdir (Status, Notice): New sections.
43953         * modules/clean-temp (Depends-on): Add rmdir.
43954         * modules/openat (Depends-on): Likewise.
43955
43956 2008-11-02  Bruno Haible  <bruno@clisp.org>
43957
43958         Mark 'raise' obsolete.
43959         * modules/raise (Status, Notice): New sections.
43960         (Include): Specify <signal.h>.
43961         * modules/stdio (Depends-on): Add raise.
43962         * modules/write (Depends-on): Likewise.
43963
43964 2008-11-02  Bruno Haible  <bruno@clisp.org>
43965
43966         Mark 'memset' obsolete.
43967         * modules/memset (Status, Notice): New sections.
43968
43969 2008-11-02  Bruno Haible  <bruno@clisp.org>
43970
43971         Mark 'memmove' obsolete.
43972         * modules/memmove (Status, Notice): New sections.
43973         * modules/argp (Depends-on): Add memmove.
43974         * modules/argz (Depends-on): Likewise.
43975         * modules/canonicalize (Depends-on): Likewise.
43976         * modules/canonicalize-lgpl (Depends-on): Likewise.
43977         * modules/fts (Depends-on): Likewise.
43978         * modules/getcwd (Depends-on): Likewise.
43979         * modules/human (Depends-on): Likewise.
43980         * modules/regex (Depends-on): Likewise.
43981         * modules/striconveh (Depends-on): Likewise.
43982         * modules/trim (Depends-on): Likewise.
43983         * modules/unistr/u8-move (Depends-on): Likewise.
43984         * modules/unistr/u16-move (Depends-on): Likewise.
43985         * modules/unistr/u32-move (Depends-on): Likewise.
43986
43987 2008-11-02  Bruno Haible  <bruno@clisp.org>
43988
43989         Mark 'memcpy' obsolete.
43990         * modules/memcpy (Status, Notice): New sections.
43991
43992 2008-11-02  Bruno Haible  <bruno@clisp.org>
43993
43994         Mark 'memcmp' obsolete.
43995         * modules/memcmp (Status, Notice): New sections.
43996         * modules/argmatch (Depends-on): Add memchr.
43997         * modules/backupfile (Depends-on): Likewise.
43998         * modules/c-strcasestr (Depends-on): Likewise.
43999         * modules/crypto/des (Depends-on): Likewise.
44000         * modules/csharpcomp (Depends-on): Likewise.
44001         * modules/fnmatch (Depends-on): Likewise.
44002         * modules/git-merge-changelog (Depends-on): Likewise.
44003         * modules/isnand (Depends-on): Likewise.
44004         * modules/isnand-nolibm (Depends-on): Likewise.
44005         * modules/isnanf (Depends-on): Likewise.
44006         * modules/isnanf-nolibm (Depends-on): Likewise.
44007         * modules/isnanl (Depends-on): Likewise.
44008         * modules/isnanl-nolibm (Depends-on): Likewise.
44009         * modules/mbchar (Depends-on): Likewise.
44010         * modules/memcoll (Depends-on): Likewise.
44011         * modules/quotearg (Depends-on): Likewise.
44012         * modules/regex (Depends-on): Likewise.
44013         * modules/relocatable-prog (Depends-on): Likewise.
44014         * modules/same (Depends-on): Likewise.
44015         * modules/signbit (Depends-on): Likewise.
44016         * modules/strcasestr-simple (Depends-on): Likewise.
44017         * modules/unictype/gen-ctype (Depends-on): Likewise.
44018         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44019         * modules/uniname/uniname (Depends-on): Likewise.
44020         * modules/unistr/u8-cmp (Depends-on): Likewise.
44021
44022 2008-11-02  Bruno Haible  <bruno@clisp.org>
44023
44024         Mark 'memchr' obsolete.
44025         * modules/memchr (Status, Notice): New sections.
44026         * modules/argp (Depends-on): Add memchr.
44027         * modules/base64 (Depends-on): Likewise.
44028         * modules/c-strcasestr (Depends-on): Likewise.
44029         * modules/chdir-long (Depends-on): Likewise.
44030         * modules/fnmatch (Depends-on): Likewise.
44031         * modules/getsubopt (Depends-on): Likewise.
44032         * modules/git-merge-changelog (Depends-on): Likewise.
44033         * modules/glob (Depends-on): Likewise.
44034         * modules/strcasestr-simple (Depends-on): Likewise.
44035         * modules/strnlen (Depends-on): Likewise.
44036
44037 2008-11-02  Bruno Haible  <bruno@clisp.org>
44038
44039         Mark 'atexit' obsolete.
44040         * modules/atexit (Status, Notice): New sections.
44041         * modules/chdir-long (Depends-on): Add atexit.
44042         * modules/wait-process (Depends-on): Likewise.
44043
44044 2008-11-02  Bruno Haible  <bruno@clisp.org>
44045
44046         * gnulib-tool: New option --with-obsolete.
44047         (func_usage): Document it.
44048         (func_modules_transitive_closure): Drop obsolete dependencies if
44049         incobsolete is not true.
44050         (func_import): Read and save the incobsolete variable to the cache.
44051
44052 2008-11-02  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44055         * gnulib-tool: New option --extract-status.
44056         (func_usage): Document it.
44057         (sed_extract_prog): Recognize it.
44058         (func_get_status): New function.
44059
44060 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44061
44062         * modules/sockets (License): Change from LGPL to LGPLv2+.
44063
44064 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44065
44066         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44067
44068 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44069
44070         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44071         Mention times and sys_times.
44072         * modules/sys_times, modules/sys_times-tests: New modules.
44073         * modules/times, modules/times-tests: Likewise
44074         * m4/sys_times_h.m4: New file.
44075         * lib/sys_times.in.h: Likewise
44076         * lib/times.c: Likewise.
44077         * tests/test-sys_times.c: Likewise.
44078         * tests/test-times.c: Likewise.
44079         * doc/posix-headers/sys_times.texi: Update.
44080         * doc/posix-functions/times.texi: Update.
44081
44082 2008-10-28  Jim Meyering  <meyering@redhat.com>
44083
44084         * modules/tempname (Depends-on): Add lstat.
44085
44086         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44087
44088 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44089
44090         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44091         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44092         using idiom used elsewhere in gnulib.
44093
44094 2008-10-27  Jim Meyering  <meyering@redhat.com>
44095
44096         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44097
44098 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44099
44100         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44101         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44102         programs.
44103         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44104
44105 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44106
44107         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44108
44109 2008-10-27  Bruno Haible  <bruno@clisp.org>
44110
44111         * tests/test-lstat.c: Include <stdio.h>.
44112
44113 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44114
44115         * modules/lstat-tests: New module.
44116         * tests/test-lstat.c: New file.
44117
44118 2008-10-26  Jim Meyering  <meyering@redhat.com>
44119
44120         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44121
44122 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44123             Bruno Haible  <bruno@clisp.org>
44124
44125         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44126         * modules/configmake (Include): Add a note that the include must come
44127         after all system headers.
44128         * lib/javaversion.c: Include configmake.h after all other includes.
44129
44130 2008-10-26  Bruno Haible  <bruno@clisp.org>
44131
44132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44133         HAVE_STRUCT_RANDOM_DATA to 1.
44134         (gl_STDLIB_H): Simplify.
44135
44136 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44137
44138         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44139         substitute HAVE_STRUCT_RANDOM_DATA.
44140         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44141         random_data.
44142         * modules/stdlib (Makefile.am): Substitute
44143         HAVE_STRUCT_RANDOM_DATA.
44144
44145 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44146
44147         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44148         * doc/gnulib-intro.texi (Copyright): Likewise.
44149
44150 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44151
44152         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44153         findings.
44154
44155 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44156             Bruno Haible  <bruno@clisp.org>
44157
44158         * lib/unistd.in.h: Include <winsock2.h>.
44159         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44160         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44161         Provide dummy declarations.
44162         (gethostname): Override.
44163         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44164         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44165         gl_PREREQ_SYS_H_WINSOCK2.
44166         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44167         * doc/posix-functions/gethostname.texi: More details.
44168
44169 2008-10-25  Bruno Haible  <bruno@clisp.org>
44170
44171         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44172         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44173         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44174
44175         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44176         here ...
44177         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44179         gl_UNISTD_H_DEFAULTS.
44180
44181 2008-10-25  Eric Blake  <ebb9@byu.net>
44182
44183         signbit: avoid spurious compiler failure
44184         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44185         declarations inside function.
44186
44187 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44188             Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44191         * modules/random_r (Depends-on): Add stdint.
44192
44193 2008-10-24  Bruno Haible  <bruno@clisp.org>
44194
44195         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44196         Eggert.
44197         * modules/strerror (License): Likewise.
44198
44199 2008-10-24  Jim Meyering  <meyering@redhat.com>
44200
44201         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44202         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44203
44204 2008-10-24  Eric Blake  <ebb9@byu.net>
44205
44206         getgroups: fix compilation when getgroups is available
44207         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44208         but with <config.h> override of getgroups disabled.
44209
44210 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44211
44212         * doc/gnulib.texi (Header files): Add note about C++ problems.
44213         Explained by Bruno Haible <bruno@clisp.org>.
44214
44215 2008-10-23  Bruno Haible  <bruno@clisp.org>
44216
44217         Define a dummy SA_NODEFER macro on Interix.
44218         * lib/signal.in.h (SA_NODEFER): Define fallback.
44219         Reported by Aleksey Cheusov <cheusov@tut.by> via
44220         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44221
44222 2008-10-23  Bruno Haible  <bruno@clisp.org>
44223
44224         * modules/freadahead (License): Change to LGPLv2+.
44225         Suggested by Simon Josefsson.
44226
44227 2008-10-23  Jim Meyering  <meyering@redhat.com>
44228
44229         random_r: new module
44230         * modules/random_r: New file.
44231         * m4/random_r.m4: New file.
44232         * lib/random_r.c: New file, from glibc.
44233         * modules/random_r-tests: New file.
44234         * tests/test-random_r.c: New file.
44235         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44236          Declare.
44237         (RAND_MAX): Define.
44238         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44239         * modules/stdlib: Substitute them, too.
44240         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44241         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44242         * doc/glibc-functions/random_r.texi: Likewise.
44243         * doc/glibc-functions/setstate_r.texi: Likewise.
44244         * doc/glibc-functions/srandom_r.texi: Likewise.
44245         * config/srclist.txt: Mention it.
44246
44247 2008-10-23  David Lutterkort  <lutter@redhat.com>
44248
44249         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44250         link requirement
44251
44252 2008-10-23  Jim Meyering  <meyering@redhat.com>
44253
44254         selinux-h: mark parameters of stub functions as intentionally unused
44255         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44256         * lib/se-context.in.h: Likewise.
44257
44258 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44259
44260         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44261
44262 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44263
44264         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44265
44266 2008-10-22  Eric Blake  <ebb9@byu.net>
44267
44268         glthread/thread: avoid compiler warning
44269         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44270         Add unreachable abort to silence compiler.
44271
44272 2008-10-22  Eric Blake  <ebb9@byu.net>
44273
44274         netdb: also supply struct addrinfo for cygwin 1.5.x
44275         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44276         older cygwin.
44277         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44278         cygwin.
44279         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44280
44281 2008-10-22  Bruno Haible  <bruno@clisp.org>
44282
44283         * users.txt: Update entry about pspp.
44284
44285 2008-10-21  Bruno Haible  <bruno@clisp.org>
44286
44287         Simplification.
44288         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44289         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44290
44291         Simplification.
44292         * lib/ioctl.c (ioctl): Don't undefine.
44293         * lib/socket.c (socket): Don't undefine.
44294
44295         Remove unused module indicator macros.
44296         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44297         GNULIB_$1 as a C macro.
44298
44299         * doc/posix-functions/close.texi: Undo last change.
44300         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44301         Windows platforms.
44302
44303 2008-10-21  Bruno Haible  <bruno@clisp.org>
44304
44305         Add gethostname() declaration to <unistd.h>.
44306         * lib/unistd.in.h (gethostname): New declaration.
44307         * lib/gethostname.c: Include <unistd.h>.
44308         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44309         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44311         and HAVE_GETHOSTNAME.
44312         * modules/gethostname (Depends-on): Add unistd.
44313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44314         (Include): Specify <unistd.h>.
44315         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44316         HAVE_GETHOSTNAME.
44317         * tests/test-gethostname.c: Include <unistd.h> first.
44318
44319 2008-10-21  Bruno Haible  <bruno@clisp.org>
44320
44321         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44322         * modules/select-tests (Depends-on): Likewise.
44323         Reported by Simon Josefsson.
44324
44325 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44326
44327         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44328         * lib/accept.c: New file, based on winsock.c.
44329         * lib/bind.c: New file, based on winsock.c.
44330         * lib/connect.c: New file, based on winsock.c.
44331         * lib/getpeername.c: New file, based on winsock.c.
44332         * lib/getsockname.c: New file, based on winsock.c.
44333         * lib/getsockopt.c: New file, based on winsock.c.
44334         * lib/ioctl.c: New file, based on winsock.c.
44335         * lib/listen.c: New file, based on winsock.c.
44336         * lib/recv.c: New file, based on winsock.c.
44337         * lib/recvfrom.c: New file, based on winsock.c.
44338         * lib/send.c: New file, based on winsock.c.
44339         * lib/sendto.c: New file, based on winsock.c.
44340         * lib/setsockopt.c: New file, based on winsock.c.
44341         * lib/shutdown.c: New file, based on winsock.c.
44342         * lib/socket.c: New file, based on winsock.c.
44343         * lib/w32sock.h: New file, based on winsock.c.
44344         * lib/winsock.c: Remove file.
44345         * modules/accept: Likewise.
44346         * modules/bind: Likewise.
44347         * modules/connect: Likewise.
44348         * modules/getpeername: Likewise.
44349         * modules/getsockname: Likewise.
44350         * modules/getsockopt: Likewise.
44351         * modules/ioctl: Likewise.
44352         * modules/listen: Likewise.
44353         * modules/recv: Likewise.
44354         * modules/recvfrom: Likewise.
44355         * modules/send: Likewise.
44356         * modules/sendto: Likewise.
44357         * modules/setsockopt: Likewise.
44358         * modules/shutdown: Likewise.
44359         * modules/socket: Use socket.c instead of winsock.c.
44360         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44361         * doc/posix-functions/accept.texi: Doc fix.
44362         * doc/posix-functions/bind.texi: Doc fix.
44363         * doc/posix-functions/close.texi: Doc fix.
44364         * doc/posix-functions/connect.texi: Doc fix.
44365         * doc/posix-functions/getpeername.texi: Doc fix.
44366         * doc/posix-functions/getsockname.texi: Doc fix.
44367         * doc/posix-functions/getsockopt.texi: Doc fix.
44368         * doc/posix-functions/ioctl.texi: Doc fix.
44369         * doc/posix-functions/listen.texi: Doc fix.
44370         * doc/posix-functions/recv.texi: Doc fix.
44371         * doc/posix-functions/recvfrom.texi: Doc fix.
44372         * doc/posix-functions/send.texi: Doc fix.
44373         * doc/posix-functions/sendto.texi: Doc fix.
44374         * doc/posix-functions/setsockopt.texi: Doc fix.
44375         * doc/posix-functions/shutdown.texi: Doc fix.
44376         * doc/posix-functions/socket.texi: Doc fix.
44377
44378 2008-10-20  Bruno Haible  <bruno@clisp.org>
44379
44380         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44381         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44382         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44383         as an alias for SIGABRT.
44384         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44385         (sigaction): Map it to SIGABRT.
44386         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44387
44388 2008-10-20  Bruno Haible  <bruno@clisp.org>
44389
44390         * lib/fts.c: Don't include lstat.h.
44391         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44392
44393         Move the lstat() declaration to <sys/stat.h>.
44394         * lib/lstat.h: Remove file.
44395         * lib/sys_stat.in.h: Add special invocation convention.
44396         (lstat): New declaration.
44397         * lib/lstat.c (orig_lstat): New function.
44398         (rpl_lstat): Use orig_lstat instead of lstat.
44399         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44400         AC_C_INLINE. Set REPLACE_LSTAT.
44401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44402         and REPLACE_LSTAT.
44403         * modules/lstat (Files): Remove lib/lstat.h.
44404         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44405         (Include): Specify <sys/stat.h> instead of lstat.h.
44406         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44407         REPLACE_LSTAT.
44408         * NEWS: Mention the change.
44409
44410 2008-10-20  Bruno Haible  <bruno@clisp.org>
44411
44412         * modules/posix_spawn-tests: New file.
44413         * tests/test-posix_spawn3.c: New file.
44414
44415 2008-10-20  Bruno Haible  <bruno@clisp.org>
44416
44417         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44418         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44419         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44420         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44421         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44422
44423 2008-10-20  Bruno Haible  <bruno@clisp.org>
44424
44425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44426         of posix_spawn on AIX 5.3.
44427
44428 2008-10-20  Bruno Haible  <bruno@clisp.org>
44429
44430         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44431
44432 2008-10-20  Bruno Haible  <bruno@clisp.org>
44433
44434         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44435         of AC_LANG_PROGRAM.
44436
44437 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44438
44439         * lib/netdb.in.h: Don't define GNU specific constants until they
44440         are supported or needed.  Reported by Bruno Haible
44441         <bruno@clisp.org>.
44442
44443 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44444
44445         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44446
44447 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44448
44449         * lib/getaddrinfo.h: Remove file.
44450         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44451         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44452         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44453         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44454         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44455         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44456         * tests/test-getaddrinfo.c: Likewise.
44457         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44458         * NEWS: Mention change.
44459
44460 2008-10-19  Bruno Haible  <bruno@clisp.org>
44461
44462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44463
44464 2008-10-19  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/wait-process.c: Include simply <sys/wait.h>.
44467         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44468         WIFSTOPPED): Remove fallback definitions.
44469         * modules/wait-process (Depends-on): Add sys_wait.
44470
44471         New module 'sys_wait'.
44472         * modules/sys_wait: New file.
44473         * lib/sys_wait.in.h: New file, partially copied from
44474         lib/wait-process.c.
44475         * m4/sys_wait_h.m4: New file.
44476         * doc/posix-headers/sys_wait.texi: Mention the new module.
44477
44478 2008-10-19  Bruno Haible  <bruno@clisp.org>
44479
44480         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44481
44482 2008-10-19  Bruno Haible  <bruno@clisp.org>
44483
44484         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44485         * lib/wait-process.c (WAIT_T): Remove type.
44486         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44487         (wait_subprocess): Update.
44488
44489 2008-10-19  Bruno Haible  <bruno@clisp.org>
44490
44491         New module 'atoll'.
44492         * modules/atoll: New file.
44493         * lib/stdlib.in.h (atoll): New declaration.
44494         * lib/atoll.c: New file, from glibc with modifications.
44495         * m4/atoll.m4: New file.
44496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44497         HAVE_ATOLL.
44498         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44499         * doc/posix-functions/atoll.texi: Mention the new module.
44500
44501 2008-10-19  Bruno Haible  <bruno@clisp.org>
44502
44503         Add strtoull() declaration to <stdlib.h>.
44504         * lib/stdlib.in.h (strtoull): New declaration.
44505         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44506         Set HAVE_STRTOULL.
44507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44508         HAVE_STRTOULL.
44509         * modules/strtoull (Depends-on): Add stdlib.
44510         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44511         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44512         HAVE_STRTOULL.
44513
44514 2008-10-19  Bruno Haible  <bruno@clisp.org>
44515
44516         Add strtoll() declaration to <stdlib.h>.
44517         * lib/stdlib.in.h (strtoll): New declaration.
44518         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44519         Set HAVE_STRTOLL.
44520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44521         HAVE_STRTOLL.
44522         * modules/strtoll (Depends-on): Add stdlib.
44523         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44524         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44525
44526 2008-10-19  Bruno Haible  <bruno@clisp.org>
44527
44528         * modules/bcopy (Depends-on): Add strings.
44529         (Include): Specify <strings.h>.
44530
44531 2008-10-19  Bruno Haible  <bruno@clisp.org>
44532
44533         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44534
44535 2008-10-19  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44538         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44539         mingw.
44540
44541 2008-10-19  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/atanl.c: Don't include isnanl.h.
44544         * lib/cosl.c: Likewise.
44545         * lib/ldexpl.c: Likewise.
44546         * lib/logl.c: Likewise.
44547         * lib/sinl.c: Likewise.
44548         * lib/sqrtl.c: Likewise.
44549         * lib/tanl.c: Likewise.
44550
44551         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44552         * lib/isnanf.h: Remove file.
44553         * lib/isnand.h: Remove file.
44554         * lib/isnanl.h: Remove file.
44555         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44556         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44557         macros.
44558         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44559         HAVE_ISNANF, don't define it as a C macro.
44560         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44561         HAVE_ISNAND, don't define it as a C macro.
44562         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44563         HAVE_ISNANL, don't define it as a C macro.
44564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44565         HAVE_ISNAN[FDL].
44566         * modules/isnanf (Files): Remove lib/isnanf.h.
44567         (Depends-on): Add math.
44568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44569         (Include): Specify <math.h> instead of isnanf.h.
44570         * modules/isnand (Files): Remove lib/isnand.h.
44571         (Depends-on): Add math.
44572         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44573         (Include): Specify <math.h> instead of isnand.h.
44574         * modules/isnanl (Files): Remove lib/isnanl.h.
44575         (Depends-on): Add math.
44576         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44577         (Include): Specify <math.h> instead of isnanl.h.
44578         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44579         HAVE_ISNAN[FDL].
44580         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44581         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44582         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44583         * NEWS: Mention the change.
44584
44585 2008-10-18  Bruno Haible  <bruno@clisp.org>
44586
44587         Add getusershell(), setusershell(), endusershell() declarations to
44588         <unistd.h>.
44589         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44590         declarations.
44591         * lib/getusershell.c: Include unistd.h.
44592         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44593         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44594         HAVE_GETUSERSHELL.
44595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44596         and HAVE_GETUSERSHELL.
44597         * modules/getusershell (Depends-on): Add unistd, extensions.
44598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44599         (Include): Specify <unistd.h>.
44600         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44601         HAVE_GETUSERSHELL.
44602
44603 2008-10-18  Bruno Haible  <bruno@clisp.org>
44604
44605         Add a getloadavg() declaration to <stdlib.h>.
44606         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44607         getloadavg declaration.
44608         (getloadavg): New declaration.
44609         * lib/getloadavg.c: Include <stdlib.h> first.
44610         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44611         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44612         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44614         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44615         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44616         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44617         (Include): Specify <stdlib.h>.
44618         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44619         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44620
44621 2008-10-18  Bruno Haible  <bruno@clisp.org>
44622
44623         * lib/dirchownmod.c: Don't include lchmod.h.
44624
44625         Move the lchmod() declaration to <sys/stat.h>.
44626         * lib/lchmod.h: Remove file.
44627         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44628         (lchmod): New declaration, moved here from lib/lchown.h.
44629         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44630         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44632         and HAVE_LCHMOD.
44633         * modules/lchmod (Files): Remove lib/lchmod.h.
44634         (Depends-on): Add sys_stat, extensions.
44635         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44636         (Include): Specify <sys/stat.h> instead of lchmod.h.
44637         * modules/sys_stat (Depends-on): Add link-warning.
44638         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44639         definition of GL_LINK_WARNING.
44640         * NEWS: Mention the change.
44641
44642 2008-10-18  Bruno Haible  <bruno@clisp.org>
44643
44644         * lib/fchdir.c: Don't include dirfd.h.
44645         * lib/fts.c: Likewise.
44646         * lib/getcwd.c: Likewise.
44647         * lib/glob.c: Likewise.
44648
44649         Move the dirfd() declaration to <dirent.h>.
44650         * lib/dirfd.h: Remove file.
44651         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44652         (dirfd): New declaration.
44653         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44655         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44656         HAVE_DECL_DIRFD.
44657         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44658         HAVE_DECL_DIRFD.
44659         * modules/dirfd (Files): Remove lib/dirfd.h.
44660         (Depends-on): Add dirent, extensions.
44661         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44662         (Include): Specify <dirent.h> instead of dirfd.h.
44663         * modules/dirent (Depends-on): Add link-warning.
44664         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44665         definition of GL_LINK_WARNING.
44666         * NEWS: Mention the change.
44667
44668 2008-10-18  Bruno Haible  <bruno@clisp.org>
44669
44670         Move the euidaccess() declaration to <unistd.h>.
44671         * lib/euidaccess.h: Remove file.
44672         * lib/unistd.in.h (euidaccess): New declaration.
44673         * lib/euidaccess.c: Don't include euidaccess.h.
44674         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44675         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44677         and HAVE_EUIDACCESS.
44678         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44679         (Depends-on): Add unistd.
44680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44681         (Include): Specify <unistd.h> instead of euidaccess.h.
44682         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44683         HAVE_EUIDACCESS.
44684         * NEWS: Mention the change.
44685
44686 2008-10-18  Bruno Haible  <bruno@clisp.org>
44687
44688         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44689
44690         Move the getdomainname() declaration to <unistd.h>.
44691         * lib/getdomainname.h: Remove file.
44692         * lib/unistd.in.h (getdomainname): New declaration.
44693         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44694         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44695         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44696         HAVE_GETDOMAINNAME.
44697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44698         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44699         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44700         (Depends-on): Add unistd, extensions.
44701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44702         (Includes): Specify <unistd.h> instead of getdomainname.h.
44703         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44704         HAVE_GETDOMAINNAME.
44705         * NEWS: Mention the change.
44706
44707 2008-10-18  Bruno Haible  <bruno@clisp.org>
44708
44709         * modules/dirent: New file.
44710         * m4/dirent_h.m4: New file.
44711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44712         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44713         * modules/fchdir (Files): Remove lib/dirent.in.h.
44714         (Depends-on): Add dirent.
44715         (Makefile.am): Move rules to modules/dirent.
44716         * doc/posix-headers/dirent.texi: Mention the new module.
44717
44718 2008-10-18  Bruno Haible  <bruno@clisp.org>
44719
44720         Avoid -Wunused-parameter warnings in public gnulib header files.
44721         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44722         macro.
44723         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44724
44725 2008-10-18  Bruno Haible  <bruno@clisp.org>
44726
44727         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44728         * doc/glibc-functions/error.texi: Mention the module 'error'.
44729         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44730         * doc/glibc-functions/getdomainname.texi: Mention the module
44731         'getdomainname'.
44732         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44733         * doc/glibc-functions/getpagesize.texi: Mention the module
44734         'getpagesize'.
44735         * doc/glibc-functions/getusershell.texi: Mention the module
44736         'getusershell'.
44737         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44738         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44739         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44740         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44741         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44742         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44743         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44744         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44745         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44746         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44747         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44748         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44749         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44750         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44751
44752 2008-10-17  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44755         HP-UX and IRIX, use -0.0L.
44756         * tests/test-ceill.c (minus_zero): Likewise.
44757         * tests/test-floorl.c (minus_zero): Likewise.
44758         * tests/test-frexpl.c (minus_zero): Likewise.
44759         * tests/test-isnan.c (minus_zerol): Likewise.
44760         * tests/test-isnanl.h (minus_zero): Likewise.
44761         * tests/test-ldexpl.c (minus_zero): Likewise.
44762         * tests/test-roundl.c (minus_zero): Likewise.
44763         * tests/test-signbit.c (minus_zerol): Likewise.
44764         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44765         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44766         * tests/test-truncl.c (minus_zero): Likewise.
44767         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44768         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44769         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44770         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44771
44772 2008-10-17  Bruno Haible  <bruno@clisp.org>
44773
44774         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44775         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44776         that it gets activated only for gcc >= 3.0.
44777         * lib/dirent.in.h: Likewise.
44778         * lib/errno.in.h: Likewise.
44779         * lib/fcntl.in.h: Likewise.
44780         * lib/float.in.h: Likewise.
44781         * lib/iconv.in.h: Likewise.
44782         * lib/inttypes.in.h: Likewise.
44783         * lib/locale.in.h: Likewise.
44784         * lib/math.in.h: Likewise.
44785         * lib/netdb.in.h: Likewise.
44786         * lib/netinet_in.in.h: Likewise.
44787         * lib/search.in.h: Likewise.
44788         * lib/signal.in.h: Likewise.
44789         * lib/spawn.in.h: Likewise.
44790         * lib/stdarg.in.h: Likewise.
44791         * lib/stdint.in.h: Likewise.
44792         * lib/stdio.in.h: Likewise.
44793         * lib/stdlib.in.h: Likewise.
44794         * lib/string.in.h: Likewise.
44795         * lib/strings.in.h: Likewise.
44796         * lib/sys_file.in.h: Likewise.
44797         * lib/sys_ioctl.in.h: Likewise.
44798         * lib/sys_select.in.h: Likewise.
44799         * lib/sys_socket.in.h: Likewise.
44800         * lib/sys_stat.in.h: Likewise.
44801         * lib/sys_time.in.h: Likewise.
44802         * lib/sysexits.in.h: Likewise.
44803         * lib/time.in.h: Likewise.
44804         * lib/unistd.in.h: Likewise.
44805         * lib/wchar.in.h: Likewise.
44806         * lib/wctype.in.h: Likewise.
44807         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44808
44809 2008-10-17  Jim Meyering  <meyering@redhat.com>
44810
44811         ignore-value: don't depend on inline module
44812         * modules/ignore-value (Depends-on): Remove 'inline'.
44813         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44814         Suggestion from Bruno Haible.
44815
44816 2008-10-17  Bruno Haible  <bruno@clisp.org>
44817
44818         New implementation of condition variables for Win32.
44819         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44820         (gl_linked_waitqueue_t): New type.
44821         (gl_cond_t): Use it.
44822         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44823         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44824         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44825         (glthread_cond_init_func, glthread_cond_wait_func,
44826         glthread_cond_timedwait_func, glthread_cond_signal_func,
44827         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44828         Reimplemented on the basis of gl_linked_waitqueue_t.
44829         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44830         gl_waitqueue_t.
44831         (gl_rwlock_t): Update.
44832         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44833
44834 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44835
44836         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44837         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44838
44839 2008-10-17  Jim Meyering  <meyering@redhat.com>
44840
44841         ignore-value: new module
44842         * modules/ignore-value: New file.
44843         * lib/ignore-value.h: New file.
44844         * MODULES.html.sh (Compiler warning management): New section,
44845         just for this module.  More to come.
44846
44847 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44848
44849         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44850         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44851         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44852
44853 2008-10-16  Jim Meyering  <meyering@redhat.com>
44854
44855         openat-die.c: avoid 'no previous prototype' warning
44856         * lib/openat-die.c: Include "openat.h".
44857         Reported by Reuben Thomas <rrt@sc3d.org>.
44858
44859 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44860
44861         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44862         * lib/netdb.in.h: Fix typo.
44863         Reported by Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/netdb.in.h: Include sys/socket.h for platforms without
44866         netdb.h, to get structures like hostent on MinGW.
44867         * modules/netdb (Depends-on): Add sys_socket.
44868
44869 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44870
44871         * modules/netdb, modules/netdb-tests: New file.
44872         * m4/netdb_h.m4: New file.
44873         * lib/netdb.in.h: Add, currently just an empty file pending
44874         definitions.
44875         * tests/test-netdb.c: New file.
44876         * doc/posix-headers/netdb.texi: Mention that we replace it if
44877         needed.
44878         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44879         netdb.
44880
44881 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44882
44883         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44884         with code.
44885
44886 2008-10-13  Bruno Haible  <bruno@clisp.org>
44887
44888         * lib/glthread/cond.c (glthread_cond_wait_func,
44889         glthread_cond_timedwait_func): Add a comment.
44890
44891 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44892
44893         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44894         * tests/test-select.c: Likewise,
44895
44896 2008-10-13  Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/glthread/cond.c (glthread_cond_wait_func,
44899         glthread_cond_timedwait_func): Fix variable name.
44900         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44901
44902 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44903
44904         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44906         struct sockaddr.sa_len.
44907         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44908
44909 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44910
44911         * build-aux/pmccabe2html: Add css and css_url parameters.
44912
44913 2008-10-12  Bruno Haible  <bruno@clisp.org>
44914
44915         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44916         calling aclx_get.
44917         Reported by Rainer Tammer <tammer@tammer.net>.
44918
44919 2008-10-12  Bruno Haible  <bruno@clisp.org>
44920
44921         Use msvcrt aware primitives for creation/termination of Win32 threads.
44922         * lib/glthread/thread.c: Include <process.h>.
44923         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44924         (wrapper_func): Update signature.
44925         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44926
44927 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44928             Bruno Haible  <bruno@clisp.org>
44929
44930         Provide a Win32 implementation of the 'cond' module.
44931         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44932         * lib/glthread/cond.c (glthread_cond_init_func,
44933         glthread_cond_wait_func, glthread_cond_timedwait_func,
44934         glthread_cond_signal_func, glthread_cond_broadcast_func,
44935         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44936         * modules/cond (Dependencies): Add gettimeofday.
44937
44938 2008-10-11  Bruno Haible  <bruno@clisp.org>
44939
44940         Make sleep work on older versions of mingw.
44941         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44942         only whether it exists.
44943         * doc/posix-functions/sleep.texi: Mention the problem with older
44944         versions of mingw.
44945
44946 2008-10-11  Bruno Haible  <bruno@clisp.org>
44947
44948         New module 'shutdown'.
44949         * modules/shutdown: New file.
44950         * lib/sys_socket.in.h (shutdown): New declaration.
44951         * lib/winsock.c (shutdown): New function.
44952         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44953         GNULIB_SHUTDOWN.
44954         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44955         * doc/posix-functions/shutdown.texi: Document the new module.
44956
44957 2008-10-11  Jim Meyering  <meyering@redhat.com>
44958
44959         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44960
44961 2008-10-11  Bruno Haible  <bruno@clisp.org>
44962
44963         New module 'fclose'.
44964         * modules/fclose: New file.
44965         * lib/stdio.in.h (fclose): New declaration.
44966         * lib/fclose.c: New file.
44967         * m4/fclose.m4: New file.
44968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44969         REPLACE_FCLOSE.
44970         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44971         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44972         REPLACE_FCLOSE.
44973         * modules/close (Depends-on): fclose.
44974         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44975
44976 2008-10-11  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44979         set errno and don't call _close.
44980
44981 2008-10-10  Bruno Haible  <bruno@clisp.org>
44982
44983         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44984         ACL, not afterwards. Fixes test failure on Cygwin.
44985
44986 2008-10-09  Ben Pfaff  <blp@gnu.org>
44987
44988         * build-aux/announce-gen: Fix gnulib version related part of usage
44989         message.  Die with a useful error message if no tarballs are
44990         found.
44991
44992 2008-10-10  Jim Meyering  <meyering@redhat.com>
44993
44994         bootstrap: use git's --depth=N option only if it's supported
44995         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44996         recognize the --depth option.  Reported by Pádraig Brady.
44997
44998 2008-10-09  Bruno Haible  <bruno@clisp.org>
44999
45000         New module 'ioctl'.
45001         * modules/ioctl: New file.
45002         * lib/sys_socket.in.h (ioctl): Remove declaration.
45003         * lib/winsock.c: Include <sys/ioctl.h>.
45004         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45005         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45006         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45007         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45008         * doc/posix-functions/ioctl.texi: Mention the new module.
45009
45010 2008-10-09  Bruno Haible  <bruno@clisp.org>
45011
45012         New module 'sys_ioctl'.
45013         * lib/sys_ioctl.in.h: New file.
45014         * m4/sys_ioctl_h.m4: New file.
45015         * modules/sys_ioctl: New file.
45016         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45017
45018 2008-10-09  Bruno Haible  <bruno@clisp.org>
45019
45020         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45021         * lib/winsock.c: Include <stdarg.h>.
45022         (rpl_ioctl): Change to second argument 'int' and then varargs.
45023
45024 2008-10-09  Bruno Haible  <bruno@clisp.org>
45025
45026         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45027         when the sys_socket module is present and the system has <winsock2.h>.
45028
45029 2008-10-09  Bruno Haible  <bruno@clisp.org>
45030
45031         * doc/posix-functions/close.texi: Mention module 'close' instead of
45032         module 'sys_socket'.
45033
45034 2008-10-09  Bruno Haible  <bruno@clisp.org>
45035
45036         * doc/glibc-headers/sys_ioctl.texi: New file.
45037         * doc/gnulib.texi: Include it.
45038
45039 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45040             Bruno Haible  <bruno@clisp.org>
45041
45042         Combine the two replacements of 'close'.
45043         * lib/sys_socket.in.h (close): Define to a reminder to include
45044         <unistd.h>.
45045         (_gl_close_fd_maybe_socket): New declaration.
45046         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45047         * lib/winsock.c (close): Remove undefinition.
45048         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45049         needed for the gnulib module 'close'.
45050         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45051         define to an error symbol or to a warning, if suitable.
45052         * lib/close.c: Include <sys/socket.h>.
45053         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45054         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45055         UNISTD_H_HAVE_WINSOCK2_H.
45056         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45058         UNISTD_H_HAVE_WINSOCK2_H.
45059         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45060         (configure.ac): Set a module indicator.
45061         (Makefile.am): Substitute GNULIB_CLOSE.
45062         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45063         * modules/poll-tests (Depends-on): Add close.
45064         * modules/select-tests (Depends-on): Likewise.
45065
45066 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45067             Bruno Haible  <bruno@clisp.org>
45068
45069         New module 'close'.
45070         * modules/close: New file.
45071         * lib/unistd.in.h (close): Move declaration out of the
45072         FCHDIR_REPLACEMENT scope.
45073         (_gl_unregister_fd): New declaration.
45074         * lib/close.c: New file.
45075         * lib/fchdir.c (rpl_close): Remove function.
45076         * m4/close.m4: New file.
45077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45078         close.
45079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45080         REPLACE_CLOSE.
45081         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45082         REPLACE_CLOSE.
45083         * modules/fchdir (Depends-on): Add close.
45084
45085 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45086             Bruno Haible  <bruno@clisp.org>
45087
45088         * lib/fcntl.in.h (open): Simplify conditionals.
45089         (_gl_register_fd): New declaration.
45090         * lib/fchdir.c (rpl_open): Remove function.
45091         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45092         also.
45093         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45095         open.
45096
45097 2008-10-09  Jim Meyering  <meyering@redhat.com>
45098
45099         GNUmakefile: use the more name-space-friendly "_version"
45100         * top/GNUmakefile (_dummy): Update.
45101         (_version): Rename from "version".
45102
45103 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45104             Bruno Haible  <bruno@clisp.org>
45105
45106         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45107         rpl_close.
45108         (_gl_register_fd): New function, extracted from rpl_open.
45109         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45110         (rpl_open, rpl_opendir): Use _gl_register_fd.
45111
45112 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45113
45114         Fix organization of 'open' replacement.
45115         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45116         (gl_FUNC_OPEN): Use it.
45117         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45118
45119 2008-10-08  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45122
45123 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45124
45125         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45126         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45127         listen).
45128
45129 2008-10-08  Eric Blake  <ebb9@byu.net>
45130
45131         GNUmakefile: add 'make version' target
45132         * top/GNUmakefile (_curr-ver): Split version update rules...
45133         (version): ...into a target.
45134
45135 2008-10-07  Bruno Haible  <bruno@clisp.org>
45136
45137         Use a more portable replacement expression for -0.0L.
45138         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45139         instead of -0.0L. Fix m4 quotation.
45140
45141         * tests/test-signbit.c: Include <float.h>.
45142         (minus_zero): New variable.
45143         (test_signbitl): Use minus_zero instead of -zero.
45144         * modules/signbit-tests (Depends-on): Add float.
45145
45146         * tests/test-ceill.c: Include <float.h>.
45147         (zero): Remove variable.
45148         (minus_zero): New variable.
45149         (main): Use minus_zero instead of -zero.
45150         * modules/ceill-tests (Depends-on): Add float.
45151
45152         * tests/test-floorl.c: Include <float.h>.
45153         (zero): Remove variable.
45154         (minus_zero): New variable.
45155         (main): Use minus_zero instead of -zero.
45156         * modules/floorl-tests (Depends-on): Add float.
45157
45158         * tests/test-roundl.c: Include <float.h>.
45159         (zero): Remove variable.
45160         (minus_zero): New variable.
45161         (main): Use minus_zero instead of -zero.
45162         * modules/roundl-tests (Depends-on): Add float.
45163
45164         * tests/test-truncl.c: Include <float.h>.
45165         (zero): Remove variable.
45166         (minus_zero): New variable.
45167         (main): Use minus_zero instead of -zero.
45168         * modules/truncl-tests (Depends-on): Add float.
45169
45170         * tests/test-frexpl.c (zero): Remove variable.
45171         (minus_zero): New variable.
45172         (main): Use minus_zero instead of -zero.
45173         * modules/frexpl-tests (Depends-on): Add float.
45174
45175         * tests/test-isnan.c (zerol): Remove variable.
45176         (minus_zerol): New variable.
45177         (test_long_double): Use minus_zerol instead of -zerol.
45178         * modules/isnan-tests (Depends-on): Add float.
45179
45180         * tests/test-isnanl.h (zero): Remove variable.
45181         (minus_zero): New variable.
45182         (main): Use minus_zero instead of -zero.
45183         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45184         * modules/isnanl-tests (Depends-on): Add float.
45185
45186         * tests/test-ldexpl.c (zero): Remove variable.
45187         (minus_zero): New variable.
45188         (main): Use minus_zero instead of -zero.
45189         * modules/ldexpl-tests (Depends-on): Add float.
45190
45191         * tests/test-snprintf-posix.h (zerol): Remove variable.
45192         (minus_zerol): New variable.
45193         (test_function): Use minus_zerol instead of -zerol.
45194         * modules/snprintf-posix-tests (Depends-on): Add float.
45195         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45196
45197         * tests/test-sprintf-posix.h (zerol): Remove variable.
45198         (minus_zerol): New variable.
45199         (test_function): Use minus_zerol instead of -zerol.
45200         * modules/sprintf-posix-tests (Depends-on): Add float.
45201         * modules/vsprintf-posix-tests (Depends-on): Add float.
45202
45203         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45204         (minus_zerol): New variable.
45205         (test_function): Use minus_zerol instead of -zerol.
45206         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45207
45208         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45209         (minus_zerol): New variable.
45210         (test_function): Use minus_zerol instead of -zerol.
45211         * modules/vasprintf-posix-tests (Depends-on): Add float.
45212
45213 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45214
45215         * MODULES.html.sh (Support for building documentation): Mention
45216         pmccabe2html.  Sort entries.
45217
45218         Add pmccabe2html module, from gnupdf.
45219         * build-aux/pmccabe.css: New file.
45220         * build-aux/pmccabe2html: New file.
45221         * m4/pmccabe2html.m4: New file.
45222         * modules/pmccabe2html: New file.
45223
45224 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45225
45226         flock: new module
45227         * MODULES.html.sh: Add to list of modules.
45228         * lib/flock.c: flock implementation for Windows and Unix systems
45229         which have fcntl.
45230         * doc/glibc-functions/flock.texi: Update documentation.
45231         * lib/sys_file.in.h: <sys/file.h> header file.
45232         * m4/flock.m4: M4 macros.
45233         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45234         * modules/flock: flock module.
45235         * modules/flock-tests: flock tests module.
45236         * modules/sys_file: sys/file.h module.
45237         * tests/test-flock.c: test suite for flock.
45238
45239 2008-10-06  Jim Meyering  <meyering@redhat.com>
45240
45241         bootstrap: check for LT_INIT more portably still ;-)
45242         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45243         Spotted by Bruno Haible.
45244
45245 2008-10-06  Eric Blake  <ebb9@byu.net>
45246
45247         test-signbit: avoid tripping Irix cc bug on -0.0L
45248         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45249         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45250         entire testsuite consistent and avoids an Irix 6.2 bug.
45251
45252 2008-10-05  Bruno Haible  <bruno@clisp.org>
45253             Jim Meyering  <jim@meyering.net>
45254
45255         Add an option for ignoring EPIPE during close_stdout.
45256         * lib/closeout.h: Include <stdbool.h>.
45257         (close_stdout_set_ignore_EPIPE): New declaration.
45258         * lib/closeout.c: Include <stdbool.h>.
45259         (ignore_EPIPE): New variable.
45260         (close_stdout_set_ignore_EPIPE): New function.
45261         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45262         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45263         failure.
45264         * modules/closeout (Depends-on): Add stdbool.
45265
45266 2008-10-05  Bruno Haible  <bruno@clisp.org>
45267
45268         * modules/accept: New file.
45269         * modules/bind: New file.
45270         * modules/connect: New file.
45271         * modules/getpeername: New file.
45272         * modules/getsockname: New file.
45273         * modules/getsockopt: New file.
45274         * modules/listen: New file.
45275         * modules/recv: New file.
45276         * modules/recvfrom: New file.
45277         * modules/send: New file.
45278         * modules/sendto: New file.
45279         * modules/setsockopt: New file.
45280         * modules/socket: New file.
45281         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45282         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45283         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45284         the particular module is requested. Add a link warning when the
45285         particular module is not requested.
45286         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45287         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45288         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45289         the particular module is requested.
45290         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45291         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45292         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45293         * modules/sys_socket (Depends-on): Add link-warning.
45294         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45295         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45296         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45297         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45298         GL_LINK_WARNING.
45299         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45300         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45301         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45302         * doc/posix-functions/getpeername.texi: Mention the new module
45303         'getpeername'.
45304         * doc/posix-functions/getsockname.texi: Mention the new module
45305         'getsockname'.
45306         * doc/posix-functions/getsockopt.texi: Mention the new module
45307         'getsockopt'.
45308         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45309         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45310         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45311         * doc/posix-functions/send.texi: Mention the new module 'send'.
45312         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45313         * doc/posix-functions/setsockopt.texi: Mention the new module
45314         'setsockopt'.
45315         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45316         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45317         listen, connect, accept.
45318         * modules/select-tests (Depends-on): Likewise.
45319
45320 2008-10-05  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/winsock.c (strerror): Remove unused #undef.
45323         (rpl_close): Remove unused local variable.
45324
45325         * modules/sys_socket (Depends-on); Add errno.
45326
45327 2008-10-05  Bruno Haible  <bruno@clisp.org>
45328
45329         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45330         (select): Add a link warning when the 'select' module is not used.
45331         * modules/sys_select (Depends-on): Add link-warning.
45332         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45333         Suggested by Paolo Bonzini.
45334
45335 2008-10-05  Jim Meyering  <meyering@redhat.com>
45336
45337         bootstrap: check for LT_INIT more portably
45338         * build-aux/bootstrap: Avoid using grep -E, since it's not
45339         portable enough.  Suggestion from Bruno Haible.
45340
45341 2008-10-05  Bruno Haible  <bruno@clisp.org>
45342
45343         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45344         as being fixed by gnulib.
45345
45346 2008-10-05  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/select-tests: New file, mostly copied from
45349         modules/sys_select-tests.
45350         * tests/test-select.c: New file, mostly copied from
45351         tests/test-sys_select.c.
45352         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45353         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45354         (Makefile.am): Remove test_sys_select_LDADD.
45355
45356         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45357         to an undefined symbol, for an error message.
45358         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45359         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45360         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45361         winsock-select.c here.
45362         * modules/sys_select (Files): Remove lib/winsock-select.c.
45363         (Depends-on): Remove alloca.
45364         (Makefile.am): Substitute GNULIB_SELECT.
45365         * modules/select: New file.
45366         * doc/posix-functions/select.texi: Update.
45367
45368 2008-10-05  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45371         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45372         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45373         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45374         getdtablesize.
45375         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45376         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45377
45378 2008-10-05  Bruno Haible  <bruno@clisp.org>
45379
45380         * modules/getdtablesize-tests: New file.
45381         * tests/test-getdtablesize.c: New file.
45382
45383         New module 'getdtablesize'.
45384         * lib/unistd.in.h (getdtablesize): New declaration.
45385         * lib/getdtablesize.c: New file.
45386         * m4/getdtablesize.m4: New file.
45387         * modules/getdtablesize: New file.
45388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45389         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45390         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45391         HAVE_GETDTABLESIZE.
45392         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45393
45394 2008-10-05  Bruno Haible  <bruno@clisp.org>
45395
45396         * modules/sched (Makefile.am): Fix typo.
45397         Reported by Simon Josefsson.
45398
45399 2008-10-05  Jim Meyering  <meyering@redhat.com>
45400
45401         bootstrap: check for LT_INIT, too
45402         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45403         are deprecated.  Suggestion from Ralf Wildenhues.
45404
45405 2008-10-05  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45408         overriding them by ours.
45409         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45410
45411 2008-10-05  Jim Meyering  <meyering@redhat.com>
45412
45413         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45414         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45415         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45416
45417 2008-10-04  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/dup2 (License): Change to LGPLv2+.
45420         * modules/sleep (License): Likewise.
45421         * modules/perror (License): Likewise.
45422         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45423         Blake.
45424         * modules/signal (License): Likewise.
45425         * modules/sigprocmask (License): Likewise.
45426         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45427         Meyering.
45428
45429 2008-10-04  Bruno Haible  <bruno@clisp.org>
45430
45431         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45432         Reported by Rainer Tammer <tammer@tammer.net>.
45433
45434 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45435             Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45438         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45439         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45440
45441 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45442
45443         filevercmp: new module
45444         * lib/filevercmp.h: New function filevercmp comparing version strings.
45445         * lib/filevercmp.c: Implementation of filevercmp function.
45446         * modules/filevercmp: Module metadata.
45447         * tests/test-filevercmp.c: Unit test for new module.
45448         * modules/filevercmp-tests: Unit test metadata.
45449         * MODULES.html.sh: Add filevercmp module.
45450
45451 2008-10-03  Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/c-ctype.h: Add comment.
45454         Reported by Jim Meyering.
45455
45456 2008-10-02  Bruno Haible  <bruno@clisp.org>
45457
45458         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45459
45460 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45461
45462         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45463         name of bootstrap.conf accordingly.
45464
45465 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45466
45467         * build-aux/bootstrap: Install git-merge-changelog configuration
45468         items into .gitconfig if needed.
45469
45470 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45471
45472         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45473         git repository, and initialize/update it accordingly.
45474
45475 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45476
45477         * modules/fsync-tests: New file.
45478         * tests/test-fsync.c: New file.
45479
45480         New module 'fsync'.
45481         * lib/fsync.c: New file.
45482         * m4/fsync.m4: New file.
45483         * modules/fsync: New file.
45484         * lib/unistd.in.h (fsync): New declaration.
45485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45486         GNULIB_FSYNC and HAVE_FSYNC.
45487         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45488         * MODULES.html.sh (posix_functions): Add fsync.
45489         * doc/posix-functions/fsync.texi: Mention the new module.
45490
45491 2008-10-02  Jim Meyering  <meyering@redhat.com>
45492
45493         fts.c: sync with similar code from coreutils' remove.c
45494         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45495         Guard also with "#if defined __linux__", since for now at least,
45496         this code is Linux-kernel-specific.
45497
45498 2008-10-02  Jim Meyering  <meyering@redhat.com>
45499
45500         fts: bug fixes
45501         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45502         Include <sys/vfs.h>, not <sys/statfs.h>.
45503
45504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45505         Include <sys/vfs.h>, not <sys/statfs.h>.
45506
45507 2008-10-01  Bruno Haible  <bruno@clisp.org>
45508
45509         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45511         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45512         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45513         * doc/posix-functions/posix_spawnp.texi: Likewise.
45514         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45515         whether posix_spawn actually works.
45516         * m4/pipe.m4 (gl_PIPE): Likewise.
45517         * modules/execute (Files): Add m4/posix_spawn.m4.
45518         * modules/pipe (Files): Add m4/posix_spawn.m4.
45519         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45520
45521 2008-10-01  Jim Meyering  <meyering@redhat.com>
45522
45523         remove trailing spaces
45524         * NEWS: Likewise.
45525         * lib/poll.c (poll): Likewise.
45526         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45527         * lib/winsock.c (rpl_close): Likewise.
45528         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45529         * modules/yield: Likewise.
45530         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45531         * tests/test-sys_select.c (connect_to_socket): Likewise.
45532
45533         fts.c: adjust a new interface to be more generally useful
45534         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45535         (fts_build): Adjust caller.
45536
45537 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45538
45539         * modules/cond-tests: New file.
45540         * tests/test-cond.c: New file.
45541
45542 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45543             Bruno Haible  <bruno@clisp.org>
45544
45545         * modules/cond (Dependencies): Add errno, time.
45546         * lib/glthread/cond.h: Include <time.h>.
45547         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45548         across platforms.
45549
45550 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45551             Bruno Haible  <bruno@clisp.org>
45552
45553         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45554
45555 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45556             Bruno Haible  <bruno@clisp.org>
45557
45558         * modules/tls-tests (Depends-on): Add thread, yield.
45559         (configure.ac): Remove all checks.
45560         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45561         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45562         gl_thread_self): Remove definitions. Include glthread/thread.h and
45563         glthread/yield.h instead.
45564         (test_tls): Pass an additional NULL argument to gl_thread_join.
45565
45566 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45567             Bruno Haible  <bruno@clisp.org>
45568
45569         * modules/lock-tests (Depends-on): Add thread, yield.
45570         (configure.ac): Remove all checks.
45571         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45572         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45573         gl_thread_self): Remove definitions. Include glthread/thread.h and
45574         glthread/yield.h instead.
45575         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45576         additional NULL argument to gl_thread_join.
45577
45578 2008-09-30  Bruno Haible  <bruno@clisp.org>
45579
45580         Fix the Win32 implementation of the 'thread' module.
45581         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45582         pointer type.
45583         (gl_thread_self): Invoke gl_thread_self_func.
45584         (gl_thread_self_func): New declaration.
45585         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45586         (do_init_self_key, init_self_key): New functions.
45587         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45588         Remove some fields.
45589         (running_threads, running_lock): Remove variables.
45590         (get_current_thread_handle): New function.
45591         (gl_thread_self_func, wrapper_func, glthread_create_func,
45592         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45593         simplified.
45594
45595 2008-09-30  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45598         files.
45599
45600 2008-09-30  Jim Meyering  <meyering@redhat.com>
45601
45602         fts.m4: correct the test for statfs.f_type
45603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45604         when checking for statfs.f_type.
45605
45606 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45607
45608         tests: avoid some compiler warnings
45609         * tests/test-memchr.c (main): Pass NULL indirectly.
45610         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45611
45612 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45613
45614         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45615         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45616         exactly specified dayshifts.
45617         (dayshift): New rule.
45618         (rel): Add dayshift.
45619         (relative_time_table) [tomorrow, yesterday, today, now]:
45620         Use tDAY_SHIFT in place of tDAY_UNIT.
45621         * tests/test-getdate.c: Add tests for now-disallowed countable
45622         dayshifts, e.g., "4 yesterday ago".
45623
45624 2008-09-29  Bruno Haible  <bruno@clisp.org>
45625
45626         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45627         * tests/test-posix_spawn1.in.sh: Renamed from
45628         tests/test-posix_spawn.in.sh.
45629         * tests/test-posix_spawn2.c: New file.
45630         * tests/test-posix_spawn2.in.sh: New file.
45631         * modules/posix_spawnp-tests (Files): Update.
45632         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45633
45634 2008-09-29  Bruno Haible  <bruno@clisp.org>
45635
45636         Propagate effects of putenv/setenv/unsetenv to child processes.
45637         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45638         * lib/pipe.c (create_pipe): Likewise.
45639
45640 2008-09-29  Bruno Haible  <bruno@clisp.org>
45641
45642         Enable use of shell scripts as executables in mingw.
45643         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45644         run the program as a shell script.
45645         * lib/pipe.c (create_pipe): Likewise.
45646         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45647         resulting array.
45648
45649 2008-09-29  Eric Blake  <ebb9@byu.net>
45650
45651         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45652
45653 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45654
45655         * doc/posix-functions/accept.texi: Update mingw problems.
45656         * doc/posix-functions/bind.texi: Update mingw problems.
45657         * doc/posix-functions/close.texi: Update mingw problems.
45658         * doc/posix-functions/connect.texi: Update mingw problems.
45659         * doc/posix-functions/getpeername.texi: Update mingw problems.
45660         * doc/posix-functions/getsockname.texi: Update mingw problems.
45661         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45662         * doc/posix-functions/ioctl.texi: Update mingw problems.
45663         * doc/posix-functions/listen.texi: Update mingw problems.
45664         * doc/posix-functions/recv.texi: Update mingw problems.
45665         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45666         * doc/posix-functions/select.texi: Update mingw problems.
45667         * doc/posix-functions/send.texi: Update mingw problems.
45668         * doc/posix-functions/sendto.texi: Update mingw problems.
45669         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45670         * doc/posix-functions/socket.texi: Update mingw problems.
45671
45672 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45673             Bruno Haible  <bruno@clisp.org>
45674
45675         * lib/sys_select.in.h: Include sys/time.h.
45676         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45677         * modules/sys_select: Depend on sys_time.
45678         * tests/test-sys_select.c: Test that sys/select.h defines struct
45679         timeval fully.
45680
45681 2008-09-29  Bruno Haible  <bruno@clisp.org>
45682
45683         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45684         * lib/sys_select.in.h: Likewise.
45685
45686 2008-09-29  Bruno Haible  <bruno@clisp.org>
45687
45688         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45689
45690 2008-09-29  Bruno Haible  <bruno@clisp.org>
45691
45692         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45693         Set LIBSOCKET instead of augmenting LIBS.
45694         * modules/sockets (Link): New section.
45695         * modules/sockets-tests (test_sockets_LDADD): New variable.
45696         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45697         * modules/poll-tests (test_poll_LDADD): New variable.
45698         * NEWS: Document the change.
45699
45700 2008-09-29  Bruno Haible  <bruno@clisp.org>
45701
45702         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45703         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45704         ARPA_INET_H directly.
45705         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45706
45707 2008-09-28  Bruno Haible  <bruno@clisp.org>
45708
45709         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45710         from gl_HEADER_SYS_SOCKET.
45711         (gl_HEADER_SYS_SOCKET): Invoke it.
45712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45713
45714 2008-09-28  Bruno Haible  <bruno@clisp.org>
45715
45716         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45717         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45718         Needed on OSF/1 4.0.
45719
45720 2008-09-28  Bruno Haible  <bruno@clisp.org>
45721
45722         Override open more carefully.
45723         * lib/open.c (orig_open): New function.
45724         (rpl_open): Use orig_open instead of open.
45725         * lib/fcntl.in.h: Add special invocation convention.
45726         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45727         (gl_FUNC_OPEN): Invoke it.
45728
45729         Override freopen more carefully.
45730         * lib/freopen.c (orig_freopen): New function.
45731         (rpl_freopen): Use orig_freopen instead of freopen.
45732         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45733         (gl_FUNC_FREOPEN): Invoke it.
45734
45735         Override fopen more carefully.
45736         * lib/fopen.c (orig_fopen): New function.
45737         (rpl_fopen): Use orig_fopen instead of fopen.
45738         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45739         (gl_FUNC_FOPEN): Invoke it.
45740         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45741
45742 2008-09-28  Bruno Haible  <bruno@clisp.org>
45743
45744         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45745         SIGPIPE.
45746
45747 2008-09-28  Bruno Haible  <bruno@clisp.org>
45748
45749         * tests/test-sigaction.c (handler, main): Disable the check whether
45750         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45751         glibc systems with LinuxThreads.
45752
45753 2008-09-28  Bruno Haible  <bruno@clisp.org>
45754
45755         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45756
45757         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45758         with AIX xlc.
45759         * lib/fcntl.in.h (open): Likewise.
45760         Reported by Rainer Tammer <tammer@tammer.net>.
45761
45762 2008-09-28  Bruno Haible  <bruno@clisp.org>
45763
45764         * modules/posix_spawnp-tests: New file.
45765         * tests/test-posix_spawn.c: New file.
45766         * tests/test-posix_spawn.in.sh: New file.
45767
45768         New module 'posix_spawnp'.
45769         * modules/posix_spawnp: New file.
45770         * lib/spawnp.c: New file, from GNU libc with modifications.
45771         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45772
45773         New module 'posix_spawn'.
45774         * modules/posix_spawn: New file.
45775         * lib/spawn.c: New file, from GNU libc with modifications.
45776         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45777
45778         New module 'posix_spawnattr_destroy'.
45779         * modules/posix_spawnattr_destroy: New file.
45780         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45781         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45782         module.
45783
45784         New module 'posix_spawnattr_setsigmask'.
45785         * modules/posix_spawnattr_setsigmask: New file.
45786         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45787         modifications.
45788         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45789         new module.
45790
45791         New module 'posix_spawnattr_getsigmask'.
45792         * modules/posix_spawnattr_getsigmask: New file.
45793         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45794         modifications.
45795         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45796         new module.
45797
45798         New module 'posix_spawnattr_setsigdefault'.
45799         * modules/posix_spawnattr_setsigdefault: New file.
45800         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45801         modifications.
45802         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45803         new module.
45804
45805         New module 'posix_spawnattr_getsigdefault'.
45806         * modules/posix_spawnattr_getsigdefault: New file.
45807         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45808         modifications.
45809         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45810         new module.
45811
45812         New module 'posix_spawnattr_setschedpolicy'.
45813         * modules/posix_spawnattr_setschedpolicy: New file.
45814         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45815         modifications.
45816         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45817         new module.
45818
45819         New module 'posix_spawnattr_getschedpolicy'.
45820         * modules/posix_spawnattr_getschedpolicy: New file.
45821         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45822         modifications.
45823         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45824         new module.
45825
45826         New module 'posix_spawnattr_setschedparam'.
45827         * modules/posix_spawnattr_setschedparam: New file.
45828         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45829         modifications.
45830         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45831         new module.
45832
45833         New module 'posix_spawnattr_getschedparam'.
45834         * modules/posix_spawnattr_getschedparam: New file.
45835         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45836         modifications.
45837         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45838         new module.
45839
45840         New module 'posix_spawnattr_setpgroup'.
45841         * modules/posix_spawnattr_setpgroup: New file.
45842         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45843         modifications.
45844         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45845         module.
45846
45847         New module 'posix_spawnattr_getpgroup'.
45848         * modules/posix_spawnattr_getpgroup: New file.
45849         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45850         modifications.
45851         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45852         module.
45853
45854         New module 'posix_spawnattr_setflags'.
45855         * modules/posix_spawnattr_setflags: New file.
45856         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45857         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45858         module.
45859
45860         New module 'posix_spawnattr_getflags'.
45861         * modules/posix_spawnattr_getflags: New file.
45862         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45863         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45864         module.
45865
45866         New module 'posix_spawnattr_init'.
45867         * modules/posix_spawnattr_init: New file.
45868         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45869         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45870         module.
45871
45872         New module 'posix_spawn_file_actions_destroy'.
45873         * modules/posix_spawn_file_actions_destroy: New file.
45874         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45875         modifications.
45876         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45877         the new module.
45878
45879         New module 'posix_spawn_file_actions_addopen'.
45880         * modules/posix_spawn_file_actions_addopen: New file.
45881         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45882         modifications.
45883         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45884         the new module.
45885
45886         New module 'posix_spawn_file_actions_adddup2'.
45887         * modules/posix_spawn_file_actions_adddup2: New file.
45888         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45889         modifications.
45890         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45891         the new module.
45892
45893         New module 'posix_spawn_file_actions_addclose'.
45894         * modules/posix_spawn_file_actions_addclose: New file.
45895         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45896         modifications.
45897         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45898         the new module.
45899
45900         New module 'posix_spawn_file_actions_init'.
45901         * modules/posix_spawn_file_actions_init: New file.
45902         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45903         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45904         new module.
45905
45906         New module 'posix_spawn-internal'.
45907         * modules/posix_spawn-internal: New file.
45908         * lib/spawn_int.h: New file, from GNU libc with modifications.
45909         * lib/spawni.c: New file, from GNU libc with modifications.
45910         * m4/posix_spawn.m4: New file.
45911
45912         New module 'spawn'.
45913         * modules/spawn: New file.
45914         * lib/spawn.in.h: New file, from GNU libc with modifications.
45915         * m4/spawn_h.m4: New file.
45916         * doc/posix-headers/spawn.texi: Mention the new module.
45917
45918 2008-09-28  Bruno Haible  <bruno@clisp.org>
45919
45920         * modules/sched-tests: New file.
45921         * tests/test-sched.c: New file.
45922
45923         New module 'sched'.
45924         * modules/sched: New file.
45925         * lib/sched.in.h: New file.
45926         * m4/sched_h.m4: New file.
45927         * doc/posix-headers/sched.texi: Mention the new module.
45928
45929 2008-09-27  Eric Blake  <ebb9@byu.net>
45930
45931         Fix previous patch, and tweak references to $0.
45932         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45933         (func_version, func_gnulib_dir): Don't call this program
45934         gnulib-tool.
45935         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45936         with using $0 in function.
45937         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45938         (func_fatal_error): Reuse the name the user invoked us with.
45939
45940 2008-09-27  Bruno Haible  <bruno@clisp.org>
45941
45942         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45943         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45944         (gl_ICONV_H): Not here.
45945         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45946         instead of assigning ICONV_H directly.
45947
45948         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45950         WCHAR_H directly.
45951
45952 2008-09-27  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45955         * modules/arpa_inet (Depends-on): Add link-warning.
45956         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45957         * modules/unistd (Makefile.am): Likewise.
45958
45959 2008-09-26  Bruno Haible  <bruno@clisp.org>
45960
45961         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45962         variables.
45963         (func_version): Essentially copied from gnulib-tool.
45964         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45965         func_readlink): Copied from gnulib-tool.
45966
45967 2008-09-26  Bruno Haible  <bruno@clisp.org>
45968
45969         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45970         invoking git-version-gen.
45971
45972 2008-09-26  Bruno Haible  <bruno@clisp.org>
45973
45974         * posix-modules: Update to directory names changed on 2008-01-19.
45975         Remove commas in output before splitting into words. No more need to
45976         avoid 'ftruncate' since 2007-02-19.
45977
45978 2008-09-26  Bruno Haible  <bruno@clisp.org>
45979
45980         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45981
45982 2008-09-26  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45985         * modules/fwriteerror (Depends-on): Add errno.
45986
45987 2008-09-26  Bruno Haible  <bruno@clisp.org>
45988
45989         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45990         * tests/test-vc-list-files-cvs.sh: Likewise.
45991
45992 2008-09-26  Bruno Haible  <bruno@clisp.org>
45993
45994         * doc/posix-headers/sys_resource.texi: Reorder items.
45995
45996 2008-09-26  Jim Meyering  <meyering@redhat.com>
45997
45998         fts: tweak inode comparison function
45999         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46000         inode numbers, as documented.
46001
46002         fts: sort dirent entries on inode number before traversing
46003         This avoids a quadratic, seek-related performance penalty when
46004         operating on a directory containing many entries (measurable at 10k;
46005         3.5 hours at 2 million entries with a cold cache) on certain types
46006         of file systems, including ext3 and ext4, but not tmpfs.
46007         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46008         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46009         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46010         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46011         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46012         (fts_build): Set the stat.st_ino member from D_INO.
46013         If it is likely to be useful, sort dirent entries on inode number.
46014
46015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46016         and the struct statfs.f_type member.
46017         * modules/fts (Depends-on): Add d-ino.
46018
46019 2008-09-26  Bruno Haible  <bruno@clisp.org>
46020
46021         * modules/sigpipe-die (Depends-on): Add sigpipe.
46022
46023         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46024         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46025         and GNULIB_STDIO_H_SIGPIPE are set.
46026         * lib/stdio-write.c: New file.
46027         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46028         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46029         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46030         REPLACE_STDIO_WRITE_FUNCS.
46031         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46032         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46033         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46034         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46035         * modules/stdio (Files): Add lib/stdio-write.c.
46036         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46037         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46038         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46039         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46040         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46041         REPLACE_FPRINTF_POSIX.
46042         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46043         REPLACE_PRINTF_POSIX.
46044         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46045         REPLACE_VFPRINTF_POSIX.
46046         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46047         REPLACE_VPRINTF_POSIX.
46048         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46049         SIGPIPE issue.
46050         * doc/posix-functions/fputc.texi: Likewise.
46051         * doc/posix-functions/fputs.texi: Likewise.
46052         * doc/posix-functions/fwrite.texi: Likewise.
46053         * doc/posix-functions/printf.texi: Likewise.
46054         * doc/posix-functions/putc.texi: Likewise.
46055         * doc/posix-functions/putchar.texi: Likewise.
46056         * doc/posix-functions/puts.texi: Likewise.
46057         * doc/posix-functions/vfprintf.texi: Likewise.
46058         * doc/posix-functions/vprintf.texi: Likewise.
46059
46060         * modules/safe-write (Depends-on): Add write.
46061
46062         * modules/sigpipe-tests: New file.
46063         * tests/test-sigpipe.c: New file.
46064         * tests/test-sigpipe.sh: New file.
46065
46066         * modules/write: New file.
46067         * lib/unistd.in.h: Include <sys/types.h>.
46068         (write): New declaration.
46069         * lib/write.c: New file.
46070         * m4/write.m4: New file.
46071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46072         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46073         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46074         GNULIB_WRITE, REPLACE_WRITE.
46075         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46076         and the SIGPIPE issue.
46077
46078         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46079         (raise): New declaration.
46080         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46081         (ext_signal): New function.
46082         (rpl_raise): New function.
46083         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46084         GNULIB_SIGNAL_H_SIGPIPE.
46085         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46086         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46087
46088         * modules/sigpipe: New file.
46089         * m4/sigpipe.m4: New file.
46090
46091 2008-09-25  Derek Price  <derek@ximbiot.com>
46092             Bruno Haible  <bruno@clisp.org>
46093
46094         * gnulib-tool (func_import): Report all license incompatibilities, not
46095         just the first one.
46096
46097 2008-09-25  Bruno Haible  <bruno@clisp.org>
46098
46099         * gnulib-tool (func_import): When computing the edits, consider not
46100         only the Makefile.ams that exist but also those that will be generated.
46101
46102 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46103
46104         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46105         fixes gnulib-tool --test warning about duplicate dependency.
46106
46107 2008-09-25  Bruno Haible  <bruno@clisp.org>
46108
46109         * gnulib-tool: Don't ask the user to perform edits in the generated
46110         Makefile.ams.
46111         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46112         apply to the Makefile.am being generated.
46113         (func_emit_tests_Makefile_am): Execute edits that apply to the
46114         Makefile.am being generated.
46115         (func_import): Setup list of Makefile.am edits before emitting the
46116         Makefile.ams, not at the end.
46117         (func_create_testdir): Update.
46118         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46119
46120 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46121
46122         * gnulib-tool (func_import): Store the --tests-base option in the
46123         comment in gnulib-cache.m4.
46124
46125 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46126
46127         * NEWS: Document increased portability that sys_select now provides.
46128
46129         * lib/sys_select.in.h: Install select wrapper.
46130         * lib/sys_socket.in.h: Use more descriptive name when there is no
46131         select wrapper.
46132         * lib/winsock-select.c: New.
46133         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46134         Require gl_HEADER_SYS_SOCKET.
46135         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46136         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46137         * tests/test-sys_select.c: Add functional tests.
46138
46139 2008-09-24  Eric Blake  <ebb9@byu.net>
46140
46141         open, fopen: close fd leak in last patch
46142         * lib/open.c (rpl_open): Close fd before returning error.
46143         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46144         * doc/posix-functions/open.texi (open): Document that Irix also
46145         has the bug.
46146         * doc/posix-functions/fopen.texi (fopen): Likewise.
46147         Reported by Paolo Bonzini.
46148
46149 2008-09-24  Bruno Haible  <bruno@clisp.org>
46150
46151         Ensure that a filename ending in a slash cannot be used to access a
46152         non-directory.
46153         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46154         to check whether it's really a directory.
46155         * lib/fopen.c: Include fcntl.h, unistd.h.
46156         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46157         and fdopen().
46158         * modules/fopen (Depends-on): Add unistd.
46159         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46160         * tests/test-fopen.c (main): Likewise.
46161         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46162         * doc/posix-functions/fopen.texi: Likewise.
46163         Reported by Eric Blake.
46164
46165 2008-09-23  Eric Blake  <ebb9@byu.net>
46166
46167         c-stack: avoid compiler optimizations when provoking overflow
46168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46169         recursion harder to optimize, to ensure a stack overflow occurs.
46170         * tests/test-c-stack.c (recurse): Likewise.
46171         Borrowed from libsigsegv.
46172
46173         c-stack: work around Irix sigaltstack bug
46174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46175         whether sigaltstack uses wrong end of stack_t (copied in part from
46176         libsigsegv).
46177         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46178         Irix bug, without requiring an over-allocation.
46179         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46180         bug.
46181
46182         fopen: document mingw bug on directories
46183         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46184         not allowing a stream visiting a directory, even though reading
46185         from such a stream is not portable.
46186
46187 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46188
46189         * lib/poll.c: Rewrite.
46190         * modules/poll: Depend on alloca.
46191
46192 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46193
46194         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46195         instead define prototypes for a full set of wrappers.  Ensure
46196         that Cygwin does not use the compatibility code, which is only
46197         for MinGW.
46198         * lib/winsock.c: New.
46199         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46200         * modules/sys_socket: Add lib/winsock.c.
46201
46202         * modules/poll-tests: Add errno and perror.
46203         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46204
46205 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46206
46207         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46208
46209 2008-09-23  Bruno Haible  <bruno@clisp.org>
46210
46211         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46212         * doc/glibc-functions/*: Likewise.
46213
46214 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46215
46216         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46217         success.
46218
46219 2008-09-22  Eric Blake  <ebb9@byu.net>
46220             Bruno Haible  <bruno@clisp.org>
46221
46222         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46223         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46224         supply %A but mishandle pseudo-NaN.
46225         Reported by Simon Josefsson.
46226
46227 2008-09-21  Bruno Haible  <bruno@clisp.org>
46228
46229         * tests/test-lock.c (main): Tweak skip message.
46230         * tests/test-tls.c (main): Likewise.
46231
46232 2008-09-21  Bruno Haible  <bruno@clisp.org>
46233
46234         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46235         whether 'struct sigaction' has sa_sigaction here...
46236         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46237         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46238
46239 2008-09-21  Bruno Haible  <bruno@clisp.org>
46240
46241         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46242         section.
46243         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46244         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46245         the new section.
46246         (Support for obsolete systems lacking POSIX:2001): New section.
46247         (String handling <string.h>): Move strdup to the new section.
46248         Suggested by Simon Josefsson and Paolo Bonzini.
46249
46250 2008-09-21  Bruno Haible  <bruno@clisp.org>
46251
46252         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46253         exponents in %e and %g results on 'long double'. Needed for mingw's
46254         improved *printf functions.
46255         * tests/test-vasprintf-posix.c (test_function): Likewise.
46256         * tests/test-snprintf-posix.h (test_function): Likewise.
46257         * tests/test-sprintf-posix.h (test_function): Likewise.
46258         Reported by Eric Blake.
46259
46260 2008-09-21  Bruno Haible  <bruno@clisp.org>
46261
46262         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46263         * tests/test-sprintf-posix.h (test_function): Likewise.
46264
46265 2008-09-21  Bruno Haible  <bruno@clisp.org>
46266
46267         * modules/getpass (Depends-on): Add strdup-posix.
46268
46269         New module 'strdup-posix'.
46270         * modules/strdup-posix: New file.
46271         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46272         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46274         REPLACE_STRDUP.
46275         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46276         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46278         strdup-posix.
46279
46280         * modules/strdup (Depends-on): Remove malloc-posix.
46281
46282 2008-09-20  Bruno Haible  <bruno@clisp.org>
46283
46284         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46285         Wildenhues.
46286
46287 2008-09-20  Bruno Haible  <bruno@clisp.org>
46288
46289         Ensure that wint_t gets defined on IRIX 5.3.
46290         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46291         * lib/wctype.in.h (wint_t): Likewise.
46292         (__wctype_wint_t): Remove type.
46293         (isw*): Use wint_t instead of __wctype_wint_t.
46294         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46295         * modules/wchar (Files): Add m4/wint_t.m4.
46296         (Makefile.am): Substitute HAVE_WINT_T.
46297         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46298         * tests/test-wctype.c: Check that wint_t is defined.
46299         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46300         * doc/posix-headers/wctype.texi: Likewise.
46301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46302
46303 2008-09-18  Bruno Haible  <bruno@clisp.org>
46304
46305         * gnulib-tool (func_exit): Update comment.
46306
46307 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46308
46309         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46310         assumes strdup exists and does not depend on strdup to return
46311         ENOMEM on out of memory conditions.
46312
46313 2008-09-18  Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46316         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46317         digits for the exponent.
46318
46319 2008-09-18  Jim Meyering  <meyering@redhat.com>
46320             Bruno Haible  <bruno@clisp.org>
46321
46322         * lib/vasnprintf.c (decimal_point_char): Define also if
46323         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46324
46325 2008-09-16  Bruno Haible  <bruno@clisp.org>
46326         and Eric Blake  <ebb9@byu.net>
46327
46328         vasnprintf: support Irix 5.3
46329         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46330         that mishandle long double infinity.
46331         Reported by Tom G. Christensen.
46332
46333 2008-09-16  Bruno Haible  <bruno@clisp.org>
46334
46335         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46336         Solaris 9.
46337         * doc/glibc-functions/alphasort.texi: Likewise.
46338         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46339
46340 2008-09-16  Jim Meyering  <meyering@redhat.com>
46341
46342         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46343         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46344         a umask modification leak out of a subshell.  Otherwise, the
46345         opensolaris /bin/sh would be accepted and thus cause unwarranted
46346         failures in the coreutils test suite.
46347
46348 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46349
46350         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46351         to succeed.
46352
46353 2008-09-16  Jim Meyering  <meyering@redhat.com>
46354
46355         avoid spurious test failure when library is built without ACL support
46356         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46357         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46358         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46359         * tests/test-copy-acl.sh: Likewise.
46360
46361 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46362
46363         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46364         based on character occurrence counts.
46365
46366 2008-09-15  Eric Blake  <ebb9@byu.net>
46367
46368         tests: avoid some compiler warnings
46369         * tests/test-memchr.c (main): Pass NULL indirectly.
46370         * tests/test-closein.c (main): Avoid unused variable.
46371
46372 2008-09-15  Bruno Haible  <bruno@clisp.org>
46373
46374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46375         are missing on OpenBSD 4.0 individually.
46376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46377
46378 2008-09-15  Bruno Haible  <bruno@clisp.org>
46379
46380         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46381         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46382         * doc/posix-functions/perror.texi: Likewise.
46383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46384         is missing.
46385         Reported by Eric Blake.
46386
46387         * lib/errno.in.h: Use replacement values >= 2000.
46388         Reported by Eric Blake.
46389
46390 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46391
46392         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46393         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46394         limit.
46395         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46396         compareseq was aborted.
46397
46398 2008-09-14  Bruno Haible  <bruno@clisp.org>
46399
46400         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46401         yvec_edit_count.
46402         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46403         (fstrcmp_bounded): Simplify result computation accordingly.
46404
46405 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46406
46407         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46408         (fstrcmp): Define in terms of fstrcmp_bounded.
46409         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46410         lower_bound argument.
46411         Return quickly if the result is certainly < lower_bound.
46412         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46413
46414 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46415
46416         * lib/diffseq.h (EARLY_ABORT): New macro.
46417         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46418         evaluates to true.
46419
46420 2008-09-14  Bruno Haible  <bruno@clisp.org>
46421
46422         * modules/perror-tests: New file.
46423         * tests/test-perror.sh: New file.
46424         * tests/test-perror.c: New file.
46425
46426         New module 'perror'.
46427         * lib/stdio.in.h (perror): New declaration.
46428         * lib/perror.c: New file.
46429         * m4/perror.m4: New file.
46430         * modules/perror: New file.
46431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46432         * doc/posix-functions/perror.texi: Mention the perror module.
46433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46434         REPLACE_PERROR.
46435         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46436         REPLACE_PERROR.
46437
46438 2008-09-14  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/stdio (Makefile.am): Reorder to match the order in
46441         lib/stdio.in.h.
46442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46443
46444 2008-09-13  Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46447
46448 2008-09-13  Bruno Haible  <bruno@clisp.org>
46449
46450         Extend strerror to cover the added errno values.
46451         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46452         (rpl_strerror): Provide error messages for the added errno values and
46453         for the WSA* values.
46454         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46455         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46456         strerror.
46457         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46458         * modules/strerror (Depends-on): Add errno.
46459         * doc/posix-functions/strerror.texi: Document the change.
46460         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46461         and EOVERFLOW.
46462
46463 2008-09-13  Bruno Haible  <bruno@clisp.org>
46464
46465         * modules/EOVERFLOW: Remove file.
46466         * m4/eoverflow.m4: Remove file.
46467         * modules/EOVERFLOW-tests: Remove file.
46468         * tests/test-EOVERFLOW.c: Remove file.
46469         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46470         * modules/ftell (Depends-on): Likewise.
46471         * modules/getdelim (Depends-on): Likewise.
46472         * modules/getugroups (Depends-on): Likewise.
46473         * modules/poll (Depends-on): Likewise.
46474         * modules/snprintf (Depends-on): Likewise.
46475         * modules/sprintf-posix (Depends-on): Likewise.
46476         * modules/vasnprintf (Depends-on): Likewise.
46477         * modules/vasprintf (Depends-on): Likewise.
46478         * modules/vfprintf-posix (Depends-on): Likewise.
46479         * modules/vsnprintf (Depends-on): Likewise.
46480         * modules/vsprintf-posix (Depends-on): Likewise.
46481         * modules/xvasprintf (Depends-on): Likewise.
46482         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46483         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46484         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46485         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46487         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46488         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46489         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46491         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46492         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46493         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46494         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46495         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46496         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46497         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46498         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46499         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46500         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46501         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46502         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46503         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46504         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46505         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46506         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46507         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46508         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46509         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46510         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46511         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46512         * MODULES.html.sh: Remove EOVERFLOW.
46513         * NEWS: Mention the change.
46514
46515 2008-09-13  Bruno Haible  <bruno@clisp.org>
46516
46517         * modules/errno-tests: New file.
46518         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46519
46520         * lib/errno.in.h: New file.
46521         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46522         * modules/errno: New file.
46523         * doc/posix-headers/errno.texi: Update documentation.
46524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46525
46526 2008-09-13  Bruno Haible  <bruno@clisp.org>
46527
46528         * tests/test-poll.c: Use #if for native Windows, rather than testing
46529         __MSVCRT__.
46530
46531 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46532             Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/glob.c: Don't include <pwd.h> on native Windows.
46535         (WINDOWS32): New macro.
46536         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46537
46538 2008-09-13  Bruno Haible  <bruno@clisp.org>
46539
46540         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46541         (ETIMEDOUT): Remove macro.
46542         (glthread_cond_timedwait_multithreaded): New declaration.
46543         (glthread_cond_timedwait): Use it.
46544         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46545         (glthread_cond_timedwait_multithreaded): New function.
46546
46547 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46548
46549         * modules/poll-tests: Do not check for io.h.
46550         * tests/test-poll.c: Check for __MSVCRT__ instead.
46551
46552 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46553
46554         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46555         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46556         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46557
46558 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46559
46560         * modules/poll-tests: New.
46561         * tests/test-poll.c: New.
46562
46563 2008-09-12  Eric Blake  <ebb9@byu.net>
46564
46565         frexp: test for NetBSD failure on -0.0
46566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46567         not all, bugs from NetBSD 3.0 have been fixed.
46568         * doc/posix-functions/frexp.texi (frexp): Document bug.
46569         Reported by Thomas Klausner.
46570
46571         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46572         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46573         literal -0.0.
46574         Reported by Jonathan C. Patschke <jp@centtech.com>.
46575
46576 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46577
46578         * lib/glthread/cond.h: Use dummy implementation also if
46579         USE_WIN32_THREADS.
46580
46581 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46582
46583         * modules/fnmatch-posix (License): Change to LGPLv2+.
46584         * modules/fnmatch-gnu (License): Likewise.
46585
46586 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46587
46588         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46589
46590 2008-09-11  Jim Meyering  <meyering@redhat.com>
46591
46592         * users.txt: Add gtk-vnc.
46593
46594 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46595
46596         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46597         rotate amounts.
46598
46599         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46600         required for 16-bit and 8-bit rotates.
46601         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46602         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46603         UINT8_MAX instead of hard-coded constants.
46604         Suggested by Paul Eggert.
46605
46606 2008-09-07  Bruno Haible  <bruno@clisp.org>
46607
46608         * tests/test-striconveh.c (main): Check behaviour when converting from
46609         UTF-7.
46610
46611         Make striconveh work better with stateful encodings.
46612         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46613         that iconv does not increment the inptr when returning -1/EINVAL.
46614
46615 2008-09-07  Bruno Haible  <bruno@clisp.org>
46616
46617         * build-aux/config.rpath: Update according to libtool-2.2.6.
46618         * build-aux/config.libpath: Likewise.
46619
46620 2008-09-06  Bruno Haible  <bruno@clisp.org>
46621
46622         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46623         * lib/freadptr.c (freadptr): Likewise.
46624         * lib/freadseek.c (freadptrinc): Likewise.
46625         Reported by Simon Josefsson.
46626
46627 2008-09-06  Bruno Haible  <bruno@clisp.org>
46628
46629         * modules/freadptr (License): Change to LGPLv2+.
46630         * modules/freadseek (License): Likewise.
46631         Suggested by Eric Blake.
46632
46633         * modules/memchr2 (License): Change to LGPLv2+.
46634         Approved by Eric Blake.
46635
46636 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46637             Bruno Haible  <bruno@clisp.org>
46638
46639         Make gnulib-tool work with native 'sed' on AIX.
46640         * gnulib-tool (sed_noop): New variable.
46641         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46642         func_add_or_update, func_create_testdir): Use it to initialize sed
46643         script variables.
46644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46645
46646 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46647             Bruno Haible  <bruno@clisp.org>
46648
46649         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46650         also works after #include directives.
46651
46652 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46653
46654         getdate.y: reject an out-of-range timezone value
46655         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46656         the range [-24...+24].  When specified with only one or two digits,
46657         * tests/test-getdate.c: Tests for the fix.
46658         * doc/getdate.texi: Document this change.
46659
46660 2008-09-03  Bruno Haible  <bruno@clisp.org>
46661
46662         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46663
46664 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46665
46666         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46667         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46668         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46669         Blake <ebb9@byu.net>.
46670
46671         * tests/test-bitrotate.c: Add more test vectors.
46672
46673 2008-09-02  Eric Blake  <ebb9@byu.net>
46674
46675         vasnprintf-posix: handle large precision via %.*d
46676         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46677         when handling it ourselves.
46678         * tests/test-vasnprintf-posix.c (test_function): Add test.
46679         * tests/test-snprintf-posix.h (test_function): Likewise.
46680         * tests/test-sprintf-posix.h (test_function): Likewise.
46681         * tests/test-vasprintf-posix.c (test_function): Likewise.
46682         Reported by Alain Guibert.
46683
46684 2008-09-01  Eric Blake  <ebb9@byu.net>
46685
46686         c-stack: make configure-time check more robust
46687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46688         successful sigaction call.
46689         Reported by Tom G. Christensen.
46690
46691 2008-09-01  Bruno Haible  <bruno@clisp.org>
46692
46693         New module 'findprog-lgpl'.
46694         * modules/findprog-lgpl: New file.
46695         * lib/findprog-lgpl.c: New file.
46696         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46697         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46698         to decide whether to use strdup or xstrdup, concatenated_filename or
46699         xconcatenated_filename.
46700
46701 2008-09-01  Bruno Haible  <bruno@clisp.org>
46702
46703         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46704         'xconcat-filename' (GPL).
46705         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46706         (License): Change to LGPLv2+.
46707         * modules/xconcat-filename: New file.
46708         * lib/concat-filename.h (concatenated_filename): Change specification.
46709         (xconcatenated_filename): New declaration.
46710         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46711         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46712         memory situations.
46713         * lib/xconcat-filename.c: New file.
46714         * NEWS: Mention the change.
46715         * lib/findprog.c: Include concat-filename.h, not filename.h.
46716         (find_in_path): Use xconcatenated_filename instead of
46717         concatenated_filename.
46718         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46719         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46720         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46721         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46722         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46723         instead of concatenated_filename.
46724         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46725         (execute_java_class): Use xconcatenated_filename instead of
46726         concatenated_filename.
46727         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46728         * modules/javacomp (Depends-on): Likewise.
46729         * modules/javaexec (Depends-on): Likewise.
46730
46731 2008-09-01  Bruno Haible  <bruno@clisp.org>
46732
46733         Split module 'filename' into 'filename' and 'concat-filename'.
46734         * modules/filename: Keep only lib/filename.h.
46735         (License): Change to LGPLv2+.
46736         * modules/concat-filename: New file, extracted from modules/filename.
46737         * lib/filename.h (concatenated_filename): Remove declaration.
46738         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46739         * lib/concat-filename.c: Include concat-filename.h.
46740         * NEWS: Mention the change.
46741
46742 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46743
46744         * lib/bitrotate.h (rotl8, rotr8): Add.
46745
46746         * modules/bitrotate (configure.ac): Need
46747         AC_REQUIRE([AC_C_INLINE]).
46748         (Description): Mention stdint.h.  Reported by Bruno Haible
46749         <bruno@clisp.org>.
46750
46751         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46752         Paolo Bonzini <bonzini@gnu.org>.
46753
46754 2008-08-31  Bruno Haible  <bruno@clisp.org>
46755
46756         Assume Solaris specific bi-arch conventions on Solaris systems.
46757         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46758         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46759         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46760         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46761         like acl_libdirstem.
46762         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46763         acl_libdirstem.
46764         * NEWS: Mention the change.
46765         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46766
46767 2008-08-31  Jim Meyering  <meyering@redhat.com>
46768
46769         * lib/strftime.h: Add comments describing the two added arguments.
46770
46771         remove duplicate #include directives
46772         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46773         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46774
46775 2008-08-31  Bruno Haible  <bruno@clisp.org>
46776
46777         New module 'sigpipe-die'.
46778         * modules/sigpipe-die: New file.
46779         * lib/sigpipe-die.h: New file.
46780         * lib/sigpipe-die.c: New file.
46781         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46782
46783 2008-08-31  Bruno Haible  <bruno@clisp.org>
46784
46785         Don't override previously installed signal handlers.
46786         * lib/fatal-signal.c (saved_sigactions): New variable.
46787         (uninstall_handlers): Reset the signal to the saved handler, not
46788         to SIG_DFL (except when ignored).
46789         (install_handlers): Save the previous handlers.
46790
46791 2008-08-30  Bruno Haible  <bruno@clisp.org>
46792
46793         * gnulib-tool (func_reset_sigpipe): New function.
46794         (func_get_automake_snippet, func_modules_transitive_closure,
46795         func_import): Invoke it before a join command that reads from stdin,
46796         to avoid "echo: write error: Broken pipe" error messages on stderr.
46797         Reported by Sam Steingold <sds@gnu.org>.
46798
46799 2008-08-30  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46802         Code copied from m4/open.m4.
46803         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46804         access and the filename ends in a slash. Code copied from lib/open.c.
46805         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46806         * tests/test-fopen.c (main): Check against bug with trailing slash.
46807
46808 2008-08-29  Bruno Haible  <bruno@clisp.org>
46809
46810         Avoid some "gcc -pedantic" warnings.
46811         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46812         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46813         * lib/dirent.in.h: Likewise.
46814         * lib/fcntl.in.h: Likewise.
46815         * lib/float.in.h: Likewise.
46816         * lib/iconv.in.h: Likewise.
46817         * lib/inttypes.in.h: Likewise.
46818         * lib/locale.in.h: Likewise.
46819         * lib/math.in.h: Likewise.
46820         * lib/netinet_in.in.h: Likewise.
46821         * lib/search.in.h: Likewise.
46822         * lib/signal.in.h: Likewise.
46823         * lib/stdarg.in.h: Likewise.
46824         * lib/stdint.in.h: Likewise.
46825         * lib/stdio.in.h: Likewise.
46826         * lib/stdlib.in.h: Likewise.
46827         * lib/string.in.h: Likewise.
46828         * lib/strings.in.h: Likewise.
46829         * lib/sys_select.in.h: Likewise.
46830         * lib/sys_socket.in.h: Likewise.
46831         * lib/sys_stat.in.h: Likewise.
46832         * lib/sys_time.in.h: Likewise.
46833         * lib/sysexits.in.h: Likewise.
46834         * lib/time.in.h: Likewise.
46835         * lib/unistd.in.h: Likewise.
46836         * lib/wchar.in.h: Likewise.
46837         * lib/wctype.in.h: Likewise.
46838         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46839         * modules/fchdir (Makefile.am): Likewise.
46840         * modules/fcntl (Makefile.am): Likewise.
46841         * modules/float (Makefile.am): Likewise.
46842         * modules/iconv_open (Makefile.am): Likewise.
46843         * modules/inttypes (Makefile.am): Likewise.
46844         * modules/locale (Makefile.am): Likewise.
46845         * modules/math (Makefile.am): Likewise.
46846         * modules/netinet_in (Makefile.am): Likewise.
46847         * modules/search (Makefile.am): Likewise.
46848         * modules/signal (Makefile.am): Likewise.
46849         * modules/stdarg (Makefile.am): Likewise.
46850         * modules/stdint (Makefile.am): Likewise.
46851         * modules/stdio (Makefile.am): Likewise.
46852         * modules/stdlib (Makefile.am): Likewise.
46853         * modules/string (Makefile.am): Likewise.
46854         * modules/strings (Makefile.am): Likewise.
46855         * modules/sys_select (Makefile.am): Likewise.
46856         * modules/sys_socket (Makefile.am): Likewise.
46857         * modules/sys_stat (Makefile.am): Likewise.
46858         * modules/sys_time (Makefile.am): Likewise.
46859         * modules/sysexits (Makefile.am): Likewise.
46860         * modules/time (Makefile.am): Likewise.
46861         * modules/unistd (Makefile.am): Likewise.
46862         * modules/wchar (Makefile.am): Likewise.
46863         * modules/wctype (Makefile.am): Likewise.
46864         Reported by Reuben Thomas <rrt@sc3d.org>.
46865
46866 2008-08-29  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46869         any more.
46870
46871 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46872
46873         * MODULES.html.sh (Misc): Add bitrotate.
46874
46875         * modules/bitrotate: New file.
46876
46877         * lib/bitrotate.h: New file.
46878
46879         * modules/bitrotate-tests: New file.
46880
46881         * tests/test-bitrotate.c: New file.
46882
46883         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46884         on the bitrotate module.
46885
46886         * lib/arctwo.c: Use new bitrotate module.
46887
46888 2008-08-29  Jim Meyering  <meyering@redhat.com>
46889
46890         bootstrap: merge changes from coreutils
46891         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46892         of copied files.  Remove a kludge, now that this is fixed.
46893         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46894         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46895         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46896
46897 2008-08-29  Bruno Haible  <bruno@clisp.org>
46898
46899         * MODULES.html.sh: Remove --cvs-urls option.
46900
46901 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46902
46903         maint.mk: adjust to file name change
46904         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46905
46906 2008-08-28  Jim Meyering  <meyering@redhat.com>
46907
46908         * modules/getndelim2 (License): Relicense to LGPLv2+.
46909         Approved by Richard Stallman for the version of 1995, and by
46910         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46911
46912 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46913
46914         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46915         dummy if one is not available.  Do not touch them if
46916         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46917         (getc_maybe_unlocked): New.
46918         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46919
46920 2008-08-26  Eric Blake  <ebb9@byu.net>
46921
46922         doc/INSTALL: resync from autoconf
46923         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46924         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46925         moving...
46926         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46927         * INSTALL: Regenerate.
46928         * INSTALL.ISO: New file.
46929         * INSTALL.UTF-8: Likewise.
46930
46931 2008-08-26  Jim Meyering  <meyering@redhat.com>
46932
46933         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46934         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46935         these definitions conditional, so that they may be overridden, too.
46936
46937 2008-08-26  Bruno Haible  <bruno@clisp.org>
46938
46939         Generate INSTALL file variants with prettier quotes.
46940         * doc/Makefile (INSTALL_PRELUDE): New macro.
46941         (INSTALL): Use it.
46942         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46943
46944 2008-08-26  Bruno Haible  <bruno@clisp.org>
46945
46946         Run makeinfo in an English locale.
46947         * doc/Makefile (MAKEINFO): New variable.
46948
46949 2008-08-26  Bruno Haible  <bruno@clisp.org>
46950
46951         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46952         Suggested by Eric Blake.
46953
46954 2008-08-25  Bruno Haible  <bruno@clisp.org>
46955
46956         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46957
46958 2008-08-25  Eric Blake  <ebb9@byu.net>
46959
46960         c-stack: test that stack overflow can be caught
46961         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46962         that platform allows handling stack overflow; at least OS/2 EMX
46963         has sigaltstack, but crashes before transferring control to
46964         handler on stack overflow.
46965         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46966         check for HAVE_STACK_OVERFLOW_HANDLING.
46967         Reported by Elbert Pol.
46968
46969 2008-08-25  Bruno Haible  <bruno@clisp.org>
46970
46971         * doc/posix-functions/strftime.texi: Fix description of strftime
46972         module.
46973
46974 2008-08-24  Bruno Haible  <bruno@clisp.org>
46975
46976         * tests/uniwidth/test-uc_width2.c: New file.
46977         * tests/uniwidth/test-uc_width2.sh: New file.
46978         * modules/uniwidth/width-tests (Files): Add the new files.
46979         (TESTS): Add uniwidth/test-uc_width2.sh.
46980         (TESTS_ENVIRONMENT): New variable.
46981         (check_PROGRAMS): Add test-uc_width2.
46982         (test_uc_width2_SOURCES): New variable.
46983
46984         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46985         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46986         not 0x00AB.
46987         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46988
46989 2008-08-22  Eric Blake  <ebb9@byu.net>
46990
46991         test-lock, test-tls: mention why a test is skipped
46992         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46993         skipped.
46994         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46995
46996         count-one-bits: relax license
46997         * modules/count-one-bits (License): Relicense to LGPLv2+.
46998         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46999
47000 2008-08-22  Andreas Schwab  <schwab@suse.de>
47001
47002         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47003         Remove spurious space in assignment.
47004
47005 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47006
47007         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47008         Paul Eggert <eggert@CS.UCLA.EDU>.
47009
47010 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47011
47012         * modules/gettext: Add m4/threadlib.m4.
47013
47014 2008-08-19  Eric Blake  <ebb9@byu.net>
47015
47016         test-c-stack: fix compilation failure on FreeBSD 5.0
47017         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47018         headers before <sys/resource.h>.
47019         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47020         the bug.
47021         Reported by Nelson H. F. Beebe.
47022
47023         strverscmp: migrate from "strverscmp.h" to <string.h>
47024         * modules/string (Makefile.am): Add new hooks.
47025         * modules/strverscmp (Files): Remove strverscmp.h.
47026         (Depends-on): Add string.
47027         (configure.ac): Add indicator.
47028         (Include): Mention new header.
47029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47030         defaults.
47031         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47032         results.
47033         * lib/strverscmp.h: Delete.
47034         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47035         * tests/test-strverscmp.c (includes): Adjust client.
47036         * lib/check-version.c (includes): Likewise.
47037         * NEWS: Document the change.
47038
47039         strverscmp: add unit test
47040         * modules/strverscmp-tests: New file.
47041         * tests/test-strverscmp.c: Likewise.
47042
47043 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47044
47045         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47046         regarding Windows crypto stuff, from Mono.
47047
47048 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47049
47050         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47051         if present, for intel RND.  Return error on failures.
47052
47053 2008-08-18  Ben Pfaff  <blp@gnu.org>
47054
47055         gitlog-to-changelog: give better diagnostic for failed pipe-open
47056         * build-aux/gitlog-to-changelog: Improve error message: suggest
47057         that the version of Git may be too old.
47058
47059 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47060
47061         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47062         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47063
47064 2008-08-18  Bruno Haible  <bruno@clisp.org>
47065
47066         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47067         pthread_in_use().
47068
47069 2008-08-18  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/glthread/threadlib.c: Include <pthread.h>.
47072
47073 2008-08-18  Bruno Haible  <bruno@clisp.org>
47074
47075         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47076         glthread_recursive_lock_* macros.
47077         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47078         Fix syntax error.
47079
47080 2008-08-18  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/glthread/thread.c: Avoid forcing a context switch right after
47083         thread creation.
47084
47085 2008-08-17  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47088         * lib/glthread/thread.h: Provide Win32 specific implementation.
47089         * modules/thread (Files): Add lib/glthread/thread.c.
47090         (Depends-on): Add lock.
47091         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47092
47093 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47094
47095         New module 'yield'.
47096         * modules/yield: New file.
47097         * lib/glthread/yield.h: New file.
47098         * m4/yield.m4: New file.
47099         * MODULES.html.sh (Multithreading): Add yield.
47100
47101 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47102
47103         New module 'thread'.
47104         * modules/thread: New file.
47105         * lib/glthread/thread.h: New file.
47106         * m4/thread.m4: New file.
47107         * MODULES.html.sh (Multithreading): Add thread.
47108
47109 2008-08-17  Bruno Haible  <bruno@clisp.org>
47110
47111         * lib/glthread/lock.h: Include <stdlib.h> always.
47112         * lib/glthread/tls.h: Likewise.
47113         * lib/glthread/cond.h: Likewise.
47114
47115 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47116
47117         New module 'cond'.
47118         * modules/cond: New file.
47119         * lib/glthread/cond.h: New file.
47120         * lib/glthread/cond.c: New file.
47121         * m4/cond.m4: New file.
47122         * MODULES.html.sh (Multithreading): Add cond.
47123
47124 2008-08-16  Eric Blake  <ebb9@byu.net>
47125
47126         c-stack: fix regression on Irix 5.3 from 2008-06-21
47127         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47128         sa_sigaction...
47129         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47130         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47131         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47132         * modules/signal (Makefile.am): Use the value.
47133         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47134         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47135         * doc/posix-headers/signal.texi (signal.h): Document this
47136         portability issue.
47137         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47138         Reported by Tom G. Christensen.
47139
47140 2008-08-17  Bruno Haible  <bruno@clisp.org>
47141
47142         New module 'threadlib'.
47143         * modules/threadlib: New file.
47144         * lib/glthread/threadlib.c: New file, extracted from
47145         lib/glthread/lock.c.
47146         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47147         functions.
47148         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47149         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47150         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47151         macros.
47152         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47153         (gl_DISABLE_THREADS): Remove macro.
47154         * modules/lock (Files): Remove build-aux/config.rpath.
47155         (Depends-on): Remove havelib. Add threadlib.
47156         (configure.ac-early): Remove section.
47157         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47158         * modules/tls (Depends-on): Remove lock. Add threadlib.
47159         (Link): New section, copied from threadlib.
47160         * MODULES.html.sh (Multithreading): Add threadlib.
47161
47162 2008-08-14  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47165         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47166         glthread_rwlock_unlock, glthread_rwlock_destroy,
47167         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47168         glthread_recursive_lock_destroy): Define as macros always.
47169         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47170         glthread_lock_lock.
47171         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47172         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47173         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47174         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47175         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47176         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47177         (glthread_recursive_lock_lock_func): Renamed from
47178         glthread_recursive_lock_lock.
47179         (glthread_recursive_lock_unlock_func): Renamed from
47180         glthread_recursive_lock_unlock.
47181         (glthread_recursive_lock_destroy_func): Renamed from
47182         glthread_recursive_lock_destroy.
47183
47184 2008-08-14  Bruno Haible  <bruno@clisp.org>
47185
47186         * lib/glthread/lock.h: Renamed from lib/lock.h.
47187         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47188         * lib/glthread/tls.h: Renamed from lib/tls.h.
47189         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47190         * lib/fstrcmp.c: Update includes.
47191         * lib/strsignal.c: Update includes.
47192         * modules/lock (Files, Makefile.am): Update.
47193         (Include): Change to "glthread/lock.h".
47194         * modules/tls (Files, Makefile.am): Update.
47195         (Include): Change to "glthread/tls.h".
47196         * tests/test-lock.c: Update includes.
47197         * tests/test-tls.c: Update includes.
47198         * NEWS: Mention the renamed header files.
47199
47200 2008-08-11  Jim Meyering  <meyering@redhat.com>
47201
47202         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47203
47204 2008-08-11  Eric Blake  <ebb9@byu.net>
47205
47206         test-c-stack: avoid C99-ism
47207         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47208         before statement.
47209         Reported by Alain Guibert.
47210
47211 2008-08-10  Jim Meyering  <meyering@redhat.com>
47212
47213         ensure that return value of uinttostr et al are not ignored
47214         * lib/inttostr.h (__GNUC_PREREQ): Define.
47215         (__attribute_warn_unused_result__): Define.
47216         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47217
47218 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47219
47220         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47221         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47222
47223 2008-08-07  Jim Meyering  <meyering@redhat.com>
47224
47225         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47226
47227         * modules/mkstemp (License): Relicense under LGPLv2+.
47228         * modules/tempname (License): Likewise.
47229
47230 2008-08-06  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/poll.c (poll): Further micro-optimization.
47233
47234 2008-08-06  Jim Meyering  <meyering@redhat.com>
47235
47236         inet_pton.c: use locale-independent tolower
47237         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47238         (inet_pton6): Use c_tolower rather than tolower.
47239         * modules/inet_pton (Depends-on): Add c-ctype.
47240
47241 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47242
47243         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47244         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47245
47246 2008-08-06  Jim Meyering  <meyering@redhat.com>
47247
47248         * modules/inet_pton (License): Relicense under LGPLv2+.
47249
47250 2008-08-03  Bruno Haible  <bruno@clisp.org>
47251
47252         Additional non-aborting API for lock and tls.
47253         * lib/lock.h: Include <errno.h>.
47254         (glthread_lock_init): New macro/function.
47255         (gl_lock_init): Define as wrapper around glthread_lock_init.
47256         (glthread_lock_lock): New macro/function.
47257         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47258         (glthread_lock_unlock): New macro/function.
47259         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47260         (glthread_lock_destroy): New macro/function.
47261         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47262         (glthread_rwlock_init): New macro/function.
47263         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47264         (glthread_rwlock_rdlock): New macro/function.
47265         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47266         (glthread_rwlock_wrlock): New macro/function.
47267         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47268         (glthread_rwlock_unlock): New macro/function.
47269         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47270         (glthread_rwlock_destroy): New macro/function.
47271         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47272         (glthread_recursive_lock_init): New macro/function.
47273         (gl_recursive_lock_init): Define as wrapper around
47274         glthread_recursive_lock_init.
47275         (glthread_recursive_lock_lock): New macro/function.
47276         (gl_recursive_lock_lock): Define as wrapper around
47277         glthread_recursive_lock_lock.
47278         (glthread_recursive_lock_unlock): New macro/function.
47279         (gl_recursive_lock_unlock): Define as wrapper around
47280         glthread_recursive_lock_unlock.
47281         (glthread_recursive_lock_destroy): New macro/function.
47282         (gl_recursive_lock_destroy): Define as wrapper around
47283         glthread_recursive_lock_destroy.
47284         (glthread_once): New macro/function.
47285         (gl_once): Define as wrapper around glthread_once.
47286         Update function declarations.
47287         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47288         glthread_rwlock_init. Return error code.
47289         (glthread_rwlock_rdlock_multithreaded): Renamed from
47290         glthread_rwlock_rdlock. Return error code.
47291         (glthread_rwlock_wrlock_multithreaded): Renamed from
47292         glthread_rwlock_wrlock. Return error code.
47293         (glthread_rwlock_unlock_multithreaded): Renamed from
47294         glthread_rwlock_unlock. Return error code.
47295         (glthread_rwlock_destroy_multithreaded): Renamed from
47296         glthread_rwlock_destroy. Return error code.
47297         (glthread_recursive_lock_init_multithreaded): Renamed from
47298         glthread_recursive_lock_init. Return error code.
47299         (glthread_recursive_lock_lock_multithreaded): Renamed from
47300         glthread_recursive_lock_lock. Return error code.
47301         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47302         glthread_recursive_lock_unlock. Return error code.
47303         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47304         glthread_recursive_lock_destroy. Return error code.
47305         (glthread_once_call): Make static.
47306         (glthread_once_multithreaded): Renamed from glthread_once.
47307         * lib/tls.h: Include <errno.h>.
47308         (glthread_tls_key_init): New macro/function.
47309         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47310         (glthread_tls_set): New macro/function.
47311         (gl_tls_set): Define as wrapper around glthread_tls_set.
47312         (glthread_tls_key_destroy): New macro/function.
47313         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47314         Update function declarations.
47315         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47316         glthread_tls_get.
47317         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47318
47319 2008-08-04  Eric Blake  <ebb9@byu.net>
47320
47321         gnumakefile: use space, not TAB, outside of targets
47322         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47323
47324 2008-08-02  Jim Meyering  <meyering@redhat.com>
47325
47326         getdate.y: avoid locale-dependent date parsing failure
47327         In Turkish locales, getdate would fail to recognize keywords
47328         containing a lowercase "i".  The solution is not to rely on
47329         locale-sensitive case-conversion.
47330         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47331         (lookup_word): Use c_toupper in place of toupper.
47332         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47333         Reported by Vefa Bicakci <bicave@superonline.com> in
47334         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47335         * modules/getdate (Depends-on): Add c-ctype.
47336
47337 2008-08-02  Bruno Haible  <bruno@clisp.org>
47338
47339         * gnulib-tool (func_import): When updating or creating a .gitignore
47340         file, prepend each added line with a slash, and ignore leading slashes
47341         from the existing lines.
47342         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47343
47344 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47345
47346         Portability fix for GNU make 3.79.1.
47347         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47348         versions do not understand.
47349
47350 2008-08-01  Bruno Haible  <bruno@clisp.org>
47351
47352         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47353         * tests/test-isnanf.h (zero): New variable.
47354         (main): Avoid literal -0.0f.
47355         * tests/test-isnand.h (zero): New variable.
47356         (main): Avoid literal -0.0.
47357         * tests/test-isnanl.h (zero): New variable.
47358         (main): Avoid literal -0.0L.
47359         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47360         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47361         -0.0, -0.0L.
47362         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47363         (test_signbitd): Avoid literal -0.0.
47364         (test_signbitl): Avoid literal -0.0L.
47365         * tests/test-ceilf1.c (zero): New variable.
47366         (main): Avoid literal -0.0f.
47367         * tests/test-ceill.c (zero): New variable.
47368         (main): Avoid literal -0.0L.
47369         * tests/test-floorf1.c (zero): New variable.
47370         (main): Avoid literal -0.0f.
47371         * tests/test-floorl.c (zero): New variable.
47372         (main): Avoid literal -0.0L.
47373         * tests/test-roundf1.c (zero): New variable.
47374         (main): Avoid literal -0.0f.
47375         * tests/test-round1.c (zero): New variable.
47376         (main): Avoid literal -0.0.
47377         * tests/test-roundl.c (zero): New variable.
47378         (main): Avoid literal -0.0L.
47379         * tests/test-truncf1.c (zero): New variable.
47380         (main): Avoid literal -0.0f.
47381         * tests/test-trunc1.c (zero): New variable.
47382         (main): Avoid literal -0.0.
47383         * tests/test-truncl.c (zero): New variable.
47384         (main): Avoid literal -0.0L.
47385         * tests/test-frexp.c (zero): New variable.
47386         (main): Avoid literal -0.0.
47387         * tests/test-frexpl.c (zero): New variable.
47388         (main): Avoid literal -0.0L.
47389         * tests/test-ldexpl.c (zero): New variable.
47390         (main): Avoid literal -0.0L.
47391         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47392         (zerod, zerol): New variables.
47393         (test_function): Avoid literals -0.0, -0.0L.
47394         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47395         (zerod, zerol): New variables.
47396         (test_function): Avoid literals -0.0, -0.0L.
47397         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47398         (zerod, zerol): New variables.
47399         (test_function): Avoid literals -0.0, -0.0L.
47400         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47401         (zerod, zerol): New variables.
47402         (test_function): Avoid literals -0.0, -0.0L.
47403         * tests/test-strtod.c (zero): New variable.
47404         (main): Avoid literal -0.0.
47405         Reported by Jonathan C. Patschke <jp@centtech.com>.
47406
47407 2008-07-31  Jim Meyering  <meyering@redhat.com>
47408
47409         sha256.h: correct definition of SHA224_DIGEST_SIZE
47410         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47411         Reported by Paulie Pena IV <paulie4@gmail.com>.
47412         Define as 224 / 8, rather than as a literal.
47413         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47414         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47415         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47416
47417 2008-07-31  Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47420         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47421         Reported by Jonathan Patschke <jp@centtech.com>.
47422
47423 2008-07-31  Bruno Haible  <bruno@clisp.org>
47424
47425         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47426         Reported by Paolo Bonzini <bonzini@gnu.org>.
47427
47428 2008-07-30  Eric Blake  <ebb9@byu.net>
47429
47430         test-strtod: allow compilation without -lm
47431         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47432         Reported by Dennis Clarke <blastwave@gmail.com>.
47433
47434 2008-07-28  Jim Meyering  <meyering@redhat.com>
47435
47436         bootstrap: work also when there are no .po files in po/
47437         * build-aux/bootstrap (update_po_files): Complete the change
47438         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47439
47440 2008-07-27  Jim Meyering  <meyering@redhat.com>
47441
47442         * users.txt: Add zile.
47443
47444 2008-07-26  Ben Pfaff  <blp@gnu.org>
47445
47446         Add missing dependencies on new m4/exponent[fdl].m4 files.
47447         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47448         * modules/isnand-nolibm: Add m4/exponentd.m4.
47449         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47450         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47451         m4/isnan[fdl].m4, because the macros actually used moved.
47452         Reported by Jim Meyering.
47453
47454 2008-07-14  Ben Pfaff  <blp@gnu.org>
47455
47456         Add isinf module.
47457         * lib/isinf.c: New file.
47458         * lib/math.in.h: Define isinf macro if we have decided to replace
47459         it.
47460         * m4/isinf.m4: New file.
47461         * m4/math_h.m4: Initialize and substitute variables for isinf
47462         module.
47463         * modules/isinf: New file.
47464         * modules/isinf-tests: New file.
47465         * modules/math: Add substitutions for new module.
47466         * tests/test-isinf.c: New file.
47467         * doc/posix-functions/isinf.texi: Mention new module.
47468         * MODULES.html.sh: Mention new module.
47469
47470 2008-07-14  Ben Pfaff  <blp@gnu.org>
47471
47472         Factor out some macros for use by additional modules.
47473         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47474         exponentf.m4.
47475         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47476         exponentd.m4.
47477         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47478         file exponentl.m4.
47479         * m4/exponentf.m4: New file.
47480         * m4/exponentd.m4: New file.
47481         * m4/exponentl.m4: New file.
47482         * modules/isnanf: Use new file m4/exponentf.m4.
47483         * modules/isnand: Use new file m4/exponentd.m4.
47484         * modules/isnanl: Use new file m4/exponentl.m4.
47485
47486 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47487
47488         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47489         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47490         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47491         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47492
47493         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47494         readlink on platforms without PATH_MAX.
47495
47496 2008-07-21  Eric Blake  <ebb9@byu.net>
47497
47498         Warn, not fail, on stale version.
47499         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47500
47501         Don't allow installation with stale devel version number.
47502         * top/GNUmakefile (_is-install-target): New macro.
47503         (_curr-ver): Forbid installation with stale version number.
47504
47505 2008-07-20  Bruno Haible  <bruno@clisp.org>
47506
47507         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47508         TESTS_ENVIRONMENT.
47509         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47510
47511 2008-07-20  Bruno Haible  <bruno@clisp.org>
47512
47513         * lib/c-stack.h (c_stack_action): Add documentation.
47514         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47515
47516 2008-07-20  Bruno Haible  <bruno@clisp.org>
47517
47518         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47519         * modules/readlink (License): Likewise.
47520
47521 2008-07-17  Eric Blake  <ebb9@byu.net>
47522
47523         * modules/c-stack (Link): Fix typo.
47524
47525         Make c-stack use libsigsegv, when available.
47526         * modules/c-stack (Depends-on): Add libsigsegv.
47527         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47528         needed.
47529         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47530         (segv_handler, overflow_handler, c_stack_action)
47531         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47532         implementation when libsigsegv is available, but only when using
47533         the library is necessary.
47534         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47535         comment, explaining why XSI check fails on Linux.
47536         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47537         * tests/test-c-stack2.sh: Tweak skip message.
47538         * NEWS: Document new link-time requirements.
47539
47540 2008-07-16  Eric Blake  <ebb9@byu.net>
47541
47542         c-stack: Expose false positives when not using libsigsegv.
47543         * modules/c-stack-tests (Files): Expand test.
47544         * tests/test-c-stack.c (main): Add means to conditionally trigger
47545         non-overflow SIGSEGV.
47546         * tests/test-c-stack2.sh: New file.
47547
47548 2008-07-14  Bruno Haible  <bruno@clisp.org>
47549
47550         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47551         Reported by Eric Blake.
47552
47553 2008-07-14  Sam Steingold  <sds@gnu.org>
47554             Bruno Haible  <bruno@clisp.org>
47555
47556         New module libsigsegv.
47557         * modules/libsigsegv: New file.
47558         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47559         modifications.
47560         * MODULES.html.sh (Signal handling): New section.
47561
47562 2008-07-14  Bruno Haible  <bruno@clisp.org>
47563
47564         * modules/unictype/ctype-* (Description): Add the word "function".
47565         Improves the resulting doc in MODULES.html.
47566
47567 2008-07-12  Ben Pfaff  <blp@gnu.org>
47568
47569         Add longlong module.
47570         * modules/longlong: New file.
47571
47572 2008-07-12  Bruno Haible  <bruno@clisp.org>
47573
47574         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47575         to empty.
47576
47577 2008-07-10  Ben Pfaff  <blp@gnu.org>
47578
47579         Add isnan module.
47580         * doc/posix-functions/isnan.texi: Mention new module.
47581         * lib/math.in.h: Define isnan macro if we have decided to replace
47582         it.
47583         * m4/isnan.m4: New file.
47584         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47585         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47586         also.
47587         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47588         redundancy.
47589         * m4/math_h.m4: Initialize and substitute variables for isnan
47590         module.
47591         * modules/isnan: New file.
47592         * modules/isnan-tests: New file.
47593         * modules/math: Add substitutions for new module.
47594         * tests/test-isnan.c: New file.
47595         * MODULES.html.sh: Mention new module.
47596
47597 2008-07-10  Ben Pfaff  <blp@gnu.org>
47598
47599         Add isnanf module.
47600         * lib/isnanf.m4: New file.
47601         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47602         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47603         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47604         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47605         * modules/isnanf: New file.
47606         * modules/isnanf-tests: New file.
47607         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47608         files.
47609         * tests/test-isnanf-nolibm.c: factored most of its contents into
47610         new file tests/test-isnanf.h.
47611         * tests/test-isnanf.h: New file.
47612         * tests/test-isnanf.c: New file.
47613         * MODULES.html.sh: Mention new module.
47614         * doc/glibc-functions/isnanf.texi: Mention new module.
47615
47616 2008-07-10  Ben Pfaff  <blp@gnu.org>
47617
47618         Add isnand module.
47619         * lib/isnand.h: New file.
47620         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47621         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47622         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47623         functionality also.
47624         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47625         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47626         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47627         * modules/isnand: New file.
47628         * modules/isnand-tests: New file.
47629         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47630         files.
47631         * tests/test-isnand-nolibm.c: factored most of its contents into
47632         new file tests/test-isnand.h.
47633         * tests/test-isnand.h: New file.
47634         * tests/test-isnand.c: New file.
47635         * MODULES.html.sh: Mention new module.
47636
47637 2008-07-10  Ben Pfaff  <blp@gnu.org>
47638
47639         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47640         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47641         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47642         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47643         * modules/isnanf-nolibm: Update references to renamed files.
47644         * modules/isnand-nolibm: Likewise.
47645         * modules/isnanf-nolibm-tests: Likewise.
47646         * modules/isnand-nolibm-tests: Likewise.
47647         * lib/frexp.c: Likewise.
47648         * lib/isfinite.c: Likewise.
47649         * lib/signbitd.c: Likewise.
47650         * lib/signbitf.c: Likewise.
47651         * lib/vasnprintf.c: Likewise.
47652         * tests/test-ceilf1.c: Likewise.
47653         * tests/test-ceilf2.c: Likewise.
47654         * tests/test-floorf1.c: Likewise.
47655         * tests/test-floorf2.c: Likewise.
47656         * tests/test-frexp.c: Likewise.
47657         * tests/test-round1.c: Likewise.
47658         * tests/test-round2.c: Likewise.
47659         * tests/test-roundf1.c: Likewise.
47660         * tests/test-strtod.c: Likewise.
47661         * tests/test-trunc1.c: Likewise.
47662         * tests/test-trunc2.c: Likewise.
47663         * tests/test-truncf1.c: Likewise.
47664         * tests/test-truncf2.c: Likewise.
47665         * NEWS: Mention the renamed header files.
47666
47667 2008-07-11  Jim Meyering  <meyering@redhat.com>
47668
47669         vc-list-files: make the last-resort awk code more portable
47670         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47671         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47672         does not support it.
47673
47674 2008-07-10  Eric Blake  <ebb9@byu.net>
47675
47676         Work with tar's bootstrap.
47677         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47678         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47679         an m4 comment.
47680
47681 2008-07-09  Jim Meyering  <meyering@redhat.com>
47682
47683         posix-shell.m4: fix typo that made this test malfunction
47684         * m4/posix-shell.m4: Remove capitalization in variable name.
47685
47686 2008-07-08  Bruno Haible  <bruno@clisp.org>
47687
47688         * m4/onceonly.m4: Update comments.
47689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47690
47691 2008-07-04  Jim Meyering  <meyering@redhat.com>
47692
47693         * users.txt: Add vc-dwim.
47694         (bison, coreutils): Use the gitweb URL.
47695
47696 2008-07-03  Jim Meyering  <meyering@redhat.com>
47697
47698         * users.txt: Add libffcall.  From Sam Steingold.
47699
47700 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47701
47702         getdate.y: do not ignore TZ with relative day, month or year offset
47703         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47704         relative-date-handling, since otherwise, the latter would clobber the
47705         sole output (an updated Start value) of the tz-handling block.
47706         * tests/test-getdate.c: Tests for the fix
47707
47708 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47709
47710         Recognize 'foo_LIBRARIES += libgnu.a'.
47711         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47712         makefile snippet has already specified an installation location,
47713         also using '+='.
47714
47715 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47716
47717         getdate.y: factor out common actions
47718         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47719         Use them in place of open-coded actions.
47720
47721 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47722
47723         Add self-test for getdate module.
47724         * modules/getdate-tests: New file.
47725         * tests/test-getdate.c: New file.
47726
47727 2008-06-29  Bruno Haible  <bruno@clisp.org>
47728
47729         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47730         .gitignore.
47731         Reported by Sylvain Beucler <beuc@beuc.net>.
47732
47733 2008-06-29  Bruno Haible  <bruno@clisp.org>
47734
47735         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47736         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47737
47738 2008-06-29  Bruno Haible  <bruno@clisp.org>
47739
47740         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47741         EXTRA_DIST.
47742         Reported by Sylvain Beucler <beuc@beuc.net>.
47743
47744 2008-06-26  Jim Meyering  <meyering@redhat.com>
47745
47746         make several modules depend on the "open" module
47747         This provides slightly increased consistency when opening-for-write
47748         the name of a non-directory spelled with a trailing slash.
47749         * modules/chdir-safer: Likewise.
47750         * modules/chown: Likewise.
47751         * modules/clean-temp: Likewise.
47752         * modules/copy-file: Likewise.
47753         * modules/fchdir: Likewise.
47754         * modules/fcntl-safer: Likewise.
47755         * modules/pipe: Likewise.
47756         * modules/utime: Likewise.
47757         Prompted by Eric Blake and Bruno Haible.
47758
47759 2008-06-24  Andreas Schwab  <schwab@suse.de>
47760
47761         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47762         literals can be used as initializers for global variables.
47763
47764 2008-06-23  Eric Blake  <ebb9@byu.net>
47765
47766         Make gnulib-cache.m4 easier to diff.
47767         * gnulib-tool (func_import): Allow newlines when reading cached
47768         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47769
47770 2008-06-23  Bruno Haible  <bruno@clisp.org>
47771
47772         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47773         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47774         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47775         m4/signalblocking.m4.
47776         (gl_PREREQ_SIGACTION): Don't invoke it.
47777         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47778         gl_PREREQ_SIG_HANDLER_H.
47779         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47780         Don't check for sigaction here.
47781
47782 2008-06-23  Bruno Haible  <bruno@clisp.org>
47783
47784         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47785         (install_handlers): Don't set the SA_RESETHAND flag.
47786
47787 2008-06-23  Bruno Haible  <bruno@clisp.org>
47788
47789         * m4/sigaction.m4: Comment fixes.
47790         * lib/signal.in.h: Likewise.
47791
47792 2008-06-23  Eric Blake  <ebb9@byu.net>
47793
47794         Fix typo.
47795         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47796
47797         Avoid SA_ namespace.
47798         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47799         Reported by Ralf Wildenhues.
47800
47801         Avoid test failure due to SA_RESTORER.
47802         * tests/test-sigaction.c (SA_MASK): New macro.
47803         (main): Avoid failing due to extension flags being set.
47804         Reported by Jim Meyering.
47805
47806         Revert use of sig-handler.h in sigprocmask.c.
47807         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47808         it requires the existence of struct sigaction.
47809         * lib/sigprocmask.c (handler_t): Restore typedef.
47810         (rpl_signal, old_handlers): Use local type.
47811
47812 2008-06-22  Bruno Haible  <bruno@clisp.org>
47813
47814         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47815         conditionally.
47816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47817
47818 2008-06-22  Bruno Haible  <bruno@clisp.org>
47819
47820         * doc/posix-functions/siginterrupt.texi: Move note.
47821
47822         * lib/signal.in.h (SA_RESTART): New macro.
47823         * lib/sigaction.c: Update comment.
47824
47825         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47826
47827         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47828         (gl_PREREQ_SIGPROCMASK): Invoke it.
47829         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47830
47831         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47832
47833         * lib/sigprocmask.c: Update a comment.
47834
47835 2008-06-21  Eric Blake  <ebb9@byu.net>
47836
47837         Use sigaction module rather than signal().
47838         * modules/c-stack (Depends-on): Add sigaction.
47839         * modules/fatal-signal (Depends-on): Likewise.
47840         * modules/nanosleep (Depends-on): Likewise.
47841         * modules/sigprocmask (Files): Add sig-handler.h.
47842         * modules/sigaction (Files): Likewise.
47843         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47844         Eggert.
47845         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47846         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47847         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47848         (init_fatal_signals): Likewise.
47849         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47850         (siginterrupt): Delete fallback.
47851         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47852         instead.
47853         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47854         siginterrupt.
47855
47856         New module sigaction, for mingw.
47857         * modules/sigaction: New module...
47858         * modules/sigaction-tests: ...and its test.
47859         * m4/sigaction.m4: New file.
47860         * lib/sigaction.c: Likewise.
47861         * tests/test-sigaction.c: Likewise.
47862         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47863         * modules/signal (Makefile.am): Likewise.
47864         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47865         needed.
47866         * doc/posix-headers/signal.texi (signal.h): Mention provided
47867         types.
47868         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47869         that sigaction is preferable.
47870         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47871         module.
47872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47873         sigaction.
47874
47875         Improve robustness of sigprocmask by overriding signal.
47876         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47877         is in use.
47878         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47879         (SIGKILL, SIGSTOP): Provide fallbacks.
47880         (rpl_signal): Implement.
47881         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47882         signal can be called inside handlers.
47883
47884         Fix nanosleep module on mingw.
47885         * modules/nanosleep (Depends-on): Add sys_select.
47886         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47887
47888         Fix licensing of sigprocmask.
47889         * modules/raise (License): Relicense as LGPL.
47890
47891 2008-06-21  Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47894         result if it contains question marks.
47895         Reported by Michael Geng <linux@michaelgeng.de>.
47896
47897 2008-06-19  Bruno Haible  <bruno@clisp.org>
47898
47899         Fix CVS-ism.
47900         * doc/gnulib.texi: Include updated-stamp.texi.
47901         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47902         (updated-stamp.texi): New rule.
47903         (gnulib.info): Depend on it.
47904         * doc/.gitignore: Add updated-stamp.texi.
47905         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47906
47907 2008-06-19  Bruno Haible  <bruno@clisp.org>
47908
47909         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47910         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47911
47912 2008-06-19  Eric Blake  <ebb9@byu.net>
47913
47914         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47915         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47916         Reported by Stepan Kasal.
47917
47918 2008-06-18  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47921         Reported by Eric Blake.
47922
47923 2008-06-18  Eric Blake  <ebb9@byu.net>
47924
47925         Work around cygwin 1.5.25 strsignal bug.
47926         * tests/test-strsignal.c: Allow for const char *.
47927         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47928
47929 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47930
47931         * users.txt: Update URL to article and add author/date
47932         information.
47933
47934 2008-06-17  Bruno Haible  <bruno@clisp.org>
47935
47936         New macro gl_DISABLE_THREADS.
47937         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47938         if the user did not pass --enable-threads or --disable-threads option.
47939         (gl_DISABLE_THREADS): New macro.
47940         Reported by Eric Blake <ebb9@byu.net>.
47941
47942 2008-06-17  Bruno Haible  <bruno@clisp.org>
47943
47944         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47945         when the macro ignores it.
47946         Based on a patch by Eric Blake <ebb9@byu.net>.
47947
47948 2008-06-17  Bruno Haible  <bruno@clisp.org>
47949
47950         * modules/tls (License): Change to LGPLv2+.
47951         Reported by Eric Blake.
47952
47953 2008-06-17  Eric Blake  <ebb9@byu.net>
47954
47955         Simplify c-stack prerequisites.
47956         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47958         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47959         check.
47960         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47961         <sys/resource.h>.
47962
47963         Move c-stack test into testsuite.
47964         * modules/c-stack-tests: New file.
47965         * lib/c-stack.c [DEBUG]: Move test program...
47966         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47967         fail test if sigaltstack is lacking.
47968         * tests/test-c-stack.sh: New driver file.
47969
47970 2008-06-16  Eric Blake  <ebb9@byu.net>
47971
47972         Use raise module consistently.
47973         * modules/fatal-signal (Depends-on): Add raise.
47974         * modules/sigprocmask (Depends-on): Likewise.
47975         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47976         * lib/sigprocmask.c (sigprocmask): Likewise.
47977         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47978         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47979
47980         Fix compliance bug in sigpending.
47981         * lib/sigprocmask.c (sigpending): Return pending array via
47982         parameter, not return value.
47983
47984 2008-06-14  Eric Blake  <ebb9@byu.net>
47985
47986         Improve obstack-printf test code.
47987         * tests/test-obstack-printf.c (test_function): Fix comment, and
47988         simplify usage of obstack_* in macros.  Add a test for coverage.
47989         Reported by Bruno Haible.
47990
47991 2008-06-14  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47994         array size as a constant, not as a const variable.
47995         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47996         AC_USE_SYSTEM_EXTENSIONS.
47997         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47998         Test whether the obstack_printf function actually exists.
47999         * modules/obstack-printf (Depends-on): Add extensions.
48000         (Include): Remove obstack.h.
48001         * modules/obstack-printf-posix (Depends-on): Add extensions.
48002         (Include): Remove obstack.h.
48003
48004 2008-06-13  Eric Blake  <ebb9@byu.net>
48005
48006         Add obstack-printf and obstack-printf-posix modules.
48007         * modules/obstack-printf: New file.
48008         * modules/obstack-printf-posix: Likewise.
48009         * MODULES.html.sh (Misc): Mention them.
48010         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48011         Likewise.
48012         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48013         Likewise.
48014         * modules/stdio (Makefile.am): Accomodate new modules.
48015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48016         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48017         Declare.
48018         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48019         functions.
48020         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48021         (gl_REPLACE_OBSTACK_PRINTF): New macros
48022         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48023         * tests/test-obstack-printf.c: New file.
48024         * modules/obstack-printf-tests: Likewise.
48025         * modules/obstack-printf-posix-tests: Likewise.
48026
48027 2008-06-11  Bruno Haible  <bruno@clisp.org>
48028
48029         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48030         * lib/open.c: Include errno.h.
48031         (open): Fail when attempting to write to a file that has a trailing
48032         slash.
48033         * tests/test-open.c (main): Test against trailing slash bug.
48034         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48035
48036 2008-06-10  Bruno Haible  <bruno@clisp.org>
48037
48038         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48039         for $? to work inside the trap command, with various /bin/sh-s.
48040         * tests/test-vc-list-files-cvs.sh: Likewise.
48041
48042 2008-06-10  Bruno Haible  <bruno@clisp.org>
48043
48044         * lib/acl-internal.h: Don't include gettext.h here.
48045         * lib/set-mode-acl.c: Include gettext.h here.
48046         * lib/copy-acl.c: Likewise.
48047
48048 2008-06-10  Bruno Haible  <bruno@clisp.org>
48049
48050         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48051         * lib/wait-process.c (wait_subprocess): Likewise.
48052         * lib/execute.h (execute): Add termsigp argument.
48053         * lib/execute.c (execute): Likewise.
48054         * lib/csharpcomp.c (compile_csharp_using_pnet,
48055         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48056         * lib/csharpexec.c (execute_csharp_using_pnet,
48057         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48058         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48059         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48060         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48061         is_jikes_present): Update.
48062         * lib/javaexec.c (execute_java_class): Update.
48063         * lib/javaversion.c (execute_and_read_line): Update.
48064         * NEWS: Document the changes.
48065         Reported by Eric Blake.
48066
48067 2008-06-10  Eric Blake  <ebb9@byu.net>
48068
48069         Add missing include.
48070         * tests/test-strstr.c (includes): Add <signal.h>.
48071         * tests/test-strcasestr.c (includes): Likewise.
48072         * tests/test-memmem.c (includes): Likewise.
48073
48074 2008-06-10  Bruno Haible  <bruno@clisp.org>
48075
48076         * lib/wait-process.c (wait_subprocess): Add an assertion.
48077
48078 2008-06-10  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48081
48082 2008-06-10  Bruno Haible  <bruno@clisp.org>
48083
48084         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48085         using alarm().
48086         * tests/test-strcasestr.c (main): Likewise.
48087         * tests/test-strstr.c (main): Likewise.
48088
48089 2008-06-09  Bruno Haible  <bruno@clisp.org>
48090
48091         Work around the Solaris 10 ACE ACLs ABI change.
48092         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48093         declare if ACL_NO_TRIVIAL is present.
48094         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48095         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48096         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48097         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48098         define if ACL_NO_TRIVIAL is present.
48099         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48100         and use the current ABI.
48101         (file_has_acl): Use same #if condition as elsewhere.
48102         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48103         in use, and use the current ABI.
48104         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48105         Reported by Jim Meyering.
48106
48107 2008-06-09  Eric Blake  <ebb9@byu.net>
48108
48109         Work around environments that (stupidly) ignore SIGALRM.
48110         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48111         before using alarm().
48112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48113         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48114         Reported by Ian Beckwith <ianb@erislabs.net>.
48115
48116         Produce autobuild blurb earlier in log.
48117         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48118
48119 2008-06-09  Jim Meyering  <meyering@redhat.com>
48120         and OndÅ™ej Vašík  <ovasik@redhat.com>
48121
48122         utimens.c: correct kernel bug work-around
48123         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48124         failure, not success, and the kernel bug we're trying to work
48125         around affects not just the utimensat call, but also the fallback
48126         futimens call.
48127         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48128         not success.
48129         [HAVE_FUTIMENS]: Use the same work-around, here.
48130
48131 2008-06-09  Jim Meyering  <meyering@redhat.com>
48132
48133         add more guards around definition of ACE_-related code
48134         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48135         ALLOW and ACE_OWNER are also defined.
48136
48137 2008-06-08  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/acl-internal.h: Add me as co-author.
48140         * lib/file-has-acl.c: Likewise.
48141         * lib/set-mode-acl.c: Likewise.
48142         * lib/copy-acl.c: Likewise.
48143
48144 2008-06-08  Bruno Haible  <bruno@clisp.org>
48145
48146         Add support for AIX ACLs.
48147         * lib/acl-internal.h (acl_nontrivial): New declaration.
48148         * lib/file-has-acl.c (acl_nontrivial): New function.
48149         (file_has_acl): Add implementation using AIX 4 ACL API.
48150         * lib/set-mode-acl.c (qset_acl): Likewise.
48151         * lib/copy-acl.c (qcopy_acl): Likewise.
48152
48153 2008-06-08  Bruno Haible  <bruno@clisp.org>
48154
48155         Add support for HP-UX ACLs.
48156         * lib/acl-internal.h (acl_nontrivial): New declaration.
48157         * lib/file-has-acl.c (acl_nontrivial): New function.
48158         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48159         * lib/set-mode-acl.c (qset_acl): Likewise.
48160         * lib/copy-acl.c (qcopy_acl): Likewise.
48161
48162 2008-06-08  Bruno Haible  <bruno@clisp.org>
48163
48164         Add support for Cygwin ACLs.
48165         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48166         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48167         the chmod_or_fchmod call.
48168         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48169
48170 2008-06-08  Bruno Haible  <bruno@clisp.org>
48171
48172         Fix bug with setuid modes in Solaris 10+ code.
48173         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48174         succeeded, when the mode contains some special bits.
48175
48176 2008-06-08  Bruno Haible  <bruno@clisp.org>
48177
48178         Add support for Solaris 7..10 ACLs.
48179         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48180         declarations.
48181         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48182         functions.
48183         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48184         * lib/set-mode-acl.c (qset_acl): Likewise.
48185         * lib/copy-acl.c (qcopy_acl): Likewise.
48186
48187 2008-06-08  Bruno Haible  <bruno@clisp.org>
48188
48189         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48190         declaration.
48191         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48192         (acl_access_nontrivial): Remove MacOS X case.
48193         (file_has_acl): Use acl_extended_nontrivial.
48194         * lib/copy-acl.c (qcopy_acl): Likewise.
48195
48196 2008-06-08  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48199
48200 2008-06-08  Jim Meyering  <meyering@redhat.com>
48201
48202         * modules/acl (Maintainer): Add Bruno Haible.
48203
48204 2008-06-07  Bruno Haible  <bruno@clisp.org>
48205
48206         Improve support for Tru64 ACLs.
48207         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48208         ACL on OSF/1.
48209
48210 2008-06-07  Bruno Haible  <bruno@clisp.org>
48211
48212         Add support for MacOS X ACLs.
48213         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48214         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48215         * lib/set-mode-acl.c (qset_acl): Likewise.
48216         * lib/copy-acl.c (qcopy_acl): Likewise.
48217
48218 2008-06-07  Bruno Haible  <bruno@clisp.org>
48219
48220         Fix memory leak introduced on 2008-05-22.
48221         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48222         use.
48223
48224 2008-06-07  Bruno Haible  <bruno@clisp.org>
48225
48226         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48227         to construct an empty ACL.
48228
48229 2008-06-07  Bruno Haible  <bruno@clisp.org>
48230
48231         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48232         precisely.
48233         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48234
48235 2008-06-07  Bruno Haible  <bruno@clisp.org>
48236
48237         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48238         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48239
48240 2008-06-07  Bruno Haible  <bruno@clisp.org>
48241
48242         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48243         regardless of POSIX.
48244         * doc/posix-functions/_longjmp.texi: Likewise.
48245         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48246         SystemV platform in this case.
48247
48248 2008-06-06  Eric Blake  <ebb9@byu.net>
48249
48250         Document abort() bugs.
48251         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48252
48253         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48254         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48255         sigsetjmp.
48256         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48257         siglongjmp, but only as a macro.
48258         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48259         is obsolete.
48260         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48261
48262         Tweak documentation to cover cygwin argz bugs.
48263         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48264         argz bug fix; no code change needed since no cygwin releases
48265         occurred between the last fix and the bug being tested.
48266         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48267         module and recently fixed cygwin bugs.
48268         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48269         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48270         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48271         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48272         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48273         Likewise.
48274         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48275         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48276         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48277         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48278         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48279         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48280         Likewise.
48281
48282         Avoid gcc warning on cygwin.
48283         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48284         !ACL_NO_TRIVIAL]: Avoid unused variable.
48285
48286 2008-06-05  Eric Blake  <ebb9@byu.net>
48287
48288         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48289         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48290         git-version-gen fails to come up with a version.
48291         Reported by Simon Josefsson.
48292
48293 2008-06-05  Jim Meyering  <meyering@redhat.com>
48294             Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         utimens.c: work around a probable Linux kernel bug
48297         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48298         appears to be a kernel bug that causes utimensat to return 280
48299         instead of 0, indicating success.
48300
48301 2008-06-04  Bruno Haible  <bruno@clisp.org>
48302
48303         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48304         2008-06-01 commit.
48305
48306 2008-06-04  Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48309         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48310         (file_has_acl): Use it. Save errno afterwards.
48311         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48312
48313 2008-06-03  Bruno Haible  <bruno@clisp.org>
48314
48315         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48316         draft code. Simplify #ifs.
48317         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48318         Put Solaris code after POSIX-draft code. Fix comments regarding
48319         Solaris 10, HP-UX. Mention Cygwin.
48320         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48321
48322 2008-06-03  Eric Blake  <ebb9@byu.net>
48323
48324         Provide fallback for older kernels.
48325         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48326         Provide runtime fallback if kernel lacks support.
48327         Reported by Mike Frysinger.
48328
48329 2008-06-02  Bruno Haible  <bruno@clisp.org>
48330
48331         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48332         it exists.
48333
48334 2008-06-02  Bruno Haible  <bruno@clisp.org>
48335
48336         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48337         * lib/copy-acl.c (qcopy_acl): Update comment.
48338
48339 2008-06-02  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48342         like ACL APIs.
48343
48344 2008-06-02  Bruno Haible  <bruno@clisp.org>
48345
48346         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48347         * tests/test-set-mode-acl.sh: Likewise.
48348         * tests/test-copy-acl.sh: Likewise.
48349         * tests/test-copy-file.sh: Likewise.
48350
48351 2008-06-02  Bruno Haible  <bruno@clisp.org>
48352
48353         * tests/test-file-has-acl.sh: Remove unused code.
48354
48355 2008-06-01  Bruno Haible  <bruno@clisp.org>
48356
48357         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48358         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48359         messages.
48360         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48361
48362 2008-06-01  Bruno Haible  <bruno@clisp.org>
48363
48364         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48365         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48366         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48367         APIs.
48368         * modules/acl-tests (configure.ac): Remove tests now contained in
48369         m4/acl.m4.
48370
48371 2008-06-02  Jim Meyering  <meyering@redhat.com>
48372
48373         announce-gen: use a better key-server host name
48374         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48375         it may be more consistently reliable.  Suggested by Werner Koch
48376         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48377
48378 2008-06-01  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48381         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48382
48383 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48384
48385         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48386
48387 2008-06-01  Bruno Haible  <bruno@clisp.org>
48388
48389         New ACL tests.
48390         * tests/test-file-has-acl.sh: New file.
48391         * tests/test-file-has-acl.c: New file.
48392         * tests/test-set-mode-acl.sh: New file.
48393         * tests/test-set-mode-acl.c: New file.
48394         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48395         * tests/test-copy-acl.c: New file.
48396         * modules/acl-tests: New file, based on modules/copy-file-tests.
48397         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48398         (Depends-on): Add acl-tests.
48399         (configure.ac): Remove checks.
48400         (Makefile.am): Don't create test-sameacls program here any more.
48401
48402 2008-06-01  Bruno Haible  <bruno@clisp.org>
48403
48404         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48405         * tests/test-sameacls.c: Include progname.h.
48406         (main): Invoke set_program_name. Portability fixes for MacOS X,
48407         Solaris, HP-UX.
48408
48409 2008-06-01  Bruno Haible  <bruno@clisp.org>
48410
48411         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48412         function.
48413         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48414
48415 2008-06-01  Bruno Haible  <bruno@clisp.org>
48416
48417         * modules/rpmatch (Depends-on): Add strdup.
48418
48419 2008-06-01  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/pipe.c: Include unistd-safer.h.
48422         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48423         * modules/pipe (Depends-on): Add unistd-safer.
48424
48425 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48426
48427         * modules/autobuild (configure.ac): Call AB_INIT.
48428
48429 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48430
48431         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48432         Suggested by Bruno Haible <bruno@clisp.org>.
48433
48434 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48435
48436         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48437         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48438         <bruno@clisp.org>.
48439
48440 2008-05-29  Eric Blake  <ebb9@byu.net>
48441
48442         Prefer new POSIX 200x interfaces over futimesat.
48443         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48444         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48445         when available.
48446         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48447
48448 2008-05-28  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/stpcpy (License): Change to LGPLv2+.
48451         Requested by David Lutterkort <dlutter@redhat.com>.
48452
48453 2008-05-27  Bruno Haible  <bruno@clisp.org>
48454
48455         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48456         current mingw.
48457         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48458
48459 2008-05-27  Bruno Haible  <bruno@clisp.org>
48460
48461         * modules/iconv_open (Link): New section, from module 'iconv'.
48462         * modules/striconv (Link): Likewise.
48463         * modules/striconveh (Link): Likewise.
48464         * modules/xstriconv (Link): Likewise.
48465         * modules/unicodeio (Link): Likewise.
48466         * modules/propername (Link): Likewise.
48467         Reported by Jim Meyering.
48468
48469 2008-05-26  Jim Meyering  <meyering@redhat.com>
48470
48471         sha256: do not artificially restrict buffer length to be < 2^32
48472         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48473         uint32_t to size_t.
48474         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48475         to match.
48476
48477         avoid unaligned access errors, e.g., on sparc
48478         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48479         direct access through a possibly-unaligned uint64* pointer.
48480         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48481         direct access through a possibly-unaligned uint32* pointer.
48482         Prompted by this patch from Tom "spot" Callaway:
48483         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48484
48485         sha512.c: fix typo in comment
48486         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48487
48488 2008-05-25  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48491         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48492         (Makefile.am): Update lib_SOURCES.
48493
48494 2008-05-25  Bruno Haible  <bruno@clisp.org>
48495
48496         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48497
48498 2008-05-25  Jim Meyering  <meyering@redhat.com>
48499
48500         useless-if-before-free: freed expr may have white-space differences
48501         * build-aux/useless-if-before-free: Recognize cases in which the
48502         freed expression differs from the tested one in embedded white
48503         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48504         $1 was used, so we can't make any regexp shy.  Improved tests now
48505         detect this.
48506
48507         useless-if-before-free: accept white space in the expression.
48508         * build-aux/useless-if-before-free: For now, any white space
48509         in the expression must be identical in the free argument.
48510
48511         useless-if-before-free: efficiency tweak
48512         * build-aux/useless-if-before-free: Make the expression-matching
48513         regexp "shy".
48514         Make the *outer* regexp shy, not the expr-matching one.
48515
48516         update code-in-comment to accept cast of free arg
48517         * build-aux/useless-if-before-free: Update regexp.
48518
48519 2008-05-25  Bruno Haible  <bruno@clisp.org>
48520
48521         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48522         * modules/copy-file-tests (Files, Makefile.am): Update.
48523         * tests/test-copy-file.c (func_test_copy): Update.
48524
48525 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48526
48527         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48528
48529 2008-05-23  Bruno Haible  <bruno@clisp.org>
48530
48531         Improve support for ACLs on OSF/1.
48532         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48533         Remove fallback for unknown flavors of ACLs.
48534
48535 2008-05-22  Bruno Haible  <bruno@clisp.org>
48536
48537         Add support for ACLs on OSF/1.
48538         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48539         replacements.
48540         (acl_free_text): New macro fallback.
48541         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48542         acl_free.
48543         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48544         acl_free_text function. Require AC_C_INLINE.
48545
48546 2008-05-22  Bruno Haible  <bruno@clisp.org>
48547
48548         Make copy_acl work on MacOS X 10.5.
48549         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48550         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48551         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48552         If MODE_INSIDE_ACL, don't assume that every system has the same text
48553         representation for ACLs as FreeBSD.
48554         * lib/copy-acl.c (copy_acl): Add support for platforms with
48555         !MODE_INSIDE_ACL.
48556         * lib/file-has-acl.c (file_has_acl): Likewise.
48557         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48558         FreeBSD, MacOS X, or IRIX, respectively.
48559
48560 2008-05-22  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/acl.h: Don't include <sys/acl.h>.
48563         (GETACLCNT): Move fallback to lib/acl-internal.h.
48564         * lib/acl-internal.h: Include <sys/acl.h> here.
48565         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48566
48567 2008-05-22  Bruno Haible  <bruno@clisp.org>
48568
48569         Split off copy_acl function to separate file.
48570         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48571         * lib/acl.c (copy_acl): Moved function to separate file.
48572         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48573         * modules/acl (Files): Add lib/copy-acl.c.
48574         (Makefiles.am): Augment lib_SOURCES.
48575
48576 2008-05-22  Bruno Haible  <bruno@clisp.org>
48577
48578         * modules/copy-file-tests: New file.
48579         * tests/test-copy-file.sh: New file.
48580         * tests/test-copy-file.c: New file.
48581         * tests/test-copy-file-sameacls.c: New file.
48582
48583 2008-05-22  Eric Blake  <ebb9@byu.net>
48584
48585         Avoid gcc warning.
48586         * tests/test-memcmp.c (main): Pass NULL indirectly.
48587
48588 2008-05-21  Bruno Haible  <bruno@clisp.org>
48589
48590         Add reference doc about ACLs.
48591         * doc/acl-resources.txt: New file.
48592         * doc/acl-cygwin.txt: New file.
48593
48594 2008-05-21  Bruno Haible  <bruno@clisp.org>
48595
48596         Avoid one more warning from gcc.
48597         * lib/vasnprintf.c (IF_LINT): Update comments.
48598         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48599
48600 2008-05-21  Jim Meyering  <meyering@redhat.com>
48601
48602         avoid a warning from gcc
48603         * lib/vasnprintf.c (IF_LINT): Define.
48604         (scale10_round_decimal_long_double):
48605         Use it to avoid a "may be used uninitialized" warning.
48606         (scale10_round_decimal_double): Likewise.
48607
48608 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48609
48610         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48611         declared.
48612
48613 2008-05-20  Bruno Haible  <bruno@clisp.org>
48614
48615         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48616         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48617
48618 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48619
48620         * modules/memcmp-tests: New file.
48621         * tests/test-memcmp.c: New file.
48622
48623 2008-05-19  Bruno Haible  <bruno@clisp.org>
48624
48625         * modules/propername (Notice, configure.ac): Put quoted "..." into
48626         --keyword option.
48627         * lib/propername.h: Update comments accordingly.
48628         Reported by Eric Blake.
48629
48630 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48631
48632         * modules/getpass-gnu (Depends-on): Add fseeko.
48633
48634 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48635
48636         * modules/base64-tests: New file.
48637
48638 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48639
48640         * lib/base64.c (base64_decode_ctx): If a decode context structure
48641         was passed in use it to ignore newlines.  If a context structure
48642         was _not_ passed in, continue to treat newlines as garbage (this
48643         is the historical behavior).  Formerly base64_decode.
48644         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48645         takes a decode context structure.
48646         * lib/base64.h (base64_decode): Macro for four-argument calls.
48647         (base64_decode_alloc): Likewise.
48648         * lib/base64.c (base64_decode_ctx): If a decode context structure
48649         was passed in use it to ignore newlines.  If a context structure
48650         was _not_ passed in, continue to treat newlines as garbage (this
48651         is the historical behavior).  Formerly base64_decode.
48652         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48653         takes a decode context structure.
48654         * lib/base64.h (base64_decode): Macro for four-argument calls.
48655         (base64_decode_alloc): Likewise.
48656
48657 2008-05-19  Jim Meyering  <meyering@redhat.com>
48658
48659         avoid a warning from gcc
48660         * lib/trim.c (IF_LINT): Define.
48661         (trim2): Use it to avoid a "may be used uninitialized" warning.
48662
48663         Fix doc typo.
48664         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48665
48666 2008-05-19  Bruno Haible  <bruno@clisp.org>
48667
48668         * doc/glibc-functions/getpass.texi: Document limits of other
48669         implementations.
48670
48671 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48672             Bruno Haible <bruno@clisp.org>
48673
48674         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48675
48676 2008-05-18  Bruno Haible  <bruno@clisp.org>
48677
48678         * modules/propername: New file, from GNU gettext.
48679         * lib/propername.h: New file, from GNU gettext.
48680         * lib/propername.c: New file, from GNU gettext.
48681         * MODULES.html.sh (Internationalization functions): Add propername.
48682
48683 2008-05-16  Jim Meyering  <meyering@redhat.com>
48684             Bruno Haible  <bruno@clisp.org>
48685
48686         Avoid some warnings from "gcc -Wshadow".
48687         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48688
48689 2008-05-15  Eric Blake  <ebb9@byu.net>
48690
48691         Extend previous patch to cygwin 1.7.0.
48692         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48693         fast implementation in cygwin >= 1.7.0.
48694         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48696
48697 2008-05-15  Bruno Haible  <bruno@clisp.org>
48698
48699         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48700         implementation in glibc >= 2.9.
48701         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48702         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48703
48704 2008-05-15  Bruno Haible  <bruno@clisp.org>
48705
48706         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48707         (Unicode string functions): Add unilbrk/*.
48708         Reported by Karl Berry.
48709
48710 2008-05-15  Eric Blake  <ebb9@byu.net>
48711
48712         Fix violation of <stdbool.h> replacement in regex.
48713         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48714         * lib/regexec.c (re_search_internal): Likewise.
48715         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48716
48717 2008-05-15  Jim Meyering  <meyering@redhat.com>
48718
48719         avoid distracting test output when git or cvs is not found
48720         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48721         * tests/test-vc-list-files-git.sh: Likewise.
48722
48723 2008-05-15  Eric Blake  <ebb9@byu.net>
48724
48725         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48726         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48727         glibc version.
48728         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48729         * doc/posix-functions/strstr.texi (strstr): Likewise.
48730         * lib/str-two-way.h (MAX): Sychronize with glibc.
48731
48732 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48733
48734         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48735         opr.ctx_type.
48736         (calc_first): Initialize constraint field.
48737         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48738         Fix grammar.
48739         (duplicate_node): Merge constraint field for all node types.
48740         (calc_eclosure_iter): Look at constraint field for all node types.
48741         * lib/regex_internal.c (create_cd_newstate): Don't look at
48742         opr.ctx_type.
48743
48744 2008-05-14  Bruno Haible  <bruno@clisp.org>
48745
48746         Help GCC to do better code generation.
48747         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48748         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48749         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48750         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48751         Declare with attribute 'malloc' if supported.
48752
48753 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48754
48755         use "echo STR|wc -c" rather than unportable "expr length STR"
48756         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48757         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48758
48759 2008-05-14  Jim Meyering  <meyering@redhat.com>
48760
48761         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48762         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48763         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48764         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48765         via Collin Lasse.
48766
48767 2008-05-14  Eric Blake  <ebb9@byu.net>
48768
48769         Avoid quadratic growth in gl_LIBSOURCES.
48770         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48771         Suggested by Bruno Haible.
48772
48773         Test xmemdup0.
48774         * modules/xmemdup0-tests: New file.
48775         * tests/test-xmemdup0.c: Likewise.
48776
48777 2008-05-13  Eric Blake  <ebb9@byu.net>
48778
48779         Split xmemdup0 into its own module.
48780         * modules/xmemdup0: New file.
48781         * lib/xmemdup0.h: Likewise.
48782         * lib/xmemdup0.c: Likewise.
48783         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48784         * lib/xalloc.h (xmemdup0): Remove.
48785         * lib/xmalloc.c (xmemdup0): Likewise.
48786
48787 2008-05-13  Eric Blake  <ebb9@byu.net>
48788             Bruno Haible  <bruno@clisp.org>
48789
48790         Reduce number of forks required during autoconf.
48791         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48792         and gl_LIBSOURCES_DIR.
48793         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48794         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48795         m4_syscmd per file.
48796         <m4_foreach_w>: Move...
48797         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48798
48799 2008-05-13  Eric Blake  <ebb9@byu.net>
48800
48801         * gnulib-tool: Fix various comment typos.
48802
48803 2008-05-12  Bruno Haible  <bruno@clisp.org>
48804
48805         Tailor the linebreaking algorithm.
48806         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48807
48808 2008-05-12  Bruno Haible  <bruno@clisp.org>
48809
48810         Update to Unicode 5.0.0.
48811         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48812         LBP_JV, LBP_JT. Redistribute values.
48813         (unilbrk_table): Change size.
48814         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48815         Unicode TR#14 rev. 22.
48816         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48817         LBP_JV, LBP_JT. Redistribute values.
48818         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48819         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48820         Update.
48821         * lib/unilbrk/lbrkprop1.h: Regenerated.
48822         * lib/unilbrk/lbrkprop2.h: Regenerated.
48823         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48824         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48825         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48826         Likewise.
48827         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48828         Likewise.
48829         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48830         result.
48831         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48832         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48833         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48834         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48835         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48836         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48837
48838 2008-05-11  Bruno Haible  <bruno@clisp.org>
48839
48840         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48841
48842 2008-05-11  Bruno Haible  <bruno@clisp.org>
48843
48844         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48845         * modules/unilbrk/gen-lbrk: New file.
48846
48847 2008-05-11  Bruno Haible  <bruno@clisp.org>
48848
48849         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48850         * m4/sha512.m4 (gl_SHA512): Likewise.
48851
48852 2008-05-11  Jim Meyering  <meyering@redhat.com>
48853
48854         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48855         * modules/crypto/sha256: New file.
48856         * modules/crypto/sha512: Likewise.
48857         * lib/sha256.c: Likewise.
48858         * lib/sha256.h: Likewise.
48859         * lib/sha512.c: Likewise.
48860         * lib/sha512.h: Likewise.
48861         * lib/u64.h: Likewise.
48862         * m4/sha256.m4: Likewise.
48863         * m4/sha512.m4: Likewise.
48864         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48865
48866 2008-05-10  Bruno Haible  <bruno@clisp.org>
48867
48868         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48869         (Input/Output <stdio.h>): Add xprintf.
48870         (Signal handling <signal.h>): Add strsignal.
48871         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48872         (Core language properties): Add func.
48873         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48874         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48875         strings.
48876         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48877         (Input/output): New section.
48878         (File system functions): Add openat-die, stat-macros.
48879         (Networking functions): Add sockets.
48880         (Unicode string functions): Add unictype/*.
48881         (Support for building libraries and executables): Add gperf.
48882         (Support for building documentation): Add agpl-3.0.
48883         (Misc): Add nocrash.
48884
48885 2008-05-10  Bruno Haible  <bruno@clisp.org>
48886
48887         * modules/unictype/gen-ctype: New file.
48888
48889 2008-05-10  Jim Meyering  <meyering@redhat.com>
48890
48891         Make chdir-safer.c more efficient on a system with no symlinks.
48892         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48893         also if ELOOP is zero.  Suggested by Bruno Haible.
48894
48895         Make chdir-safer.c slightly safer.
48896         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48897         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48898
48899         Avoid compile failure on systems without ELOOP (like mingw).
48900         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48901         Reported by Bruno Haible.
48902
48903 2008-05-10  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48906         (is_utf8_encoding): Use a case-insensitive comparison.
48907         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48908         streq.
48909
48910 2008-05-10  Bruno Haible  <bruno@clisp.org>
48911
48912         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48913         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48914         * lib/unilbrk/ulc-common.h (iconv_string_length,
48915         iconv_string_keeping_offsets): Remove declarations.
48916         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48917         Don't include <iconv.h>, streq.h, xsize.h.
48918         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48919         conversion.
48920         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48921         <iconv.h>, streq.h, xsize.h.
48922         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48923         conversion.
48924         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48925         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48926         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48927         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48928
48929 2008-05-10  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48932         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48933
48934         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48935         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48936
48937         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48938         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48939
48940         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48941         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48942
48943         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48944         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48945
48946         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48947         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48948
48949         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48950         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48951
48952         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48953         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48954
48955 2008-05-10  Bruno Haible  <bruno@clisp.org>
48956
48957         Split up 'linebreak' module.
48958         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48959         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48960         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48961         modifications.
48962         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48963         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48964         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48965         lib/linebreak.c.
48966         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48967         lib/linebreak.c.
48968         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48969         lib/linebreak.c.
48970         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48971         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48972         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48973         lib/linebreak.c.
48974         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48975         lib/linebreak.c.
48976         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48977         lib/linebreak.c.
48978         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48979         lib/linebreak.c.
48980         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48981         lib/linebreak.c.
48982         * modules/unilbrk/base: New file.
48983         * modules/unilbrk/tables: New file.
48984         * modules/unilbrk/u8-possible-linebreaks: New file.
48985         * modules/unilbrk/u16-possible-linebreaks: New file.
48986         * modules/unilbrk/u32-possible-linebreaks: New file.
48987         * modules/unilbrk/ulc-common: New file.
48988         * modules/unilbrk/ulc-possible-linebreaks: New file.
48989         * modules/unilbrk/u8-width-linebreaks: New file.
48990         * modules/unilbrk/u16-width-linebreaks: New file.
48991         * modules/unilbrk/u32-width-linebreaks: New file.
48992         * modules/unilbrk/ulc-width-linebreaks: New file.
48993         * lib/linebreak.h: Remove file.
48994         * lib/linebreak.c: Remove file.
48995         * m4/linebreak.m4: Remove file.
48996         * modules/linebreak: Remove file.
48997         * NEWS: Mention the changes.
48998
48999 2008-05-09  Eric Blake  <ebb9@byu.net>
49000
49001         Add xmemdup0.
49002         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49003         implementation.
49004         * lib/xmalloc.c (xmemdup0): New C implementation.
49005
49006 2008-05-08  Bruno Haible  <bruno@clisp.org>
49007
49008         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49009
49010 2008-05-07  Eric Blake  <ebb9@byu.net>
49011
49012         Support cross-compilation of <wctype.h>.
49013         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49014         AC_CACHE_CHECK.
49015
49016 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49017
49018         * build-aux/vc-list-files: Add support for bzr.
49019
49020 2008-05-03  Jim Meyering  <meyering@redhat.com>
49021
49022         avoid failed assertion with tight malloc
49023         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49024
49025 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49026
49027         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49028         are needed from arpa/inet.h.
49029         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49030         Reported by Bruno Haible.
49031
49032 2008-05-02  Jim Meyering  <meyering@redhat.com>
49033
49034         avoid compilation error on FreeBSD 6
49035         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49036
49037 2008-05-01  Jim Meyering  <meyering@redhat.com>
49038
49039         useless-if-before-free: correct --help's exit status description
49040         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49041         for one or more matches, etc.  Reported by Bruno Haible.
49042
49043         vc-list-files: make the stand-alone gnulib test work
49044         * modules/vc-list-files-tests (configure.ac):
49045         Define and AC_SUBST abs_aux_dir.
49046         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49047         $(abs_top_srcdir) to each script and having each of them
49048         duplicate the work of setting PATH, set PATH here, using
49049         the new variable, abs_aux_dir instead.
49050         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49051         * tests/test-vc-list-files-git.sh: Likewise.
49052         Reported by Bruno Haible.
49053
49054 2008-05-01  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49057         reallocation. Rename 'done' to 'found_delimiter'.
49058
49059 2008-05-01  Jim Meyering  <meyering@redhat.com>
49060
49061         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49062         * build-aux/vc-list-files: Use `...`, not $(...).
49063
49064 2008-04-30  Jim Meyering  <meyering@redhat.com>
49065
49066         add tests for vc-list-files
49067         * modules/vc-list-files-tests: New module.
49068         * tests/test-vc-list-files-cvs.sh: New file.
49069         * tests/test-vc-list-files-git.sh: New file.
49070
49071         avoid a warning from gcc
49072         * lib/getndelim2.c (IF_LINT): Define.
49073         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49074
49075         vc-list-files: work properly with build-aux/cvsu, too
49076         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49077         to all cvs-based clauses.
49078
49079         vc-list-files: work properly in the CVS+awk case, too
49080         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49081
49082         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49083         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49084         take more than one file argument, so .  Add quotes, just in case $dir
49085         ever contains a shell meta-character.  Prompted by Soren Hansen in
49086         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49087
49088 2008-04-29  Eric Blake  <ebb9@byu.net>
49089
49090         Optimize getndelim2 to use block operations when possible.
49091         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49092         freadseek, and memchr2.
49093         * lib/getndelim2.c (getndelim2): Use them for block reads.
49094
49095 2008-04-29  Bruno Haible  <bruno@clisp.org>
49096
49097         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49098         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49099         * modules/inet_ntop (Depends-on): Add extensions.
49100         * modules/inet_pton (Depends-on): Likewise.
49101         Reported by Simon Josefsson.
49102
49103 2008-04-29  Jim Meyering  <meyering@redhat.com>
49104
49105         When the is more than one match in a block, match all of them.
49106         * build-aux/useless-if-before-free: Iterate through each block
49107         until there are no more matches.
49108
49109         Fix broken useless-if-before-free script.
49110         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49111         the expression to match cast of argument to free-like function.
49112
49113 2008-04-29  Eric Blake  <ebb9@byu.net>
49114
49115         Use new header.
49116         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49117
49118 2008-04-29  Jim Meyering  <meyering@redhat.com>
49119
49120         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49121         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49122         by gnulib to exist and to declare e.g., inet_ntop.
49123         Don't include "inet_ntop.h", now removed.
49124
49125         * m4/arpa_inet_h.m4: Remove trailing blanks.
49126
49127 2008-04-29  Eric Blake  <ebb9@byu.net>
49128
49129         Silence valgrind on safe reads beyond potential array bounds.
49130         * lib/rawmemchr.valgrind: New file.
49131         * lib/strchrnul.valgrind: Likewise.
49132         * modules/rawmemchr (Files): Distribute new file.
49133         * modules/strchrnul (Files): Likewise.
49134         Suggested by Bruno Haible.
49135
49136 2008-04-29  Bruno Haible  <bruno@clisp.org>
49137
49138         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49139         (inet_ntop, inet_pton): Change portability warning's wording.
49140         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49141         Invoke gl_CHECK_NEXT_HEADERS.
49142         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49143         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49144         set ARPA_INET_H.
49145         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49146         * modules/arpa_inet (Description): No longer only for systems that
49147         lack it.
49148         (Depends-on): Add include_next.
49149         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49150         HAVE_ARPA_INET_H.
49151
49152 2008-04-29  Jim Meyering  <meyering@redhat.com>
49153
49154         * modules/mkdir (License): Re-license as LGPLv2+.
49155
49156 2008-04-29  Bruno Haible  <bruno@clisp.org>
49157
49158         * modules/rawmemchr (Maintainer): Set to Eric.
49159         * modules/strchrnul (Maintainer): Likewise.
49160
49161 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49162
49163         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49164         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49165
49166         * modules/arpa_inet (arpa/inet.h): Use them.
49167
49168 2008-04-28  Eric Blake  <ebb9@byu.net>
49169
49170         Test getndelim2.
49171         * modules/getndelim2-tests: New file.
49172         * tests/test-getndelim2.c: Likewise.
49173         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49174         stream.
49175         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49176
49177         * MODULES.html.sh: Document new module.
49178
49179 2008-04-20  Bruno Haible  <bruno@clisp.org>
49180
49181         * lib/c-stack.c (die): Use raise.
49182         * modules/c-stack (Depends-on): Add raise.
49183
49184 2008-04-28  Bruno Haible  <bruno@clisp.org>
49185
49186         Expect rpmatch to be declared.
49187         * lib/yesno.c (rpmatch): Remove declaration.
49188
49189         Declare rpmatch.
49190         * lib/stdlib.in.h (rpmatch): New declaration.
49191         * lib/rpmatch.c: Include <stdlib.h> first.
49192         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49193         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49195         HAVE_RPMATCH.
49196         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49198         (Include): Set to <stdlib.h>.
49199         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49200         HAVE_RPMATCH.
49201         * NEWS: Document the change.
49202
49203 2008-04-28  Bruno Haible  <bruno@clisp.org>
49204
49205         Change rpmatch to use nl_langinfo when appropriate.
49206         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49207         (N_): New macro.
49208         (localized_pattern): New function/macro.
49209         (try): Remove match, nomatch arguments. Copy the pattern into safe
49210         memory before caching it.
49211         (rpmatch): Use localized_pattern. Add translator comments.
49212         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49213         Suggested by Eric Blake.
49214         * modules/rpmatch (Depends-on): Add stdbool.
49215
49216 2008-04-28  Eric Blake  <ebb9@byu.net>
49217
49218         Add rawmemchr module, matching glibc.
49219         * modules/string (Makefile.am): New indicator.
49220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49221         * lib/string.in.h (rawmemchr): Declare when appropriate.
49222         * modules/rawmemchr: New file.
49223         * m4/rawmemchr.m4: Likewise.
49224         * lib/rawmemchr.c: Likewise.
49225         * modules/rawmemchr-tests: Likewise.
49226         * tests/test-rawmemchr.c: Likewise.
49227         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49228         module.
49229         * modules/strchrnul (Depends-on): Add rawmemchr.
49230         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49231
49232         Whitespace cleanup.
49233         * tests/test-strchrnul.c: Reindent.
49234         * lib/strchrnul.c: Likewise.
49235
49236         Optimize and test strchrnul.
49237         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49238         * modules/strchrnul-tests: New file.
49239         * tests/test-strchrnul.c: Likewise.
49240
49241         Remove intprops dependency.
49242         * modules/memchr (Depends-on): Remove intprops.
49243         * modules/memrchr (Depends-on): Likewise.
49244         * modules/memchr2 (Depends-on): Likewise.
49245         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49246         * lib/memrchr.c (__memrchr): Likewise.
49247         * lib/memrchr2.c (memchr2): Likewise.
49248         Reported by Simon Josefsson.
49249
49250 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49251
49252         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49253         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49254
49255 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49256
49257         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49258
49259         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49260
49261         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49262
49263         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49264         declarations.
49265         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49266
49267         * m4/inet_pton.m4: Don't check for header files.
49268
49269         * m4/inet_ntop.m4: Don't check for header files.
49270
49271 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49272
49273         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49274         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49275         trigger for cygwin).
49276         Reported by Bruno Haible  <bruno@clisp.org>.
49277
49278 2008-04-28  Bruno Haible  <bruno@clisp.org>
49279
49280         * doc/posix-functions/strdup.texi: Mention mingw problem.
49281
49282 2008-04-27  Bruno Haible  <bruno@clisp.org>
49283
49284         * modules/stat-time-tests (Depends-on): Add sleep.
49285         * tests/test-stat-time.c (force_unlink): New function.
49286         (cleanup): Use it.
49287         (test_mtime): Remove the ctime related tests.
49288         (test_ctime): New function, containing the ctime related tests.
49289         (main): Call test_ctime, except on native Windows platforms.
49290
49291 2008-04-27  Bruno Haible  <bruno@clisp.org>
49292
49293         * lib/rpmatch.c (rpmatch): Add some comments.
49294         Reported by James Youngman <jay@gnu.org>.
49295
49296 2008-04-27  Bruno Haible  <bruno@clisp.org>
49297
49298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49299         quiet NaNs.
49300
49301 2008-04-27  Bruno Haible  <bruno@clisp.org>
49302
49303         Make test-yesno.sh work on mingw.
49304         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49305         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49306         (main): Set stdin to binary mode.
49307         * modules/yesno-tests (Depends-on): Add binary-io.
49308
49309 2008-04-27  Bruno Haible  <bruno@clisp.org>
49310
49311         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49312         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49313         argument that lie outside the IEEE 854 domain.
49314         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49315         (gl_ISFINITE): Use it.
49316         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49317
49318 2008-04-27  Bruno Haible  <bruno@clisp.org>
49319
49320         Allow local renaming in config.h.
49321         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49322
49323 2008-04-27  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/memchr.c (__memchr): Change type of 'i'.
49326         * lib/memchr2.c (memchr2): Likewise.
49327
49328 2008-04-26  Eric Blake  <ebb9@byu.net>
49329         and Bruno Haible  <bruno@clisp.org>
49330
49331         Optimize and test memrchr.
49332         * modules/memrchr (Depends-on): Add intprops.
49333         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49334         * modules/memrchr-tests: New file.
49335         * tests/test-memrchr.c: New file.
49336
49337 2008-04-26  Bruno Haible  <bruno@clisp.org>
49338
49339         Add tentative support for DragonFly BSD.
49340         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49341         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49342         fp.
49343         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49344         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49345         * lib/fpurge.c (fpurge): Likewise.
49346         * lib/freadable.c (freaadable): Likewise.
49347         * lib/freadahead.c (freadahead): Likewise.
49348         * lib/freading.c (freading): Likewise.
49349         * lib/freadptr.c (freadptr): Likewise.
49350         * lib/freadseek.c (freadptrinc): Likewise.
49351         * lib/fseeko.c (fseeko): Likewise.
49352         * lib/fseterr.c (fseterr): Likewise.
49353         * lib/fwritable.c (fwritable): Likewise.
49354         * lib/fwriting.c (fwriting): Likewise.
49355
49356 2008-04-26  Bruno Haible  <bruno@clisp.org>
49357
49358         * lib/stdio-impl.h: New file.
49359         * lib/fbufmode.c: Include stdio-impl.h.
49360         (fbufmode): Use fp_, remove redundant #defines.
49361         * lib/fflush.c: Include stdio-impl.h.
49362         (clear_ungetc_buffer): Remove redundant #defines.
49363         * lib/fpurge.c: Include stdio-impl.h.
49364         (fpurge): Remove redundant #defines.
49365         * lib/freadable.c: Include stdio-impl.h.
49366         (freadable): Remove redundant #defines.
49367         * lib/freadahead.c: Include stdio-impl.h.
49368         (freadahead): Remove redundant #defines.
49369         * lib/freading.c: Include stdio-impl.h.
49370         (freading): Remove redundant #defines.
49371         * lib/freadptr.c: Include stdio-impl.h.
49372         (freadptr): Remove redundant #defines.
49373         * lib/freadseek.c: Include stdio-impl.h.
49374         (freadptrinc): Remove redundant #defines.
49375         * lib/fseeko.c: Include stdio-impl.h.
49376         (rpl_fseeko): Remove redundant #defines.
49377         * lib/fseterr.c: Include stdio-impl.h.
49378         (fseterr): Remove redundant #defines.
49379         * lib/fwritable.c: Include stdio-impl.h.
49380         (fwritable: Remove redundant #defines.
49381         * lib/fwriting.c: Include stdio-impl.h.
49382         (fwriting): Remove redundant #defines.
49383         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49384         * modules/fflush (Files): Likewise.
49385         * modules/fpurge (Files): Likewise.
49386         * modules/freadable (Files): Likewise.
49387         * modules/freadahead (Files): Likewise.
49388         * modules/freading (Files): Likewise.
49389         * modules/freadptr (Files): Likewise.
49390         * modules/freadseek (Files): Likewise.
49391         * modules/fseeko (Files): Likewise.
49392         * modules/fseterr (Files): Likewise.
49393         * modules/fwritable (Files): Likewise.
49394         * modules/fwriting (Files): Likewise.
49395
49396 2008-04-26  Bruno Haible  <bruno@clisp.org>
49397
49398         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49399         restore_seek_optimization, update_fpos_cache): New functions, extracted
49400         from rpl_fflush.
49401         (rpl_fflush): Use them.
49402         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49403         (gl_REPLACE_FFLUSH): Use it.
49404
49405 2008-04-26  Bruno Haible  <bruno@clisp.org>
49406
49407         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49408         on Solaris.
49409         * tests/test-xstrtoimax.sh: Likewise.
49410         * tests/test-xstrtoumax.sh: Likewise.
49411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49412
49413 2008-04-26  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/memchr-tests: New file.
49416         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49417
49418 2008-04-26  Eric Blake  <ebb9@byu.net>
49419             Bruno Haible  <bruno@clisp.org>
49420
49421         * lib/memchr.c: Include intprops.h.
49422         (__memchr): Optimize parallel detection of matching bytes. Rename local
49423         variables. Add explanatory comments.
49424
49425 2008-04-26  Bruno Haible  <bruno@clisp.org>
49426
49427         Fix module 'memchr', broken since 2000-10-28.
49428         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49429
49430 2008-04-26  Bruno Haible  <bruno@clisp.org>
49431
49432         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49433         comments.
49434
49435 2008-04-25  Eric Blake  <ebb9@byu.net>
49436
49437         Use native fstatat on cygwin 1.7.0.
49438         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49439         first.
49440
49441 2008-04-23  Eric Blake  <ebb9@byu.net>
49442
49443         Improve memchr2 performance.
49444         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49445         NUL bytes.
49446         * modules/memchr2 (Depends-on): Use intprops.h.
49447
49448 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49449
49450         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49451         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49452         <blp@cs.stanford.edu>.
49453
49454 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49455
49456         * lib/arpa_inet.in.h: New file.
49457
49458         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49459         (Makefile.am): Sed in substitute header file.
49460
49461         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49462         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49463
49464         * modules/inet_ntop (configure.ac): Use
49465         gl_ARPA_INET_MODULE_INDICATOR.
49466
49467         * modules/inet_pton (configure.ac): Use
49468         gl_ARPA_INET_MODULE_INDICATOR.
49469
49470 2008-04-22  Jim Meyering  <meyering@redhat.com>
49471
49472         * modules/verify (License): Re-license as LGPLv2+.
49473
49474 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49475
49476         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49477         parameter to void* as per POSIX standard (MinGW uses char*).
49478
49479 2008-04-21  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49482         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49483         Define to replacements if REPLACE_ISWCNTRL is 1.
49484         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49485         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49486         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49487         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49488         what it fixes.
49489         * doc/posix-functions/iswalpha.texi: Likewise.
49490         * doc/posix-functions/iswblank.texi: Likewise.
49491         * doc/posix-functions/iswcntrl.texi: Likewise.
49492         * doc/posix-functions/iswdigit.texi: Likewise.
49493         * doc/posix-functions/iswgraph.texi: Likewise.
49494         * doc/posix-functions/iswlower.texi: Likewise.
49495         * doc/posix-functions/iswprint.texi: Likewise.
49496         * doc/posix-functions/iswpunct.texi: Likewise.
49497         * doc/posix-functions/iswspace.texi: Likewise.
49498         * doc/posix-functions/iswupper.texi: Likewise.
49499         * doc/posix-functions/iswxdigit.texi: Likewise.
49500         Reported by Alain Guibert.
49501
49502 2008-04-21  Bruno Haible  <bruno@clisp.org>
49503
49504         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49505         Patch by Alain Guibert.
49506
49507 2008-04-21  Bruno Haible  <bruno@clisp.org>
49508
49509         Fix test failures on mingw.
49510         * tests/test-xstrtol.c (print_no_progname): New function.
49511         (main): Install it in error_print_progname hook.
49512         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49513         * tests/test-xstrtoimax.sh: Likewise.
49514         * tests/test-xstrtoumax.sh: Likewise.
49515
49516 2008-04-21  Bruno Haible  <bruno@clisp.org>
49517
49518         Fix test failure on mingw.
49519         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49520
49521 2008-04-21  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49524         Actually assign a value.
49525
49526 2008-04-20  Bruno Haible  <bruno@clisp.org>
49527
49528         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49529         take 2.
49530         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49531         'canonicalize-lgpl' module is also used.
49532         * lib/canonicalize-lgpl.c: Undo last change.
49533         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49534
49535 2008-04-20  Bruno Haible  <bruno@clisp.org>
49536
49537         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49538         config.h. Provide _mkdir based fallback for mingw.
49539         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49540         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49541         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49542         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49543         rather than defining mkdir in config.h.
49544         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49545         (gl_SYS_STAT_H_DEFAULTS): New macro.
49546         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49547         HAVE_IO_H any more.
49548         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49549         HAVE_DECL_MKDIR and HAVE_IO_H.
49550
49551 2008-04-20  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/isapipe.c: Port to native Windows platforms.
49554
49555 2008-04-20  Bruno Haible  <bruno@clisp.org>
49556
49557         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49558
49559 2008-04-21  Eric Blake  <ebb9@byu.net>
49560
49561         Work around preprocessors that don't handle UINTMAX_MAX.
49562         * lib/memchr2.c (memchr2): Avoid embedded #if.
49563         Reported by Alain Guibert, fix suggested by Bruno Haible.
49564
49565 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49566
49567         * doc/posix-functions/strftime.texi (strftime): Explain better
49568         Windows incompatibility.  Suggested by Micah Cowan
49569         <micah@cowan.name>.
49570
49571 2008-04-20  Bruno Haible  <bruno@clisp.org>
49572
49573         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49574         unistr/u8-mblen.
49575
49576 2008-04-20  Bruno Haible  <bruno@clisp.org>
49577
49578         Fix test failure on platforms with non-GNU iconv.
49579         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49580         (U_TO_U8): Use it, rather than u16_to_u8.
49581         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49582         units at the end of the input string.
49583         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49584
49585 2008-04-20  Bruno Haible  <bruno@clisp.org>
49586
49587         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49588         when the resulting length is 0.
49589         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49590
49591 2008-04-20  Bruno Haible  <bruno@clisp.org>
49592
49593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49594         works.
49595         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49596
49597 2008-04-20  Bruno Haible  <bruno@clisp.org>
49598
49599         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49600         * modules/tsearch-tests (configure.ac): Test for initstate function.
49601
49602 2008-04-20  Bruno Haible  <bruno@clisp.org>
49603
49604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49605         for nlink_t if missing.
49606         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49607
49608 2008-04-19  Bruno Haible  <bruno@clisp.org>
49609
49610         Work around snprintf bug on Linux libc5.
49611         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49613         gl_SNPRINTF_SIZE1.
49614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49615         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49616         that test failed.
49617         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49618         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49619         * modules/snprintf (Files): Add m4/printf.m4.
49620         * modules/vsnprintf (Files): Likewise.
49621         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49622         * doc/posix-functions/vsnprintf.texi: Likewise.
49623
49624 2008-04-19  Bruno Haible  <bruno@clisp.org>
49625
49626         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49627         from 0.0058 to less than 10^-7.
49628
49629 2008-04-19  Bruno Haible  <bruno@clisp.org>
49630
49631         Fix rounding when a precision is given.
49632         * lib/vasnprintf.c (is_borderline): New function.
49633         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49634         9...9x.
49635         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49636         %e, %g.
49637         * tests/test-vasprintf-posix.c (test_function): Likewise.
49638         * tests/test-snprintf-posix.h (test_function): Likewise.
49639         * tests/test-sprintf-posix.h (test_function): Likewise.
49640         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49641         * tests/test-printf-posix.h (test_function): Likewise.
49642         * tests/test-printf-posix.output: Update.
49643         Reported by John Darrington <john@darrington.wattle.id.au> via
49644         Ben Pfaff <blp@cs.stanford.edu>.
49645
49646 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49647
49648         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49649         Suggested by Bruno Haible <bruno@clisp.org>.
49650
49651 2008-04-17  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49654         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49655         implementation.
49656         Patch by Bruce Merry <bmerry@gmail.com>.
49657
49658 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49659
49660         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49661         doesn't work under Windows.
49662
49663 2008-04-16  Bruno Haible  <bruno@clisp.org>
49664
49665         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49666         New macros.
49667         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49668         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49669         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49670         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49671         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49672         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49673         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49674         macros.
49675         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49676         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49677         Northern Sotho, Uighur.
49678
49679 2008-04-16  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49682         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49683         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49684         Reported by Daniel Bergström <daniel@octocode.com>.
49685
49686 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49687             Bruno Haible  <bruno@clisp.org>
49688
49689         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49690         function.
49691         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49692         New functions, mostly extracted from gl_locale_name_default.
49693         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49694
49695 2008-04-16  Eric Blake  <ebb9@byu.net>
49696
49697         Adjust strtod detection to catch glibc 2.7 bug.
49698         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49699         Reported by John Gatewood Ham.
49700
49701 2008-04-16  Bruno Haible  <bruno@clisp.org>
49702
49703         Add tentative support for Linux libc5.
49704         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49705         * lib/fpurge.c (fpurge): Likewise.
49706         * lib/freadable.c (freadable): Likewise.
49707         * lib/freadahead.c (freadahead): Likewise.
49708         * lib/freading.c (freading): Likewise.
49709         * lib/freadptr.c (freadptr): Likewise.
49710         * lib/freadseek.c (freadptrinc): Likewise.
49711         * lib/fseeko.c (rpl_fseeko): Likewise.
49712         * lib/fseterr.c (fseterr): Likewise.
49713         * lib/fwritable.c (fwritable): Likewise.
49714         * lib/fwriting.c (fwriting): Likewise.
49715         Reported by Alain Guibert <alguibert+bts@free.fr>.
49716
49717 2008-04-15  Bruno Haible  <bruno@clisp.org>
49718
49719         * modules/mathl (configure.ac): Define module indicator.
49720
49721 2008-04-15  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/logl.c (logl): Remove unused variables.
49724
49725 2008-04-15  Bruno Haible  <bruno@clisp.org>
49726
49727         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49728         fails.
49729
49730 2008-04-15  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/trim.c (trim2): Fix argument of isspace() macro.
49733
49734 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49735
49736         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49737         to 0.
49738         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49739
49740 2008-04-14  Bruno Haible  <bruno@clisp.org>
49741
49742         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49743         AC_LANG_PROGRAM argument.
49744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49745         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49747         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49748         * m4/math_h.m4 (gl_MATH_H): Likewise.
49749         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49751         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49752         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49753         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49754         * m4/regex.m4 (gl_REGEX): Likewise.
49755         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49756         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49757         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49758         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49759         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49760         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49761         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49762         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49763
49764 2008-04-14  Jim Meyering  <meyering@redhat.com>
49765
49766         test-strtod: fix typos: s/abs/fabs/
49767         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49768
49769 2008-04-13  Bruno Haible  <bruno@clisp.org>
49770
49771         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49772         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49773         module is also used and while not building the reloc-wrapper.
49774
49775 2008-04-13  Bruno Haible  <bruno@clisp.org>
49776
49777         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49778
49779 2008-04-13  Bruno Haible  <bruno@clisp.org>
49780
49781         Fix AIX compilation failure introduced on 2008-04-02.
49782         * tests/test-frexp.c (exp): Undefine before redefining.
49783         * tests/test-frexpl.c (exp): Likewise.
49784
49785 2008-04-13  Bruno Haible  <bruno@clisp.org>
49786
49787         Work around a HP-UX stdio bug.
49788         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49789         * tests/test-ftello.c (main): Likewise.
49790         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49791         * doc/posix-functions/ftello.texi: Likewise.
49792
49793 2008-04-13  Bruno Haible  <bruno@clisp.org>
49794
49795         Make test-signbit pass on HP-UX/hppa.
49796         * tests/test-signbit.c (minus_zerol): New variable.
49797         (test_signbitl): Use it.
49798
49799 2008-04-13  Bruno Haible  <bruno@clisp.org>
49800
49801         Make truncl work on OSF/1 4.0.
49802         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49803         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49804         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49806         HAVE_DECL_TRUNCL.
49807         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49808         HAVE_DECL_TRUNCL.
49809         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49810
49811 2008-04-13  Bruno Haible  <bruno@clisp.org>
49812
49813         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49814
49815 2008-04-13  Bruno Haible  <bruno@clisp.org>
49816
49817         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49818         expression, so as to avoid HP-UX 11 cc compiler bug.
49819
49820 2008-04-13  Bruno Haible  <bruno@clisp.org>
49821
49822         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49823
49824 2008-04-13  Bruno Haible  <bruno@clisp.org>
49825
49826         * lib/git-merge-changelog.c: Remove empty declaration outside of
49827         functions.
49828
49829 2008-04-13  Bruno Haible  <bruno@clisp.org>
49830
49831         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49832
49833 2008-04-13  Bruno Haible  <bruno@clisp.org>
49834
49835         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49836         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49838         also if it exists but lacks definitions of the SHUT_* macros.
49839         * modules/sys_socket (Description): Update.
49840         Reported by Elbert Pol <e.pol@chello.nl>.
49841
49842 2008-04-13  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/localcharset.c (OS2): Don't redefine if already defined.
49845         Reported by Elbert Pol <e.pol@chello.nl>.
49846
49847 2008-04-13  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/binary-io.h [__EMX__]: Include <io.h>.
49850         Reported by Elbert Pol <e.pol@chello.nl>.
49851
49852 2008-04-12  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/fpucw.h: Enable the definitions also for x86_64.
49855         Needed for NetBSD/x86_64.
49856         Reported by Thomas Klausner <tk@giga.or.at>.
49857
49858 2008-04-12  Bruno Haible  <bruno@clisp.org>
49859
49860         * tests/test-strtod.c: Include isnand.h.
49861         (main): Use isnand instead of isnan.
49862         Reported by Jim Meyering.
49863
49864 2008-04-12  Bruno Haible  <bruno@clisp.org>
49865
49866         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49867         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49868
49869 2008-04-12  Jim Meyering  <meyering@redhat.com>
49870
49871         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49872
49873 2008-04-12  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49876         Reported by Elbert Pol <e.pol@chello.nl>.
49877
49878 2008-04-12  Eric Blake  <ebb9@byu.net>
49879
49880         Work around Solaris 10 math.h bug.
49881         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49882         (gl_MATH_H_DEFAULTS): Set up default.
49883         * modules/math (Makefile.am): Replace new indicators.
49884         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49885         * tests/test-math.c (main): Test this.
49886         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49887         * doc/posix-headers/math.texi (math.h): Mention bug.
49888         Reported by Nelson H. F. Beebe and Jim Meyering.
49889
49890 2008-04-11  Bruno Haible  <bruno@clisp.org>
49891
49892         Adapt to future versions of Apple GCC.
49893         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49894         Reported by Peter O'Gorman <peter@pogma.com>.
49895
49896 2008-04-11  Bruno Haible  <bruno@clisp.org>
49897
49898         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49899
49900 2008-04-11  Bruno Haible  <bruno@clisp.org>
49901
49902         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49903
49904         * modules/getaddrinfo-tests (Makefile.am): Define
49905         test_getaddrinfo_LDADD.
49906
49907 2008-04-11  Bruno Haible  <bruno@clisp.org>
49908
49909         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49910         (init): Fix syntax error.
49911         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49912         is declared.
49913
49914 2008-04-11  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49917         * modules/glob (Depends-on): Add stdbool.
49918
49919 2008-04-11  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/trim.c: Include <string.h>.
49922
49923 2008-04-11  Eric Blake  <ebb9@byu.net>
49924
49925         Avoid compile failure on OS/2.
49926         * lib/regex_internal.h (internal_function): Disable optimization
49927         on OS/2 (__EMX__), where it caused compiler error.
49928         Reported by Elbert Pol.
49929
49930 2008-04-11  Bruno Haible  <bruno@clisp.org>
49931
49932         Flush the standard error stream before aborting. Needed on mingw.
49933         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49934         * tests/test-array_list.c (ASSERT): Likewise.
49935         * tests/test-array_oset.c (ASSERT): Likewise.
49936         * tests/test-avltree_list.c (ASSERT): Likewise.
49937         * tests/test-avltree_oset.c (ASSERT): Likewise.
49938         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49939         * tests/test-binary-io.c (ASSERT): Likewise.
49940         * tests/test-byteswap.c (ASSERT): Likewise.
49941         * tests/test-c-ctype.c (ASSERT): Likewise.
49942         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49943         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49944         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49945         * tests/test-c-strstr.c (ASSERT): Likewise.
49946         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49947         * tests/test-canonicalize.c (ASSERT): Likewise.
49948         * tests/test-carray_list.c (ASSERT): Likewise.
49949         * tests/test-ceilf1.c (ASSERT): Likewise.
49950         * tests/test-ceilf2.c (ASSERT): Likewise.
49951         * tests/test-ceill.c (ASSERT): Likewise.
49952         * tests/test-count-one-bits.c (ASSERT): Likewise.
49953         * tests/test-fbufmode.c (ASSERT): Likewise.
49954         * tests/test-fflush2.c (ASSERT): Likewise.
49955         * tests/test-floorf1.c (ASSERT): Likewise.
49956         * tests/test-floorf2.c (ASSERT): Likewise.
49957         * tests/test-floorl.c (ASSERT): Likewise.
49958         * tests/test-fopen.c (ASSERT): Likewise.
49959         * tests/test-fpending.c (ASSERT): Likewise.
49960         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49961         * tests/test-fpurge.c (ASSERT): Likewise.
49962         * tests/test-freadable.c (ASSERT): Likewise.
49963         * tests/test-freadahead.c (ASSERT): Likewise.
49964         * tests/test-freading.c (ASSERT): Likewise.
49965         * tests/test-freadptr.c (ASSERT): Likewise.
49966         * tests/test-freadptr2.c (ASSERT): Likewise.
49967         * tests/test-freadseek.c (ASSERT): Likewise.
49968         * tests/test-freopen.c (ASSERT): Likewise.
49969         * tests/test-frexp.c (ASSERT): Likewise.
49970         * tests/test-frexpl.c (ASSERT): Likewise.
49971         * tests/test-fseek.c (ASSERT): Likewise.
49972         * tests/test-fseeko.c (ASSERT): Likewise.
49973         * tests/test-fstrcmp.c (ASSERT): Likewise.
49974         * tests/test-ftell.c (ASSERT): Likewise.
49975         * tests/test-ftello.c (ASSERT): Likewise.
49976         * tests/test-func.c (ASSERT): Likewise.
49977         * tests/test-fwritable.c (ASSERT): Likewise.
49978         * tests/test-fwriting.c (ASSERT): Likewise.
49979         * tests/test-getdelim.c (ASSERT): Likewise.
49980         * tests/test-getline.c (ASSERT): Likewise.
49981         * tests/test-i-ring.c (ASSERT): Likewise.
49982         * tests/test-iconv-utf.c (ASSERT): Likewise.
49983         * tests/test-iconv.c (ASSERT): Likewise.
49984         * tests/test-isfinite.c (ASSERT): Likewise.
49985         * tests/test-isnand.c (ASSERT): Likewise.
49986         * tests/test-isnanf.c (ASSERT): Likewise.
49987         * tests/test-isnanl.h (ASSERT): Likewise.
49988         * tests/test-ldexpl.c (ASSERT): Likewise.
49989         * tests/test-linked_list.c (ASSERT): Likewise.
49990         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49991         * tests/test-localename.c (ASSERT): Likewise.
49992         * tests/test-lseek.c (ASSERT): Likewise.
49993         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49994         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49995         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49996         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49997         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49998         * tests/test-mbschr.c (ASSERT): Likewise.
49999         * tests/test-mbscspn.c (ASSERT): Likewise.
50000         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50001         * tests/test-mbspbrk.c (ASSERT): Likewise.
50002         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50003         * tests/test-mbsrchr.c (ASSERT): Likewise.
50004         * tests/test-mbsspn.c (ASSERT): Likewise.
50005         * tests/test-mbsstr1.c (ASSERT): Likewise.
50006         * tests/test-mbsstr2.c (ASSERT): Likewise.
50007         * tests/test-mbsstr3.c (ASSERT): Likewise.
50008         * tests/test-memchr2.c (ASSERT): Likewise.
50009         * tests/test-memmem.c (ASSERT): Likewise.
50010         * tests/test-open.c (ASSERT): Likewise.
50011         * tests/test-printf-frexp.c (ASSERT): Likewise.
50012         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50013         * tests/test-printf-posix.c (ASSERT): Likewise.
50014         * tests/test-quotearg.c (ASSERT): Likewise.
50015         * tests/test-rbtree_list.c (ASSERT): Likewise.
50016         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50017         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50018         * tests/test-round1.c (ASSERT): Likewise.
50019         * tests/test-roundf1.c (ASSERT): Likewise.
50020         * tests/test-roundl.c (ASSERT): Likewise.
50021         * tests/test-signbit.c (ASSERT): Likewise.
50022         * tests/test-sleep.c (ASSERT): Likewise.
50023         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50024         * tests/test-snprintf.c (ASSERT): Likewise.
50025         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50026         * tests/test-stat-time.c (ASSERT): Likewise.
50027         * tests/test-strcasestr.c (ASSERT): Likewise.
50028         * tests/test-strerror.c (ASSERT): Likewise.
50029         * tests/test-striconv.c (ASSERT): Likewise.
50030         * tests/test-striconveh.c (ASSERT): Likewise.
50031         * tests/test-striconveha.c (ASSERT): Likewise.
50032         * tests/test-strsignal.c (ASSERT): Likewise.
50033         * tests/test-strstr.c (ASSERT): Likewise.
50034         * tests/test-strtod.c (ASSERT): Likewise.
50035         * tests/test-trunc1.c (ASSERT): Likewise.
50036         * tests/test-trunc2.c (ASSERT): Likewise.
50037         * tests/test-truncf1.c (ASSERT): Likewise.
50038         * tests/test-truncf2.c (ASSERT): Likewise.
50039         * tests/test-truncl.c (ASSERT): Likewise.
50040         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50041         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50042         * tests/test-vasnprintf.c (ASSERT): Likewise.
50043         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50044         * tests/test-vasprintf.c (ASSERT): Likewise.
50045         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50046         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50047         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50048         * tests/test-vsnprintf.c (ASSERT): Likewise.
50049         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50050         * tests/test-wcwidth.c (ASSERT): Likewise.
50051         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50052         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50053         * tests/test-xvasprintf.c (ASSERT): Likewise.
50054         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50055         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50056         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50057         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50058         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50059         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50060         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50061         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50062         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50063         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50064         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50065         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50066         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50067         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50068         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50069         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50070         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50071         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50072         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50073         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50074         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50075         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50076         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50077         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50078         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50079         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50080         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50081         * tests/unictype/test-combining.c (ASSERT): Likewise.
50082         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50083         * tests/unictype/test-digit.c (ASSERT): Likewise.
50084         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50085         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50086         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50087         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50088         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50089         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50090         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50091         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50092         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50093         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50094         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50095         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50096         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50097         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50098         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50099         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50100         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50101         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50102         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50103         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50104         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50105         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50106         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50107         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50108         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50109         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50110         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50111         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50112         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50113         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50114         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50115         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50116         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50117         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50118         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50119         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50120         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50121         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50122         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50123         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50124         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50125         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50126         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50127         Reported by Eric Blake.
50128
50129 2008-04-11  Bruno Haible  <bruno@clisp.org>
50130
50131         * lib/wchar.in.h: Tweak comment.
50132
50133 2008-04-11  Bruno Haible  <bruno@clisp.org>
50134
50135         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50136         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50137         gl_COMMON.
50138         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50139
50140 2008-04-11  Bruno Haible  <bruno@clisp.org>
50141
50142         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50143
50144 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50145
50146         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50147         of attempting to use non-existing /dev/*random.  Based on patch
50148         from Adam Strzelecki <ono@java.pl> in
50149         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50150
50151 2008-04-08  Bruno Haible  <bruno@clisp.org>
50152
50153         Add tentative support for emx+gcc.
50154         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50155         * lib/fpurge.c (fpurge): Likewise.
50156         * lib/freadable.c (freadable): Likewise.
50157         * lib/freadahead.c (freadahead): Likewise.
50158         * lib/freading.c (freading): Likewise.
50159         * lib/freadptr.c (freadptr): Likewise.
50160         * lib/freadseek.c (freadptrinc): Likewise.
50161         * lib/fseeko.c (rpl_fseeko): Likewise.
50162         * lib/fseterr.c (fseterr): Likewise.
50163         * lib/fwritable.c (fwritable): Likewise.
50164         * lib/fwriting.c (fwriting): Likewise.
50165         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50166
50167 2008-04-09  Eric Blake  <ebb9@byu.net>
50168
50169         Avoid some autoconf warnings.
50170         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50171         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50172         * m4/afs.m4 (gl_AFS): Likewise.
50173         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50174         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50175         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50176         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50177         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50178         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50179         (AC_CHECK_DECLS_ONCE): Likewise.
50180         Rename file...
50181         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50182         gnulib-tool requires autoconf 2.59 or better.
50183         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50184
50185 2008-04-08  Eric Blake  <ebb9@byu.net>
50186
50187         Use 'git describe --match' if present (added in git 1.5.5).
50188         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50189         if possible.
50190
50191 2008-04-08  Bruno Haible  <bruno@clisp.org>
50192
50193         Add tentative support for OpenServer.
50194         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50195         _ptr, _cnt.
50196         * lib/fpurge.c (fpurge): Likewise.
50197         * lib/freadable.c (freadable): Likewise.
50198         * lib/freadahead.c (freadahead): Likewise.
50199         * lib/freading.c (freading): Likewise.
50200         * lib/freadptr.c (freadptr): Likewise.
50201         * lib/freadseek.c (freadptrinc): Likewise.
50202         * lib/fseeko.c (rpl_fseeko): Likewise.
50203         * lib/fseterr.c (fseterr): Likewise.
50204         * lib/fwritable.c (fwritable): Likewise.
50205         * lib/fwriting.c (fwriting): Likewise.
50206         Reported by Roger Cornelius <rac@tenzing.org> and
50207         Brian K. White <brian@aljex.com>.
50208
50209 2008-04-06  Jim Meyering  <meyering@redhat.com>
50210
50211         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50212
50213 2008-04-06  Bruno Haible  <bruno@clisp.org>
50214
50215         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50216         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50217         * tests/test-printf-posix.sh: Likewise.
50218         * tests/test-vfprintf-posix.sh: Likewise.
50219         * tests/test-vprintf-posix.sh: Likewise.
50220         * tests/test-xprintf-posix.sh: Likewise.
50221
50222 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50223
50224         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50225         hide error from 'ls', needed on OS/2.
50226         Report by Elbert Pol <elbert.pol@gmail.com>.
50227
50228 2008-04-04  Eric Blake  <ebb9@byu.net>
50229
50230         Make test-fseeko.c failures meaningful.
50231         * tests/test-fseeko.c: Print line number on failure.
50232         * tests/test-fseek.c: Likewise.
50233         Reported by Nelson H. F. Beebe.
50234
50235         Improve strtod bug detection check.
50236         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50237         required for Solaris 10.
50238         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50239
50240 2008-04-04  Bruno Haible  <bruno@clisp.org>
50241
50242         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50243         by m4/setenv.m4.
50244
50245 2008-04-03  Eric Blake  <ebb9@byu.net>
50246
50247         Ensure sane .version contents.
50248         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50249         version string.
50250         * build-aux/git-version-gen: Improve documentation.
50251
50252         Make GNU make output nicer.
50253         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50254         MAKECMDGOALS to enforce message for all command line targets.  Set
50255         srcdir for use in maint.mk.
50256
50257         Another maintainer tweak.
50258         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50259         a target that regenerates version.
50260
50261 2008-04-03  Jim Meyering  <meyering@redhat.com>
50262
50263         vc-list-files: don't cause coreutils "make po-check" failure
50264         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50265
50266 2008-04-03  Eric Blake  <ebb9@byu.net>
50267
50268         Allow VPATH usage of vc-list-files.
50269         * build-aux/vc-list-files (scriptversion): Add timestamp.
50270         (options): Add --help, --version, -C.
50271         (CVS): Support installed cvsu.
50272
50273 2008-04-02  Bruno Haible  <bruno@clisp.org>
50274
50275         Avoid some "statement with no effect" warnings from gcc.
50276         * tests/test-wctype.c (main): Explicitly ignore unused values.
50277         Reported by Jim Meyering.
50278
50279 2008-04-02  Jim Meyering  <meyering@redhat.com>
50280
50281         Avoid some warnings from "gcc -Wshadow".
50282         * tests/test-frexp.c (exp): Define to a different identifier.
50283         * tests/test-frexpl.c (exp): Likewise.
50284
50285 2008-04-03  Jim Meyering  <meyering@redhat.com>
50286
50287         bootstrap: remove dangling *.[ch] symlinks from lib
50288         * build-aux/bootstrap [dangling symlink removal]: Move find's
50289         -depth option to precede all others, to avoid a warning.
50290         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50291
50292 2008-04-02  Bruno Haible  <bruno@clisp.org>
50293
50294         Avoid some warnings from "gcc -Wshadow".
50295         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50296         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50297         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50298         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50299         Reported by Jim Meyering.
50300
50301 2008-04-01  Bruno Haible  <bruno@clisp.org>
50302
50303         Fix test to work on IRIX 6.5 with cc.
50304         * tests/test-math.c (numeric_equal): New function.
50305         (main): Use it.
50306
50307 2008-04-01  Bruno Haible  <bruno@clisp.org>
50308
50309         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50310
50311 2008-04-01  Bruno Haible  <bruno@clisp.org>
50312
50313         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50314         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50315         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50316         (Depends-on): Remove math.
50317
50318         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50319         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50320         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50321         (Depends-on): Remove math.
50322
50323         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50324         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50325         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50326         (Depends-on): Remove math.
50327         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50328         (Depends-on): Remove math.
50329
50330         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50331         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50332         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50333         (Depends-on): Remove math.
50334         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50335         (Depends-on): Remove math.
50336
50337         * tests/test-round1.c: Include nan.h.
50338         (main): Use NaNd instead of NAN.
50339         * modules/round-tests (Files): Add tests/nan.h.
50340
50341         * tests/test-trunc1.c: Include nan.h.
50342         (main): Use NaNd instead of NAN.
50343         * modules/trunc-tests (Files): Add tests/nan.h.
50344
50345         * tests/test-roundf1.c: Include nan.h.
50346         (main): Use NaNf instead of NAN.
50347         * modules/roundf-tests (Files): Add tests/nan.h.
50348
50349         * tests/test-truncf1.c: Include nan.h.
50350         (main): Use NaNf instead of NAN.
50351         * modules/truncf-tests (Files): Add tests/nan.h.
50352
50353         * tests/test-ceilf1.c: Include nan.h.
50354         (main): Use NaNf instead of NAN.
50355         * modules/ceilf-tests (Files): Add tests/nan.h.
50356
50357         * tests/test-floorf1.c: Include nan.h.
50358         (main): Use NaNf instead of NAN.
50359         * modules/floorf-tests (Files): Add tests/nan.h.
50360
50361         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50362         (main): Use NaNf instead of NAN.
50363         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50364
50365         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50366         (main): Use NaNd instead of NAN.
50367         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50368
50369         * tests/test-frexp.c: Include nan.h.
50370         (main): Use NaNd instead of NAN.
50371         * modules/frexp-tests (Files): Add tests/nan.h.
50372
50373         * lib/isnan.c: Don't include <math.h>.
50374         (FUNC): Don't use NAN macro.
50375         * modules/isnand-nolibm (Depends-on): Remove math.
50376         * modules/isnanf-nolibm (Depends-on): Remove math.
50377         * modules/isnanl (Depends-on): Remove math.
50378         * modules/isnanl-nolibm (Depends-on): Remove math.
50379
50380         * tests/nan.h: New file.
50381
50382 2008-04-01  Eric Blake  <ebb9@byu.net>
50383
50384         Fix typos.
50385         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50386         values to be the right type.
50387
50388         For now, cater to gnulib strtod inaccuracies.
50389         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50390         fractional results.  While not as nice from a QoI perspective, it
50391         is a quicker patch than correctly implementing decimal to binary
50392         rounding.
50393
50394 2008-03-31  Eric Blake  <ebb9@byu.net>
50395
50396         Guarantee a definition of NAN.
50397         * lib/math.in.h (NAN): Define if missing.
50398         * tests/test-math.c (main): Test it.
50399         * doc/posix-headers/math.texi (math.h): Document this.
50400         * lib/isnan.c (rpl_isnand): Use it.
50401         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50402         * tests/test-floorf1.c (NaN): Likewise.
50403         * tests/test-frexp.c (NaN): Likewise.
50404         * tests/test-isnand.c (NaN): Likewise.
50405         * tests/test-isnanf.c (NaN): Likewise.
50406         * tests/test-round1.c (NaN): Likewise.
50407         * tests/test-roundf1.c (NaN): Likewise.
50408         * tests/test-snprintf-posix.h (NaN): Likewise.
50409         * tests/test-sprintf-posix.h (NaN): Likewise.
50410         * tests/test-trunc1.c (NaN): Likewise.
50411         * tests/test-truncf1.c (NaN): Likewise.
50412         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50413         * tests/test-vasprintf-posix.c (NaN): Likewise.
50414         * modules/isnand-nolibm (Depends-on): Add math.
50415         * modules/isnanf-nolibm (Depends-on): Likewise.
50416         * modules/isnanl (Depends-on): Likewise.
50417         * modules/isnanl-nolibm (Depends-on): Likewise.
50418         * modules/snprintf-posix-tests (Depends-on): Likewise.
50419         * modules/sprintf-posix-tests (Depends-on): Likewise.
50420         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50421         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50422         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50423         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50424
50425 2008-03-31  Bruno Haible  <bruno@clisp.org>
50426
50427         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50428         * doc/posix-functions/strtod.texi: Likewise.
50429
50430 2008-03-31  Bruno Haible  <bruno@clisp.org>
50431
50432         * tests/test-strtod.c (main): Don't use C99 syntax.
50433
50434 2008-03-31  Bruno Haible  <bruno@clisp.org>
50435
50436         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50437         Reported by Eric Blake.
50438
50439 2008-03-31  Jim Meyering  <meyering@redhat.com>
50440
50441         Don't compare actual signbit return values.
50442         * tests/test-strtod.c (main): Rather, compare only their
50443         zero/non-zero nature.
50444
50445 2008-03-31  Eric Blake  <ebb9@byu.net>
50446
50447         More strtod documentation.
50448         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50449         failures as distinct bugs.
50450
50451 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50452
50453         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50454         Problem reported by Erik Benada in
50455         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50456
50457 2008-03-30  Bruno Haible  <bruno@clisp.org>
50458
50459         * tests/test-strtod.c: Add comments about which assertion fails on which
50460         platform.
50461         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50462
50463 2008-03-30  Eric Blake  <ebb9@byu.net>
50464
50465         Test signbit behavior on zeros.
50466         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50467         (test_signbitd, test_signbitl): Likewise.
50468
50469         More strtod touchups.
50470         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50471         sign of negative underflow, for now.  Use .5, not .1.
50472         * doc/posix-functions/strtod.texi (strtod): Mention these
50473         limitations.
50474         Reported by Jim Meyering.
50475
50476 2008-03-30  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50479         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50480
50481 2008-03-30  Bruno Haible  <bruno@clisp.org>
50482
50483         Avoid failure when attempting to return empty iconv results on some
50484         platforms.
50485         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50486         allocation, don't report ENOMEM when the resulting string is empty.
50487
50488 2008-03-30  Bruno Haible  <bruno@clisp.org>
50489
50490         Fix buffer overrun.
50491         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50492         Don't consider the width for tmp_length. Check count against tmp_length
50493         before doing the padding. Ensure enough allocation during padding.
50494
50495 2008-03-30  Eric Blake  <ebb9@byu.net>
50496
50497         strtod touchups.
50498         * lib/strtod.c (strtod): Avoid compiler warnings.
50499         Reported by Jim Meyering.
50500
50501 2008-03-30  Bruno Haible  <bruno@clisp.org>
50502
50503         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50504         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50505         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50506         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50507         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50508         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50509         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50510         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50511
50512         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50513         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50514         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50515         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50516         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50517         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50518         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50519         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50520
50521         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50522         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50523         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50524         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50525         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50526         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50527         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50528         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50529
50530         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50531         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50532
50533         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50534         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50535
50536         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50537         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50538
50539         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50541         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50542
50543         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50545         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50546
50547         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50549         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50550
50551         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50553         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50554
50555         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50556         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50558         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50559         (Depends-on): Add EOVERFLOW.
50560         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50561         (Depends-on): Add EOVERFLOW.
50562         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50563         (Depends-on): Add EOVERFLOW.
50564         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50565         (Depends-on): Add EOVERFLOW.
50566         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50567         (Depends-on): Add EOVERFLOW.
50568         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50569         (Depends-on): Add EOVERFLOW.
50570         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50571         (Depends-on): Add EOVERFLOW.
50572         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50573         (Depends-on): Add EOVERFLOW.
50574
50575         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50577         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50578
50579         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50581         * modules/snprintf (Depends-on): Add EOVERFLOW.
50582
50583         * lib/poll.c (EOVERFLOW): Remove fallback.
50584         * modules/poll (Depends-on): Add EOVERFLOW.
50585
50586         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50587         * modules/getugroups (Depends-on): Add EOVERFLOW.
50588
50589         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50590         * modules/getdelim (Depends-on): Add EOVERFLOW.
50591
50592         * lib/ftell.c (EOVERFLOW): Remove fallback.
50593         * modules/ftell (Depends-on): Add EOVERFLOW.
50594
50595         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50596         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50597         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50598
50599         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50600
50601         * modules/EOVERFLOW-tests: New file.
50602         * tests/test-EOVERFLOW.c: New file.
50603
50604         * modules/EOVERFLOW: New file.
50605         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50606
50607 2008-03-30  Bruno Haible  <bruno@clisp.org>
50608
50609         Fix bug introduced on 2007-06-10.
50610         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50611         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50612
50613 2008-03-30  Bruno Haible  <bruno@clisp.org>
50614
50615         Improve freadseek's efficiency after ungetc.
50616         * lib/freadseek.c: Include freadahead.h.
50617         (freadptrinc): New function, extracted from freadseek.
50618         (freadseek): Use it in a loop. Use freadahead to determine the number
50619         of loop iterations.
50620         * modules/freadseek (Depends-on): Add freadahead.
50621         (configure.ac): Require AC_C_INLINE.
50622
50623 2008-03-30  Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/freadseek.c (freadseek): Don't ignore the return value of
50626         freadptr.
50627
50628 2008-03-29  Eric Blake  <ebb9@byu.net>
50629
50630         Add hex float support.
50631         * modules/strtod (Depends-on): Add c-ctype.
50632         (Link): Mention POW_LIB.
50633         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50634         whitespace between 'e' and exponent.
50635         * tests/test-strtod.c (main): Enable hex float tests.
50636         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50637         now provides.
50638
50639         Document various strtod bugs, with some fixes.
50640         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50641         "-0x", "inf", "nan", and hex constants.
50642         * doc/posix-functions/atof.texi (atof): Likewise.
50643         * modules/stdlib (Makefile.am): Support strtod.
50644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50645         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50646         detect additional strtod bugs.
50647         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50648         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50649         bool where appropriate.  Parse 'inf' and 'nan'.
50650         * tests/test-strtod.c: New file.
50651         * modules/strtod (Depends-on): Add stdbool, stdlib.
50652         (configure.ac): Turn on module indicator.
50653         * modules/strtod-tests: New module.
50654
50655 2008-03-29  Eric Blake  <ebb9@byu.net>
50656
50657         Fix ftell on mingw.
50658         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50659         * modules/ftell-tests (Depends-on): Add binary-io.
50660         * modules/ftello-tests (Depends-on): Likewise.
50661         * tests/test-ftell.c (main): Enhance test to cover behavior after
50662         ungetc.  Enforce binary mode.
50663         * tests/test-ftello.c (main): Likewise.
50664
50665         Pass test-freadseek on cygwin.
50666         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50667         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50668         ungetc buffer.
50669
50670         * tests/test-fflush2.c (main): Fix typo.
50671
50672 2008-03-29  Bruno Haible  <bruno@clisp.org>
50673
50674         * tests/test-fflush2.c (main): Temporarily disable the contents of
50675         this test.
50676         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50677         Reported by Eric Blake.
50678
50679 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50680
50681         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50682         (GC_SHA224_DIGEST_SIZE): Add.
50683
50684         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50685         (gc_hash_digest_length): Likewise.
50686         (gc_hash_buffer): Likewise.
50687
50688 2008-03-25  Bruno Haible  <bruno@clisp.org>
50689
50690         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50691         detail which gettext release to use.
50692         Reported by Simon Josefsson.
50693
50694 2008-03-26  Jim Meyering  <meyering@redhat.com>
50695
50696         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50697         * modules/gnumakefile (clean-GNUmakefile): Also, use
50698         test ... && ... || : syntax rather than if-then ... fi.
50699
50700         gnumakefile: Don't double-quote-expand $(VPATH) value.
50701         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50702
50703 2008-03-24  Eric Blake  <ebb9@byu.net>
50704
50705         Alter GNUmakefile to install into top directory.
50706         * modules/maintainer-makefile: Split, and add dependency...
50707         * modules/gnumakefile: to this new module.
50708         * build-aux/GNUmakefile: Move...
50709         * top/GNUmakefile: ...here.
50710         * build-aux/maint.mk: Move...
50711         * top/maint.mk: ...here.
50712         * MODULES.html.sh (Support for maintaining...): Document new
50713         module.
50714
50715 2008-03-23  Bruno Haible  <bruno@clisp.org>
50716
50717         * gnulib-tool: New options --vc-files, --no-vc-files.
50718         (func_usage): Document them.
50719         (vc_files): New variable.
50720         (func_import): Consider vc_files.
50721         (func_create_testdir): Set vc_files to empty.
50722         Suggested by Jim Meyering and Karl Berry.
50723
50724 2008-03-23  Bruno Haible  <bruno@clisp.org>
50725
50726         Fix regex compilation error on HP-UX 11.
50727         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50728         * modules/regex (Files): Add m4/mbstate_t.m4.
50729         Reported by Ton Voon <ton.voon@altinity.com>.
50730
50731 2008-03-23  Bruno Haible  <bruno@clisp.org>
50732
50733         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50734
50735 2008-03-23  Eric Blake  <ebb9@byu.net>
50736             Bruno Haible  <bruno@clisp.org>
50737
50738         Install files from top/ in the destination directory.
50739         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50740         augmentation also for the files from top/.
50741         (func_import, func_create_testdir): Rewrite file names:
50742         top/filename -> filename.
50743
50744 2008-03-23  Bruno Haible  <bruno@clisp.org>
50745
50746         Tweak "gnulib --version" output.
50747         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50748
50749 2008-03-23  Bruno Haible  <bruno@clisp.org>
50750
50751         Tweak "gnulib --version" output.
50752         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50753         rather than contents of ChangeLog, when possible.
50754
50755 2008-03-21  Eric Blake  <ebb9@byu.net>
50756
50757         More --version tweaks.
50758         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50759         date of last ChangeLog entry.
50760
50761 2008-03-21  Jim Meyering  <meyering@redhat.com>
50762
50763         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50764
50765 2008-03-20  Eric Blake  <ebb9@byu.net>
50766
50767         VPATH fix.
50768         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50769
50770 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50771
50772         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50773         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50774
50775 2008-03-20  Eric Blake  <ebb9@byu.net>
50776
50777         Sync GNUmakefile with coreutils.
50778         * build-aux/GNUmakefile (have-Makefile): Rename...
50779         (_have-Makefile): ...to this, for namespace consideration.
50780         (GNUmakefile.cfg): Include, if present.
50781         (_autoreconf): Define a default.
50782         (_is-dist-target): New rule for rebuilds to pick up intra-release
50783         version.
50784         (maint-cfg.mk): Rename...
50785         (cfg.mk): ...to this.
50786
50787 2008-03-18  Jim Meyering  <meyering@redhat.com>
50788
50789         New script and module: mktempd
50790         * MODULES.html.sh (maint+release support): Add mktempd.
50791         * build-aux/mktempd: New file.
50792         * modules/mktempd: New file.
50793
50794 2008-03-15  Jim Meyering  <meyering@redhat.com>
50795
50796         Undo last change.
50797         * lib/sha1.c, lib/md5.c: 63 != ~63.
50798         Reported by Andreas Schwab.
50799
50800         sha1.c, md5.c: Hoist a redundant expression.
50801         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50802         "ctx->buflen" only once, before calling *_process_block.
50803         * lib/md5.c (md5_process_bytes): Likewise.
50804
50805 2008-03-14  Eric Blake  <ebb9@byu.net>
50806
50807         Bump copyright year in files generated by gnulib-tool.
50808         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50809         gnulib-tool, rather than hard-coding it.
50810
50811         Fix 'gnulib-tool --version' output to work with git.
50812         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50813         (startup): ...here.
50814         (func_version): Use it to invoke git-version-gen, rather than
50815         relying on CVS keyword expansion.  Modernize wording.
50816         (cvsdatestamp, last_checkin_date, version): Kill unused
50817         variables.
50818
50819 2008-03-12  Jim Meyering  <meyering@redhat.com>
50820
50821         Recognize optional cast of the argument to free.
50822         * build-aux/useless-if-before-free: Update regexps.
50823
50824         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50825
50826 2008-03-11  Bruno Haible  <bruno@clisp.org>
50827
50828         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50829         by a single package.
50830         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50831         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50832         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50833         Reported by Sam Steingold <sds@gnu.org>.
50834
50835 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50836
50837         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50838         repositories.
50839
50840 2008-03-11  Bruno Haible  <bruno@clisp.org>
50841
50842         Avoid conflicts between local macro definitions.
50843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50844         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50845
50846 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50847             Bruno Haible  <bruno@clisp.org>
50848
50849         Make va_copy work with some version of xlc on AIX 5.1.
50850         * lib/stdarg.in.h: New file.
50851         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50852         On AIX, use a <stdarg.h> file substitute.
50853         * modules/stdarg (Files): Add lib/stdarg.in.h.
50854         (Depends-on): Add include_next.
50855         (Makefile.am): Build a stdarg.h substitute if requested.
50856         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50857
50858 2008-03-10  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50861         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50862         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50863
50864 2008-03-10  Bruno Haible  <bruno@clisp.org>
50865
50866         * modules/stdlib (Depends-on): Add include_next, remove
50867         absolute-header.
50868
50869 2008-03-09  Bruno Haible  <bruno@clisp.org>
50870
50871         * lib/freadahead.h (freadahead): Document more precisely.
50872         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50873         the sum of both buffer sizes.
50874         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50875         * NEWS: Document the change.
50876
50877 2008-03-09  Bruno Haible  <bruno@clisp.org>
50878
50879         Extend freadptr to return also the buffer size.
50880         * lib/freadptr.h (freadptr): Add sizep argument.
50881         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50882         (freadptr): Add sizep argument. Determine buffer size like freadahead
50883         does.
50884         * tests/test-freadptr.c: Don't include freadahead.h.
50885         (main): Adapt for new calling convention of freadptr.
50886         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50887         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50888         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50889         tests/test-freadptr2.sh.
50890         (Depends): Remove freadahead.
50891         (TESTS): Add test-freadptr2.sh.
50892         (check_PROGRAMS): Add test-freadptr2.
50893
50894 2008-03-09  Bruno Haible  <bruno@clisp.org>
50895
50896         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50897         Report and solution by Simon Josefsson.
50898
50899 2008-03-06  Bruno Haible  <bruno@clisp.org>
50900
50901         Make fflush after ungetc work on BSD platforms.
50902         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50903         * tests/test-fflush2.c: New file.
50904         * tests/test-fflush2.sh: New file.
50905         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50906         tests/test-fflush2.c.
50907         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50908         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50909
50910 2008-03-06  Eric Blake  <ebb9@byu.net>
50911
50912         Likewise for ftello.
50913         * modules/ftello (Dependencies): Add extensions.
50914         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50915
50916 2008-03-06  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/fseeko (Dependencies): Add extensions.
50919         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50920         Needed on glibc systems.
50921
50922 2008-03-06  Bruno Haible  <bruno@clisp.org>
50923
50924         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50925         email address.
50926         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50927
50928 2008-03-06  Bruno Haible  <bruno@clisp.org>
50929
50930         * users.txt: Add libgnupdf.
50931
50932 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50933
50934         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50935         (Header File Substitutes, Function Substitutes,
50936         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50937         (Build robot for gnulib): Fix typo.
50938
50939 2008-03-06  Bruno Haible  <bruno@clisp.org>
50940
50941         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50942         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50943
50944 2008-03-06  Bruno Haible  <bruno@clisp.org>
50945
50946         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50947         * doc/gnulib.texi: Include it.
50948
50949 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50950
50951         * modules/func (License): Change license to unlimited; there was
50952         no LGPL parts in the module anyway.
50953
50954 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50955
50956         * modules/__func__: Renamed to modules/func.
50957         * modules/__func__-tests: Renamed to modules/func-tests.
50958         * tests/test-__func__.c: Renamed to tests/test-func.c.
50959         * m4/__func__.m4: Renamed to m4/func.m4.
50960         * doc/gnulib.texi (__func__): Section renamed to func.
50961         Suggested by Eric Blake <ebb9@byu.net>.
50962
50963 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50964
50965         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50966         about __func__.  Make example self-contained.  Suggested by Eric
50967         Blake <ebb9@byu.net>.
50968
50969         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50970         Suggested by Eric Blake <ebb9@byu.net>.
50971
50972 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50973
50974         * modules/__func__: New file.
50975         * modules/__func__-tests: New file.
50976         * tests/test-__func__.c: New file.
50977         * m4/__func__.m4: New file.
50978         * doc/gnulib.texi (__func__): Document __func__ module.
50979
50980 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50981
50982         * modules/byteswap (License): Re-license as LGPLv2+.
50983
50984 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50985
50986         * doc/Makefile: Add pdf target.
50987
50988 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50989
50990         * modules/inline (License): Use 'unlimited', since there are only
50991         *.m4 files in this module.
50992
50993 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50994             Bruno Haible  <bruno@clisp.org>
50995
50996         Add support for HP C 7.1 on OpenVMS 8.3.
50997         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50998
50999 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51000
51001         Update VMS specifics.
51002         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51003
51004 2008-03-02  Jim Meyering  <meyering@redhat.com>
51005
51006         Remove the last dependency on the "free" module.
51007         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51008         Reported by Bob Proulx.
51009
51010         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51011
51012         Remove useless "if" tests before free.  Deprecate "free" module.
51013         * doc/posix-functions/free.texi: Mention that this
51014         module is no longer useful.
51015         * modules/free (Notice): Say this module is obsolete.
51016         * modules/readutmp (Depends-on): Remove free.
51017         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51018         * lib/putenv.c (putenv): Likewise.
51019         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51020         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51021         * tests/test-c-strcasestr.c (main): Likewise.
51022         * tests/test-c-strstr.c (main): Likewise.
51023         * tests/test-mbscasestr1.c (main): Likewise.
51024         * tests/test-mbscasestr2.c (main): Likewise.
51025         * tests/test-mbsstr1.c (main): Likewise.
51026         * tests/test-mbsstr2.c (main): Likewise.
51027         * tests/test-memmem.c (main): Likewise.
51028         * tests/test-strcasestr.c (main): Likewise.
51029         * tests/test-striconv.c (main): Likewise.
51030         * tests/test-striconveh.c (main): Likewise.
51031         * tests/test-striconveha.c (main): Likewise.
51032         * tests/test-strstr.c (main): Likewise.
51033
51034         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51035
51036         bootstrap: sync from coreutils again
51037         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51038
51039 2008-03-01  Jim Meyering  <meyering@redhat.com>
51040
51041         bootstrap: sync from coreutils
51042         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51043         also when the target doesn't exist.
51044
51045 2008-03-01  Eric Blake  <ebb9@byu.net>
51046
51047         Fix bugs in last patch.
51048         * lib/memchr2.c (memchr2): Fix typo.
51049         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51050         extension.
51051         Reported by Bruce Korb.
51052
51053         New module 'memchr2'.
51054         * modules/memchr2: New file.
51055         * modules/memchr2-tests: Likewise.
51056         * lib/memchr2.h: Likewise.
51057         * lib/memchr2.c: Likewise, based on memchr.c.
51058         * tests/test-memchr2.c: New test.
51059         * MODULES.html.sh (String handling): Add memchr2.
51060
51061 2008-02-29  Bruno Haible  <bruno@clisp.org>
51062
51063         * modules/freadseek-tests: New file.
51064         * tests/test-freadseek.sh: New file.
51065         * tests/test-freadseek.c: New file.
51066
51067         New module 'freadseek'.
51068         * modules/freadseek: New file.
51069         * lib/freadseek.h: New file.
51070         * lib/freadseek.c: New file.
51071         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51072
51073 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51074
51075         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51076         wydawca.
51077
51078         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51079         program_invocation_name and program_invocation_short_name are
51080         present.
51081
51082 2008-02-28  Bruno Haible  <bruno@clisp.org>
51083
51084         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51085         * tests/test-freadptr.sh: Also test non-seekable stdin.
51086
51087 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51088
51089         * build-aux/bootstrap (source_base, m4_base)
51090         (doc_base, tests_base): New variables.
51091         (gnulib_tool_options): Do not hardcode base directories, use
51092         the above variables instead.
51093
51094 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51095
51096         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51097
51098 2008-02-28  Bruno Haible  <bruno@clisp.org>
51099
51100         * modules/freadptr-tests: New file.
51101         * tests/test-freadptr.sh: New file.
51102         * tests/test-freadptr.c: New file.
51103
51104         New module 'freadptr'.
51105         * modules/freadptr: New file.
51106         * lib/freadptr.h: New file.
51107         * lib/freadptr.c: New file.
51108         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51109
51110 2008-02-26  Karl Berry  <karl@freefriends.org>
51111
51112         Sync from Libtool:
51113         * libltdl/argz.c (argz_add, argz_count): New functions.
51114         * libltdl/argz.in.h: Declare them.
51115         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51116
51117 2008-02-22  Bruno Haible  <bruno@clisp.org>
51118
51119         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51120         is a pointer type.  Needed for HP-UX 10.
51121         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51122         * doc/posix-functions/gmtime_r.texi: Likewise.
51123         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51124
51125 2008-02-24  Bruno Haible  <bruno@clisp.org>
51126
51127         * modules/environ-tests: New file.
51128         * tests/test-environ.c: New file.
51129
51130         New module 'environ'.
51131         * modules/environ: New file.
51132         * lib/unistd.in.h (environ): New declaration.
51133         * m4/environ.m4: New file.
51134         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51135         after use.
51136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51137         HAVE_DECL_ENVIRON.
51138         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51139         HAVE_DECL_ENVIRON.
51140         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51141         wrong claim that 'environ' is missing on some systems.
51142         * modules/execute (Depends-on): Add environ.
51143         * lib/execute.c (environ): Remove fallback declaration.
51144         * modules/pipe (Depends-on): Add environ.
51145         * lib/pipe.c (environ): Remove fallback declaration.
51146         * modules/setenv (Depends-on): Add environ.
51147         * lib/setenv.c (environ): Remove fallback declaration.
51148         * modules/unsetenv (Depends-on): Add environ.
51149         * lib/unsetenv.c (environ): Remove fallback declaration.
51150         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51151         m4/environ.m4.
51152         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51153         (gl_PREREQ_UNSETENV): Likewise.
51154
51155 2008-02-24  Bruno Haible  <bruno@clisp.org>
51156
51157         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51158
51159 2008-02-20  Bob Proulx  <bob@proulx.com>
51160
51161         Enable use of older two part flavor 'git describe'.
51162         * build-aux/git-version-gen: If using the older two part flavor of
51163         git version then recreate the third part now present in the
51164         newer three part flavor of git describe.
51165
51166 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51167
51168         * lib/fts.c (fts_build): Typo correction to comment.
51169
51170 2008-02-17  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51173         generating no-op conflicts.
51174
51175 2008-02-17  Bruno Haible  <bruno@clisp.org>
51176
51177         Speed up by 10%.
51178         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51179         result_entries, rather than an index-based loop.
51180
51181 2008-02-17  Bruno Haible  <bruno@clisp.org>
51182
51183         Speed up by 25%.
51184         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51185         'hashcode_cached'.
51186         (entry_create): New function.
51187         (entry_hashcode): Use the cached hashcode if possible.
51188         (read_changelog_file, try_split_merged_entry): Use entry_create.
51189
51190 2008-02-17  Bruno Haible  <bruno@clisp.org>
51191
51192         Speed up from O(n^2) to O(n) for long ChangeLog files.
51193         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51194         (read_changelog_file): Change implementation of entries_reversed list
51195         to rbtreehash.
51196         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51197
51198 2008-02-17  Bruno Haible  <bruno@clisp.org>
51199
51200         New option --split-merged-entry.
51201         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51202         (find_paragraph_end, try_split_merged_entry): New functions.
51203         (long_options): Add option --split-merged-entry.
51204         (usage): Document option --split-merged-entry.
51205         (main): Implement option --split-merged-entry.
51206         Reported by Eric Blake.
51207
51208 2008-02-17  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/git-merge-changelog.c: Include c-strstr.h.
51211         (main): Support the "git pull --rebase" situation.
51212         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51213         Reported by Eric Blake.
51214
51215 2008-02-16  Eric Blake  <ebb9@byu.net>
51216
51217         Avoid doubling \ in common case of "c-maybe" quoting style.
51218         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51219         eliding outer quotes.
51220         * lib/quotearg.h: Document this.
51221         * tests/test-quotearg.c (result_strings, inputs, results_g)
51222         (flag_results, locale_results): Test it by adding a new string to
51223         each test group.
51224         (compare_strings): Test new string.
51225
51226 2008-02-13  Eric Blake  <ebb9@byu.net>
51227
51228         Avoid trigraph quoting in default output.
51229         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51230         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51231         unless explicitly requested.
51232         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51233
51234 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51235
51236         Don't rely on signed integer overflowing to negative value.
51237         * lib/getugroups.c (getugroups): Include <limits.h>.
51238         Instead, compare against INT_MAX, and increment only if the test passes.
51239
51240 2008-02-13  Jim Meyering  <meyering@redhat.com>
51241         and Eric Blake  <ebb9@byu.net>
51242
51243         Avoid shadowing warning and compile errors on Linux.
51244         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51245         forwarding macros on Linux.
51246         (dcgettext): Define a stub, for Linux.
51247         (results_g, main): Avoid warnings.
51248
51249 2008-02-12  Eric Blake  <ebb9@byu.net>
51250
51251         Silence warning in last patch.
51252         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51253
51254         Quotearg part 4: add tests, fix c-maybe colon quoting.
51255         * lib/quotearg.h: Improve documentation.
51256         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51257         escapes when adding outer quotes.  When quoting trigraphs, use
51258         valid C notation.  When quoting NUL, omit extra characters if next
51259         character is not digit.  Alter prototype.
51260         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51261         callers.
51262         * modules/quotearg-tests: New module.
51263         * tests/test-quotearg.c: New test.
51264
51265 2008-02-07  Eric Blake  <ebb9@byu.net>
51266
51267         Quotearg part 3: add flag to control outer quote elision.
51268         * lib/quotearg.h (c_maybe_quoting_style): New style.
51269         (enum quoting_flags): Better documentation of flags.
51270         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51271         c-maybe style.
51272         (quotearg_buffer_restyled): Handle new flag to elide outer
51273         quotes.
51274
51275         Quotearg part 2: add flag that can control NUL elision.
51276         * lib/quotearg.h (set_quoting_flags): New prototype.
51277         * lib/quotearg.c (struct quoting_options): Add flag field.
51278         (set_quoting_flags): New function.
51279         (quotearg_buffer_restyled): Add flags parameter.
51280         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51281         (quotearg_n_options): Set the flag, since length cannot be
51282         returned.
51283         (quoting_options_from_style): Default flags correctly.
51284
51285         Quotearg part 1: more wrappers, restore quotearg_char state.
51286         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51287         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51288         (quotearg_colon_mem): New wrappers.
51289         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51290         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51291         functions.
51292         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51293         (quotearg_colon_mem): New functions.
51294
51295 2008-02-11  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51298         library in the current directory: it does not work with parallel make.
51299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51300
51301 2008-02-11  Bruno Haible  <bruno@clisp.org>
51302
51303         * .gitattributes: New file.
51304
51305 2008-02-11  Jim Meyering  <meyering@redhat.com>
51306
51307         useless-if-before-free: Fix reversed exit values.
51308         * build-aux/useless-if-before-free: Use correct values
51309         for EXIT_MATCH and EXIT_NO_MATCH.
51310
51311         * build-aux/useless-if-before-free: Close stdout carefully.
51312
51313 2008-02-10  Bruno Haible  <bruno@clisp.org>
51314
51315         New module 'git-merge-changelog'.
51316         * modules/git-merge-changelog: New file.
51317         * lib/git-merge-changelog.c: New file.
51318
51319 2008-02-10  Jim Meyering  <meyering@redhat.com>
51320
51321         useless-if-before-free: New option: --list (-l).
51322
51323         useless-if-before-free: Don't exit immediately upon open failure.
51324         * build-aux/useless-if-before-free: Exit 2 for errors.
51325         Upon failure to open a file, don't exit immediately.
51326         Rather, just warn and continue with any remaining files.
51327
51328 2008-02-10  Bruno Haible  <bruno@clisp.org>
51329
51330         New abstract list operation 'node_set_value'.
51331         * lib/gl_list.h (gl_list_node_set_value): New function.
51332         (struct gl_list_implementation): New field node_set_value.
51333         * lib/gl_list.c (gl_list_node_set_value): New function.
51334         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51335         (gl_array_list_implementation): Update.
51336         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51337         (gl_carray_list_implementation): Update.
51338         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51339         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51340         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51341         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51342         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51343         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51344         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51345         Update.
51346         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51347         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51348         (gl_sublist_list_implementation): Update.
51349
51350 2008-02-10  Bruno Haible  <bruno@clisp.org>
51351
51352         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51353         Needed when ELEMENT is #defined to 'some_type *'.
51354
51355 2008-02-10  Jim Meyering  <meyering@redhat.com>
51356
51357         New script and module: useless-if-before-free
51358         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51359         * build-aux/useless-if-before-free: New file.
51360         * modules/useless-if-before-free: New file.
51361
51362         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51363
51364         xstrtol_error: Fix typo.
51365         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51366         s/exit_failure/exit_status/.
51367
51368 2008-02-09  Jim Meyering  <meyering@redhat.com>
51369
51370         New script and module: gitlog-to-changelog
51371         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51372         * modules/gitlog-to-changelog: New file.
51373         * build-aux/gitlog-to-changelog: New file.
51374
51375 2008-02-08  Jim Meyering  <meyering@redhat.com>
51376
51377         Avoid two "parameter unused" warnings.
51378         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51379         Mark "st" as used.
51380
51381         Use "git COMMAND", not "git-COMMAND".
51382         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51383         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51384         * build-aux/git-version-gen: Use "git status", not "git-status".
51385
51386 2008-02-07  Bruno Haible  <bruno@clisp.org>
51387
51388         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51389         Avoids a crash on Windows Vista.
51390         Reported by Adam Strzelecki <ono@java.pl> via
51391         Simon Josefsson <simon@josefsson.org>.
51392
51393 2008-02-06  Bruno Haible  <bruno@clisp.org>
51394
51395         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51396         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51397         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51399         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51400         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51401         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51402         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51403         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51404         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51406         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51407         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51410         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51411         left-adjust flag.
51412         * tests/test-snprintf-posix.h (test_function): Likewise.
51413         * tests/test-sprintf-posix.h (test_function): Likewise.
51414         * tests/test-vasprintf-posix.c (test_function): Likewise.
51415         * doc/posix-functions/fprintf.texi: Update.
51416         * doc/posix-functions/printf.texi: Update.
51417         * doc/posix-functions/snprintf.texi: Update.
51418         * doc/posix-functions/sprintf.texi: Update.
51419         * doc/posix-functions/vfprintf.texi: Update.
51420         * doc/posix-functions/vprintf.texi: Update.
51421         * doc/posix-functions/vsnprintf.texi: Update.
51422         * doc/posix-functions/vsprintf.texi: Update.
51423         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51424
51425 2008-02-06  Bruno Haible  <bruno@clisp.org>
51426
51427         Fix bug introduced on 2008-01-26.
51428         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51429
51430 2008-02-06  Bruno Haible  <bruno@clisp.org>
51431
51432         Fix bug introduced on 2007-06-10.
51433         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51434         !NEED_PRINTF_FLAG_ZERO.
51435
51436 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51437
51438         getloadavg: use libperfstat on AIX5
51439         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51440
51441 2008-02-03  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/diffseq.h: Add comments about required #includes.
51444         Reported by Michael Biggs <gnulib@doubleplum.net>.
51445
51446 2008-02-01  Bruno Haible  <bruno@clisp.org>
51447
51448         * users.txt: Add gnuit.
51449
51450 2008-01-31  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/md4.c (set_uint32): Mark as inline.
51453         * lib/md5.c (set_uint32): Likewise.
51454         * lib/sha1.c (set_uint32): Likewise.
51455         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51456         * m4/md5.m4 (gl_MD5): Likewise.
51457         * m4/sha1.m4 (gl_SHA1): Likewise.
51458
51459 2008-01-31  Jim Meyering  <meyering@redhat.com>
51460
51461         Use "sizeof VAR", rather than a literal "4".
51462         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51463         * lib/md4.c (md4_read_ctx): Likewise.
51464         * lib/sha1.c (sha1_read_ctx): Likewise.
51465
51466 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51467
51468         * tests/test-sha1.c: New file, based on test-md5.c.
51469
51470         * modules/crypto/sha1-tests: New file.
51471
51472 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51473
51474         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51475
51476 2008-01-31  Jim Meyering  <meyering@redhat.com>
51477
51478         Prefer "sizeof v" over the equivalent "4".
51479         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51480         * lib/md5.c (set_uint32): Likewise.
51481         * lib/sha1.c (set_uint32): Likewise.
51482
51483 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51484
51485         * lib/sha1.c (set_uint32): Mark function as static.
51486
51487 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51488
51489         md2: clarify comments to say that alignment is not required.
51490         * lib/md2.h: Remove warning about alignment in comment.
51491         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51492         never been required.
51493
51494 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51495
51496         md4: adapt alignment constraint fix from sha1.
51497         * lib/md4.c (set_uint32): New function, from sha1.c
51498         (md4_read_ctx): Use it.
51499         (md4_finish_ctx): Doc fix.
51500         * lib/md4.h: Doc fix.
51501
51502 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51503
51504         md5: adapt alignment constraint fix from sha1.
51505         * lib/md5.c (set_uint32): New function, from sha1.c
51506         (md5_read_ctx): Use it.
51507         (md5_finish_ctx): Doc fix.
51508         * lib/md5.h: Doc fix.
51509
51510 2008-01-30  Peter Palfrader  <weasel@debian.org>
51511
51512         sha1: remove the result buffer alignment constraint
51513         * lib/sha1.c (set_uint32): New function.
51514         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51515         constraint.
51516         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51517         * lib/sha1.h: Likewise.
51518
51519 2008-01-30  Andreas Schwab  <schwab@suse.de>
51520             Bruno Haible  <bruno@clisp.org>
51521
51522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51523         correct definition of LDBL_MIN_EXP.
51524
51525 2008-01-30  Karl Berry  <karl@gnu.org>
51526
51527         * config/srclist-update: try to preserve x bit on updates.
51528         * config/srclistvars.sh: update for karl.
51529
51530 2008-01-29  Jim Meyering  <meyering@redhat.com>
51531
51532         vasnprintf.c: Avoid warning about unused label
51533         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51534         "overflow" label definition and associated code with the
51535         same cpp condition that guards the sole use of that label.
51536
51537 2008-01-26  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51540         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51541         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51542         * lib/isnanl-nolibm.h (isnanl): Likewise.
51543         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51544
51545 2008-01-26  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51548         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51549
51550 2008-01-26  Bruno Haible  <bruno@clisp.org>
51551
51552         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51553         GCC >= 4.0 built-in.
51554         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51555
51556 2008-01-26  Bruno Haible  <bruno@clisp.org>
51557
51558         Rename isnan, applicable to 'double' only, to isnand.
51559         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51560         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51561         (configure.ac): Update.
51562         (Include): Replace "isnan.h" with "isnand.h".
51563         * m4/isnand.m4: Renamed from m4/isnan.m4.
51564         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51565         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51566         instead of isnan.c.
51567         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51568         instead of HAVE_ISNAN_IN_LIBC.
51569         (isnand): Renamed from isnan.
51570         * lib/isnand.c: New file.
51571         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51572         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51573         (Makefile.am): Update.
51574         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51575         Include isnand.h instead of isnan.h.
51576         (main): Test isnand instead of isnan.
51577         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51578         isnan-nolibm.
51579         * modules/frexp (Depends-on): Likewise.
51580         * modules/frexp-tests (Depends-on): Likewise.
51581         * modules/frexp-nolibm (Depends-on): Likewise.
51582         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51583         * modules/isfinite (Depends-on): Likewise.
51584         * modules/round-tests (Depends-on): Likewise.
51585         * modules/signbit (Depends-on): Likewise.
51586         * modules/signbit-tests (Depends-on): Likewise.
51587         * modules/snprintf-posix (Depends-on): Likewise.
51588         * modules/sprintf-posix (Depends-on): Likewise.
51589         * modules/trunc-tests (Depends-on): Likewise.
51590         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51591         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51592         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51593         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51594         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51595         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51596         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51597         * modules/vasnprintf-posix (Depends-on): Likewise.
51598         * modules/vasprintf-posix (Depends-on): Likewise.
51599         * modules/vfprintf-posix (Depends-on): Likewise.
51600         * modules/vsnprintf-posix (Depends-on): Likewise.
51601         * modules/vsprintf-posix (Depends-on): Likewise.
51602         * lib/frexp.c: Include isnand.h instead of isnan.h.
51603         (ISNAN): Set to isnand instead of isnan.
51604         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51605         (gl_isfinited): Use isnand instead of isnan.
51606         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51607         (gl_signbitd): Use isnand instead of isnan.
51608         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51609         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51610         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51611         (main): Use isnand instead of isnan.
51612         * tests/test-round1.c: Include isnand.h.
51613         (main): Use isnand instead of isnan.
51614         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51615         (ISNAN): Set to isnand instead of isnan.
51616         * tests/test-trunc1.c: Include isnand.h.
51617         (main): Use isnand instead of isnan.
51618         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51619         (equal): Use isnand instead of isnan.
51620         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51621         isnand-nolibm.
51622         * NEWS: Mention the change.
51623
51624 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51625             Bruno Haible  <bruno@clisp.org>
51626
51627         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51628         the GCC builtins for signbits are present and set
51629         REPLACE_SIGNBIT_USING_GCC if so.
51630         * lib/math.in.h (signbit): Define using GCC builtins if
51631         REPLACE_SIGNBIT_USING_GCC is set.
51632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51633         REPLACE_SIGNBIT_USING_GCC.
51634         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51635
51636 2008-01-25  Jim Meyering  <meyering@redhat.com>
51637
51638         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51639         * lib/poll.c: Include <config.h>, not "config.h".
51640         * tests/test-getaddrinfo.c: Likewise.
51641
51642 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51643
51644         * modules/sockets-tests: New file.
51645
51646 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51647
51648         * modules/sockets: New module, can be used to call WSA_Startup and
51649         WSA_Cleanup when needed.
51650
51651         * lib/sockets.h, lib/sockets.c: New files.
51652
51653         * m4/sockets.m4: New file.
51654
51655         * tests/test-sockets.c: New file.
51656
51657 2008-01-19  Bruno Haible  <bruno@clisp.org>
51658
51659         * doc/posix-headers: Renamed from doc/headers.
51660         * doc/posix-functions: Renamed from doc/functions.
51661         * doc/gnulib.texi: Update.
51662
51663 2008-01-19  Bruno Haible  <bruno@clisp.org>
51664
51665         * doc/glibc-functions/strcasestr.texi: Include contents of
51666         doc/functions/strcasestr.texi, fixing the list of platforms.
51667         * doc/functions/strcasestr.texi: Remove file.
51668
51669 2008-01-19  Bruno Haible  <bruno@clisp.org>
51670
51671         * doc/glibc-functions/memmem.texi: Include contents of
51672         doc/functions/memmem.texi.
51673         * doc/functions/memmem.texi: Remove file.
51674
51675 2008-01-18  Bruno Haible  <bruno@clisp.org>
51676
51677         * doc/glibc-functions/*.texi: New files.
51678         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51679         to use the new files.
51680
51681 2008-01-17  Bruno Haible  <bruno@clisp.org>
51682
51683         * tests/test-gethostname.c (main): Fix printf statement.
51684
51685 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51686
51687         * modules/gethostname-tests: New file.
51688
51689         * tests/test-gethostname.c: New file.
51690
51691 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51692
51693         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51694         used by the UNAME case.  Reported by Bruno Haible
51695         <bruno@clisp.org>.
51696
51697 2008-01-17  Eric Blake  <ebb9@byu.net>
51698
51699         Convert c-strcasestr to be more efficient.
51700         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51701         (Depends-on): Add c-strcase, remove malloca, strnlen.
51702         * tests/test-c-strcasestr.c (main): Enhance test.
51703         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51704
51705 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51706
51707         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51708         Use it in creating po/Makevars.
51709
51710 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51711
51712         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51713         Applications that requires it should initialize libgcrypt
51714         manually.
51715
51716 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51717
51718         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51719
51720 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         Fix problem with getdate on mingw32 reported by Simon Josefsson
51723         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51724         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51725         tzname", when deciding whether to declare tzname.
51726         * lib/strftime.c (tzname): Likewise.
51727
51728 2008-01-15  Bruno Haible  <bruno@clisp.org>
51729
51730         Work around a MacOS X 10.5 bug in frexpl().
51731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51732         * doc/functions/frexpl.texi: Document the bug.
51733         Reported by Elias Pipping <pipping@gentoo.org>.
51734
51735 2008-01-14  Eric Blake  <ebb9@byu.net>
51736
51737         Touch up previous patch.
51738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51739         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51740
51741         Convert strcasestr module to use Two-Way algorithm.
51742         * modules/strcasestr-simple: New module, based on the old
51743         strcasestr, but with Two-Way rather than KMP.
51744         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51745         * lib/string.in.h (rpl_strcasestr): Declare.
51746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51747         performance.
51748         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51749         * modules/string (Makefile.am): Support strcasestr.
51750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51751         * modules/strcasestr-tests (Depends-on): Check for alarm.
51752         * tests/test-strcasestr.c: Augment test.
51753         * lib/str-two-way.h: Clean up stray macro.
51754         * NEWS: Document new module.
51755         * MODULES.html.sh (string handling): Likewise.
51756         * doc/functions/strcasestr.texi: New file.
51757         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51758         here, since it is not a POSIX function.
51759
51760 2008-01-14  Colin Watson  <cjwatson@debian.org>
51761             Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51764         works fine; if not, set REPLACE_STRSIGNAL.
51765         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51767         REPLACE_STRSIGNAL.
51768         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51769         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51770         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51771
51772 2008-01-14  Bruno Haible  <bruno@clisp.org>
51773
51774         * modules/strsignal (Include): Change to <string.h>.
51775
51776 2008-01-14  Colin Watson  <cjwatson@debian.org>
51777
51778         * modules/argp (Notice): Add a notice recommending to change
51779         XGETTEXT_OPTIONS.
51780         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51781
51782 2008-01-13  Colin Watson  <cjwatson@debian.org>
51783
51784         * modules/strsignal-tests: New file.
51785         * tests/test-strsignal.c: New file.
51786
51787         * lib/strsignal.c: New file, from glibc with modifications.
51788         * lib/siglist.h: New file, from glibc with modifications.
51789         * lib/string.in.h (strsignal): New declaration.
51790         * m4/strsignal.m4: New file.
51791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51792         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51793         * modules/strsignal: New file.
51794         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51795         HAVE_DECL_STRSIGNAL.
51796
51797 2008-01-13  Bruno Haible  <bruno@clisp.org>
51798
51799         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51800         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51801         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51802         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51803
51804 2008-01-13  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51807         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51808         * lib/argp.h (__attribute__): Likewise.
51809         * lib/c-stack.c (__attribute__): Likewise.
51810         * lib/error.h (__attribute__): Likewise.
51811         * lib/fts.c (__attribute__): Likewise.
51812         * lib/openat.h (__attribute__): Likewise.
51813         * lib/stdio.in.h (__attribute__): Likewise.
51814         * lib/string.in.h (__attribute__): Likewise.
51815         * lib/utimens.c (__attribute__): Likewise.
51816         * lib/vasnprintf.h (__attribute__): Likewise.
51817         * lib/xalloc.h (__attribute__): Likewise.
51818         * lib/xprintf.h (__attribute__): Likewise.
51819         * lib/xstrtol.h (__attribute__): Likewise.
51820         * lib/xvasprintf.h (__attribute__): Likewise.
51821
51822 2008-01-12  Bruno Haible  <bruno@clisp.org>
51823
51824         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51825         * doc/glibc-headers/a.out.texi: New file.
51826         * doc/glibc-headers/aliases.texi: New file.
51827         * doc/glibc-headers/alloca.texi: New file.
51828         * doc/glibc-headers/ar.texi: New file.
51829         * doc/glibc-headers/argp.texi: New file.
51830         * doc/glibc-headers/argz.texi: New file.
51831         * doc/glibc-headers/byteswap.texi: New file.
51832         * doc/glibc-headers/crypt.texi: New file.
51833         * doc/glibc-headers/endian.texi: New file.
51834         * doc/glibc-headers/envz.texi: New file.
51835         * doc/glibc-headers/err.texi: New file.
51836         * doc/glibc-headers/error.texi: New file.
51837         * doc/glibc-headers/execinfo.texi: New file.
51838         * doc/glibc-headers/fpu_control.texi: New file.
51839         * doc/glibc-headers/fstab.texi: New file.
51840         * doc/glibc-headers/fts.texi: New file.
51841         * doc/glibc-headers/getopt.texi: New file.
51842         * doc/glibc-headers/ieee754.texi: New file.
51843         * doc/glibc-headers/ifaddrs.texi: New file.
51844         * doc/glibc-headers/libintl.texi: New file.
51845         * doc/glibc-headers/mcheck.texi: New file.
51846         * doc/glibc-headers/mntent.texi: New file.
51847         * doc/glibc-headers/obstack.texi: New file.
51848         * doc/glibc-headers/paths.texi: New file.
51849         * doc/glibc-headers/printf.texi: New file.
51850         * doc/glibc-headers/pty.texi: New file.
51851         * doc/glibc-headers/resolv.texi: New file.
51852         * doc/glibc-headers/shadow.texi: New file.
51853         * doc/glibc-headers/sysexits.texi: New file.
51854         * doc/glibc-headers/ttyent.texi: New file.
51855
51856 2008-01-12  Jim Meyering  <meyering@redhat.com>
51857
51858         announce-gen: emit Gnulib's git-based version string.
51859         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51860         New option --gnulib-version=V, where V is expected to be
51861         the output of running git describe in the gnulib directory.
51862         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51863         not useful, and plan to stop publishing an xdelta file with each
51864         coreutils release.
51865
51866         * build-aux/announce-gen: Also check for lzma-compressed files.
51867
51868 2008-01-11  Bruno Haible  <bruno@clisp.org>
51869
51870         * tests/test-memmem.c (main): Increase maximum allowed time.
51871         * tests/test-strstr.c (main): Likewise.
51872
51873 2008-01-11  Bruno Haible  <bruno@clisp.org>
51874
51875         * doc/functions/memmem.texi: Add more precisions about platforms.
51876         * doc/functions/strstr.texi: Likewise.
51877
51878 2008-01-10  Eric Blake  <ebb9@byu.net>
51879
51880         * m4/strstr.m4: Delete cruft from copy-n-paste.
51881         Reported by Bruno Haible.
51882
51883 2008-01-10  Bruno Haible  <bruno@clisp.org>
51884
51885         Make c-strstr rely on strstr.
51886         * lib/c-strstr.c: Don't include str-kmp.h.
51887         (c_strstr): Define in terms of strstr.
51888         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51889         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51890
51891 2008-01-10  Bruno Haible  <bruno@clisp.org>
51892
51893         * doc/gnulib.texi (String Functions in C Locale): New section.
51894         * doc/c-ctype.texi: New file.
51895         * doc/c-strcase.texi: New file.
51896         * doc/c-strcaseeq.texi: New file.
51897         * doc/c-strcasestr.texi: New file.
51898         * doc/c-strstr.texi: New file.
51899         * doc/c-strtod.texi: New file.
51900         * doc/c-strtold.texi: New file.
51901
51902 2008-01-10  Eric Blake  <ebb9@byu.net>
51903
51904         * lib/relocatable.h: Fix a comment.
51905
51906 2008-01-10  Eric Blake  <ebb9@byu.net>
51907
51908         Share two-way algorithm.
51909         * lib/str-two-way.h: New file, merged from...
51910         * lib/memmem.c: ...here...
51911         * lib/strstr.c: ...and here.
51912         * modules/memmem (Files): Use it.
51913         * modules/strstr (Files): Likewise.
51914
51915         Avoid quadratic strstr implementations.
51916         * lib/strstr.c: New file.
51917         * m4/strstr.m4: Likewise.
51918         * modules/strstr: Likewise.
51919         * modules/strstr-tests: Likewise.
51920         * tests/test-strstr.c: Likewise.
51921         * lib/string.in.h (rpl_strstr): Declare.
51922         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51924         * modules/string (Makefile.am): Likewise.
51925         * MODULES.html.sh (string handling): Mention new module.
51926         * doc/functions/strstr.texi (strstr): Document the bug.
51927
51928 2008-01-10  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/relocatable.h (relocate): State whether result is freshly
51931         allocated or not.
51932         * lib/relocatable.c (relocate): Return a freshly allocated string
51933         instead of a pointer to a privately held string.
51934         Reported by Sylvain Beucler <beuc@gnu.org>.
51935
51936 2008-01-10  Colin Watson  <cjwatson@debian.org>
51937
51938         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51939         s/S_ISNLK/S_ISLNK/.
51940
51941 2008-01-09  Bruno Haible  <bruno@clisp.org>
51942
51943         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51944         and other files.
51945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51946         if it's only a guess.
51947         * modules/memmem: Simplify by depending on memmem-simple.
51948
51949 2008-01-09  Bruno Haible  <bruno@clisp.org>
51950
51951         Work around OpenBSD 4.0 tdelete() bug.
51952         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51953         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51954         macros and don't redefine the enum values.
51955         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51956         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51957         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51958
51959 2008-01-09  Bruno Haible  <bruno@clisp.org>
51960
51961         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51962         (main): Don't perform the tests if setlocale did not install a UTF-8
51963         locale. Needed on OpenBSD 4.0.
51964         * modules/wcwidth-tests (Depends-on): Add localcharset.
51965
51966 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51969         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51970         * NEWS: announce this.
51971         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51972
51973 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51974         and Eric Blake  <ebb9@byu.net>
51975
51976         Add memmem-simple module.
51977         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51978         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51979         * modules/memmem-simple: New file.
51980         * modules/memmem (Description): Tweak.
51981         * MODULES.html.sh (string handling): Mention new module.
51982         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51983         addressed by memmem-simple.
51984         * NEWS: Document the difference.
51985
51986 2008-01-09  Eric Blake  <ebb9@byu.net>
51987
51988         Give gcc some memmem optimization hints.
51989         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51990         (strcasestr): Declare as pure.
51991         * modules/memmem (Maintainer): Claim my implementation.
51992
51993 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51994
51995         Support AIX 6.1 and higher.
51996         * build-aux/config.libpath: Likewise.
51997         * build-aux/config.rpath: Likewise.
51998
51999 2008-01-08  Jim Meyering  <meyering@redhat.com>
52000             Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52003         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52004         Reported by Peter Fales in
52005         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52006
52007 2008-01-08  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/unictype/category-of (Depends-on): Add
52010         unictype/category-none.
52011         * modules/unictype/category-and-tests (Depends-on): Add
52012         unictype/category-{L,N,Lu,Nd}.
52013         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52014         * modules/unictype/category-or-tests (Depends-on): Add
52015         unictype/category-{L,N}.
52016         * modules/unictype/category-name-tests (Depends-on): Add
52017         unictype/category-{Z,Nl}.
52018         Reported by Simon Josefsson.
52019
52020 2008-01-08  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52023         convention better.
52024         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52025         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52026         Reported by Peter Miller <millerp@canb.auug.org.au>.
52027
52028 2008-01-08  Eric Blake  <ebb9@byu.net>
52029
52030         Rewrite memmem to guarantee linear complexity without malloc.
52031         * lib/memmem.c (memmem): Use Two-Way rather than
52032         Knuth-Morris-Pratt, to allow O(1) space usage.
52033         (critical_factorization, two_way_short_needle)
52034         (two_way_long_needle): New functions.
52035         (knuth_morris_pratt): Delete.
52036         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52037         Add stdint.
52038         * tests/test-memmem.c (main): Add tests for periodic needle and
52039         sublinear performance.
52040         * doc/functions/memmem.texi (memmem): Document other deficiencies
52041         in cygwin and older glibc.
52042
52043 2008-01-08  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52046         augmentation.
52047
52048 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52049
52050         Add a configure time option: --disable-acl.
52051         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52052         AC_ARG_ENABLE(acl).
52053
52054 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52055
52056         * tests/test-localename.c: Don't include obsolete "setenv.h".
52057
52058         * modules/localename-tests (Depends-on): Need unsetenv.
52059
52060 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52061
52062         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52063
52064 2008-01-06  Colin Watson  <cjwatson@debian.org>
52065
52066         * users.txt: Add man-db.
52067
52068 2008-01-07  Bruno Haible  <bruno@clisp.org>
52069
52070         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52071         previous section name.
52072
52073 2008-01-07  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/progname.c (set_program_name): Don't strip off a leading
52076         "lt-" prefix outside a .libs directory.
52077         Suggested by Paul Eggert.
52078
52079 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52080             Bruno Haible  <bruno@clisp.org>
52081
52082         Improve memory cleanup in 'relocatable' module.
52083         * lib/relocatable.h (compute_curr_prefix): Change return type to
52084         'char *'.
52085         * lib/relocatable.c (compute_curr_prefix): Change return type to
52086         'char *'. Free curr_installdir after use.
52087         (relocate): Free curr_prefix_better after use.
52088         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52089
52090 2008-01-01  Bruno Haible  <bruno@clisp.org>
52091
52092         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52093         failure on older glibc systems.
52094         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52095
52096 2008-01-05  Eric Blake  <ebb9@byu.net>
52097
52098         Avoid quadratic system memmem.
52099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52100         Reported by Ralf Wildenhues.
52101
52102         Fix memmem test for mingw.
52103         * modules/memmem-tests (configure.ac): Check for alarm.
52104         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52105         it.
52106         * doc/functions/memmem.texi: New file.
52107         * doc/gnulib.texi (Function Substitutes): Add memmem.
52108         Reported by Bruno Haible.
52109
52110 2008-01-04  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52113         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52114         gl_HEADER_STRING_H_DEFAULTS.
52115
52116 2008-01-04  Eric Blake  <ebb9@byu.net>
52117
52118         Shorten duration of memmem test.
52119         * tests/test-memmem.c (main): Use alarm to declare failure if test
52120         is taking too long.
52121         Reported by Ralf Wildenhues.
52122
52123 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52124
52125         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52126         string, needed by strerror.
52127
52128 2008-01-03  Colin Watson  <cjwatson@debian.org>
52129             Bruno Haible  <bruno@clisp.org>
52130
52131         * doc/gnulib-tool.texi (Localization): New section.
52132
52133 2008-01-02  Bruno Haible  <bruno@clisp.org>
52134
52135         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52136         variables to 'unsigned char *' type.
52137         Reported by Paul Eggert.
52138
52139 2008-01-02  Jim Meyering  <jim@meyering.net>
52140
52141         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52142
52143 2007-12-31  Jim Meyering  <jim@meyering.net>
52144
52145         Avoid use of private FTS type name.
52146         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52147
52148 2007-12-30  Karl Berry  <karl@gnu.org>
52149
52150         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52151         work around defect in Texinfo and/or the standalone Info browser.
52152
52153 2007-12-30  Bruno Haible  <bruno@clisp.org>
52154
52155         Unify 5 copies of the KMP code.
52156         * lib/str-kmp.h: New file.
52157         * lib/c-strcasestr.c: Include str-kmp.h.
52158         (knuth_morris_pratt): Remove function.
52159         (c_strcasestr): Update.
52160         * lib/c-strstr.c: Include str-kmp.h.
52161         (knuth_morris_pratt): Remove function.
52162         (c_strcasestr): Update.
52163         * lib/mbscasestr.c: Include str-kmp.h.
52164         (knuth_morris_pratt_unibyte): Remove function.
52165         * lib/mbsstr.c: Include str-kmp.h.
52166         (knuth_morris_pratt_unibyte): Remove function.
52167         * lib/strcasestr.c: Include str-kmp.h.
52168         (knuth_morris_pratt): Remove function.
52169         (strcasestr): Update.
52170         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52171         * modules/c-strstr (Files): Likewise.
52172         * modules/mbscasestr (Files): Likewise.
52173         * modules/mbsstr (Files): Likewise.
52174         * modules/strcasestr (Files): Likewise.
52175         Suggested by Paul Eggert.
52176
52177 2007-12-30  Bruno Haible  <bruno@clisp.org>
52178
52179         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52180         defined.
52181
52182 2007-12-30  Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/xmalloca.h: Include xalloc.h.
52185         (xnmalloca): New macro.
52186
52187 2007-12-30  Bruno Haible  <bruno@clisp.org>
52188
52189         * lib/malloca.h (nmalloca): New macro.
52190         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52191         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52192         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52193         knuth_morris_pratt_multibyte): Likewise.
52194         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52195         knuth_morris_pratt_multibyte): Likewise.
52196         * lib/memmem.c (knuth_morris_pratt): Likewise.
52197         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52198
52199 2007-12-25  Bruno Haible  <bruno@clisp.org>
52200
52201         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52202         * lib/glob.c: Don't include openat.h.
52203         (link_exists2_p): Add back the code that deals with the
52204         !GLOB_ALTDIRFUNC case.
52205         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52206         let it do the filename concatenation.
52207         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52208         * modules/glob (Depends-on): Remove openat.
52209
52210 2007-12-31  Bruno Haible  <bruno@clisp.org>
52211
52212         * modules/dirfd (License): Change to LGPLv2+.
52213         Approved by Jim Meyering.
52214
52215 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52216
52217         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52218         when multiplying M by sizeof (size_t).
52219
52220 2007-12-10  Martin Lambers  <marlam@marlam.de>
52221
52222         Override getpagesize on mingw.
52223         * lib/getpagesize.c: New file.
52224         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52225         * modules/getpagesize (Files): Add lib/getpagesize.c.
52226         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52228         REPLACE_GETPAGESIZE.
52229         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52230
52231 2007-12-25  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/localcharset (Notice): New field.
52234         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52235         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52236
52237 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52238             Bruno Haible  <bruno@clisp.org>
52239
52240         Avoid using the syntax symbol() in formatted documentation.
52241         * MODULES.html.sh (func_module): When replacing symbol() with a
52242         hyperlink, remove the parentheses. Show an error if some remain.
52243         Recognize and render the '...' syntax.
52244         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52245         Rework. Add paragraph about GCC's inlining.
52246         * doc/alloca.texi: Likewise.
52247         * doc/error.texi: Remove parentheses from symbol reference.
52248         * doc/gnulib-intro.texi: Likewise.
52249         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52250         * modules/fnmatch (Description): Reword to say "the ... function".
52251         * modules/full-read (Description): Likewise.
52252         * modules/full-write (Description): Likewise.
52253         * modules/safe-read (Description): Likewise.
52254         * modules/safe-write (Description): Likewise.
52255         * modules/strchrnul (Description): Likewise.
52256         * modules/trim (Description): Likewise.
52257         * modules/error (Description): Remove parentheses from symbol
52258         references.
52259         * modules/verror (Description): Likewise.
52260         Reported by Karl Berry.
52261
52262 2007-12-25  Bruno Haible  <bruno@clisp.org>
52263
52264         Fixup after 2007-10-16 commit.
52265         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52266
52267 2007-12-24  Bruno Haible  <bruno@clisp.org>
52268
52269         Make --enable-relocatable work with DESTDIR.
52270         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52271         to compute installdir from destprog.
52272         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52273         also set the RELOC_DESTDIR variable.
52274         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52275
52276 2007-12-24  Bruno Haible  <bruno@clisp.org>
52277
52278         Fix link error due to xalloc_die().
52279         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52280         of xreadlink.
52281         * lib/relocwrapper.c: Update comments.
52282         * build-aux/install-reloc: Remove xreadlink.c from file list.
52283         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52284         xreadlink.c.
52285         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52286
52287 2007-12-24  Bruno Haible  <bruno@clisp.org>
52288
52289         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52290         * lib/setenv.h: Remove file.
52291         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52292         lib/setenv.h.
52293         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52294         (Depends-on): Add stdlib.
52295         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52296         gl_FUNC_UNSETENV.
52297         (Include): Replace setenv.h with <stdlib.h>.
52298         * modules/unsetenv: New file.
52299         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52300         * lib/unsetenv.c: Include <stdlib.h> first.
52301         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52302         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52303         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52304         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52305         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52306         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52308         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52309         * doc/functions/unsetenv.texi: Update.
52310         * modules/xsetenv (Depends-on): Add unsetenv.
52311         * modules/getdate (Depends-on): Likewise.
52312         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52313         * lib/xsetenv.c: Don't include setenv.h.
52314         * lib/getdate.y: Likewise.
52315         * lib/relocwrapper.c: Likewise.
52316         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52317         (Depends-on): Add stdlib.
52318         * NEWS: Mention the changes.
52319         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52320
52321 2007-12-23  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52324         indentation.
52325
52326 2007-12-23  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/c-strcasestr.c: Add more comments.
52329         * lib/c-strstr.c: Likewise.
52330         * lib/mbscasestr.c: Likewise.
52331         * lib/mbsstr.c: Likewise.
52332         * lib/strcasestr.c: Likewise.
52333         * lib/memmem.c: Likewise.
52334
52335 2007-12-23  Bruno Haible  <bruno@clisp.org>
52336
52337         * tests/test-memmem.c: Include <string.h> first.
52338
52339 2007-12-22  Bruno Haible  <bruno@clisp.org>
52340
52341         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52342         the contents of $testsbase.
52343         Reported by Ralf Wildenhues.
52344
52345 2007-12-22  Bruno Haible  <bruno@clisp.org>
52346
52347         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52348         two variables local_ldadd_before, local_ldadd_last.
52349
52350 2007-12-20  Eric Blake  <ebb9@byu.net>
52351
52352         Work around circular library issue when cross-compiling.
52353         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52354         that progname.o does not need to pull in rpl_memcmp.
52355
52356 2007-12-19  Eric Blake  <ebb9@byu.net>
52357
52358         Fix memmem to avoid O(n^2) worst-case complexity.
52359         * lib/memmem.c (knuth_morris_pratt): New function.
52360         (memmem): Use it if first few naive iterations fail.
52361         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52362         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52363         * modules/memchr (License): Likewise.
52364         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52365         malloca.
52366         * tests/test-memmem.c: Rewrite, borrowing ideas from
52367         test-mbsstr1.c; the old version wouldn't even compile!
52368         * modules/memmem-tests: New file.
52369         * lib/string.in.h (rpl_memmem): Add declaration.
52370         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52372         REPLACE_MEMMEM.
52373
52374 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52375
52376         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52377         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52378         before any system include files, and undef after them all.  This
52379         should fix a problem on VMS reported by John E. Malmberg in
52380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52381
52382 2007-12-17  Eric Blake  <ebb9@byu.net>
52383
52384         Revert addition of verify, for BSD/OS.
52385         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52386         can't handle large files, for the sake of obsolete platforms.
52387         * modules/fseeko (Depends-on): Remove verify.
52388         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52389         * doc/functions/ftello.texi (ftello): Likewise.
52390         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52391         Reported by Larry Jones.
52392
52393 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52394
52395         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52396         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52397
52398 2007-12-17  Jim Meyering  <meyering@redhat.com>
52399
52400         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52401         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52402         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52403         * modules/getcwd (Depends-on): Add openat.
52404         Reported by Petr Salinger.
52405
52406 2007-12-17  Bruno Haible  <bruno@clisp.org>
52407
52408         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52409         avoid a segmentation fault of the configure test on x86_64 systems.
52410
52411 2007-12-15  Jim Meyering  <meyering@redhat.com>
52412
52413         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52414
52415 2007-12-13  Eric Blake  <ebb9@byu.net>
52416
52417         Another fseek test.
52418         * tests/test-fseek.c (main): Also test ungetc handling.
52419         * tests/test-fseeko.c (main): Likewise.
52420         * modules/fseeko (Depends-on): Add verify.
52421         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52422         large.
52423         Reported by Larry Jones.
52424
52425         Fix fseeko on mingw.
52426         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52427         seek.
52428
52429         Beef up fseek tests.
52430         * tests/test-fseek.c (main): Also test eof handling.
52431         * tests/test-fseeko.c (main): Likewise.
52432         Reported by Larry Jones.
52433
52434 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52435
52436         Fix fseeko on BSD-based platforms.
52437         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52438         successful seek.
52439
52440 2007-12-12  Eric Blake  <ebb9@byu.net>
52441
52442         Allow circular dependency of separate libtests.a
52443         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52444         when use_libtests.
52445
52446 2007-12-11  Eric Blake  <ebb9@byu.net>
52447
52448         Fix bug with -0.0L in previous patch.
52449         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52450         * tests/test-isnan.c (main): Also test on zeroes.
52451         * tests/test-isnanf.c (main): Likewise.
52452         * tests/test-isnanl.h (main): Likewise.
52453
52454         Detect pseudo-denormals on x86 even when cross-compiling.
52455         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52456         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52457         invalid bit patterns that happen to satisfy ==.
52458
52459         Avoid link failures with separate libtests.a.
52460         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52461         last, to satisfy circular dependencies.
52462
52463 2007-12-11  Eric Blake  <ebb9@byu.net>
52464         and Bruno Haible  <bruno@clisp.org>
52465
52466         Fix OpenBSD 4.0 <float.h> handling of long double.
52467         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52468         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52469         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52470
52471 2007-12-11  Jim Meyering  <meyering@redhat.com>
52472
52473         * users.txt: Add libvirt.
52474
52475         Support versions of autoconf prior to 2.59c.
52476         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52477         if it is not already defined.
52478
52479 2007-12-09  Bruno Haible  <bruno@clisp.org>
52480
52481         Let 'gnulib-tool --import' collect sources needed for the tests in
52482         tests/ rather than in lib/.
52483         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52484         argument. If true, add rules to generate libtests.a, and put libtests.a
52485         into $(LDADD). Consider source files in subdirectories and set
52486         uses_subdirs.
52487         (func_emit_initmacro_start, func_emit_initmacro_end,
52488         func_emit_initmacro_done): Pass all arguments explicitly.
52489         (func_import): Determine two module lists main_modules,
52490         testsrelated_modules. Determine use_libtests. Determine two variables
52491         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52492         instead of just sed_transform_lib_file. Determine two variables
52493         main_files and testsrelated_files. Compute 'files' as the union of
52494         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52495         func_add_or_update. In the generated gnulib-comp.m4, collect the
52496         object files for tests/ in different variables than those for lib/.
52497         Substitute LIBTESTS_LIBDEPS.
52498         (func_create_testdir): Combine the uses_subdirs results from
52499         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52500
52501 2007-12-09  Bruno Haible  <bruno@clisp.org>
52502
52503         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52504         the build-aux directory.
52505
52506 2007-12-09  Bruno Haible  <bruno@clisp.org>
52507
52508         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52509         introduced on 2006-09-09.
52510
52511 2007-12-07  Jim Meyering  <meyering@redhat.com>
52512
52513         Let these macros work also with autoconf-2.59.
52514         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52515         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52516         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52517
52518 2007-12-06  Jim Meyering  <meyering@redhat.com>
52519
52520         Avoid a configure-time syntax error in gl_FUNC_ACL.
52521         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52522         function in each branch, before testing the cache variable.
52523
52524 2007-12-04  Eric Blake  <ebb9@byu.net>
52525
52526         Make scripts executable.
52527         * build-aux/config.guess: Add execute permissions.
52528         * build-aux/config.sub: Likewise.
52529         * build-aux/gendocs.sh: Likewise.
52530
52531         Fix frexp on mingw.
52532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52533         cross-compiling.
52534         * doc/functions/frexp.texi (frexp): Document the bug.
52535
52536         Make cygwin fseeko check more reliable.
52537         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52538         version numbers, rather than unrelated feature check.
52539         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52540         * doc/functions/ftello.texi (ftello): Likewise.
52541         Reported by Bruno Haible.
52542
52543         * m4/strerror.m4: Bump version number.
52544
52545 2007-12-03  Bruno Haible  <bruno@clisp.org>
52546
52547         * doc/functions/mprotect.texi: Mention the mingw problem.
52548
52549 2007-12-03  Eric Blake  <ebb9@byu.net>
52550
52551         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52552         REPLACE_STRERROR is initialized before this macro.
52553
52554 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52557         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52558         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52559         put -lsec in even for programs other than 'ls'.  This fixes a problem
52560         for gettext reported by Bruno Haible in
52561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52562         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52563         Add support for Solaris 10.  This isn't efficient, but should get the
52564         job done for now.
52565
52566 2007-12-03  James Youngman  <jay@gnu.org>
52567
52568         * doc/regexprops-generic.texi: change "an close-group" to "a
52569         close-group" and "illegal" to "not allowed".
52570
52571 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52572
52573         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52574         pr_byname.h. Needed for the rare case when the maintainer has done
52575         "make maintainer-clean" in the source directory and then attempts a
52576         build outside the source directory.
52577         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52578         scripts_byname.h.
52579
52580 2007-12-02  Martin Lambers <marlam@marlam.de>
52581             Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/getpagesize.h: Remove file.
52584         * lib/unistd.in.h: Include declaration of getpagesize here.
52585         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52586         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52587         HAVE_SYS_PARAM_H.
52588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52589         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52590         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52591         (Depends-on): Add unistd.
52592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52593         (Include): Use <unistd.h> instead of getpagesize.h.
52594         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52595         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52596         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52597         gl_GETPAGESIZE invocation, already handled by module dependency.
52598         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52599
52600 2007-12-02  Bruno Haible  <bruno@clisp.org>
52601
52602         * modules/strings-tests: New file.
52603         * tests/test-strings.c: New file.
52604
52605         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52606         * lib/strings.in.h: New file.
52607         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52608         * m4/strings_h.m4: New file.
52609         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52610         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52611         * modules/strings: New file.
52612         * modules/string (Makefile.am): Update.
52613         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52614         Reported by Karl Berry.
52615
52616 2007-12-01  Eric Blake  <ebb9@byu.net>
52617
52618         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52619         accomodate fix in cygwin 1.5.25.
52620
52621 2007-12-01  Jim Meyering  <meyering@redhat.com>
52622
52623         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52624         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52625         that would inhibit utf8-optimization of a regexp containing line-
52626         or buffer-anchors, e.g., `^', `$'.
52627
52628 2007-11-30  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52631         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52632         glthread_recursive_lock_init.
52633         * lib/lock.c (glthread_recursive_lock_init)
52634         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52635         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52636
52637 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         New function qset_acl, like set_acl but with syscall semantics.
52640         * lib/acl.h (qset_acl): New decl.
52641         * lib/acl.c (qset_acl): New function.
52642         (set_acl): Use new function.  Use more-consistent diagnostics.
52643
52644 2007-11-28  Jim Meyering  <meyering@redhat.com>
52645
52646         * modules/physmem (License): Change from GPL to LGPLv2+.
52647
52648 2007-11-26  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52651         'long double' type has excess precision.
52652         Reported by Jim Meyering in
52653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52654
52655 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52656
52657         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52658         Sync from <http://gnu.org/licenses>.
52659         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52660         with license text from same location.
52661         * doc/maintain.texi, doc/standards.texi:  Sync from
52662         <http://savannah.gnu.org/projects/gnustandards>.
52663
52664 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52665         and Jim Meyering  <meyering@redhat.com>
52666
52667         Adjust getdate' grammar to accept a slightly more regular language.
52668         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52669         Before, the former was rejected.
52670         * lib/getdate.y (digits_to_date_time): New function, factored
52671         out of ...
52672         (number): ...here.  Just call digits_to_date_time.
52673         (hybrid): New non-terminal to handle an <unsigned number,
52674         signed relative offset> sequence consistently.
52675
52676 2007-11-18  Jim Meyering  <meyering@redhat.com>
52677
52678         Pull my changes from coreutils:
52679         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52680         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52681         use of $gnulib_tool_option_extras, so that it's separated from the
52682         preceding argument.
52683
52684         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52685         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52686         parent destination directories before copying a file into place.
52687
52688 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52689
52690         bootstrap: work also with 4-argument variant of AC_INIT
52691         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52692
52693 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52694
52695         Port test-getaddrinfo to Solaris.
52696         Problem reported by Bruno Haible in
52697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52698         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52699         explanation of setting 'hints'.
52700         Don't reject an implementation merely because it returns EAI_SERVICE.
52701         (EAI_SERVICE): Define to 0 if not defined.
52702
52703 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         The license of gnu-make and posix-shell is now "GPLed build tool".
52706         * modules/gnu-make (License): Likewise.
52707         * modules/posix-shell (License): Likewise.
52708
52709         New module posix-shell, for determining a POSIX shell
52710         or perhaps something that is close enough to a POSIX shell.
52711         * m4/posix-shell.m4: New file.
52712         * modules/posix-shell: New file.
52713
52714         * MODULES.html.sh: Mention new module.
52715
52716         New module gnu-make, for determining whether we're using GNU Make.
52717         * m4/gnu-make.m4: New file.
52718         * modules/gnu-make: New file.
52719         * MODULES.html.sh: Mention new module.
52720
52721 2007-11-14  Jim Meyering  <meyering@redhat.com>
52722
52723         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52724         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52725         use this macro to create a function _definition_.
52726         Remove useless "#undef ARGMATCH_DIE".
52727
52728 2007-11-14  Bruno Haible  <bruno@clisp.org>
52729
52730         * lib/config.charset: Update for OpenBSD 4.1.
52731         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52732
52733 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         Document 64-bit #if problems in stdint.texi.
52736         * doc/headers/stdint.texi (stdint.h): Mention problems with
52737         64-bit-#if, and how to work around them.
52738
52739         Don't insist on 'long long int' support in the preprocessor.  It
52740         breaks too many things.  For example, PRIdMAX still uses a 'long
52741         long int' format with the latest Sun compiler, even though
52742         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52743         preprocessor problem.  This causes the latest coreutils to dump
52744         core on Solaris 10 sparc with the Sun C compiler.
52745         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52746         the troublesome expressions at configure-time, not at #if-time.
52747         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52748         preprocessor.
52749         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52750         compile-time C checks, done at 'configure'-time.
52751         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52752         * modules/inttypes (Makefile): Substitute the new symbols that
52753         gl_INTTYPES_H now generates.
52754         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52755
52756 2007-11-12  Bruno Haible  <bruno@clisp.org>
52757
52758         Tests for Unicode character classification functions.
52759
52760         * modules/unictype/bidicategory-byname-tests: New file.
52761         * modules/unictype/bidicategory-name-tests: New file.
52762         * modules/unictype/bidicategory-of-tests: New file.
52763         * modules/unictype/bidicategory-test-tests: New file.
52764         * modules/unictype/block-list-tests: New file.
52765         * modules/unictype/block-of-tests: New file.
52766         * modules/unictype/block-test-tests: New file.
52767         * modules/unictype/category-C-tests: New file.
52768         * modules/unictype/category-Cc-tests: New file.
52769         * modules/unictype/category-Cf-tests: New file.
52770         * modules/unictype/category-Cn-tests: New file.
52771         * modules/unictype/category-Co-tests: New file.
52772         * modules/unictype/category-Cs-tests: New file.
52773         * modules/unictype/category-L-tests: New file.
52774         * modules/unictype/category-Ll-tests: New file.
52775         * modules/unictype/category-Lm-tests: New file.
52776         * modules/unictype/category-Lo-tests: New file.
52777         * modules/unictype/category-Lt-tests: New file.
52778         * modules/unictype/category-Lu-tests: New file.
52779         * modules/unictype/category-M-tests: New file.
52780         * modules/unictype/category-Mc-tests: New file.
52781         * modules/unictype/category-Me-tests: New file.
52782         * modules/unictype/category-Mn-tests: New file.
52783         * modules/unictype/category-N-tests: New file.
52784         * modules/unictype/category-Nd-tests: New file.
52785         * modules/unictype/category-Nl-tests: New file.
52786         * modules/unictype/category-No-tests: New file.
52787         * modules/unictype/category-P-tests: New file.
52788         * modules/unictype/category-Pc-tests: New file.
52789         * modules/unictype/category-Pd-tests: New file.
52790         * modules/unictype/category-Pe-tests: New file.
52791         * modules/unictype/category-Pf-tests: New file.
52792         * modules/unictype/category-Pi-tests: New file.
52793         * modules/unictype/category-Po-tests: New file.
52794         * modules/unictype/category-Ps-tests: New file.
52795         * modules/unictype/category-S-tests: New file.
52796         * modules/unictype/category-Sc-tests: New file.
52797         * modules/unictype/category-Sk-tests: New file.
52798         * modules/unictype/category-Sm-tests: New file.
52799         * modules/unictype/category-So-tests: New file.
52800         * modules/unictype/category-Z-tests: New file.
52801         * modules/unictype/category-Zl-tests: New file.
52802         * modules/unictype/category-Zp-tests: New file.
52803         * modules/unictype/category-Zs-tests: New file.
52804         * modules/unictype/category-and-not-tests: New file.
52805         * modules/unictype/category-and-tests: New file.
52806         * modules/unictype/category-byname-tests: New file.
52807         * modules/unictype/category-name-tests: New file.
52808         * modules/unictype/category-none-tests: New file.
52809         * modules/unictype/category-of-tests: New file.
52810         * modules/unictype/category-or-tests: New file.
52811         * modules/unictype/category-test-withtable-tests: New file.
52812         * modules/unictype/combining-class-tests: New file.
52813         * modules/unictype/ctype-alnum-tests: New file.
52814         * modules/unictype/ctype-alpha-tests: New file.
52815         * modules/unictype/ctype-blank-tests: New file.
52816         * modules/unictype/ctype-cntrl-tests: New file.
52817         * modules/unictype/ctype-digit-tests: New file.
52818         * modules/unictype/ctype-graph-tests: New file.
52819         * modules/unictype/ctype-lower-tests: New file.
52820         * modules/unictype/ctype-print-tests: New file.
52821         * modules/unictype/ctype-punct-tests: New file.
52822         * modules/unictype/ctype-space-tests: New file.
52823         * modules/unictype/ctype-upper-tests: New file.
52824         * modules/unictype/ctype-xdigit-tests: New file.
52825         * modules/unictype/decimal-digit-tests: New file.
52826         * modules/unictype/digit-tests: New file.
52827         * modules/unictype/mirror-tests: New file.
52828         * modules/unictype/numeric-tests: New file.
52829         * modules/unictype/property-alphabetic-tests: New file.
52830         * modules/unictype/property-ascii-hex-digit-tests: New file.
52831         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52832         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52833         * modules/unictype/property-bidi-block-separator-tests: New file.
52834         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52835         * modules/unictype/property-bidi-common-separator-tests: New file.
52836         * modules/unictype/property-bidi-control-tests: New file.
52837         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52838         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52839         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52840         * modules/unictype/property-bidi-european-digit-tests: New file.
52841         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52842         * modules/unictype/property-bidi-left-to-right-tests: New file.
52843         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52844         * modules/unictype/property-bidi-other-neutral-tests: New file.
52845         * modules/unictype/property-bidi-pdf-tests: New file.
52846         * modules/unictype/property-bidi-segment-separator-tests: New file.
52847         * modules/unictype/property-bidi-whitespace-tests: New file.
52848         * modules/unictype/property-byname-tests: New file.
52849         * modules/unictype/property-combining-tests: New file.
52850         * modules/unictype/property-composite-tests: New file.
52851         * modules/unictype/property-currency-symbol-tests: New file.
52852         * modules/unictype/property-dash-tests: New file.
52853         * modules/unictype/property-decimal-digit-tests: New file.
52854         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52855         * modules/unictype/property-deprecated-tests: New file.
52856         * modules/unictype/property-diacritic-tests: New file.
52857         * modules/unictype/property-extender-tests: New file.
52858         * modules/unictype/property-format-control-tests: New file.
52859         * modules/unictype/property-grapheme-base-tests: New file.
52860         * modules/unictype/property-grapheme-extend-tests: New file.
52861         * modules/unictype/property-grapheme-link-tests: New file.
52862         * modules/unictype/property-hex-digit-tests: New file.
52863         * modules/unictype/property-hyphen-tests: New file.
52864         * modules/unictype/property-id-continue-tests: New file.
52865         * modules/unictype/property-id-start-tests: New file.
52866         * modules/unictype/property-ideographic-tests: New file.
52867         * modules/unictype/property-ids-binary-operator-tests: New file.
52868         * modules/unictype/property-ids-trinary-operator-tests: New file.
52869         * modules/unictype/property-ignorable-control-tests: New file.
52870         * modules/unictype/property-iso-control-tests: New file.
52871         * modules/unictype/property-join-control-tests: New file.
52872         * modules/unictype/property-left-of-pair-tests: New file.
52873         * modules/unictype/property-line-separator-tests: New file.
52874         * modules/unictype/property-logical-order-exception-tests: New file.
52875         * modules/unictype/property-lowercase-tests: New file.
52876         * modules/unictype/property-math-tests: New file.
52877         * modules/unictype/property-non-break-tests: New file.
52878         * modules/unictype/property-not-a-character-tests: New file.
52879         * modules/unictype/property-numeric-tests: New file.
52880         * modules/unictype/property-other-alphabetic-tests: New file.
52881         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52882         * modules/unictype/property-other-grapheme-extend-tests: New file.
52883         * modules/unictype/property-other-id-continue-tests: New file.
52884         * modules/unictype/property-other-id-start-tests: New file.
52885         * modules/unictype/property-other-lowercase-tests: New file.
52886         * modules/unictype/property-other-math-tests: New file.
52887         * modules/unictype/property-other-uppercase-tests: New file.
52888         * modules/unictype/property-paired-punctuation-tests: New file.
52889         * modules/unictype/property-paragraph-separator-tests: New file.
52890         * modules/unictype/property-pattern-syntax-tests: New file.
52891         * modules/unictype/property-pattern-white-space-tests: New file.
52892         * modules/unictype/property-private-use-tests: New file.
52893         * modules/unictype/property-punctuation-tests: New file.
52894         * modules/unictype/property-quotation-mark-tests: New file.
52895         * modules/unictype/property-radical-tests: New file.
52896         * modules/unictype/property-sentence-terminal-tests: New file.
52897         * modules/unictype/property-soft-dotted-tests: New file.
52898         * modules/unictype/property-space-tests: New file.
52899         * modules/unictype/property-terminal-punctuation-tests: New file.
52900         * modules/unictype/property-test-tests: New file.
52901         * modules/unictype/property-titlecase-tests: New file.
52902         * modules/unictype/property-unassigned-code-value-tests: New file.
52903         * modules/unictype/property-unified-ideograph-tests: New file.
52904         * modules/unictype/property-uppercase-tests: New file.
52905         * modules/unictype/property-variation-selector-tests: New file.
52906         * modules/unictype/property-white-space-tests: New file.
52907         * modules/unictype/property-xid-continue-tests: New file.
52908         * modules/unictype/property-xid-start-tests: New file.
52909         * modules/unictype/property-zero-width-tests: New file.
52910         * modules/unictype/scripts-tests: New file.
52911         * modules/unictype/syntax-c-ident-tests: New file.
52912         * modules/unictype/syntax-c-whitespace-tests: New file.
52913         * modules/unictype/syntax-java-ident-tests: New file.
52914         * modules/unictype/syntax-java-whitespace-tests: New file.
52915         * tests/unictype/test-bidi_byname.c: New file.
52916         * tests/unictype/test-bidi_name.c: New file.
52917         * tests/unictype/test-bidi_of.c: New file.
52918         * tests/unictype/test-bidi_test.c: New file.
52919         * tests/unictype/test-block_list.c: New file.
52920         * tests/unictype/test-block_of.c: New file.
52921         * tests/unictype/test-block_test.c: New file.
52922         * tests/unictype/test-categ_and.c: New file.
52923         * tests/unictype/test-categ_and_not.c: New file.
52924         * tests/unictype/test-categ_byname.c: New file.
52925         * tests/unictype/test-categ_name.c: New file.
52926         * tests/unictype/test-categ_none.c: New file.
52927         * tests/unictype/test-categ_of.c: New file.
52928         * tests/unictype/test-categ_or.c: New file.
52929         * tests/unictype/test-categ_test_withtable.c: New file.
52930         * tests/unictype/test-combining.c: New file.
52931         * tests/unictype/test-decdigit.c: New file.
52932         * tests/unictype/test-digit.c: New file.
52933         * tests/unictype/test-mirror.c: New file.
52934         * tests/unictype/test-numeric.c: New file.
52935         * tests/unictype/test-pr_byname.c: New file.
52936         * tests/unictype/test-pr_test.c: New file.
52937         * tests/unictype/test-predicate-part1.h: New file.
52938         * tests/unictype/test-predicate-part2.h: New file.
52939         * tests/unictype/test-scripts.c: New file.
52940         * tests/unictype/test-sy_c_ident.c: New file.
52941         * tests/unictype/test-sy_java_ident.c: New file.
52942
52943         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52944         for Unicode 5.0.0.
52945         * tests/unictype/test-categ_Cc.c: Likewise.
52946         * tests/unictype/test-categ_Cf.c: Likewise.
52947         * tests/unictype/test-categ_Cn.c: Likewise.
52948         * tests/unictype/test-categ_Co.c: Likewise.
52949         * tests/unictype/test-categ_Cs.c: Likewise.
52950         * tests/unictype/test-categ_L.c: Likewise.
52951         * tests/unictype/test-categ_Ll.c: Likewise.
52952         * tests/unictype/test-categ_Lm.c: Likewise.
52953         * tests/unictype/test-categ_Lo.c: Likewise.
52954         * tests/unictype/test-categ_Lt.c: Likewise.
52955         * tests/unictype/test-categ_Lu.c: Likewise.
52956         * tests/unictype/test-categ_M.c: Likewise.
52957         * tests/unictype/test-categ_Mc.c: Likewise.
52958         * tests/unictype/test-categ_Me.c: Likewise.
52959         * tests/unictype/test-categ_Mn.c: Likewise.
52960         * tests/unictype/test-categ_N.c: Likewise.
52961         * tests/unictype/test-categ_Nd.c: Likewise.
52962         * tests/unictype/test-categ_Nl.c: Likewise.
52963         * tests/unictype/test-categ_No.c: Likewise.
52964         * tests/unictype/test-categ_P.c: Likewise.
52965         * tests/unictype/test-categ_Pc.c: Likewise.
52966         * tests/unictype/test-categ_Pd.c: Likewise.
52967         * tests/unictype/test-categ_Pe.c: Likewise.
52968         * tests/unictype/test-categ_Pf.c: Likewise.
52969         * tests/unictype/test-categ_Pi.c: Likewise.
52970         * tests/unictype/test-categ_Po.c: Likewise.
52971         * tests/unictype/test-categ_Ps.c: Likewise.
52972         * tests/unictype/test-categ_S.c: Likewise.
52973         * tests/unictype/test-categ_Sc.c: Likewise.
52974         * tests/unictype/test-categ_Sk.c: Likewise.
52975         * tests/unictype/test-categ_Sm.c: Likewise.
52976         * tests/unictype/test-categ_So.c: Likewise.
52977         * tests/unictype/test-categ_Z.c: Likewise.
52978         * tests/unictype/test-categ_Zl.c: Likewise.
52979         * tests/unictype/test-categ_Zp.c: Likewise.
52980         * tests/unictype/test-categ_Zs.c: Likewise.
52981         * tests/unictype/test-ctype_alnum.c: Likewise.
52982         * tests/unictype/test-ctype_alpha.c: Likewise.
52983         * tests/unictype/test-ctype_blank.c: Likewise.
52984         * tests/unictype/test-ctype_cntrl.c: Likewise.
52985         * tests/unictype/test-ctype_digit.c: Likewise.
52986         * tests/unictype/test-ctype_graph.c: Likewise.
52987         * tests/unictype/test-ctype_lower.c: Likewise.
52988         * tests/unictype/test-ctype_print.c: Likewise.
52989         * tests/unictype/test-ctype_punct.c: Likewise.
52990         * tests/unictype/test-ctype_space.c: Likewise.
52991         * tests/unictype/test-ctype_upper.c: Likewise.
52992         * tests/unictype/test-ctype_xdigit.c: Likewise.
52993         * tests/unictype/test-decdigit.h: Likewise.
52994         * tests/unictype/test-digit.h: Likewise.
52995         * tests/unictype/test-numeric.h: Likewise.
52996         * tests/unictype/test-pr_alphabetic.c: Likewise.
52997         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52998         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52999         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53000         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53001         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53002         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53003         * tests/unictype/test-pr_bidi_control.c: Likewise.
53004         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53005         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53006         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53007         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53008         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53009         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53010         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53011         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53012         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53013         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53014         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53015         * tests/unictype/test-pr_combining.c: Likewise.
53016         * tests/unictype/test-pr_composite.c: Likewise.
53017         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53018         * tests/unictype/test-pr_dash.c: Likewise.
53019         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53020         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53021         * tests/unictype/test-pr_deprecated.c: Likewise.
53022         * tests/unictype/test-pr_diacritic.c: Likewise.
53023         * tests/unictype/test-pr_extender.c: Likewise.
53024         * tests/unictype/test-pr_format_control.c: Likewise.
53025         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53026         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53027         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53028         * tests/unictype/test-pr_hex_digit.c: Likewise.
53029         * tests/unictype/test-pr_hyphen.c: Likewise.
53030         * tests/unictype/test-pr_id_continue.c: Likewise.
53031         * tests/unictype/test-pr_id_start.c: Likewise.
53032         * tests/unictype/test-pr_ideographic.c: Likewise.
53033         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53034         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53035         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53036         * tests/unictype/test-pr_iso_control.c: Likewise.
53037         * tests/unictype/test-pr_join_control.c: Likewise.
53038         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53039         * tests/unictype/test-pr_line_separator.c: Likewise.
53040         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53041         * tests/unictype/test-pr_lowercase.c: Likewise.
53042         * tests/unictype/test-pr_math.c: Likewise.
53043         * tests/unictype/test-pr_non_break.c: Likewise.
53044         * tests/unictype/test-pr_not_a_character.c: Likewise.
53045         * tests/unictype/test-pr_numeric.c: Likewise.
53046         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53047         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53048         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53049         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53050         * tests/unictype/test-pr_other_id_start.c: Likewise.
53051         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53052         * tests/unictype/test-pr_other_math.c: Likewise.
53053         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53054         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53055         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53056         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53057         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53058         * tests/unictype/test-pr_private_use.c: Likewise.
53059         * tests/unictype/test-pr_punctuation.c: Likewise.
53060         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53061         * tests/unictype/test-pr_radical.c: Likewise.
53062         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53063         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53064         * tests/unictype/test-pr_space.c: Likewise.
53065         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53066         * tests/unictype/test-pr_titlecase.c: Likewise.
53067         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53068         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53069         * tests/unictype/test-pr_uppercase.c: Likewise.
53070         * tests/unictype/test-pr_variation_selector.c: Likewise.
53071         * tests/unictype/test-pr_white_space.c: Likewise.
53072         * tests/unictype/test-pr_xid_continue.c: Likewise.
53073         * tests/unictype/test-pr_xid_start.c: Likewise.
53074         * tests/unictype/test-pr_zero_width.c: Likewise.
53075         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53076         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53077
53078 2007-11-12  Bruno Haible  <bruno@clisp.org>
53079
53080         Unicode character classification functions.
53081         * lib/unictype.h: New file.
53082         * modules/unictype/base: New file.
53083         * modules/unictype/category-L: New file.
53084         * modules/unictype/category-Lu: New file.
53085         * modules/unictype/category-Ll: New file.
53086         * modules/unictype/category-Lt: New file.
53087         * modules/unictype/category-Lm: New file.
53088         * modules/unictype/category-Lo: New file.
53089         * modules/unictype/category-M: New file.
53090         * modules/unictype/category-Mn: New file.
53091         * modules/unictype/category-Mc: New file.
53092         * modules/unictype/category-Me: New file.
53093         * modules/unictype/category-N: New file.
53094         * modules/unictype/category-Nd: New file.
53095         * modules/unictype/category-Nl: New file.
53096         * modules/unictype/category-No: New file.
53097         * modules/unictype/category-P: New file.
53098         * modules/unictype/category-Pc: New file.
53099         * modules/unictype/category-Pd: New file.
53100         * modules/unictype/category-Ps: New file.
53101         * modules/unictype/category-Pe: New file.
53102         * modules/unictype/category-Pi: New file.
53103         * modules/unictype/category-Pf: New file.
53104         * modules/unictype/category-Po: New file.
53105         * modules/unictype/category-S: New file.
53106         * modules/unictype/category-Sm: New file.
53107         * modules/unictype/category-Sc: New file.
53108         * modules/unictype/category-Sk: New file.
53109         * modules/unictype/category-So: New file.
53110         * modules/unictype/category-Z: New file.
53111         * modules/unictype/category-Zs: New file.
53112         * modules/unictype/category-Zl: New file.
53113         * modules/unictype/category-Zp: New file.
53114         * modules/unictype/category-C: New file.
53115         * modules/unictype/category-Cc: New file.
53116         * modules/unictype/category-Cf: New file.
53117         * modules/unictype/category-Cs: New file.
53118         * modules/unictype/category-Co: New file.
53119         * modules/unictype/category-Cn: New file.
53120         * modules/unictype/category-or: New file.
53121         * modules/unictype/category-of: New file.
53122         * modules/unictype/category-test: New file.
53123         * modules/unictype/category-test-withtable: New file.
53124         * modules/unictype/category-byname: New file.
53125         * modules/unictype/category-none: New file.
53126         * modules/unictype/category-and: New file.
53127         * modules/unictype/category-and-not: New file.
53128         * modules/unictype/category-name: New file.
53129         * modules/unictype/combining-class: New file.
53130         * modules/unictype/category-all: New file.
53131         * modules/unictype/bidicategory-all: New file.
53132         * modules/unictype/bidicategory-byname: New file.
53133         * modules/unictype/bidicategory-name: New file.
53134         * modules/unictype/bidicategory-of: New file.
53135         * modules/unictype/bidicategory-test: New file.
53136         * modules/unictype/decimal-digit: New file.
53137         * modules/unictype/digit: New file.
53138         * modules/unictype/numeric: New file.
53139         * modules/unictype/mirror: New file.
53140         * modules/unictype/property-white-space: New file.
53141         * modules/unictype/property-alphabetic: New file.
53142         * modules/unictype/property-other-alphabetic: New file.
53143         * modules/unictype/property-not-a-character: New file.
53144         * modules/unictype/property-default-ignorable-code-point: New file.
53145         * modules/unictype/property-other-default-ignorable-code-point: New
53146         file.
53147         * modules/unictype/property-deprecated: New file.
53148         * modules/unictype/property-logical-order-exception: New file.
53149         * modules/unictype/property-variation-selector: New file.
53150         * modules/unictype/property-private-use: New file.
53151         * modules/unictype/property-unassigned-code-value: New file.
53152         * modules/unictype/property-uppercase: New file.
53153         * modules/unictype/property-other-uppercase: New file.
53154         * modules/unictype/property-lowercase: New file.
53155         * modules/unictype/property-other-lowercase: New file.
53156         * modules/unictype/property-titlecase: New file.
53157         * modules/unictype/property-soft-dotted: New file.
53158         * modules/unictype/property-id-start: New file.
53159         * modules/unictype/property-other-id-start: New file.
53160         * modules/unictype/property-id-continue: New file.
53161         * modules/unictype/property-other-id-continue: New file.
53162         * modules/unictype/property-xid-start: New file.
53163         * modules/unictype/property-xid-continue: New file.
53164         * modules/unictype/property-pattern-white-space: New file.
53165         * modules/unictype/property-pattern-syntax: New file.
53166         * modules/unictype/property-join-control: New file.
53167         * modules/unictype/property-grapheme-base: New file.
53168         * modules/unictype/property-grapheme-extend: New file.
53169         * modules/unictype/property-other-grapheme-extend: New file.
53170         * modules/unictype/property-grapheme-link: New file.
53171         * modules/unictype/property-bidi-control: New file.
53172         * modules/unictype/property-bidi-left-to-right: New file.
53173         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53174         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53175         * modules/unictype/property-bidi-european-digit: New file.
53176         * modules/unictype/property-bidi-eur-num-separator: New file.
53177         * modules/unictype/property-bidi-eur-num-terminator: New file.
53178         * modules/unictype/property-bidi-arabic-digit: New file.
53179         * modules/unictype/property-bidi-common-separator: New file.
53180         * modules/unictype/property-bidi-block-separator: New file.
53181         * modules/unictype/property-bidi-segment-separator: New file.
53182         * modules/unictype/property-bidi-whitespace: New file.
53183         * modules/unictype/property-bidi-non-spacing-mark: New file.
53184         * modules/unictype/property-bidi-boundary-neutral: New file.
53185         * modules/unictype/property-bidi-pdf: New file.
53186         * modules/unictype/property-bidi-embedding-or-override: New file.
53187         * modules/unictype/property-bidi-other-neutral: New file.
53188         * modules/unictype/property-hex-digit: New file.
53189         * modules/unictype/property-ascii-hex-digit: New file.
53190         * modules/unictype/property-ideographic: New file.
53191         * modules/unictype/property-unified-ideograph: New file.
53192         * modules/unictype/property-radical: New file.
53193         * modules/unictype/property-ids-binary-operator: New file.
53194         * modules/unictype/property-ids-trinary-operator: New file.
53195         * modules/unictype/property-zero-width: New file.
53196         * modules/unictype/property-space: New file.
53197         * modules/unictype/property-non-break: New file.
53198         * modules/unictype/property-iso-control: New file.
53199         * modules/unictype/property-format-control: New file.
53200         * modules/unictype/property-dash: New file.
53201         * modules/unictype/property-hyphen: New file.
53202         * modules/unictype/property-punctuation: New file.
53203         * modules/unictype/property-line-separator: New file.
53204         * modules/unictype/property-paragraph-separator: New file.
53205         * modules/unictype/property-quotation-mark: New file.
53206         * modules/unictype/property-sentence-terminal: New file.
53207         * modules/unictype/property-terminal-punctuation: New file.
53208         * modules/unictype/property-currency-symbol: New file.
53209         * modules/unictype/property-math: New file.
53210         * modules/unictype/property-other-math: New file.
53211         * modules/unictype/property-paired-punctuation: New file.
53212         * modules/unictype/property-left-of-pair: New file.
53213         * modules/unictype/property-combining: New file.
53214         * modules/unictype/property-composite: New file.
53215         * modules/unictype/property-decimal-digit: New file.
53216         * modules/unictype/property-numeric: New file.
53217         * modules/unictype/property-diacritic: New file.
53218         * modules/unictype/property-extender: New file.
53219         * modules/unictype/property-ignorable-control: New file.
53220         * modules/unictype/property-test: New file.
53221         * modules/unictype/property-byname: New file.
53222         * modules/unictype/property-all: New file.
53223         * modules/unictype/scripts: New file.
53224         * modules/unictype/scripts-all: New file.
53225         * modules/unictype/block-of: New file.
53226         * modules/unictype/block-test: New file.
53227         * modules/unictype/block-list: New file.
53228         * modules/unictype/block-all: New file.
53229         * modules/unictype/syntax-c-whitespace: New file.
53230         * modules/unictype/syntax-java-whitespace: New file.
53231         * modules/unictype/syntax-c-ident: New file.
53232         * modules/unictype/syntax-java-ident: New file.
53233         * modules/unictype/ctype-alnum: New file.
53234         * modules/unictype/ctype-alpha: New file.
53235         * modules/unictype/ctype-cntrl: New file.
53236         * modules/unictype/ctype-digit: New file.
53237         * modules/unictype/ctype-graph: New file.
53238         * modules/unictype/ctype-lower: New file.
53239         * modules/unictype/ctype-print: New file.
53240         * modules/unictype/ctype-punct: New file.
53241         * modules/unictype/ctype-space: New file.
53242         * modules/unictype/ctype-upper: New file.
53243         * modules/unictype/ctype-xdigit: New file.
53244         * modules/unictype/ctype-blank: New file.
53245         * lib/unictype/bidi_byname.c: New file.
53246         * lib/unictype/bidi_name.c: New file.
53247         * lib/unictype/bidi_of.c: New file.
53248         * lib/unictype/bidi_test.c: New file.
53249         * lib/unictype/bitmap.h: New file.
53250         * lib/unictype/block_test.c: New file.
53251         * lib/unictype/blocks.c: New file.
53252         * lib/unictype/categ_C.c: New file.
53253         * lib/unictype/categ_Cc.c: New file.
53254         * lib/unictype/categ_Cf.c: New file.
53255         * lib/unictype/categ_Cn.c: New file.
53256         * lib/unictype/categ_Co.c: New file.
53257         * lib/unictype/categ_Cs.c: New file.
53258         * lib/unictype/categ_L.c: New file.
53259         * lib/unictype/categ_Ll.c: New file.
53260         * lib/unictype/categ_Lm.c: New file.
53261         * lib/unictype/categ_Lo.c: New file.
53262         * lib/unictype/categ_Lt.c: New file.
53263         * lib/unictype/categ_Lu.c: New file.
53264         * lib/unictype/categ_M.c: New file.
53265         * lib/unictype/categ_Mc.c: New file.
53266         * lib/unictype/categ_Me.c: New file.
53267         * lib/unictype/categ_Mn.c: New file.
53268         * lib/unictype/categ_N.c: New file.
53269         * lib/unictype/categ_Nd.c: New file.
53270         * lib/unictype/categ_Nl.c: New file.
53271         * lib/unictype/categ_No.c: New file.
53272         * lib/unictype/categ_P.c: New file.
53273         * lib/unictype/categ_Pc.c: New file.
53274         * lib/unictype/categ_Pd.c: New file.
53275         * lib/unictype/categ_Pe.c: New file.
53276         * lib/unictype/categ_Pf.c: New file.
53277         * lib/unictype/categ_Pi.c: New file.
53278         * lib/unictype/categ_Po.c: New file.
53279         * lib/unictype/categ_Ps.c: New file.
53280         * lib/unictype/categ_S.c: New file.
53281         * lib/unictype/categ_Sc.c: New file.
53282         * lib/unictype/categ_Sk.c: New file.
53283         * lib/unictype/categ_Sm.c: New file.
53284         * lib/unictype/categ_So.c: New file.
53285         * lib/unictype/categ_Z.c: New file.
53286         * lib/unictype/categ_Zl.c: New file.
53287         * lib/unictype/categ_Zp.c: New file.
53288         * lib/unictype/categ_Zs.c: New file.
53289         * lib/unictype/categ_and.c: New file.
53290         * lib/unictype/categ_and_not.c: New file.
53291         * lib/unictype/categ_byname.c: New file.
53292         * lib/unictype/categ_name.c: New file.
53293         * lib/unictype/categ_none.c: New file.
53294         * lib/unictype/categ_of.c: New file.
53295         * lib/unictype/categ_or.c: New file.
53296         * lib/unictype/categ_test.c: New file.
53297         * lib/unictype/combining.c: New file.
53298         * lib/unictype/ctype_alnum.c: New file.
53299         * lib/unictype/ctype_alpha.c: New file.
53300         * lib/unictype/ctype_blank.c: New file.
53301         * lib/unictype/ctype_cntrl.c: New file.
53302         * lib/unictype/ctype_digit.c: New file.
53303         * lib/unictype/ctype_graph.c: New file.
53304         * lib/unictype/ctype_lower.c: New file.
53305         * lib/unictype/ctype_print.c: New file.
53306         * lib/unictype/ctype_punct.c: New file.
53307         * lib/unictype/ctype_space.c: New file.
53308         * lib/unictype/ctype_upper.c: New file.
53309         * lib/unictype/ctype_xdigit.c: New file.
53310         * lib/unictype/decdigit.c: New file.
53311         * lib/unictype/digit.c: New file.
53312         * lib/unictype/identsyntaxmap.h: New file.
53313         * lib/unictype/mirror.c: New file.
53314         * lib/unictype/numeric.c: New file.
53315         * lib/unictype/pr_alphabetic.c: New file.
53316         * lib/unictype/pr_ascii_hex_digit.c: New file.
53317         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53318         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53319         * lib/unictype/pr_bidi_block_separator.c: New file.
53320         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53321         * lib/unictype/pr_bidi_common_separator.c: New file.
53322         * lib/unictype/pr_bidi_control.c: New file.
53323         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53324         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53325         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53326         * lib/unictype/pr_bidi_european_digit.c: New file.
53327         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53328         * lib/unictype/pr_bidi_left_to_right.c: New file.
53329         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53330         * lib/unictype/pr_bidi_other_neutral.c: New file.
53331         * lib/unictype/pr_bidi_pdf.c: New file.
53332         * lib/unictype/pr_bidi_segment_separator.c: New file.
53333         * lib/unictype/pr_bidi_whitespace.c: New file.
53334         * lib/unictype/pr_byname.c: New file.
53335         * lib/unictype/pr_byname.gperf: New file.
53336         * lib/unictype/pr_combining.c: New file.
53337         * lib/unictype/pr_composite.c: New file.
53338         * lib/unictype/pr_currency_symbol.c: New file.
53339         * lib/unictype/pr_dash.c: New file.
53340         * lib/unictype/pr_decimal_digit.c: New file.
53341         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53342         * lib/unictype/pr_deprecated.c: New file.
53343         * lib/unictype/pr_diacritic.c: New file.
53344         * lib/unictype/pr_extender.c: New file.
53345         * lib/unictype/pr_format_control.c: New file.
53346         * lib/unictype/pr_grapheme_base.c: New file.
53347         * lib/unictype/pr_grapheme_extend.c: New file.
53348         * lib/unictype/pr_grapheme_link.c: New file.
53349         * lib/unictype/pr_hex_digit.c: New file.
53350         * lib/unictype/pr_hyphen.c: New file.
53351         * lib/unictype/pr_id_continue.c: New file.
53352         * lib/unictype/pr_id_start.c: New file.
53353         * lib/unictype/pr_ideographic.c: New file.
53354         * lib/unictype/pr_ids_binary_operator.c: New file.
53355         * lib/unictype/pr_ids_trinary_operator.c: New file.
53356         * lib/unictype/pr_ignorable_control.c: New file.
53357         * lib/unictype/pr_iso_control.c: New file.
53358         * lib/unictype/pr_join_control.c: New file.
53359         * lib/unictype/pr_left_of_pair.c: New file.
53360         * lib/unictype/pr_line_separator.c: New file.
53361         * lib/unictype/pr_logical_order_exception.c: New file.
53362         * lib/unictype/pr_lowercase.c: New file.
53363         * lib/unictype/pr_math.c: New file.
53364         * lib/unictype/pr_non_break.c: New file.
53365         * lib/unictype/pr_not_a_character.c: New file.
53366         * lib/unictype/pr_numeric.c: New file.
53367         * lib/unictype/pr_other_alphabetic.c: New file.
53368         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53369         * lib/unictype/pr_other_grapheme_extend.c: New file.
53370         * lib/unictype/pr_other_id_continue.c: New file.
53371         * lib/unictype/pr_other_id_start.c: New file.
53372         * lib/unictype/pr_other_lowercase.c: New file.
53373         * lib/unictype/pr_other_math.c: New file.
53374         * lib/unictype/pr_other_uppercase.c: New file.
53375         * lib/unictype/pr_paired_punctuation.c: New file.
53376         * lib/unictype/pr_paragraph_separator.c: New file.
53377         * lib/unictype/pr_pattern_syntax.c: New file.
53378         * lib/unictype/pr_pattern_white_space.c: New file.
53379         * lib/unictype/pr_private_use.c: New file.
53380         * lib/unictype/pr_punctuation.c: New file.
53381         * lib/unictype/pr_quotation_mark.c: New file.
53382         * lib/unictype/pr_radical.c: New file.
53383         * lib/unictype/pr_sentence_terminal.c: New file.
53384         * lib/unictype/pr_soft_dotted.c: New file.
53385         * lib/unictype/pr_space.c: New file.
53386         * lib/unictype/pr_terminal_punctuation.c: New file.
53387         * lib/unictype/pr_test.c: New file.
53388         * lib/unictype/pr_titlecase.c: New file.
53389         * lib/unictype/pr_unassigned_code_value.c: New file.
53390         * lib/unictype/pr_unified_ideograph.c: New file.
53391         * lib/unictype/pr_uppercase.c: New file.
53392         * lib/unictype/pr_variation_selector.c: New file.
53393         * lib/unictype/pr_white_space.c: New file.
53394         * lib/unictype/pr_xid_continue.c: New file.
53395         * lib/unictype/pr_xid_start.c: New file.
53396         * lib/unictype/pr_zero_width.c: New file.
53397         * lib/unictype/scripts.c: New file.
53398         * lib/unictype/sy_c_ident.c: New file.
53399         * lib/unictype/sy_c_whitespace.c: New file.
53400         * lib/unictype/sy_java_ident.c: New file.
53401         * lib/unictype/sy_java_whitespace.c: New file.
53402
53403         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53404         Unicode 5.0.0.
53405         * lib/unictype/blocks.h: Likewise.
53406         * lib/unictype/categ_C.h: Likewise.
53407         * lib/unictype/categ_Cc.h: Likewise.
53408         * lib/unictype/categ_Cf.h: Likewise.
53409         * lib/unictype/categ_Cn.h: Likewise.
53410         * lib/unictype/categ_Co.h: Likewise.
53411         * lib/unictype/categ_Cs.h: Likewise.
53412         * lib/unictype/categ_L.h: Likewise.
53413         * lib/unictype/categ_Ll.h: Likewise.
53414         * lib/unictype/categ_Lm.h: Likewise.
53415         * lib/unictype/categ_Lo.h: Likewise.
53416         * lib/unictype/categ_Lt.h: Likewise.
53417         * lib/unictype/categ_Lu.h: Likewise.
53418         * lib/unictype/categ_M.h: Likewise.
53419         * lib/unictype/categ_Mc.h: Likewise.
53420         * lib/unictype/categ_Me.h: Likewise.
53421         * lib/unictype/categ_Mn.h: Likewise.
53422         * lib/unictype/categ_N.h: Likewise.
53423         * lib/unictype/categ_Nd.h: Likewise.
53424         * lib/unictype/categ_Nl.h: Likewise.
53425         * lib/unictype/categ_No.h: Likewise.
53426         * lib/unictype/categ_P.h: Likewise.
53427         * lib/unictype/categ_Pc.h: Likewise.
53428         * lib/unictype/categ_Pd.h: Likewise.
53429         * lib/unictype/categ_Pe.h: Likewise.
53430         * lib/unictype/categ_Pf.h: Likewise.
53431         * lib/unictype/categ_Pi.h: Likewise.
53432         * lib/unictype/categ_Po.h: Likewise.
53433         * lib/unictype/categ_Ps.h: Likewise.
53434         * lib/unictype/categ_S.h: Likewise.
53435         * lib/unictype/categ_Sc.h: Likewise.
53436         * lib/unictype/categ_Sk.h: Likewise.
53437         * lib/unictype/categ_Sm.h: Likewise.
53438         * lib/unictype/categ_So.h: Likewise.
53439         * lib/unictype/categ_Z.h: Likewise.
53440         * lib/unictype/categ_Zl.h: Likewise.
53441         * lib/unictype/categ_Zp.h: Likewise.
53442         * lib/unictype/categ_Zs.h: Likewise.
53443         * lib/unictype/categ_of.h: Likewise.
53444         * lib/unictype/combining.h: Likewise.
53445         * lib/unictype/ctype_alnum.h: Likewise.
53446         * lib/unictype/ctype_alpha.h: Likewise.
53447         * lib/unictype/ctype_blank.h: Likewise.
53448         * lib/unictype/ctype_cntrl.h: Likewise.
53449         * lib/unictype/ctype_digit.h: Likewise.
53450         * lib/unictype/ctype_graph.h: Likewise.
53451         * lib/unictype/ctype_lower.h: Likewise.
53452         * lib/unictype/ctype_print.h: Likewise.
53453         * lib/unictype/ctype_punct.h: Likewise.
53454         * lib/unictype/ctype_space.h: Likewise.
53455         * lib/unictype/ctype_upper.h: Likewise.
53456         * lib/unictype/ctype_xdigit.h: Likewise.
53457         * lib/unictype/decdigit.h: Likewise.
53458         * lib/unictype/digit.h: Likewise.
53459         * lib/unictype/mirror.h: Likewise.
53460         * lib/unictype/numeric.h: Likewise.
53461         * lib/unictype/pr_alphabetic.h: Likewise.
53462         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53463         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53464         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53465         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53466         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53467         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53468         * lib/unictype/pr_bidi_control.h: Likewise.
53469         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53470         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53471         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53472         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53473         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53474         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53475         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53476         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53477         * lib/unictype/pr_bidi_pdf.h: Likewise.
53478         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53479         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53480         * lib/unictype/pr_combining.h: Likewise.
53481         * lib/unictype/pr_composite.h: Likewise.
53482         * lib/unictype/pr_currency_symbol.h: Likewise.
53483         * lib/unictype/pr_dash.h: Likewise.
53484         * lib/unictype/pr_decimal_digit.h: Likewise.
53485         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53486         * lib/unictype/pr_deprecated.h: Likewise.
53487         * lib/unictype/pr_diacritic.h: Likewise.
53488         * lib/unictype/pr_extender.h: Likewise.
53489         * lib/unictype/pr_format_control.h: Likewise.
53490         * lib/unictype/pr_grapheme_base.h: Likewise.
53491         * lib/unictype/pr_grapheme_extend.h: Likewise.
53492         * lib/unictype/pr_grapheme_link.h: Likewise.
53493         * lib/unictype/pr_hex_digit.h: Likewise.
53494         * lib/unictype/pr_hyphen.h: Likewise.
53495         * lib/unictype/pr_id_continue.h: Likewise.
53496         * lib/unictype/pr_id_start.h: Likewise.
53497         * lib/unictype/pr_ideographic.h: Likewise.
53498         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53499         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53500         * lib/unictype/pr_ignorable_control.h: Likewise.
53501         * lib/unictype/pr_iso_control.h: Likewise.
53502         * lib/unictype/pr_join_control.h: Likewise.
53503         * lib/unictype/pr_left_of_pair.h: Likewise.
53504         * lib/unictype/pr_line_separator.h: Likewise.
53505         * lib/unictype/pr_logical_order_exception.h: Likewise.
53506         * lib/unictype/pr_lowercase.h: Likewise.
53507         * lib/unictype/pr_math.h: Likewise.
53508         * lib/unictype/pr_non_break.h: Likewise.
53509         * lib/unictype/pr_not_a_character.h: Likewise.
53510         * lib/unictype/pr_numeric.h: Likewise.
53511         * lib/unictype/pr_other_alphabetic.h: Likewise.
53512         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53513         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53514         * lib/unictype/pr_other_id_continue.h: Likewise.
53515         * lib/unictype/pr_other_id_start.h: Likewise.
53516         * lib/unictype/pr_other_lowercase.h: Likewise.
53517         * lib/unictype/pr_other_math.h: Likewise.
53518         * lib/unictype/pr_other_uppercase.h: Likewise.
53519         * lib/unictype/pr_paired_punctuation.h: Likewise.
53520         * lib/unictype/pr_paragraph_separator.h: Likewise.
53521         * lib/unictype/pr_pattern_syntax.h: Likewise.
53522         * lib/unictype/pr_pattern_white_space.h: Likewise.
53523         * lib/unictype/pr_private_use.h: Likewise.
53524         * lib/unictype/pr_punctuation.h: Likewise.
53525         * lib/unictype/pr_quotation_mark.h: Likewise.
53526         * lib/unictype/pr_radical.h: Likewise.
53527         * lib/unictype/pr_sentence_terminal.h: Likewise.
53528         * lib/unictype/pr_soft_dotted.h: Likewise.
53529         * lib/unictype/pr_space.h: Likewise.
53530         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53531         * lib/unictype/pr_titlecase.h: Likewise.
53532         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53533         * lib/unictype/pr_unified_ideograph.h: Likewise.
53534         * lib/unictype/pr_uppercase.h: Likewise.
53535         * lib/unictype/pr_variation_selector.h: Likewise.
53536         * lib/unictype/pr_white_space.h: Likewise.
53537         * lib/unictype/pr_xid_continue.h: Likewise.
53538         * lib/unictype/pr_xid_start.h: Likewise.
53539         * lib/unictype/pr_zero_width.h: Likewise.
53540         * lib/unictype/scripts.h: Likewise.
53541         * lib/unictype/scripts_byname.gperf: Likewise.
53542         * lib/unictype/sy_c_ident.h: Likewise.
53543         * lib/unictype/sy_c_whitespace.h: Likewise.
53544         * lib/unictype/sy_java_ident.h: Likewise.
53545         * lib/unictype/sy_java_whitespace.h: Likewise.
53546
53547         * lib/unictype/Makefile: New file.
53548         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53549         glibc.
53550         * lib/unictype/3level.h: New file, copied from glibc.
53551         * lib/unictype/3levelbit.h: New file.
53552
53553 2007-11-11  Bruno Haible  <bruno@clisp.org>
53554
53555         * modules/gperf: New file.
53556         * modules/iconv_open (Depends-on): Add it.
53557         (Makefile.am): Remove the GPERF definition.
53558
53559 2007-11-11  Bruno Haible  <bruno@clisp.org>
53560
53561         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53562         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53563
53564 2007-11-11  Bruno Haible  <bruno@clisp.org>
53565
53566         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53567         (usage): Remove function.
53568
53569 2007-11-11  Bruno Haible  <bruno@clisp.org>
53570
53571         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53572         gl_FUNC_CEILF_LIBS.
53573         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53574         gl_FUNC_CEIL_LIBS.
53575         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53576         gl_FUNC_CEILL_LIBS.
53577         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53578         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53579         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53580
53581 2007-11-11  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53584         roundf were declared but do not exist on functions.
53585         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53586         roundl were declared but do not exist on functions.
53587         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53588         HAVE_FLOORL_AND_CEILL, respectively.
53589         Needed for Sun C on Solaris 10.
53590
53591 2007-11-11  Bruno Haible  <bruno@clisp.org>
53592
53593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53594         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53595         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53596         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53597         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53598         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53599         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53600         HAVE_DECL_ROUNDF.
53601         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53602         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53604         of HAVE_DECL_ROUND*.
53605         * modules/math (Makefile.am): Update.
53606
53607 2007-11-10  Bruno Haible  <bruno@clisp.org>
53608
53609         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53610         ptrdiff_t as m4/intl.m4.
53611
53612 2007-11-10  Jim Meyering  <meyering@redhat.com>
53613
53614         Avoid link failure for the argmatch test.
53615         * tests/test-argmatch.c (usage): Define function to avoid a link
53616         failure: argmatch_die requires a usage function.
53617
53618 2007-11-09  Bruno Haible  <bruno@clisp.org>
53619
53620         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53621         * doc/functions/vsnprintf.texi: Likewise.
53622         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53623         with a size argument < 2.
53624
53625 2007-11-09  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53628         buffer. Fixes an inefficiency introduced on 2007-11-03.
53629
53630 2007-11-09  Bruno Haible  <bruno@clisp.org>
53631
53632         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53633         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53634
53635 2007-11-08  Jim Meyering  <meyering@redhat.com>
53636
53637         Change cache variable name prefix "jm_" to "gl_" everywhere.
53638         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53639         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53640         * m4/uptime.m4: s/gl_/jm_/
53641
53642 2007-11-07  Bruno Haible  <bruno@clisp.org>
53643
53644         Update to GNU gettext 0.17.
53645         * m4/intl.m4: Update to GNU gettext 0.17.
53646         * m4/po.m4: Likewise.
53647         * modules/gettext (Files): Remove m4/ulonglong.m4.
53648         (configure.ac): Require gettext infrastructure from version 0.17.
53649
53650 2007-11-06  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53653         symbolic values are not defined in a public header.
53654         * lib/freadable.c (freadable) [QNX]: Likewise.
53655         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53656         * lib/freading.c (freading) [QNX]: Likewise.
53657         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53658         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53659         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53660         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53661         Reported by Alain Magloire.
53662
53663         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53664
53665 2007-11-05  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53668         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53669         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53670         Reported by Eric Blake.
53671
53672 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53673             Bruno Haible  <bruno@clisp.org>
53674
53675         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53676         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53677         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53678         (malloc): Undefine also before including <stdlib.h>.
53679         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53680         Needed on OSF/1 4.0.
53681
53682 2007-11-05  Jim Meyering  <meyering@redhat.com>
53683
53684         git-version-gen: sync from coreutils.
53685         * build-aux/git-version-gen: Add comments.
53686         Change the first '-' to '.' in the snapshot version string,
53687         e.g., 6.9-377-08144 -> 6.9.377-08144
53688         Remove first parameter.
53689         Don't declare a version "-dirty" merely because a time
53690         stamp has changed.
53691
53692 2007-11-04  Bruno Haible  <bruno@clisp.org>
53693
53694         * lib/lock.h: Protect all macro definitions containing an 'if'
53695         statement through a "do { ... } while (0)".
53696         * lib/tls.h: Likewise.
53697
53698 2007-11-04  Bruno Haible  <bruno@clisp.org>
53699
53700         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53701
53702 2007-11-04  Bruno Haible  <bruno@clisp.org>
53703
53704         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53705         * modules/fprintf-posix (Depends-on): Add nocrash.
53706         * modules/snprintf-posix (Depends-on): Likewise.
53707         * modules/sprintf-posix (Depends-on): Likewise.
53708         * modules/vasnprintf-posix (Depends-on): Likewise.
53709         * modules/vasprintf-posix (Depends-on): Likewise.
53710         * modules/vfprintf-posix (Depends-on): Likewise.
53711         * modules/vsnprintf-posix (Depends-on): Likewise.
53712         * modules/vsprintf-posix (Depends-on): Likewise.
53713         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53714         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53715         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53717         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53718         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53719         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53720
53721 2007-11-04  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/nocrash: New file.
53724         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53725         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53726
53727 2007-11-04  Bruno Haible  <bruno@clisp.org>
53728
53729         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53730         precision handling.
53731         * tests/test-vasprintf-posix.c (test_function): Likewise.
53732         * tests/test-snprintf-posix.h (test_function): Likewise.
53733         * tests/test-sprintf-posix.h (test_function): Likewise.
53734
53735         Fix *printf behaviour for large precisions on mingw and BeOS.
53736         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53737         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53739         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53741         gl_PRINTF_PRECISION and test its result. Invoke
53742         gl_PREREQ_VASNPRINTF_PRECISION.
53743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53744         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53745         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53750         * doc/functions/fprintf.texi: Update.
53751         * doc/functions/printf.texi: Update.
53752         * doc/functions/snprintf.texi: Update.
53753         * doc/functions/sprintf.texi: Update.
53754         * doc/functions/vfprintf.texi: Update.
53755         * doc/functions/vprintf.texi: Update.
53756         * doc/functions/vsnprintf.texi: Update.
53757         * doc/functions/vsprintf.texi: Update.
53758
53759 2007-11-04  Bruno Haible  <bruno@clisp.org>
53760
53761         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53762
53763 2007-11-04  Bruno Haible  <bruno@clisp.org>
53764
53765         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53766         Reported by Sylvain Beucler <beuc@gnu.org>.
53767
53768 2007-11-03  Bruno Haible  <bruno@clisp.org>
53769
53770         * tests/test-fprintf-posix2.sh: New file.
53771         * tests/test-fprintf-posix2.c: New file.
53772         * modules/fprintf-posix-tests (Files): Add them.
53773         (TESTS): Add test-fprintf-posix2.sh.
53774         (configure.ac): Check for getrlimit and setrlimit.
53775         (check_PROGRAMS): Add test-fprintf-posix2.
53776
53777         * tests/test-printf-posix2.sh: New file.
53778         * tests/test-printf-posix2.c: New file.
53779         * modules/printf-posix-tests (Files): Add them.
53780         (TESTS): Add test-printf-posix2.sh.
53781         (configure.ac): Check for getrlimit and setrlimit.
53782         (check_PROGRAMS): Add test-printf-posix2.
53783
53784         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53785         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53786         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53787         (decode_double): New function, copied from decode_long_double.
53788         (scale10_round_decimal_decoded): New function, extracted from
53789         scale10_round_decimal_long_double.
53790         (scale10_round_decimal_long_double): Use it.
53791         (scale10_round_decimal_double): New function.
53792         (floorlog10): New function.
53793         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53795         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53797         gl_PRINTF_ENOMEM and test its result. Invoke
53798         gl_PREREQ_VASNPRINTF_ENOMEM.
53799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53806         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53807         * modules/snprintf-posix (Depends-on): Likewise.
53808         * modules/sprintf-posix (Depends-on): Likewise.
53809         * modules/vasnprintf-posix (Depends-on): Likewise.
53810         * modules/vasprintf-posix (Depends-on): Likewise.
53811         * modules/vfprintf-posix (Depends-on): Likewise.
53812         * modules/vsnprintf-posix (Depends-on): Likewise.
53813         * modules/vsprintf-posix (Depends-on): Likewise.
53814         * doc/functions/fprintf.texi: Update.
53815         * doc/functions/printf.texi: Update.
53816         * doc/functions/snprintf.texi: Update.
53817         * doc/functions/sprintf.texi: Update.
53818         * doc/functions/vfprintf.texi: Update.
53819         * doc/functions/vprintf.texi: Update.
53820         * doc/functions/vsnprintf.texi: Update.
53821         * doc/functions/vsprintf.texi: Update.
53822
53823 2007-11-03  Bruno Haible  <bruno@clisp.org>
53824
53825         * modules/frexp-nolibm-tests: New file.
53826
53827         * modules/frexp-nolibm: New file.
53828         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53829
53830 2007-11-03  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53833         value is C99 compliant.
53834         Needed for OSF/1 5.1.
53835
53836 2007-11-03  Bruno Haible  <bruno@clisp.org>
53837
53838         Fix out-of-memory handling of vasnprintf.
53839         * lib/printf-parse.c: Include <errno.h>.
53840         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53841         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53842         is already set.
53843
53844 2007-11-02  Eric Blake  <ebb9@byu.net>
53845
53846         Fix tests on cygwin.
53847         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53848
53849 2007-11-01  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53852         warning.
53853         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53854         needed for POSIX compatibility.
53855
53856 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53859         for compatibility with GNU.
53860
53861 2007-11-01  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53864         (putenv): Renamed from rpl_putenv. Change argument type from
53865         'const char *' to 'char *'.
53866         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53867         of defining putenv in config.h, just set REPLACE_PUTENV.
53868         * modules/putenv (Depends-on): Add stdlib.
53869         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53870         (Include): Use <stdlib.h>.
53871         * lib/stdlib.in.h (putenv): New declaration.
53872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53873         REPLACE_PUTENV.
53874         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53875         REPLACE_PUTENV.
53876         Needed for MacOS X 10.5.0.
53877         Reported by Peter O'Gorman <peter@pogma.com>.
53878
53879 2007-11-01  Jim Meyering  <meyering@redhat.com>
53880
53881         Treat an empty date string exactly like "0".
53882         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53883         if the remaining date string (to be parsed) is empty, use "0".
53884         Reported by Mischa Molhoek and discussed in this thread:
53885         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53886
53887 2007-10-31  Bruno Haible  <bruno@clisp.org>
53888
53889         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53890         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53891         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53892         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53893         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53894         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53895
53896 2007-10-31  Bruno Haible  <bruno@clisp.org>
53897
53898         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53899         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53900         (AC_TYPE_LONG_LONG_INT): Use it.
53901         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53902         it as well.
53903         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53904         to m4/longlong.m4.
53905         * modules/stdint (Files): Remove m4/ulonglong.m4.
53906         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53907         m4/ulonglong.m4.
53908         * modules/strtoumax (Files): Likewise.
53909
53910 2007-10-30  Bruno Haible  <bruno@clisp.org>
53911
53912         * modules/xvasprintf-posix: New file.
53913         Suggested by Eric Blake.
53914
53915 2007-10-30  Bruno Haible  <bruno@clisp.org>
53916
53917         * modules/xprintf-posix-tests: New file.
53918         * tests/test-xprintf-posix.sh: New file.
53919         * tests/test-xprintf-posix.c: New file.
53920         * tests/test-xfprintf-posix.c: New file.
53921
53922         * modules/xprintf-posix: New file.
53923
53924 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53925
53926         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53927         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53928         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53929
53930 2007-10-29  Bruno Haible  <bruno@clisp.org>
53931
53932         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53933         contain the special marker '_cv_'.
53934         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53935         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53936         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53937         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53938         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53939         Reported by Ralf Wildenhues.
53940
53941 2007-10-29  Bruno Haible  <bruno@clisp.org>
53942
53943         * gnulib-tool (func_import): When --lgpl is not specified, set
53944         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53945         GPLv3.
53946         Reported by Simon Josefsson.
53947
53948 2007-10-28  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53951         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53952         HAVE_DECL_ISFINITE.
53953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53954         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53955         HAVE_DECL_ISFINITE.
53956
53957 2007-10-28  Bruno Haible  <bruno@clisp.org>
53958
53959         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53960         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53961
53962 2007-10-28  Bruno Haible  <bruno@clisp.org>
53963
53964         Fix link errors with Sun C 5.0 on Solaris 10.
53965         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53966         function is declared but not present in the compiler's libm.
53967         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53968         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53969         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53970         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53971         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53972         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53973         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53975         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53976         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53977         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53978         HAVE_DECL_FLOORL.
53979
53980 2007-10-28  Bruno Haible  <bruno@clisp.org>
53981
53982         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53983         gl_FUNC_FLOORL. Cache the result.
53984         (gl_FUNC_FLOORL): Use it.
53985         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53986         gl_FUNC_CEILL. Cache the result.
53987         (gl_FUNC_CEILL): Use it.
53988
53989         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53990         gl_FUNC_FLOOR. Cache the result.
53991         (gl_FUNC_FLOOR): Use it.
53992         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53993         gl_FUNC_CEIL. Cache the result.
53994         (gl_FUNC_CEIL): Use it.
53995
53996         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53997         gl_FUNC_FLOORF. Cache the result.
53998         (gl_FUNC_FLOORF): Use it.
53999         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54000         gl_FUNC_CEILF. Cache the result.
54001         (gl_FUNC_CEILF): Use it.
54002
54003 2007-10-28  Bruno Haible  <bruno@clisp.org>
54004
54005         * gnulib-tool: Allow specifying the LGPL version number through
54006         --lgpl=2 or --lgpl=3.
54007         (func_usage): Document --lgpl with argument.
54008         Handle --lgpl=... arguments.
54009         (func_import): Recognize also gl_LGPL calls with an argument. When
54010         --lgpl=2 is used and the module's license is just LGPL, report an
54011         error. Set sed_transform_lib_file according to the lgpl variable. In
54012         the generated files, use --lgpl or gl_LGPL invocations with argument,
54013         if necessary.
54014         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54015         an LGPv2+ license.
54016         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54017         gl_LGPL macro.
54018
54019 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54020             Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54023         (u16_uctomb_aux): Likewise.
54024         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54025         !HAVE_INLINE.
54026         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54027
54028 2007-10-28  Bruno Haible  <bruno@clisp.org>
54029
54030         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54031         Invoke AM_GETTEXT_OPTION if it exists.
54032         * modules/vasprintf: Likewise.
54033         * modules/verror: Likewise.
54034         * modules/xprintf: Likewise.
54035         * modules/xvasprintf: Likewise.
54036
54037 2007-10-27  Ben Pfaff  <blp@gnu.org>
54038
54039         * lib/math.in.h: Define isfinite macro and prototypes for
54040         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54041         implementations.
54042         * m4/math_h.m4: New substitutions for isfinite module.
54043         * lib/isfinite.c: New file.
54044         * m4/isfinite.m4: New file.
54045         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54046         * modules/isfinite: New file.
54047         * modules/isfinite-tests: New file.
54048         * tests/tests-isfinite.c: New file.
54049         * doc/functions/isfinite.texi: Mention isfinite module.
54050         * MODULES.html.sh: Mention new module.
54051
54052 2007-10-27  Ben Pfaff  <blp@gnu.org>
54053
54054         Ralf Wildenhues reported that Tru64 4.0D declares the round
54055         functions but does not have definitions.
54056         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54057         cannot be found in any library, set the output variable to
54058         "missing" instead of "".
54059         * m4/round.m4: Also use our substitute if we cannot find round in
54060         any library, even if it is declared.
54061         * m4/roundf.m4: Likewise for roundf.
54062         * m4/roundl.m4: Likewise for roundl.
54063         * lib/math.in.h: Undefine roundf, round, roundl before defining
54064         their replacements, to allow for hypothetical systems where these
54065         may be defined as macros but not available in libraries.
54066
54067 2007-10-27  Bruno Haible  <bruno@clisp.org>
54068
54069         * doc/gnulib.texi: Invoke @firstparagraphindent.
54070         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54071         changes in gnulib.
54072         (Source changes): New section.
54073
54074 2007-10-26  Bruno Haible  <bruno@clisp.org>
54075
54076         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54077         borrowed from autoconf.
54078
54079 2007-10-26  Bruno Haible  <bruno@clisp.org>
54080
54081         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54082         strerror returned the empty string. Needed on HP-UX 11.00.
54083
54084 2007-10-24  Micah Cowan  <micah@cowan.name>
54085
54086         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54087         * build-aux/bootstrap: Remove support for now-unnecessary option,
54088         --cvs-user, and envvars CVS_USER, CVS_RSH.
54089
54090 2007-10-24  Jim Meyering  <meyering@redhat.com>
54091
54092         Avoid diagnostics from sha1sum when there is no cached checksum.
54093         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54094         if the po.s1 file hasn't been created yet.
54095
54096         * build-aux/bootstrap: Sync from coreutils:
54097         2007-10-24  Jim Meyering  <meyering@redhat.com>
54098         Get gnulib from the git repository, not from an obsolete cvs one.
54099         * build-aux/bootstrap: Suggestion from Micah Cowan.
54100         2007-10-04  Jim Meyering  <jim@meyering.net>
54101         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54102         (update_po_files): Work also when there are no .po files in po/.
54103
54104 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * README: Append ".git" to git and cg examples.
54107         Problem reported by Benoit Sigoure.
54108
54109 2007-10-23  Micah Cowan  <micah@cowan.name>
54110
54111         * users.txt: Add wget.
54112
54113 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54114
54115         Fix linking of some unistdio tests on FreeBSD.
54116         * modules/unistdio/u16-vsnprintf-tests
54117         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54118         * modules/unistdio/u16-vsprintf-tests
54119         (test_u16_vsnprintf1_LDADD): Likewise.
54120         * modules/unistdio/u32-vsnprintf-tests
54121         (test_u32_vsnprintf1_LDADD): Likewise.
54122         * modules/unistdio/u32-vsprintf-tests
54123         (test_u32_vsprintf1_LDADD): Likewise.
54124         * modules/unistdio/u8-vsnprintf-tests
54125         (test_u8_vsnprintf1_LDADD): Likewise.
54126         * modules/unistdio/u8-vsprintf-tests
54127         (test_u8_vsprintf1_LDADD): Likewise.
54128         * modules/unistdio/ulc-vsnprintf-tests
54129         (test_ulc_vsnprintf1_LDADD): Likewise.
54130         * modules/unistdio/ulc-vsprintf-tests
54131         (test_ulc_vsprintf1_LDADD): Likewise.
54132
54133         Fix linking of some uniconv tests on FreeBSD.
54134         * modules/uniconv/u16-conv-from-enc-tests
54135         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54136         * modules/uniconv/u16-conv-to-enc-tests
54137         (test_u16_conv_to_enc_LDADD): Likewise.
54138         * modules/uniconv/u16-strconv-from-enc-tests
54139         (test_u16_strconv_from_enc_LDADD): Likewise.
54140         * modules/uniconv/u16-strconv-to-enc-tests
54141         (test_u16_strconv_to_enc_LDADD): Likewise.
54142         * modules/uniconv/u32-conv-from-enc-tests
54143         (test_u32_conv_from_enc_LDADD): Likewise.
54144         * modules/uniconv/u32-conv-to-enc-tests
54145         (test_u32_conv_to_enc_LDADD): Likewise.
54146         * modules/uniconv/u32-strconv-from-enc-tests
54147         (test_u32_strconv_from_enc_LDADD): Likewise.
54148         * modules/uniconv/u32-strconv-to-enc-tests
54149         (test_u32_strconv_to_enc_LDADD): Likewise.
54150         * modules/uniconv/u8-conv-from-enc-tests
54151         (test_u8_conv_from_enc_LDADD): Likewise.
54152         * modules/uniconv/u8-conv-to-enc-tests
54153         (test_u8_conv_to_enc_LDADD): Likewise.
54154         * modules/uniconv/u8-strconv-from-enc-tests
54155         (test_u8_strconv_from_enc_LDADD): Likewise.
54156         * modules/uniconv/u8-strconv-to-enc-tests
54157         (test_u8_strconv_to_enc_LDADD): Likewise.
54158
54159 2007-10-22  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54162         size.
54163
54164 2007-10-22  Eric Blake  <ebb9@byu.net>
54165
54166         Tweak x*printf documentation.
54167         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54168         variable name and comments.
54169         Suggested by Bruno Haible.
54170
54171 2007-10-22  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/acl.c (copy_acl): Fix file name in comment.
54174
54175 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         Fix Tru64 problem with stdbool.h.
54178         * lib/stdbool.in.h (false, true):
54179         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54180         Don't declare as an enum in this situation; it runs afoul of Tru64.
54181         Problem reported by Steven M. Schweda in
54182         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54183
54184 2007-10-22  Eric Blake  <ebb9@byu.net>
54185
54186         Also wrap vf?printf.
54187         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54188         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54189         (xvprintf, xvfprintf): New functions.
54190
54191 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54192
54193         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54194         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54195
54196         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54197         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54198
54199 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54200
54201         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54202         by Bruno Haible.
54203
54204 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54205
54206         * lib/getloadavg.c
54207         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54208         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54209
54210         * tests/test-i-ring.c: Work for C89.
54211
54212 2007-10-22  Bruno Haible  <bruno@clisp.org>
54213
54214         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54215         -1u, in preprocessor expression, so that we don't test for the bug
54216         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54218
54219 2007-10-22  Eric Blake  <ebb9@byu.net>
54220
54221         * tests/test-yesno.sh: Silence stderr during test.
54222
54223 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54224
54225         * modules/crypto/gc-camellia: New file.
54226
54227         * m4/gc-camellia.m4: New file.
54228
54229         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54230
54231         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54232
54233 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54234
54235         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54236         --help to stdout.  Reported by sms@antinode.org (Steven
54237         M. Schweda).
54238
54239 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54240
54241         * users.txt: Fix link to libksba.
54242
54243 2007-10-21  Ben Pfaff  <blp@gnu.org>
54244
54245         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54246         round.c roundf implementation that depends on floorf and ceilf to
54247         be tested unconditionally.
54248
54249 2007-10-21  Ben Pfaff  <blp@gnu.org>
54250
54251         * m4/check-libm-func.m4: Removed.
54252         * m4/check-math-lib.m4: New file.
54253         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54254         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54255         definition and lack of AC_LIBOBJ([roundf]).
54256         * m4/roundl.m4: Ditto, and similarly for roundl.
54257         * modules/round: Reference new m4 file.
54258         * modules/roundf: Ditto.
54259         * modules/roundl: Ditto.
54260         * tests/test-round2.c (main): Use ROUND instead of round.
54261         Bug report from Bruno Haible.
54262
54263 2007-10-21  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54266         context.
54267
54268 2007-10-21  Bruno Haible  <bruno@clisp.org>
54269
54270         * tests/test-wcwidth.c (main): Allow negative result for some control
54271         characters.
54272
54273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54274         Needed on OSF/1 5.1.
54275
54276 2007-10-21  Bruno Haible  <bruno@clisp.org>
54277
54278         * tests/test-floorf1.c: Include isnanf.h.
54279         (main): Use isnanf() instead of isnan().
54280         * tests/test-ceilf1.c: Include isnanf.h.
54281         (main): Use isnanf() instead of isnan().
54282         * tests/test-truncf1.c: Include isnanf.h.
54283         (main): Use isnanf() instead of isnan().
54284         * tests/test-roundf1.c: Include isnanf.h.
54285         (main): Use isnanf() instead of isnan().
54286
54287 2007-10-21  Eric Blake  <ebb9@byu.net>
54288
54289         * users.txt: Update URL for m4.
54290
54291 2007-10-21  Bruno Haible  <bruno@clisp.org>
54292
54293         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54294
54295 2007-10-21  Bruno Haible  <bruno@clisp.org>
54296
54297         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54298         Git's management files if the CVS files are not present.
54299
54300 2007-10-20  Bruno Haible  <bruno@clisp.org>
54301
54302         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54303         gcc-3.4.x.
54304
54305 2007-10-20  Ben Pfaff  <blp@gnu.org>
54306
54307         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54308         implementations.
54309         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54310         * lib/round.c: New file.
54311         * lib/roundf.c: New file.
54312         * lib/roundl.c: New file.
54313         * m4/round.m4: New file.
54314         * m4/roundf.m4: New file.
54315         * m4/roundl.m4: New file.
54316         * m4/check-libm-func-m4: New file.
54317         * modules/math: Replace round, roundf, roundl related @VARS@ in
54318         math.in.h.
54319         * modules/round: New file.
54320         * modules/round-tests: New file.
54321         * modules/roundf: New file.
54322         * modules/roundf-tests: New file.
54323         * modules/roundl: New file.
54324         * modules/roundl-tests: New file.
54325         * tests/test-round1.c: New file.
54326         * tests/test-round2.c: New file.
54327         * tests/test-roundf1.c: New file.
54328         * tests/test-roundf2.c: New file.
54329         * tests/test-roundl.c: New file.
54330         * doc/functions/round.texi: Mention round module.
54331         * doc/functions/roundf.texi: Mention roundf module.
54332         * doc/functions/roundl.texi: Mention roundl module.
54333         * MODULES.html.sh: Mention new modules.
54334         Thanks to Bruno Haible for suggestions.
54335
54336 2007-10-20  Jim Meyering  <meyering@redhat.com>
54337
54338         * lib/xprintf.c: Include <config.h> unconditionally.
54339
54340         Change xprintf's license to GPL.
54341         * modules/xprintf (License): s/LGPL/GPL/, since this module
54342         depends on modules (exit and exitfail) which are GPL.
54343         Suggestion from Bruno Haible.
54344
54345         xprintf fixes.
54346         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54347         Use a clearer diagnostic.
54348         Patch from Bruno Haible.
54349
54350 2007-10-20  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54353         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54354         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54355
54356 2007-10-20  Bruno Haible  <bruno@clisp.org>
54357
54358         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54359         precision in the comparison result > x - 1 or similar.
54360         * tests/test-ceilf2.c (correct_result_p): Likewise.
54361         * tests/test-truncf2.c (correct_result_p): Likewise.
54362         * tests/test-trunc2.c (correct_result_p): Likewise.
54363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54364
54365 2007-10-20  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/ceil: New file.
54368         * m4/ceil.m4: New file.
54369         * doc/functions/ceil.texi: Mention the 'ceil' module.
54370
54371 2007-10-20  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/floor: New file.
54374         * m4/floor.m4: New file.
54375         * doc/functions/floor.texi: Mention the 'floor' module.
54376
54377 2007-10-20  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54380         of %a.
54381         * modules/floorf-tests (Depends-on): Likewise.
54382         * modules/truncf-tests (Depends-on): Likewise.
54383         * modules/trunc-tests (Depends-on): Likewise.
54384         Reported by Ben Pfaff.
54385
54386 2007-10-19  Jim Meyering  <meyering@redhat.com>
54387
54388         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54389         Don't bother testing specific errno values.  Just test ferror.
54390
54391         New module: xprintf
54392         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54393
54394 2007-10-19  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54397         syntax.
54398         * modules/javaexec (Makefile.am): Likewise.
54399         * modules/relocatable-prog (Makefile.am): Likewise.
54400         Suggested by Jim Meyering.
54401
54402 2007-10-18  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54405         Reported by Jim Meyering.
54406
54407 2007-10-18  Eric Blake  <ebb9@byu.net>
54408
54409         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54410
54411 2007-10-18  Bruno Haible  <bruno@clisp.org>
54412
54413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54414         the format string into writable memory. Needed in Fortify conditions.
54415
54416 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54417             Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54420         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54421         * modules/trim (Depends-on): Add mbchar.
54422         (configure.ac): Add gl_FUNC_MBRTOWC.
54423         (Makefile.am): Augment lib_SOURCES.
54424
54425 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54426
54427         Modify glob.c to use fstatat and dirfd, to simplify it.
54428         Suggested by Eric Blake.
54429         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54430         Don't include <stdbool.h>; not used.
54431         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54432         (link_exists_p): Simplify implementation, since we can now assume
54433         dirfd and fstatat.
54434         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54435
54436 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54437
54438         * gnulib-tool (func_get_dependencies): Fix sed script to
54439         match only tests.
54440
54441 2007-10-17  Bruno Haible  <bruno@clisp.org>
54442
54443         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54444         allow locale names without encoding suffix.
54445         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54446         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54447
54448 2007-10-16  Bruno Haible  <bruno@clisp.org>
54449
54450         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54451         * lib/getgroups.c (getgroups): Likewise.
54452         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54453
54454 2007-10-16  Bruno Haible  <bruno@clisp.org>
54455
54456         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54457         * modules/malloc-posix (License): Likewise.
54458         * modules/realloc-posix (License): Likewise.
54459         * modules/calloc-posix (License): Likewise.
54460         * modules/intprops (License): Change from GPL to LGPL, with
54461         Paul Eggert's approval.
54462
54463 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         Merge glibc changes into lib/glob.c.
54466
54467         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54468         2007-10-15 04:59:03 UTC.  Here are the changes:
54469
54470         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54471
54472         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54473
54474         * lib/glob.c: Add some branch prediction throughout.
54475
54476         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54477
54478         [BZ #5103]
54479         * lib/glob.c (glob): Recognize patterns starting \/.
54480
54481         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54482
54483         [BZ #3996]
54484         * lib/glob.c (attribute_hidden): Define if not defined.
54485         (glob): Unescape dirname, filename or username when needed and not
54486         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54487         is NULL.  Handle unescaped [ in pattern without closing ].
54488         Don't pass GLOB_CHECK down to recursive glob for directories.
54489         (__glob_pattern_type): New function.
54490         (__glob_pattern_p): Implement using __glob_pattern_type.
54491         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54492         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54493         Remove unreachable code.
54494
54495         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54496
54497         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54498         explain why there are no leaks.
54499
54500         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54501
54502         [BZ #3253]
54503         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54504         time, rather allocate increasingly bigger arrays of pointers, if
54505         possible with alloca, if too large with malloc.
54506
54507 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54510         Problem reported by H.Merijn Brand in
54511         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54512         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54513         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54514
54515 2007-10-15  Bruno Haible  <bruno@clisp.org>
54516
54517         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54518         with explicit rpl_ prefix.
54519         * lib/fopen.c (fopen): Likewise.
54520         * lib/freopen.c (freopen): Likewise.
54521         * lib/iconv.c (iconv): Likewise.
54522         * lib/iconv_close.c (iconv_close): Likewise.
54523
54524 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54525
54526         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54527
54528 2007-10-15  Bruno Haible  <bruno@clisp.org>
54529
54530         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54531         <stddef.h> instead of <stdlib.h> since we only need NULL.
54532         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54533
54534 2007-10-15  Bruno Haible  <bruno@clisp.org>
54535
54536         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54537         Replace paragraph talking about LIBOBJS.
54538         Reported by Colin Watson <cjwatson@debian.org>.
54539
54540 2007-10-15  Bruno Haible  <bruno@clisp.org>
54541
54542         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54543         <stdlib.h> before using NULL.
54544
54545 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54546
54547         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54548         Reported by Albert Chin <china@thewrittenword.com>.
54549
54550 2007-10-14  Bruno Haible  <bruno@clisp.org>
54551
54552         * modules/iconv_open-utf-tests: New file.
54553         * tests/test-iconv-utf.c: New file.
54554
54555         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54556         * modules/iconv_open-utf: New file.
54557         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54558         (iconv, iconv_close): New declarations.
54559         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54560         be defined.
54561         (iconv_open): Add special handling of conversion between UTF-8 and
54562         UTF-{16,32}{BE,LE}.
54563         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54564         * lib/iconv_close.c: New file.
54565         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54566         gl_FUNC_ICONV_OPEN.
54567         (gl_FUNC_ICONV_OPEN): Use it.
54568         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54569         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54570         and REPLACE_ICONV_UTF.
54571         * modules/iconv_open (Depends-on): Add c-strcase.
54572         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54573         ICONV_CONST.
54574         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54575
54576 2007-10-13  Albert Chin  <china@thewrittenword.com>
54577             Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54580         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54581
54582 2007-10-13  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54585         defined, use the ISO C99 inline semantics.
54586         * lib/argp.h (ARGP_EI): Likewise.
54587
54588 2007-10-13  Bruno Haible  <bruno@clisp.org>
54589
54590         Handle 'inline' change in gcc 4.3.0.
54591         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54592         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54593         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54594         argp_fmtstream_point): Disable 'extern' declaration if the function
54595         definition is going to be provided inline.
54596         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54597         semantics, not the ISO C99 inline semantics.
54598         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54599         'extern' declaration if the function definition is going to be provided
54600         inline.
54601         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54602         the GNU C inline semantics, not the ISO C99 inline semantics. With
54603         GCC 4.2, avoid a warning.
54604
54605 2007-10-13  Bruno Haible  <bruno@clisp.org>
54606
54607         * lib/freading.h (freading): Enable the use of __freading for
54608         glibc >= 2.7.
54609         * lib/freading.c (freading): Likewise.
54610
54611 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54614         "warning: C99 inline functions are not supported; using GNU89".
54615
54616 2007-10-12  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54619         of 2.
54620         * tests/test-ceilf2.c: New file.
54621         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54622
54623         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54624         * modules/ceilf-tests: Update.
54625
54626 2007-10-12  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54629         of 2.
54630         * tests/test-floorf2.c: New file.
54631         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54632
54633         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54634         * modules/floorf-tests: Update.
54635
54636 2007-10-12  Bruno Haible  <bruno@clisp.org>
54637
54638         * tests/test-trunc2.c: New file.
54639         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54640
54641         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54642         * modules/trunc-tests: Update.
54643
54644 2007-10-12  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54647         of 2.
54648         * tests/test-truncf2.c: New file.
54649         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54650
54651         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54652         * modules/truncf-tests: Update.
54653
54654 2007-10-11  Eric Blake  <ebb9@byu.net>
54655
54656         Don't claim strerror is broken on Interix.
54657         * doc/functions/strerror.texi (strerror): Known broken systems are
54658         now Solaris 8, and not Interix.
54659         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54660         Interix on cross-compile.
54661         Reported by Martin Koeppe in
54662         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54663
54664 2007-10-11  Bruno Haible  <bruno@clisp.org>
54665
54666         * modules/i-ring-tests: New file.
54667         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54668         instead of assert.
54669
54670 2007-10-11  Bruno Haible  <bruno@clisp.org>
54671
54672         * modules/filenamecat-tests: New file.
54673         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54674         * lib/filenamecat.c: Remove test code.
54675
54676 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54677
54678         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54679
54680         * lib/strerror.c: Include <string.h> always, to test interface,
54681         and to remove the need for the dummy.
54682         Include intprops.h to compute width instead of doing it ourselves
54683         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54684         (strerror): Define it to return NULL if there's no system strerror.
54685         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54686         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54687         ancient pre-strerror Unix systems well any more.  Saying "unknown
54688         system error" is enough.
54689         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54690         simpler strerror.c implementation.
54691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54692         Simplify the tests to reflect the simpler strerror implementation.
54693         * modules/strerror (Depends-on): Add intprops.
54694
54695 2007-10-09  Eric Blake  <ebb9@byu.net>
54696
54697         Silence test-fpending.
54698         * modules/fpending-tests (Files): Add wrapper script.
54699         * tests/test-fpending.sh: New file.
54700
54701 2007-10-09  Bruno Haible  <bruno@clisp.org>
54702
54703         * MODULES.html.sh (func_module): Don't create a hyperlink for
54704         function names like 'printf_frexp'.
54705         (Misc): Add crc, memxor.
54706         (Characteristics of floating types): New section.
54707         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54708         isnanf-nolibm, signbit, trunc, truncf, truncl.
54709         (Enhancements for ISO C 99 functions): New subsection Input/output.
54710         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54711         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54712         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54713         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54714         (Enhancements for POSIX:2001 functions): Add chdir-long.
54715         (File system functions): Add areadlink, chdir-safer, read-file.
54716         Remove cycle-check.
54717         (File system as inode set): New section.
54718         (Date and time): Add gethrxtime.
54719         (Multithreading): Add openmp.
54720         (Internationalization functions): Add localename.
54721         (Unicode string functions): Add unistr/u*-mbsnlen.
54722         (Support for maintaining and releasing projects): Add git-version-gen.
54723         (Lone files): Remove directories.
54724
54725 2007-10-08  Ben Pfaff  <blp@gnu.org>
54726
54727         * lib/xmalloca.h: Fix typo in comment.
54728
54729 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54732         when avoiding problems with integer overflow.  Use a portable test
54733         instead.
54734
54735 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54736
54737         * modules/dummy (License): Change to LGPLv2+.
54738         * modules/float (License): Likewise
54739         * modules/realloc (License): Likewise
54740         * modules/stdlib (License): Likewise
54741
54742 2007-10-07  Bruno Haible  <bruno@clisp.org>
54743
54744         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54745         * floor.c (TWO_MANT_DIG): Likewise.
54746         * ceil.c (TWO_MANT_DIG): Likewise.
54747         Reported by Ben Pfaff.
54748
54749 2007-10-07  Bruno Haible  <bruno@clisp.org>
54750
54751         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54752         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54753         * lib/frexp.c (FUNC): Likewise.
54754         * lib/printf-frexp.h (printf_frexp): Likewise.
54755         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54756         * lib/printf-frexp.c (FUNC): Likewise.
54757         Suggested by Jim Meyering.
54758
54759 2007-10-07  Jim Meyering  <meyering@redhat.com>
54760
54761         Make xnanosleep's integer overflow test more robust.
54762         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54763         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54764
54765 2007-10-07  Bruno Haible  <bruno@clisp.org>
54766
54767         * NEWS: Mention the license change.
54768
54769         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54770         abbreviations in the modules files.
54771
54772         Change copyright notice from GPLv2+ to GPLv3+.
54773         * README: Change copyright notice.
54774         * MODULES.html.sh: Likewise.
54775         * build-aux/bootstrap.conf: Likewise.
54776         * build-aux/config.libpath: Likewise.
54777         * build-aux/csharpcomp.sh.in: Likewise.
54778         * build-aux/csharpexec.sh.in: Likewise.
54779         * build-aux/install-reloc: Likewise.
54780         * build-aux/javacomp.sh.in: Likewise.
54781         * build-aux/javaexec.sh.in: Likewise.
54782         * build-aux/ldd.sh.in: Likewise.
54783         * build-aux/reloc-ldflags: Likewise.
54784         * build-aux/relocatable.sh.in: Likewise.
54785         * build-aux/x-to-1.in: Likewise.
54786         * check-module: Likewise.
54787         * config/srclistvars.sh: Likewise.
54788         * gnulib-tool: Likewise.
54789         * lib/acl-internal.h: Likewise.
54790         * lib/acl.c: Likewise.
54791         * lib/acl.h: Likewise.
54792         * lib/acl_entries.c: Likewise.
54793         * lib/areadlink-with-size.c: Likewise.
54794         * lib/areadlink.c: Likewise.
54795         * lib/areadlink.h: Likewise.
54796         * lib/argmatch.c: Likewise.
54797         * lib/argmatch.h: Likewise.
54798         * lib/argp-ba.c: Likewise.
54799         * lib/argp-eexst.c: Likewise.
54800         * lib/argp-fmtstream.c: Likewise.
54801         * lib/argp-fmtstream.h: Likewise.
54802         * lib/argp-fs-xinl.c: Likewise.
54803         * lib/argp-help.c: Likewise.
54804         * lib/argp-namefrob.h: Likewise.
54805         * lib/argp-parse.c: Likewise.
54806         * lib/argp-pin.c: Likewise.
54807         * lib/argp-pv.c: Likewise.
54808         * lib/argp-pvh.c: Likewise.
54809         * lib/argp-xinl.c: Likewise.
54810         * lib/argp.h: Likewise.
54811         * lib/at-func.c: Likewise.
54812         * lib/atanl.c: Likewise.
54813         * lib/backupfile.c: Likewise.
54814         * lib/backupfile.h: Likewise.
54815         * lib/basename.c: Likewise.
54816         * lib/binary-io.h: Likewise.
54817         * lib/byteswap.in.h: Likewise.
54818         * lib/c-stack.c: Likewise.
54819         * lib/c-stack.h: Likewise.
54820         * lib/c-strcasestr.c: Likewise.
54821         * lib/c-strcasestr.h: Likewise.
54822         * lib/c-strstr.c: Likewise.
54823         * lib/c-strstr.h: Likewise.
54824         * lib/c-strtod.c: Likewise.
54825         * lib/calloc.c: Likewise.
54826         * lib/canon-host.c: Likewise.
54827         * lib/canon-host.h: Likewise.
54828         * lib/canonicalize-lgpl.c: Likewise.
54829         * lib/canonicalize.c: Likewise.
54830         * lib/canonicalize.h: Likewise.
54831         * lib/ceil.c: Likewise.
54832         * lib/ceilf.c: Likewise.
54833         * lib/ceill.c: Likewise.
54834         * lib/chdir-long.c: Likewise.
54835         * lib/chdir-long.h: Likewise.
54836         * lib/chdir-safer.c: Likewise.
54837         * lib/chdir-safer.h: Likewise.
54838         * lib/chown.c: Likewise.
54839         * lib/classpath.c: Likewise.
54840         * lib/classpath.h: Likewise.
54841         * lib/clean-temp.c: Likewise.
54842         * lib/clean-temp.h: Likewise.
54843         * lib/cloexec.c: Likewise.
54844         * lib/close-stream.c: Likewise.
54845         * lib/closein.c: Likewise.
54846         * lib/closein.h: Likewise.
54847         * lib/closeout.c: Likewise.
54848         * lib/closeout.h: Likewise.
54849         * lib/concat-filename.c: Likewise.
54850         * lib/copy-file.c: Likewise.
54851         * lib/copy-file.h: Likewise.
54852         * lib/count-one-bits.h: Likewise.
54853         * lib/crc.c: Likewise.
54854         * lib/crc.h: Likewise.
54855         * lib/creat-safer.c: Likewise.
54856         * lib/csharpcomp.c: Likewise.
54857         * lib/csharpcomp.h: Likewise.
54858         * lib/csharpexec.c: Likewise.
54859         * lib/csharpexec.h: Likewise.
54860         * lib/cycle-check.c: Likewise.
54861         * lib/cycle-check.h: Likewise.
54862         * lib/diacrit.c: Likewise.
54863         * lib/diacrit.h: Likewise.
54864         * lib/diffseq.h: Likewise.
54865         * lib/dirchownmod.c: Likewise.
54866         * lib/dirent.in.h: Likewise.
54867         * lib/dirfd.c: Likewise.
54868         * lib/dirfd.h: Likewise.
54869         * lib/dirname.c: Likewise.
54870         * lib/dirname.h: Likewise.
54871         * lib/dummy.c: Likewise.
54872         * lib/dup-safer.c: Likewise.
54873         * lib/dup2.c: Likewise.
54874         * lib/eealloc.h: Likewise.
54875         * lib/error.c: Likewise.
54876         * lib/error.h: Likewise.
54877         * lib/euidaccess.c: Likewise.
54878         * lib/exclude.c: Likewise.
54879         * lib/exclude.h: Likewise.
54880         * lib/execute.c: Likewise.
54881         * lib/execute.h: Likewise.
54882         * lib/exitfail.c: Likewise.
54883         * lib/exitfail.h: Likewise.
54884         * lib/expl.c: Likewise.
54885         * lib/fatal-signal.c: Likewise.
54886         * lib/fatal-signal.h: Likewise.
54887         * lib/fbufmode.c: Likewise.
54888         * lib/fbufmode.h: Likewise.
54889         * lib/fchdir.c: Likewise.
54890         * lib/fchmodat.c: Likewise.
54891         * lib/fchownat.c: Likewise.
54892         * lib/fcntl--.h: Likewise.
54893         * lib/fcntl-safer.h: Likewise.
54894         * lib/fcntl.in.h: Likewise.
54895         * lib/fd-safer.c: Likewise.
54896         * lib/fflush.c: Likewise.
54897         * lib/file-has-acl.c: Likewise.
54898         * lib/file-set.c: Likewise.
54899         * lib/file-type.c: Likewise.
54900         * lib/file-type.h: Likewise.
54901         * lib/fileblocks.c: Likewise.
54902         * lib/filemode.c: Likewise.
54903         * lib/filemode.h: Likewise.
54904         * lib/filename.h: Likewise.
54905         * lib/filenamecat.c: Likewise.
54906         * lib/filenamecat.h: Likewise.
54907         * lib/findprog.c: Likewise.
54908         * lib/findprog.h: Likewise.
54909         * lib/float.in.h: Likewise.
54910         * lib/floor.c: Likewise.
54911         * lib/floorf.c: Likewise.
54912         * lib/floorl.c: Likewise.
54913         * lib/fopen-safer.c: Likewise.
54914         * lib/fopen.c: Likewise.
54915         * lib/fpending.c: Likewise.
54916         * lib/fpending.h: Likewise.
54917         * lib/fprintf.c: Likewise.
54918         * lib/fprintftime.h: Likewise.
54919         * lib/fpucw.h: Likewise.
54920         * lib/fpurge.c: Likewise.
54921         * lib/fpurge.h: Likewise.
54922         * lib/freadable.c: Likewise.
54923         * lib/freadable.h: Likewise.
54924         * lib/freadahead.c: Likewise.
54925         * lib/freadahead.h: Likewise.
54926         * lib/freading.c: Likewise.
54927         * lib/freading.h: Likewise.
54928         * lib/free.c: Likewise.
54929         * lib/freopen.c: Likewise.
54930         * lib/frexp.c: Likewise.
54931         * lib/frexpl.c: Likewise.
54932         * lib/fseek.c: Likewise.
54933         * lib/fseterr.c: Likewise.
54934         * lib/fseterr.h: Likewise.
54935         * lib/fstatat.c: Likewise.
54936         * lib/fstrcmp.c: Likewise.
54937         * lib/fstrcmp.h: Likewise.
54938         * lib/fsusage.c: Likewise.
54939         * lib/fsusage.h: Likewise.
54940         * lib/ftell.c: Likewise.
54941         * lib/ftello.c: Likewise.
54942         * lib/fts-cycle.c: Likewise.
54943         * lib/fts.c: Likewise.
54944         * lib/fts_.h: Likewise.
54945         * lib/full-read.c: Likewise.
54946         * lib/full-read.h: Likewise.
54947         * lib/full-write.c: Likewise.
54948         * lib/full-write.h: Likewise.
54949         * lib/fwritable.c: Likewise.
54950         * lib/fwritable.h: Likewise.
54951         * lib/fwriteerror.c: Likewise.
54952         * lib/fwriteerror.h: Likewise.
54953         * lib/fwriting.c: Likewise.
54954         * lib/fwriting.h: Likewise.
54955         * lib/gcd.c: Likewise.
54956         * lib/gcd.h: Likewise.
54957         * lib/getcwd.c: Likewise.
54958         * lib/getdate.h: Likewise.
54959         * lib/getdate.y: Likewise.
54960         * lib/getdomainname.c: Likewise.
54961         * lib/getdomainname.h: Likewise.
54962         * lib/getgroups.c: Likewise.
54963         * lib/gethostname.c: Likewise.
54964         * lib/gethrxtime.c: Likewise.
54965         * lib/gethrxtime.h: Likewise.
54966         * lib/getloadavg.c: Likewise.
54967         * lib/getndelim2.c: Likewise.
54968         * lib/getndelim2.h: Likewise.
54969         * lib/getnline.c: Likewise.
54970         * lib/getnline.h: Likewise.
54971         * lib/getopt.c: Likewise.
54972         * lib/getopt.in.h: Likewise.
54973         * lib/getopt1.c: Likewise.
54974         * lib/getopt_int.h: Likewise.
54975         * lib/getpagesize.h: Likewise.
54976         * lib/getsubopt.c: Likewise.
54977         * lib/gettime.c: Likewise.
54978         * lib/getugroups.c: Likewise.
54979         * lib/getugroups.h: Likewise.
54980         * lib/getusershell.c: Likewise.
54981         * lib/gl_anyavltree_list1.h: Likewise.
54982         * lib/gl_anyavltree_list2.h: Likewise.
54983         * lib/gl_anyhash_list1.h: Likewise.
54984         * lib/gl_anyhash_list2.h: Likewise.
54985         * lib/gl_anylinked_list1.h: Likewise.
54986         * lib/gl_anylinked_list2.h: Likewise.
54987         * lib/gl_anyrbtree_list1.h: Likewise.
54988         * lib/gl_anyrbtree_list2.h: Likewise.
54989         * lib/gl_anytree_list1.h: Likewise.
54990         * lib/gl_anytree_list2.h: Likewise.
54991         * lib/gl_anytree_oset.h: Likewise.
54992         * lib/gl_anytreehash_list1.h: Likewise.
54993         * lib/gl_anytreehash_list2.h: Likewise.
54994         * lib/gl_array_list.c: Likewise.
54995         * lib/gl_array_list.h: Likewise.
54996         * lib/gl_array_oset.c: Likewise.
54997         * lib/gl_array_oset.h: Likewise.
54998         * lib/gl_avltree_list.c: Likewise.
54999         * lib/gl_avltree_list.h: Likewise.
55000         * lib/gl_avltree_oset.c: Likewise.
55001         * lib/gl_avltree_oset.h: Likewise.
55002         * lib/gl_avltreehash_list.c: Likewise.
55003         * lib/gl_avltreehash_list.h: Likewise.
55004         * lib/gl_carray_list.c: Likewise.
55005         * lib/gl_carray_list.h: Likewise.
55006         * lib/gl_linked_list.c: Likewise.
55007         * lib/gl_linked_list.h: Likewise.
55008         * lib/gl_linkedhash_list.c: Likewise.
55009         * lib/gl_linkedhash_list.h: Likewise.
55010         * lib/gl_list.c: Likewise.
55011         * lib/gl_list.h: Likewise.
55012         * lib/gl_oset.c: Likewise.
55013         * lib/gl_oset.h: Likewise.
55014         * lib/gl_rbtree_list.c: Likewise.
55015         * lib/gl_rbtree_list.h: Likewise.
55016         * lib/gl_rbtree_oset.c: Likewise.
55017         * lib/gl_rbtree_oset.h: Likewise.
55018         * lib/gl_rbtreehash_list.c: Likewise.
55019         * lib/gl_rbtreehash_list.h: Likewise.
55020         * lib/gl_sublist.c: Likewise.
55021         * lib/gl_sublist.h: Likewise.
55022         * lib/group-member.c: Likewise.
55023         * lib/group-member.h: Likewise.
55024         * lib/hard-locale.c: Likewise.
55025         * lib/hard-locale.h: Likewise.
55026         * lib/hash-pjw.c: Likewise.
55027         * lib/hash-pjw.h: Likewise.
55028         * lib/hash-triple.c: Likewise.
55029         * lib/hash.c: Likewise.
55030         * lib/hash.h: Likewise.
55031         * lib/human.c: Likewise.
55032         * lib/human.h: Likewise.
55033         * lib/i-ring.c: Likewise.
55034         * lib/i-ring.h: Likewise.
55035         * lib/idcache.c: Likewise.
55036         * lib/imaxabs.c: Likewise.
55037         * lib/imaxdiv.c: Likewise.
55038         * lib/inet_pton.c: Likewise.
55039         * lib/inet_pton.h: Likewise.
55040         * lib/intprops.h: Likewise.
55041         * lib/inttostr.c: Likewise.
55042         * lib/inttostr.h: Likewise.
55043         * lib/inttypes.in.h: Likewise.
55044         * lib/isapipe.c: Likewise.
55045         * lib/isdir.c: Likewise.
55046         * lib/isnan.c: Likewise.
55047         * lib/isnan.h: Likewise.
55048         * lib/isnanf.c: Likewise.
55049         * lib/isnanf.h: Likewise.
55050         * lib/isnanl-nolibm.h: Likewise.
55051         * lib/isnanl.c: Likewise.
55052         * lib/isnanl.h: Likewise.
55053         * lib/javacomp.c: Likewise.
55054         * lib/javacomp.h: Likewise.
55055         * lib/javaexec.c: Likewise.
55056         * lib/javaexec.h: Likewise.
55057         * lib/javaversion.c: Likewise.
55058         * lib/javaversion.h: Likewise.
55059         * lib/javaversion.java: Likewise.
55060         * lib/lbrkprop.h: Likewise.
55061         * lib/lchmod.h: Likewise.
55062         * lib/lchown.c: Likewise.
55063         * lib/ldexpl.c: Likewise.
55064         * lib/linebreak.c: Likewise.
55065         * lib/linebreak.h: Likewise.
55066         * lib/linebuffer.c: Likewise.
55067         * lib/linebuffer.h: Likewise.
55068         * lib/locale.in.h: Likewise.
55069         * lib/logl.c: Likewise.
55070         * lib/long-options.c: Likewise.
55071         * lib/long-options.h: Likewise.
55072         * lib/lstat.c: Likewise.
55073         * lib/lstat.h: Likewise.
55074         * lib/math.in.h: Likewise.
55075         * lib/mbchar.c: Likewise.
55076         * lib/mbchar.h: Likewise.
55077         * lib/mbfile.h: Likewise.
55078         * lib/mbiter.h: Likewise.
55079         * lib/mbscasecmp.c: Likewise.
55080         * lib/mbscasestr.c: Likewise.
55081         * lib/mbschr.c: Likewise.
55082         * lib/mbscspn.c: Likewise.
55083         * lib/mbslen.c: Likewise.
55084         * lib/mbsncasecmp.c: Likewise.
55085         * lib/mbsnlen.c: Likewise.
55086         * lib/mbspbrk.c: Likewise.
55087         * lib/mbspcasecmp.c: Likewise.
55088         * lib/mbsrchr.c: Likewise.
55089         * lib/mbssep.c: Likewise.
55090         * lib/mbsspn.c: Likewise.
55091         * lib/mbsstr.c: Likewise.
55092         * lib/mbstok_r.c: Likewise.
55093         * lib/mbswidth.c: Likewise.
55094         * lib/mbswidth.h: Likewise.
55095         * lib/mbuiter.h: Likewise.
55096         * lib/memcasecmp.c: Likewise.
55097         * lib/memcasecmp.h: Likewise.
55098         * lib/memchr.c: Likewise.
55099         * lib/memcmp.c: Likewise.
55100         * lib/memcoll.c: Likewise.
55101         * lib/memcoll.h: Likewise.
55102         * lib/memcpy.c: Likewise.
55103         * lib/memrchr.c: Likewise.
55104         * lib/mkancesdirs.c: Likewise.
55105         * lib/mkdir-p.c: Likewise.
55106         * lib/mkdir-p.h: Likewise.
55107         * lib/mkdir.c: Likewise.
55108         * lib/mkdirat.c: Likewise.
55109         * lib/mkdtemp.c: Likewise.
55110         * lib/mkstemp-safer.c: Likewise.
55111         * lib/mkstemp.c: Likewise.
55112         * lib/modechange.c: Likewise.
55113         * lib/modechange.h: Likewise.
55114         * lib/mountlist.c: Likewise.
55115         * lib/mountlist.h: Likewise.
55116         * lib/mpsort.c: Likewise.
55117         * lib/nanosleep.c: Likewise.
55118         * lib/obstack.c: Likewise.
55119         * lib/obstack.h: Likewise.
55120         * lib/open-safer.c: Likewise.
55121         * lib/open.c: Likewise.
55122         * lib/openat-die.c: Likewise.
55123         * lib/openat-priv.h: Likewise.
55124         * lib/openat-proc.c: Likewise.
55125         * lib/openat.c: Likewise.
55126         * lib/openat.h: Likewise.
55127         * lib/pagealign_alloc.c: Likewise.
55128         * lib/pagealign_alloc.h: Likewise.
55129         * lib/physmem.c: Likewise.
55130         * lib/physmem.h: Likewise.
55131         * lib/pipe-safer.c: Likewise.
55132         * lib/pipe.c: Likewise.
55133         * lib/pipe.h: Likewise.
55134         * lib/posixtm.c: Likewise.
55135         * lib/posixtm.h: Likewise.
55136         * lib/posixver.c: Likewise.
55137         * lib/printf-frexp.c: Likewise.
55138         * lib/printf-frexp.h: Likewise.
55139         * lib/printf-frexpl.c: Likewise.
55140         * lib/printf-frexpl.h: Likewise.
55141         * lib/printf.c: Likewise.
55142         * lib/progname.c: Likewise.
55143         * lib/progname.h: Likewise.
55144         * lib/progreloc.c: Likewise.
55145         * lib/putenv.c: Likewise.
55146         * lib/quote.c: Likewise.
55147         * lib/quote.h: Likewise.
55148         * lib/quotearg.c: Likewise.
55149         * lib/quotearg.h: Likewise.
55150         * lib/raise.c: Likewise.
55151         * lib/readline.c: Likewise.
55152         * lib/readline.h: Likewise.
55153         * lib/readlink.c: Likewise.
55154         * lib/readtokens.c: Likewise.
55155         * lib/readtokens.h: Likewise.
55156         * lib/readtokens0.c: Likewise.
55157         * lib/readtokens0.h: Likewise.
55158         * lib/readutmp.c: Likewise.
55159         * lib/readutmp.h: Likewise.
55160         * lib/realloc.c: Likewise.
55161         * lib/relocwrapper.c: Likewise.
55162         * lib/rename-dest-slash.c: Likewise.
55163         * lib/rename.c: Likewise.
55164         * lib/rmdir.c: Likewise.
55165         * lib/rpmatch.c: Likewise.
55166         * lib/safe-read.c: Likewise.
55167         * lib/safe-read.h: Likewise.
55168         * lib/safe-write.c: Likewise.
55169         * lib/safe-write.h: Likewise.
55170         * lib/same-inode.h: Likewise.
55171         * lib/same.c: Likewise.
55172         * lib/same.h: Likewise.
55173         * lib/save-cwd.c: Likewise.
55174         * lib/save-cwd.h: Likewise.
55175         * lib/savedir.c: Likewise.
55176         * lib/savedir.h: Likewise.
55177         * lib/savewd.c: Likewise.
55178         * lib/savewd.h: Likewise.
55179         * lib/search.in.h: Likewise.
55180         * lib/setenv.c: Likewise.
55181         * lib/setenv.h: Likewise.
55182         * lib/settime.c: Likewise.
55183         * lib/sh-quote.c: Likewise.
55184         * lib/sh-quote.h: Likewise.
55185         * lib/sig2str.c: Likewise.
55186         * lib/sig2str.h: Likewise.
55187         * lib/signal.in.h: Likewise.
55188         * lib/signbitd.c: Likewise.
55189         * lib/signbitf.c: Likewise.
55190         * lib/signbitl.c: Likewise.
55191         * lib/sigprocmask.c: Likewise.
55192         * lib/sincosl.c: Likewise.
55193         * lib/sleep.c: Likewise.
55194         * lib/sprintf.c: Likewise.
55195         * lib/sqrtl.c: Likewise.
55196         * lib/stat-time.h: Likewise.
55197         * lib/stdio--.h: Likewise.
55198         * lib/stdio-safer.h: Likewise.
55199         * lib/stdlib--.h: Likewise.
55200         * lib/stdlib-safer.h: Likewise.
55201         * lib/stdlib.in.h: Likewise.
55202         * lib/stpcpy.c: Likewise.
55203         * lib/stpncpy.c: Likewise.
55204         * lib/strchrnul.c: Likewise.
55205         * lib/strcspn.c: Likewise.
55206         * lib/strerror.c: Likewise.
55207         * lib/strftime.c: Likewise.
55208         * lib/strftime.h: Likewise.
55209         * lib/striconveh.c: Likewise.
55210         * lib/striconveh.h: Likewise.
55211         * lib/striconveha.c: Likewise.
55212         * lib/striconveha.h: Likewise.
55213         * lib/stripslash.c: Likewise.
55214         * lib/strnlen1.c: Likewise.
55215         * lib/strnlen1.h: Likewise.
55216         * lib/strtod.c: Likewise.
55217         * lib/strtoimax.c: Likewise.
55218         * lib/strtok_r.c: Likewise.
55219         * lib/strtol.c: Likewise.
55220         * lib/strtoll.c: Likewise.
55221         * lib/strtoul.c: Likewise.
55222         * lib/strtoull.c: Likewise.
55223         * lib/sysexits.in.h: Likewise.
55224         * lib/tempname.c: Likewise.
55225         * lib/tempname.h: Likewise.
55226         * lib/timespec.h: Likewise.
55227         * lib/tls.c: Likewise.
55228         * lib/tls.h: Likewise.
55229         * lib/tmpdir.c: Likewise.
55230         * lib/tmpdir.h: Likewise.
55231         * lib/tmpfile-safer.c: Likewise.
55232         * lib/tmpfile.c: Likewise.
55233         * lib/trigl.c: Likewise.
55234         * lib/trigl.h: Likewise.
55235         * lib/trim.c: Likewise.
55236         * lib/trim.h: Likewise.
55237         * lib/trunc.c: Likewise.
55238         * lib/truncf.c: Likewise.
55239         * lib/truncl.c: Likewise.
55240         * lib/tsearch.c: Likewise.
55241         * lib/unicodeio.c: Likewise.
55242         * lib/unicodeio.h: Likewise.
55243         * lib/unistd--.h: Likewise.
55244         * lib/unistd-safer.h: Likewise.
55245         * lib/unistdio/ulc-fprintf.c: Likewise.
55246         * lib/unistdio/ulc-vfprintf.c: Likewise.
55247         * lib/unlinkdir.c: Likewise.
55248         * lib/unlinkdir.h: Likewise.
55249         * lib/unlocked-io.h: Likewise.
55250         * lib/unsetenv.c: Likewise.
55251         * lib/userspec.c: Likewise.
55252         * lib/utime.c: Likewise.
55253         * lib/utimecmp.c: Likewise.
55254         * lib/utimecmp.h: Likewise.
55255         * lib/utimens.c: Likewise.
55256         * lib/verify.h: Likewise.
55257         * lib/verror.c: Likewise.
55258         * lib/verror.h: Likewise.
55259         * lib/version-etc-fsf.c: Likewise.
55260         * lib/version-etc.c: Likewise.
55261         * lib/version-etc.h: Likewise.
55262         * lib/vfprintf.c: Likewise.
55263         * lib/vprintf.c: Likewise.
55264         * lib/vsprintf.c: Likewise.
55265         * lib/w32spawn.h: Likewise.
55266         * lib/wait-process.c: Likewise.
55267         * lib/wait-process.h: Likewise.
55268         * lib/wcwidth.c: Likewise.
55269         * lib/write-any-file.c: Likewise.
55270         * lib/xalloc-die.c: Likewise.
55271         * lib/xalloc.h: Likewise.
55272         * lib/xasprintf.c: Likewise.
55273         * lib/xgetcwd.c: Likewise.
55274         * lib/xgetcwd.h: Likewise.
55275         * lib/xgetdomainname.c: Likewise.
55276         * lib/xgetdomainname.h: Likewise.
55277         * lib/xgethostname.c: Likewise.
55278         * lib/xmalloc.c: Likewise.
55279         * lib/xmalloca.c: Likewise.
55280         * lib/xmalloca.h: Likewise.
55281         * lib/xmemcoll.c: Likewise.
55282         * lib/xnanosleep.c: Likewise.
55283         * lib/xreadlink.c: Likewise.
55284         * lib/xreadlink.h: Likewise.
55285         * lib/xsetenv.c: Likewise.
55286         * lib/xsetenv.h: Likewise.
55287         * lib/xstriconv.c: Likewise.
55288         * lib/xstriconv.h: Likewise.
55289         * lib/xstrndup.c: Likewise.
55290         * lib/xstrndup.h: Likewise.
55291         * lib/xstrtod.c: Likewise.
55292         * lib/xstrtod.h: Likewise.
55293         * lib/xstrtol-error.c: Likewise.
55294         * lib/xstrtol.c: Likewise.
55295         * lib/xstrtol.h: Likewise.
55296         * lib/xtime.h: Likewise.
55297         * lib/xvasprintf.c: Likewise.
55298         * lib/xvasprintf.h: Likewise.
55299         * lib/yesno.c: Likewise.
55300         * lib/yesno.h: Likewise.
55301         * posix-modules: Likewise.
55302         * tests/test-alloca-opt.c: Likewise.
55303         * tests/test-arcfour.c: Likewise.
55304         * tests/test-arctwo.c: Likewise.
55305         * tests/test-argmatch.c: Likewise.
55306         * tests/test-argp-2.sh: Likewise.
55307         * tests/test-argp.c: Likewise.
55308         * tests/test-arpa_inet.c: Likewise.
55309         * tests/test-array_list.c: Likewise.
55310         * tests/test-array_oset.c: Likewise.
55311         * tests/test-atexit.c: Likewise.
55312         * tests/test-avltree_list.c: Likewise.
55313         * tests/test-avltree_oset.c: Likewise.
55314         * tests/test-avltreehash_list.c: Likewise.
55315         * tests/test-base64.c: Likewise.
55316         * tests/test-binary-io.c: Likewise.
55317         * tests/test-byteswap.c: Likewise.
55318         * tests/test-c-ctype.c: Likewise.
55319         * tests/test-c-strcasecmp.c: Likewise.
55320         * tests/test-c-strcasestr.c: Likewise.
55321         * tests/test-c-strncasecmp.c: Likewise.
55322         * tests/test-c-strstr.c: Likewise.
55323         * tests/test-canonicalize-lgpl.c: Likewise.
55324         * tests/test-canonicalize.c: Likewise.
55325         * tests/test-carray_list.c: Likewise.
55326         * tests/test-ceilf.c: Likewise.
55327         * tests/test-ceill.c: Likewise.
55328         * tests/test-count-one-bits.c: Likewise.
55329         * tests/test-crc.c: Likewise.
55330         * tests/test-dirname.c: Likewise.
55331         * tests/test-fbufmode.c: Likewise.
55332         * tests/test-fcntl.c: Likewise.
55333         * tests/test-fflush.c: Likewise.
55334         * tests/test-floorf.c: Likewise.
55335         * tests/test-floorl.c: Likewise.
55336         * tests/test-fopen.c: Likewise.
55337         * tests/test-fprintf-posix.c: Likewise.
55338         * tests/test-fprintf-posix.h: Likewise.
55339         * tests/test-fpurge.c: Likewise.
55340         * tests/test-freadable.c: Likewise.
55341         * tests/test-freadahead.c: Likewise.
55342         * tests/test-freading.c: Likewise.
55343         * tests/test-freopen.c: Likewise.
55344         * tests/test-frexp.c: Likewise.
55345         * tests/test-frexpl.c: Likewise.
55346         * tests/test-fseek.c: Likewise.
55347         * tests/test-fseeko.c: Likewise.
55348         * tests/test-fseterr.c: Likewise.
55349         * tests/test-fstrcmp.c: Likewise.
55350         * tests/test-ftell.c: Likewise.
55351         * tests/test-ftello.c: Likewise.
55352         * tests/test-fwritable.c: Likewise.
55353         * tests/test-fwriting.c: Likewise.
55354         * tests/test-getaddrinfo.c: Likewise.
55355         * tests/test-getpass.c: Likewise.
55356         * tests/test-gettimeofday.c: Likewise.
55357         * tests/test-hmac-md5.c: Likewise.
55358         * tests/test-hmac-sha1.c: Likewise.
55359         * tests/test-iconv.c: Likewise.
55360         * tests/test-iconvme.c: Likewise.
55361         * tests/test-inttypes.c: Likewise.
55362         * tests/test-isnan.c: Likewise.
55363         * tests/test-isnanf.c: Likewise.
55364         * tests/test-isnanl-nolibm.c: Likewise.
55365         * tests/test-isnanl.c: Likewise.
55366         * tests/test-isnanl.h: Likewise.
55367         * tests/test-ldexpl.c: Likewise.
55368         * tests/test-linked_list.c: Likewise.
55369         * tests/test-linkedhash_list.c: Likewise.
55370         * tests/test-locale.c: Likewise.
55371         * tests/test-localename.c: Likewise.
55372         * tests/test-lock.c: Likewise.
55373         * tests/test-lseek.c: Likewise.
55374         * tests/test-malloca.c: Likewise.
55375         * tests/test-math.c: Likewise.
55376         * tests/test-mbscasecmp.c: Likewise.
55377         * tests/test-mbscasestr1.c: Likewise.
55378         * tests/test-mbscasestr2.c: Likewise.
55379         * tests/test-mbscasestr3.c: Likewise.
55380         * tests/test-mbscasestr4.c: Likewise.
55381         * tests/test-mbschr.c: Likewise.
55382         * tests/test-mbscspn.c: Likewise.
55383         * tests/test-mbsncasecmp.c: Likewise.
55384         * tests/test-mbspbrk.c: Likewise.
55385         * tests/test-mbspcasecmp.c: Likewise.
55386         * tests/test-mbsrchr.c: Likewise.
55387         * tests/test-mbsspn.c: Likewise.
55388         * tests/test-mbsstr1.c: Likewise.
55389         * tests/test-mbsstr2.c: Likewise.
55390         * tests/test-mbsstr3.c: Likewise.
55391         * tests/test-md5.c: Likewise.
55392         * tests/test-memmem.c: Likewise.
55393         * tests/test-netinet_in.c: Likewise.
55394         * tests/test-open.c: Likewise.
55395         * tests/test-printf-frexp.c: Likewise.
55396         * tests/test-printf-frexpl.c: Likewise.
55397         * tests/test-printf-posix.c: Likewise.
55398         * tests/test-printf-posix.h: Likewise.
55399         * tests/test-rbtree_list.c: Likewise.
55400         * tests/test-rbtree_oset.c: Likewise.
55401         * tests/test-rbtreehash_list.c: Likewise.
55402         * tests/test-read-file.c: Likewise.
55403         * tests/test-rijndael.c: Likewise.
55404         * tests/test-search.c: Likewise.
55405         * tests/test-signbit.c: Likewise.
55406         * tests/test-sleep.c: Likewise.
55407         * tests/test-snprintf-posix.c: Likewise.
55408         * tests/test-snprintf-posix.h: Likewise.
55409         * tests/test-snprintf.c: Likewise.
55410         * tests/test-sprintf-posix.c: Likewise.
55411         * tests/test-sprintf-posix.h: Likewise.
55412         * tests/test-stat-time.c: Likewise.
55413         * tests/test-stdbool.c: Likewise.
55414         * tests/test-stdint.c: Likewise.
55415         * tests/test-stdio.c: Likewise.
55416         * tests/test-stdlib.c: Likewise.
55417         * tests/test-stpncpy.c: Likewise.
55418         * tests/test-strcasestr.c: Likewise.
55419         * tests/test-striconv.c: Likewise.
55420         * tests/test-striconveh.c: Likewise.
55421         * tests/test-striconveha.c: Likewise.
55422         * tests/test-string.c: Likewise.
55423         * tests/test-sys_select.c: Likewise.
55424         * tests/test-sys_socket.c: Likewise.
55425         * tests/test-sys_stat.c: Likewise.
55426         * tests/test-sys_time.c: Likewise.
55427         * tests/test-sysexits.c: Likewise.
55428         * tests/test-time.c: Likewise.
55429         * tests/test-tls.c: Likewise.
55430         * tests/test-trunc.c: Likewise.
55431         * tests/test-truncf.c: Likewise.
55432         * tests/test-truncl.c: Likewise.
55433         * tests/test-unistd.c: Likewise.
55434         * tests/test-vasnprintf-posix.c: Likewise.
55435         * tests/test-vasnprintf-posix2.c: Likewise.
55436         * tests/test-vasnprintf.c: Likewise.
55437         * tests/test-vasprintf-posix.c: Likewise.
55438         * tests/test-vasprintf.c: Likewise.
55439         * tests/test-verify.c: Likewise.
55440         * tests/test-vfprintf-posix.c: Likewise.
55441         * tests/test-vprintf-posix.c: Likewise.
55442         * tests/test-vsnprintf-posix.c: Likewise.
55443         * tests/test-vsnprintf.c: Likewise.
55444         * tests/test-vsprintf-posix.c: Likewise.
55445         * tests/test-wchar.c: Likewise.
55446         * tests/test-wctype.c: Likewise.
55447         * tests/test-wcwidth.c: Likewise.
55448         * tests/test-xstrtol.c: Likewise.
55449         * tests/test-xvasprintf.c: Likewise.
55450         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55451         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55452         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55453         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55454         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55455         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55456         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55457         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55458         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55459         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55460         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55461         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55462         * tests/uniname/test-uninames.c: Likewise.
55463         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55464         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55465         * tests/unistdio/test-u16-printf1.h: Likewise.
55466         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55467         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55468         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55469         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55470         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55471         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55472         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55473         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55474         * tests/unistdio/test-u32-printf1.h: Likewise.
55475         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55476         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55477         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55478         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55479         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55480         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55481         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55482         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55483         * tests/unistdio/test-u8-printf1.h: Likewise.
55484         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55485         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55486         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55487         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55488         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55489         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55490         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55491         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55492         * tests/unistdio/test-ulc-printf1.h: Likewise.
55493         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55494         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55495         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55496         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55497         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55498         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55499         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55500         * tests/uniwidth/test-u16-width.c: Likewise.
55501         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55502         * tests/uniwidth/test-u32-width.c: Likewise.
55503         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55504         * tests/uniwidth/test-u8-width.c: Likewise.
55505         * tests/uniwidth/test-uc_width.c: Likewise.
55506         * config/srclist-update: Likewise.
55507         (fixlicense): Update to GPLv3+.
55508
55509         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55510         * tests/test-tsearch.c: Change copyright notice.
55511
55512         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55513         * lib/c-strcaseeq.h: Change copyright notice.
55514         * lib/streq.h: Likewise.
55515         * lib/uniconv.h: Likewise.
55516         * lib/uniconv/u-conv-from-enc.h: Likewise.
55517         * lib/uniconv/u-conv-to-enc.h: Likewise.
55518         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55519         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55520         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55521         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55522         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55523         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55524         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55525         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55526         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55527         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55528         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55529         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55530         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55531         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55532         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55533         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55534         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55535         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55536         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55537         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55538         * lib/uniname.h: Likewise.
55539         * lib/uniname/uniname.c: Likewise.
55540         * lib/unistdio.h: Likewise.
55541         * lib/unistdio/u-asnprintf.h: Likewise.
55542         * lib/unistdio/u-asprintf.h: Likewise.
55543         * lib/unistdio/u-printf-args.c: Likewise.
55544         * lib/unistdio/u-printf-args.h: Likewise.
55545         * lib/unistdio/u-printf-parse.h: Likewise.
55546         * lib/unistdio/u-snprintf.h: Likewise.
55547         * lib/unistdio/u-sprintf.h: Likewise.
55548         * lib/unistdio/u-vasprintf.h: Likewise.
55549         * lib/unistdio/u-vsnprintf.h: Likewise.
55550         * lib/unistdio/u-vsprintf.h: Likewise.
55551         * lib/unistdio/u16-asnprintf.c: Likewise.
55552         * lib/unistdio/u16-asprintf.c: Likewise.
55553         * lib/unistdio/u16-printf-parse.c: Likewise.
55554         * lib/unistdio/u16-snprintf.c: Likewise.
55555         * lib/unistdio/u16-sprintf.c: Likewise.
55556         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55557         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55558         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55559         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55560         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55561         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55562         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55563         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55564         * lib/unistdio/u16-vasnprintf.c: Likewise.
55565         * lib/unistdio/u16-vasprintf.c: Likewise.
55566         * lib/unistdio/u16-vsnprintf.c: Likewise.
55567         * lib/unistdio/u16-vsprintf.c: Likewise.
55568         * lib/unistdio/u32-asnprintf.c: Likewise.
55569         * lib/unistdio/u32-asprintf.c: Likewise.
55570         * lib/unistdio/u32-printf-parse.c: Likewise.
55571         * lib/unistdio/u32-snprintf.c: Likewise.
55572         * lib/unistdio/u32-sprintf.c: Likewise.
55573         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55574         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55575         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55576         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55577         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55578         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55579         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55580         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55581         * lib/unistdio/u32-vasnprintf.c: Likewise.
55582         * lib/unistdio/u32-vasprintf.c: Likewise.
55583         * lib/unistdio/u32-vsnprintf.c: Likewise.
55584         * lib/unistdio/u32-vsprintf.c: Likewise.
55585         * lib/unistdio/u8-asnprintf.c: Likewise.
55586         * lib/unistdio/u8-asprintf.c: Likewise.
55587         * lib/unistdio/u8-printf-parse.c: Likewise.
55588         * lib/unistdio/u8-snprintf.c: Likewise.
55589         * lib/unistdio/u8-sprintf.c: Likewise.
55590         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55591         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55592         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55593         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55594         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55595         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55596         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55597         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55598         * lib/unistdio/u8-vasnprintf.c: Likewise.
55599         * lib/unistdio/u8-vasprintf.c: Likewise.
55600         * lib/unistdio/u8-vsnprintf.c: Likewise.
55601         * lib/unistdio/u8-vsprintf.c: Likewise.
55602         * lib/unistdio/ulc-asnprintf.c: Likewise.
55603         * lib/unistdio/ulc-asprintf.c: Likewise.
55604         * lib/unistdio/ulc-printf-parse.c: Likewise.
55605         * lib/unistdio/ulc-snprintf.c: Likewise.
55606         * lib/unistdio/ulc-sprintf.c: Likewise.
55607         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55608         * lib/unistdio/ulc-vasprintf.c: Likewise.
55609         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55610         * lib/unistdio/ulc-vsprintf.c: Likewise.
55611         * lib/unistr.h: Likewise.
55612         * lib/unistr/u-cpy-alloc.h: Likewise.
55613         * lib/unistr/u-cpy.h: Likewise.
55614         * lib/unistr/u-endswith.h: Likewise.
55615         * lib/unistr/u-move.h: Likewise.
55616         * lib/unistr/u-set.h: Likewise.
55617         * lib/unistr/u-startswith.h: Likewise.
55618         * lib/unistr/u-stpcpy.h: Likewise.
55619         * lib/unistr/u-stpncpy.h: Likewise.
55620         * lib/unistr/u-strcat.h: Likewise.
55621         * lib/unistr/u-strcpy.h: Likewise.
55622         * lib/unistr/u-strcspn.h: Likewise.
55623         * lib/unistr/u-strdup.h: Likewise.
55624         * lib/unistr/u-strlen.h: Likewise.
55625         * lib/unistr/u-strncat.h: Likewise.
55626         * lib/unistr/u-strncpy.h: Likewise.
55627         * lib/unistr/u-strnlen.h: Likewise.
55628         * lib/unistr/u-strpbrk.h: Likewise.
55629         * lib/unistr/u-strspn.h: Likewise.
55630         * lib/unistr/u-strstr.h: Likewise.
55631         * lib/unistr/u-strtok.h: Likewise.
55632         * lib/unistr/u16-check.c: Likewise.
55633         * lib/unistr/u16-chr.c: Likewise.
55634         * lib/unistr/u16-cmp.c: Likewise.
55635         * lib/unistr/u16-cpy-alloc.c: Likewise.
55636         * lib/unistr/u16-cpy.c: Likewise.
55637         * lib/unistr/u16-endswith.c: Likewise.
55638         * lib/unistr/u16-mblen.c: Likewise.
55639         * lib/unistr/u16-mbsnlen.c: Likewise.
55640         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55641         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55642         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55643         * lib/unistr/u16-mbtouc.c: Likewise.
55644         * lib/unistr/u16-mbtoucr.c: Likewise.
55645         * lib/unistr/u16-move.c: Likewise.
55646         * lib/unistr/u16-next.c: Likewise.
55647         * lib/unistr/u16-prev.c: Likewise.
55648         * lib/unistr/u16-set.c: Likewise.
55649         * lib/unistr/u16-startswith.c: Likewise.
55650         * lib/unistr/u16-stpcpy.c: Likewise.
55651         * lib/unistr/u16-stpncpy.c: Likewise.
55652         * lib/unistr/u16-strcat.c: Likewise.
55653         * lib/unistr/u16-strchr.c: Likewise.
55654         * lib/unistr/u16-strcmp.c: Likewise.
55655         * lib/unistr/u16-strcpy.c: Likewise.
55656         * lib/unistr/u16-strcspn.c: Likewise.
55657         * lib/unistr/u16-strdup.c: Likewise.
55658         * lib/unistr/u16-strlen.c: Likewise.
55659         * lib/unistr/u16-strmblen.c: Likewise.
55660         * lib/unistr/u16-strmbtouc.c: Likewise.
55661         * lib/unistr/u16-strncat.c: Likewise.
55662         * lib/unistr/u16-strncmp.c: Likewise.
55663         * lib/unistr/u16-strncpy.c: Likewise.
55664         * lib/unistr/u16-strnlen.c: Likewise.
55665         * lib/unistr/u16-strpbrk.c: Likewise.
55666         * lib/unistr/u16-strrchr.c: Likewise.
55667         * lib/unistr/u16-strspn.c: Likewise.
55668         * lib/unistr/u16-strstr.c: Likewise.
55669         * lib/unistr/u16-strtok.c: Likewise.
55670         * lib/unistr/u16-to-u32.c: Likewise.
55671         * lib/unistr/u16-to-u8.c: Likewise.
55672         * lib/unistr/u16-uctomb-aux.c: Likewise.
55673         * lib/unistr/u16-uctomb.c: Likewise.
55674         * lib/unistr/u32-check.c: Likewise.
55675         * lib/unistr/u32-chr.c: Likewise.
55676         * lib/unistr/u32-cmp.c: Likewise.
55677         * lib/unistr/u32-cpy-alloc.c: Likewise.
55678         * lib/unistr/u32-cpy.c: Likewise.
55679         * lib/unistr/u32-endswith.c: Likewise.
55680         * lib/unistr/u32-mblen.c: Likewise.
55681         * lib/unistr/u32-mbsnlen.c: Likewise.
55682         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55683         * lib/unistr/u32-mbtouc.c: Likewise.
55684         * lib/unistr/u32-mbtoucr.c: Likewise.
55685         * lib/unistr/u32-move.c: Likewise.
55686         * lib/unistr/u32-next.c: Likewise.
55687         * lib/unistr/u32-prev.c: Likewise.
55688         * lib/unistr/u32-set.c: Likewise.
55689         * lib/unistr/u32-startswith.c: Likewise.
55690         * lib/unistr/u32-stpcpy.c: Likewise.
55691         * lib/unistr/u32-stpncpy.c: Likewise.
55692         * lib/unistr/u32-strcat.c: Likewise.
55693         * lib/unistr/u32-strchr.c: Likewise.
55694         * lib/unistr/u32-strcmp.c: Likewise.
55695         * lib/unistr/u32-strcpy.c: Likewise.
55696         * lib/unistr/u32-strcspn.c: Likewise.
55697         * lib/unistr/u32-strdup.c: Likewise.
55698         * lib/unistr/u32-strlen.c: Likewise.
55699         * lib/unistr/u32-strmblen.c: Likewise.
55700         * lib/unistr/u32-strmbtouc.c: Likewise.
55701         * lib/unistr/u32-strncat.c: Likewise.
55702         * lib/unistr/u32-strncmp.c: Likewise.
55703         * lib/unistr/u32-strncpy.c: Likewise.
55704         * lib/unistr/u32-strnlen.c: Likewise.
55705         * lib/unistr/u32-strpbrk.c: Likewise.
55706         * lib/unistr/u32-strrchr.c: Likewise.
55707         * lib/unistr/u32-strspn.c: Likewise.
55708         * lib/unistr/u32-strstr.c: Likewise.
55709         * lib/unistr/u32-strtok.c: Likewise.
55710         * lib/unistr/u32-to-u16.c: Likewise.
55711         * lib/unistr/u32-to-u8.c: Likewise.
55712         * lib/unistr/u32-uctomb.c: Likewise.
55713         * lib/unistr/u8-check.c: Likewise.
55714         * lib/unistr/u8-chr.c: Likewise.
55715         * lib/unistr/u8-cmp.c: Likewise.
55716         * lib/unistr/u8-cpy-alloc.c: Likewise.
55717         * lib/unistr/u8-cpy.c: Likewise.
55718         * lib/unistr/u8-endswith.c: Likewise.
55719         * lib/unistr/u8-mblen.c: Likewise.
55720         * lib/unistr/u8-mbsnlen.c: Likewise.
55721         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55722         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55723         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55724         * lib/unistr/u8-mbtouc.c: Likewise.
55725         * lib/unistr/u8-mbtoucr.c: Likewise.
55726         * lib/unistr/u8-move.c: Likewise.
55727         * lib/unistr/u8-next.c: Likewise.
55728         * lib/unistr/u8-prev.c: Likewise.
55729         * lib/unistr/u8-set.c: Likewise.
55730         * lib/unistr/u8-startswith.c: Likewise.
55731         * lib/unistr/u8-stpcpy.c: Likewise.
55732         * lib/unistr/u8-stpncpy.c: Likewise.
55733         * lib/unistr/u8-strcat.c: Likewise.
55734         * lib/unistr/u8-strchr.c: Likewise.
55735         * lib/unistr/u8-strcmp.c: Likewise.
55736         * lib/unistr/u8-strcpy.c: Likewise.
55737         * lib/unistr/u8-strcspn.c: Likewise.
55738         * lib/unistr/u8-strdup.c: Likewise.
55739         * lib/unistr/u8-strlen.c: Likewise.
55740         * lib/unistr/u8-strmblen.c: Likewise.
55741         * lib/unistr/u8-strmbtouc.c: Likewise.
55742         * lib/unistr/u8-strncat.c: Likewise.
55743         * lib/unistr/u8-strncmp.c: Likewise.
55744         * lib/unistr/u8-strncpy.c: Likewise.
55745         * lib/unistr/u8-strnlen.c: Likewise.
55746         * lib/unistr/u8-strpbrk.c: Likewise.
55747         * lib/unistr/u8-strrchr.c: Likewise.
55748         * lib/unistr/u8-strspn.c: Likewise.
55749         * lib/unistr/u8-strstr.c: Likewise.
55750         * lib/unistr/u8-strtok.c: Likewise.
55751         * lib/unistr/u8-to-u16.c: Likewise.
55752         * lib/unistr/u8-to-u32.c: Likewise.
55753         * lib/unistr/u8-uctomb-aux.c: Likewise.
55754         * lib/unistr/u8-uctomb.c: Likewise.
55755         * lib/unitypes.h: Likewise.
55756         * lib/uniwidth.h: Likewise.
55757         * lib/uniwidth/cjk.h: Likewise.
55758         * lib/uniwidth/u16-strwidth.c: Likewise.
55759         * lib/uniwidth/u16-width.c: Likewise.
55760         * lib/uniwidth/u32-strwidth.c: Likewise.
55761         * lib/uniwidth/u32-width.c: Likewise.
55762         * lib/uniwidth/u8-strwidth.c: Likewise.
55763         * lib/uniwidth/u8-width.c: Likewise.
55764         * lib/uniwidth/width.c: Likewise.
55765
55766 2007-10-07  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55769         The file is still under LGPL (see modules/inttypes).
55770
55771 2007-10-06  Bruno Haible  <bruno@clisp.org>
55772
55773         * modules/trunc (Dependencies): Add 'extensions'.
55774         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55775         Reported by Ben Pfaff <blp@gnu.org>.
55776
55777 2007-10-06  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/freopen-tests: New file.
55780         * tests/test-freopen.c: New file.
55781
55782         * modules/fopen-tests: New file.
55783         * tests/test-fopen.c: New file.
55784
55785         * modules/fopen: New file.
55786         * lib/fopen.c: New file.
55787         * m4/fopen.m4: New file.
55788         * modules/freopen: New file.
55789         * lib/freopen.c: New file.
55790         * m4/freopen.m4: New file.
55791         * lib/stdio.in.h (fopen, freopen): New declarations.
55792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55793         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55794         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55795         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55796         * doc/functions/fopen.texi: Mention the 'fopen' module.
55797         * doc/functions/freopen.texi: Mention the 'freopen' module.
55798
55799 2007-10-06  Bruno Haible  <bruno@clisp.org>
55800
55801         * modules/open-tests: New file.
55802         * tests/test-open.c: New file.
55803
55804         * modules/open: New file.
55805         * lib/open.c: New file.
55806         * m4/open.m4: New file.
55807         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55808         lib/open.c does.
55809         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55810         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55811         macros.
55812         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55813         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55814         REPLACE_OPEN.
55815         * doc/functions/open.texi: Mention the 'open' module.
55816
55817 2007-10-04  Bruno Haible  <bruno@clisp.org>
55818
55819         * modules/ceill-tests: New file.
55820         * tests/test-ceill.c: New file.
55821
55822         * modules/ceill: New file.
55823         * lib/ceill.c: Replace entire file.
55824         * m4/ceill.m4: New file.
55825         * lib/math.in.h (ceill): Replace declaration.
55826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55827         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55828         * doc/functions/ceill.texi: Mention the 'ceill' module.
55829         * modules/mathl (Files): Remove lib/ceill.c.
55830         (Depends-on): Add ceill.
55831
55832 2007-10-04  Bruno Haible  <bruno@clisp.org>
55833
55834         * modules/ceilf-tests: New file.
55835         * tests/test-ceilf.c: New file.
55836
55837         * modules/ceilf: New file.
55838         * lib/ceil.c: New file.
55839         * lib/ceilf.c: New file.
55840         * m4/ceilf.m4: New file.
55841         * lib/math.in.h (ceilf): New declaration.
55842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55843         HAVE_DECL_CEILF.
55844         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55845         HAVE_DECL_CEILF.
55846         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55847
55848 2007-10-04  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/floorl-tests: New file.
55851         * tests/test-floorl.c: New file.
55852
55853         * modules/floorl: New file.
55854         * lib/floorl.c: Replace entire file.
55855         * m4/floorl.m4: New file.
55856         * lib/math.in.h (floorl): Replace declaration.
55857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55858         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55859         * doc/functions/floorl.texi: Mention the 'floorl' module.
55860         * modules/mathl (Files): Remove lib/floorl.c.
55861         (Depends-on): Add floorl.
55862
55863 2007-10-04  Bruno Haible  <bruno@clisp.org>
55864
55865         * modules/floorf-tests: New file.
55866         * tests/test-floorf.c: New file.
55867
55868         * modules/floorf: New file.
55869         * lib/floor.c: New file.
55870         * lib/floorf.c: New file.
55871         * m4/floorf.m4: New file.
55872         * lib/math.in.h (floorf): New declaration.
55873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55874         HAVE_DECL_FLOORF.
55875         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55876         HAVE_DECL_FLOORF.
55877         * doc/functions/floorf.texi: Mention the 'floorf' module.
55878
55879 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55880             Bruno Haible  <bruno@clisp.org>
55881
55882         Advertise for the Git server instead of the CVS server.
55883         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55884         repository instead of the CVS one.
55885         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55886         about all VCS systems generically.
55887         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55888
55889 2007-10-04  Bruno Haible  <bruno@clisp.org>
55890
55891         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55892         means.
55893         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55894
55895 2007-10-04  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/truncl-tests: New file.
55898         * tests/test-truncl.c: New file.
55899
55900         * modules/truncl: New file.
55901         * lib/truncl.c: New file.
55902         * m4/truncl.m4: New file.
55903         * lib/math.in.h (truncl): New declaration.
55904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55905         HAVE_DECL_TRUNCL.
55906         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55907         HAVE_DECL_TRUNCL.
55908         * doc/functions/truncl.texi: Mention the 'truncl' module.
55909
55910 2007-10-04  Bruno Haible  <bruno@clisp.org>
55911
55912         * modules/truncf-tests: New file.
55913         * tests/test-truncf.c: New file.
55914
55915         * modules/truncf: New file.
55916         * lib/trunc.c: Make paramerizable through USE_* macros.
55917         * lib/truncf.c: New file.
55918         * m4/truncf.m4: New file.
55919         * lib/math.in.h (truncf): New declaration.
55920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55921         HAVE_DECL_TRUNCF.
55922         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55923         HAVE_DECL_TRUNCF.
55924         * doc/functions/truncf.texi: Mention the 'truncf' module.
55925
55926 2007-10-03  Bruno Haible  <bruno@clisp.org>
55927
55928         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55929         augmentation also for tests modules.
55930         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55931         * modules/atexit-tests (Makefile.am): Likewise.
55932         * modules/binary-io-tests (Makefile.am): Likewise.
55933         * modules/c-strcase-tests (Makefile.am): Likewise.
55934         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55935         * modules/canonicalize-tests (Makefile.am): Likewise.
55936         * modules/closein-tests (Makefile.am): Likewise.
55937         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55938         * modules/freadahead-tests (Makefile.am): Likewise.
55939         * modules/fseek-tests (Makefile.am): Likewise.
55940         * modules/fseeko-tests (Makefile.am): Likewise.
55941         * modules/ftell-tests (Makefile.am): Likewise.
55942         * modules/ftello-tests (Makefile.am): Likewise.
55943         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55944         * modules/isnanl-tests (Makefile.am): Likewise.
55945         * modules/lseek-tests (Makefile.am): Likewise.
55946         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55947         * modules/mbscasestr-tests (Makefile.am): Likewise.
55948         * modules/mbschr-tests (Makefile.am): Likewise.
55949         * modules/mbscspn-tests (Makefile.am): Likewise.
55950         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55951         * modules/mbspbrk-tests (Makefile.am): Likewise.
55952         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55953         * modules/mbsrchr-tests (Makefile.am): Likewise.
55954         * modules/mbsspn-tests (Makefile.am): Likewise.
55955         * modules/mbsstr-tests (Makefile.am): Likewise.
55956         * modules/printf-posix-tests (Makefile.am): Likewise.
55957         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55958         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55959         * modules/tsearch-tests (Makefile.am): Likewise.
55960         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55961         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55962         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55963         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55964         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55965         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55966         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55967         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55968         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55969         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55970         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55971         * modules/xstrtol-tests (Makefile.am): Likewise.
55972         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55973         * modules/yesno-tests (Makefile.am): Likewise.
55974
55975 2007-10-03  Bruno Haible  <bruno@clisp.org>
55976
55977         * modules/trunc-tests: New file.
55978         * tests/test-trunc.c: New file.
55979
55980         * modules/trunc: New file.
55981         * lib/trunc.c: New file.
55982         * m4/trunc.m4: New file.
55983         * lib/math.in.h (trunc): New declaration.
55984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55985         HAVE_DECL_TRUNC.
55986         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55987         HAVE_DECL_TRUNC.
55988         * doc/functions/trunc.texi: Mention the 'trunc' module.
55989
55990 2007-10-03  Bruno Haible  <bruno@clisp.org>
55991
55992         * tests/test-fpending.c: New file, mostly copied
55993         from coreutils/lib/t-fpending.c.
55994         * modules/fpending-tests: New file.
55995
55996 2007-10-03  Bruno Haible  <bruno@clisp.org>
55997
55998         Port the stdio extensions to QNX (untested).
55999         * lib/fseterr.c (fseterr): Add support for QNX.
56000         * lib/fbufmode.c (fbufmode): Likewise.
56001         * lib/freadable.c (freadable): Likewise.
56002         * lib/fwritable.c (fwritable): Likewise.
56003         * lib/freading.c (freading): Likewise.
56004         * lib/fwriting.c (fwriting): Likewise.
56005         * lib/freadahead.c (freadahed): Likewise.
56006         * lib/fpurge.c (fpurge): Likewise.
56007         * lib/fseeko.c (rpl_fseeko): Likewise.
56008
56009 2007-10-03  Bruno Haible  <bruno@clisp.org>
56010             Jim Meyering  <jim@meyering.net>
56011             Eric Blake  <ebb9@byu.net>
56012
56013         * doc/relocatable.texi: Use @command instead of @program.
56014
56015 2007-10-02  Jim Meyering  <jim@meyering.net>
56016
56017         Perform one more "_.h" -> ".in.h" substitution.
56018         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56019         instead of unistd_.h here, too.
56020
56021 2007-10-01  Bruno Haible  <bruno@clisp.org>
56022
56023         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56024         Needed for the alloca-opt module.
56025
56026 2007-09-30  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56029         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56030         alloca_.h.
56031         * lib/argz.in.h: Renamed from lib/argz_.h.
56032         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56033         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56034         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56035         byteswap_.h.
56036         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56037         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56038         dirent_.h.
56039         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56040         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56041         fcntl_.h.
56042         * lib/float.in.h: Renamed from lib/float_.h.
56043         * modules/float (Files, Makefile.am): Use float.in.h instead of
56044         float_.h.
56045         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56046         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56047         fnmatch_.h.
56048         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56049         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56050         getopt_.h.
56051         * lib/glob.in.h: Renamed from lib/glob_.h.
56052         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56053         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56054         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56055         iconv_.h.
56056         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56057         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56058         inttypes_.h.
56059         * lib/locale.in.h: Renamed from lib/locale_.h.
56060         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56061         locale_.h.
56062         * lib/math.in.h: Renamed from lib/math_.h.
56063         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56064         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56065         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56066         of netinet_in_.h. Add dependency.
56067         * lib/poll.in.h: Renamed from lib/poll_.h.
56068         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56069         * lib/search.in.h: Renamed from lib/search_.h.
56070         * modules/search (Files, Makefile.am): Use search.in.h instead of
56071         search_.h.
56072         * lib/signal.in.h: Renamed from lib/signal_.h.
56073         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56074         _signal.h.
56075         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56076         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56077         stdbool_.h.
56078         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56079         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56080         stdint_.h.
56081         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56082         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56083         stdio_.h.
56084         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56085         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56086         stdlib_.h.
56087         * lib/string.in.h: Renamed from lib/string_.h.
56088         * modules/string (Files, Makefile.am): Use string.in.h instead of
56089         string_.h.
56090         * doc/gnulib-tool.texi (Initial import): Update.
56091         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56092         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56093         of sys_select_.h. Add dependency.
56094         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56095         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56096         of sys_socket_.h.
56097         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56098         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56099         sys_stat_.h.
56100         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56101         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56102         sys_time_.h.
56103         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56104         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56105         sysexits_.h.
56106         * lib/time.in.h: Renamed from lib/time_.h.
56107         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56108         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56109         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56110         unistd_.h.
56111         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56112         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56113         wchar_.h.
56114         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56115         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56116         wctype_.h.
56117         * build-aux/bootstrap (slurp): Update.
56118         * lib/.cppi-disable: Update.
56119
56120 2007-09-30  Bruno Haible  <bruno@clisp.org>
56121
56122         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56123         Needed on BeOS.
56124
56125 2007-09-30  Bruno Haible  <bruno@clisp.org>
56126
56127         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56128
56129 2007-09-29  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56132
56133 2007-09-29  Bruno Haible  <bruno@clisp.org>
56134
56135         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56136         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56137         * build-aux/install-reloc: Compile also areadlink.c.
56138         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56139
56140 2007-09-29  Bruno Haible  <bruno@clisp.org>
56141
56142         * gnulib-tool (func_emit_initmacro_done): Indentation.
56143
56144 2007-09-29  Bruno Haible  <bruno@clisp.org>
56145
56146         * README: Add CVS checkout update instructions.
56147         Info from Bob Proulx <bob@proulx.com>.
56148
56149 2007-09-28  Eric Blake  <ebb9@byu.net>
56150
56151         Provide move-if-change.
56152         * build-aux/move-if-change: New file, based on best practice
56153         rather than any canonical upstream location.
56154
56155 2007-09-28  Jim Meyering  <jim@meyering.net>
56156
56157         Fix canonicalize loop-detection corner case.
56158         Do not attempt to stat the symlink values stored via seen_triple.
56159         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56160         on linux-2.6.18, (but not 2.6.22).
56161         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56162         triple_compare.  The former compares dev,ino,filename, while the latter
56163         would actually stat dirname(filename) when dev and ino were equal.
56164         * lib/hash-triple.c: Install <string.h>.
56165         (STREQ): Define.
56166         (triple_compare_ino_str): New function.
56167         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56168
56169 2007-09-28  Eric Blake  <ebb9@byu.net>
56170
56171         Enforce that AC_REPLACE_FUNCS files exist.
56172         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56173         override check for typos.
56174
56175         Fix test-closein on Solaris 10.
56176         * tests/test-closein.c (main): Don't assume stdin can be inherited
56177         closed on all systems.
56178         * tests/test-closein.sh: Likewise.
56179         Reported by Piotr Tarnowski.
56180
56181 2007-09-28  Jim Meyering  <jim@meyering.net>
56182
56183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56184
56185 2007-09-27  Jim Meyering  <jim@meyering.net>
56186
56187         canonicalize: Avoid a false-positive cycle failure.
56188         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56189         Sort.  Remove cycle-check.
56190         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56191         not cycle-check.h.
56192         (seen_triple): New function.
56193         (canonicalize_filename_mode): Use it instead of cycle-check.
56194         * tests/test-canonicalize.c: Add a test for this bug.
56195         * tests/test-canonicalize.sh: Set up and run the test.
56196
56197         New module, file-set, from coreutils.
56198         * modules/file-set: Define it.
56199         * lib/file-set.c, lib/file-set.h: Implement.
56200
56201         New module, hash-triple, from coreutils.
56202         * modules/hash-triple: Define it.
56203         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56204
56205 2007-09-25  Eric Blake  <ebb9@byu.net>
56206
56207         Fix strerror on Interix.
56208         * lib/string_.h (strerror): Declare replacement.
56209         * doc/functions/strerror.texi (strerror): Document the Interix
56210         shortcoming.
56211         * modules/string (Makefile.am): Support new hooks.
56212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56213         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56214         gl_FUNC_STRERROR_SEPARATE.
56215         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56216         * lib/strerror.c (rpl_strerror): Provide replacement.
56217         * modules/strerror (Depends-on): Add string.
56218         (configure.ac): Detect use of module.
56219         * tests/test-strerror.c: New file.
56220         * modules/strerror-tests: New test module.
56221         * modules/argp (Depends-on): Add strerror.
56222         * modules/error (Depends-on): Likewise.
56223         Reported by Martin Koeppe.
56224
56225 2007-09-24  Bruno Haible  <bruno@clisp.org>
56226
56227         * README: Update git instructions.
56228
56229 2007-09-24  Eric Blake  <ebb9@byu.net>
56230
56231         Revert fpending breakage from 2007-09-08.
56232         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56233         __fpending.c.
56234
56235 2007-09-24  Jim Meyering  <jim@meyering.net>
56236
56237         filenamecat.c: Add a test.
56238         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56239         showing how the function works when DIR is the empty string.
56240
56241 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56242
56243         * tests/test-canonicalize.sh: Turn on executable bit.
56244
56245 2007-09-19  Eric Blake  <ebb9@byu.net>
56246
56247         * README: Update CVS instructions.
56248
56249 2007-09-18  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/areadlink: New file.
56252         * lib/areadlink.h (areadlink): New declaration.
56253         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56254
56255 2007-09-17  Jim Meyering  <jim@meyering.net>
56256
56257         * lib/savewd.c (ESTALE) [!defined]: Define.
56258         Reported to be required on Interix by Martin Koeppe.
56259
56260 2007-09-17  Bruno Haible  <bruno@clisp.org>
56261
56262         * gnulib-tool (func_version): Use $version.
56263
56264 2007-09-16  Bruno Haible  <bruno@clisp.org>
56265
56266         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56267         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56268         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56269         Reported by Greg Schafer <gschafer@zip.com.au>.
56270
56271 2007-09-15  Bruno Haible  <bruno@clisp.org>
56272
56273         * gnulib-tool (sed): Try a little harder to make bash understand the
56274         alias.
56275         Reported by Bruce Korb <bruce.korb@gmail.com>.
56276
56277 2007-09-13  Eric Blake  <ebb9@byu.net>
56278
56279         * ChangeLog: Remove conflict markers.
56280
56281 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56282
56283         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56284         Reported by Bruno Haible <bruno@clisp.org>.
56285
56286 2007-09-12  Bruno Haible  <bruno@clisp.org>
56287
56288         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56289         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56290         is not defined.
56291
56292 2007-09-12  Eric Blake  <ebb9@byu.net>
56293
56294         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56295         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56296         Autoconf definition.
56297         * modules/euidaccess (Depends-on): Add extensions, for
56298         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56299         * modules/fnmatch (Depends-on): Likewise.
56300         * modules/getaddrinfo (Depends-on): Likewise.
56301         * modules/getdelim (Depends-on): Likewise.
56302         * modules/getline (Depends-on): Likewise.
56303         * modules/getsubopt (Depends-on): Likewise.
56304         * modules/gettext (Depends-on): Likewise.
56305         * modules/group-member (Depends-on): Likewise.
56306         * modules/mbchar (Depends-on): Likewise.
56307         * modules/memmem (Depends-on): Likewise.
56308         * modules/mempcpy (Depends-on): Likewise.
56309         * modules/memrchr (Depends-on): Likewise.
56310         * modules/pagealign_alloc (Depends-on): Likewise.
56311         * modules/readutmp (Depends-on): Likewise.
56312         * modules/stpcpy (Depends-on): Likewise.
56313         * modules/stpncpy (Depends-on): Likewise.
56314         * modules/strchrnul (Depends-on): Likewise.
56315         * modules/strndup (Depends-on): Likewise.
56316         * modules/strsep (Depends-on): Likewise.
56317         * modules/strverscmp (Depends-on): Likewise.
56318         * modules/vasprintf (Depends-on): Likewise.
56319         * modules/wcwidth (Depends-on): Likewise.
56320         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56321         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56322         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56323         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56326         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56327         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56328         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56329         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56331         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56334         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56335         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56336         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56337         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56338         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56339         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56340         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56341         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56342         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56343         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56344         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56346         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56347         so that lock.m4 can be used in gettext without extensions module.
56348
56349 2007-09-11  Bruno Haible  <bruno@clisp.org>
56350
56351         * m4/isc-posix.m4: Remove file.
56352         Suggested by Eric Blake.
56353
56354 2007-09-11  Eric Blake  <ebb9@byu.net>
56355
56356         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56357
56358 2007-09-10  Bruno Haible  <bruno@clisp.org>
56359
56360         * posix-modules: Fix typo in error message.
56361         Reported by Matt <mkraai@beckman.com>.
56362
56363 2007-09-09  Bruno Haible  <bruno@clisp.org>
56364
56365         * doc/functions/getdelim.texi: Update list of platforms lacking the
56366         function.
56367         * doc/functions/getline.texi: Likewise.
56368
56369 2007-09-09  Jim Meyering  <jim@meyering.net>
56370
56371         * lib/hash.c (hash_initialize): Detect calloc failure.
56372         Reported by Bruno Haible.
56373
56374 2007-09-09  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56377         malloc or realloc fails.
56378
56379 2007-09-09  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/getcwd (Depends-on): Add malloc-posix.
56382         * modules/glob (Depends-on): Likewise.
56383         * modules/putenv (Depends-on): Likewise.
56384         * modules/strdup (Depends-on): Likewise.
56385         * modules/getdelim (Depends-on): Add realloc-posix.
56386         * modules/read-file (Depends-on): Likewise.
56387
56388 2007-09-09  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56391         (gl_FUNC_MALLOC_POSIX): Require it.
56392         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56393         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56394         * modules/realloc (Files): Add m4/malloc.m4.
56395         * modules/calloc (Files): Likewise.
56396
56397 2007-09-09  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/malloc-posix: New file.
56400         * modules/malloc (Depends-on): Add malloc-posix.
56401         * lib/malloc.c: Include errno.h.
56402         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56403         and a POSIX-compatible malloc into a single function. Set ENOMEM
56404         when returning NULL.
56405         * m4/malloc.m4: New file.
56406         * doc/functions/malloc.texi: Mention the malloc-posix module.
56407         * lib/stdlib_.h (malloc): New declaration.
56408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56409         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56410         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56411         and HAVE_MALLOC_POSIX.
56412
56413 2007-09-09  Bruno Haible  <bruno@clisp.org>
56414
56415         * modules/realloc-posix: New file.
56416         * modules/realloc (Depends-on): Add realloc-posix.
56417         * lib/realloc.c: Include errno.h.
56418         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56419         and a POSIX-compatible realloc into a single function. Set ENOMEM
56420         when returning NULL.
56421         * m4/realloc.m4: New file.
56422         * doc/functions/realloc.texi: Mention the realloc-posix module.
56423         * lib/stdlib_.h (realloc): New declaration.
56424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56425         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56426         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56427         and HAVE_REALLOC_POSIX.
56428
56429 2007-09-09  Bruno Haible  <bruno@clisp.org>
56430
56431         * modules/calloc-posix: New file.
56432         * modules/calloc (Depends-on): Add calloc-posix.
56433         * lib/calloc.c: Include errno.h.
56434         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56435         and a POSIX-compatible calloc into a single function. Set ENOMEM
56436         when returning NULL.
56437         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56438         * doc/functions/calloc.texi: Mention the calloc-posix module.
56439         * lib/stdlib_.h (calloc): New declaration.
56440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56441         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56442         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56443         and HAVE_CALLOC_POSIX.
56444
56445 2007-09-09  Bruno Haible  <bruno@clisp.org>
56446
56447         Allow for modules to show an arbitrary notice.
56448         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56449         * gnulib-tool: New option --extract-notice.
56450         (func_usage): Document it.
56451         (sed_extract_prog): Update.
56452         (func_get_notice): New function.
56453         (func_modules_notice): New function.
56454         (func_import, func_create_testdir): Invoke it.
56455         Suggested by Jim Meyering.
56456
56457 2007-09-09  Bruno Haible  <bruno@clisp.org>
56458
56459         * gnulib-tool: New options --verbose, --quiet.
56460         (func_usage): Document them.
56461         (verbose): New variable.
56462         (func_execute_command): New function.
56463         (func_import): Don't show the module list and the file list if
56464         $verbose < 0.
56465         (func_create_testdir): Likewise. Use func_execute_command.
56466         (func_create_megatestdir): Use func_execute_command.
56467
56468 2007-09-08  Bruno Haible  <bruno@clisp.org>
56469
56470         * gnulib-tool (func_import): Prefer rsync over wget when available,
56471         for fetching the PO files.
56472
56473 2007-09-08  Bruno Haible  <bruno@clisp.org>
56474
56475         * posix-modules: New file. Portions copied from gnulib-tool.
56476         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56477
56478 2007-09-08  Jim Meyering  <jim@meyering.net>
56479
56480         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56481         * lib/fpending.h: Rename from __fpending.h.
56482         * lib/fpending.c: Rename from __fpending.c.
56483         Include "fpending.h", not "__fpending.h".
56484         * lib/__fpending.h, lib/__fpending.c: Remove files.
56485         * modules/fpending (Files): Reflect new file names.
56486         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56487
56488 2007-09-08  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/inttypes-h.m4: Remove stub file.
56491
56492 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56493
56494         * doc/headers/stdint.texi: Discuss #include_next issue.
56495
56496 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56499
56500 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56501
56502         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56503         in variable name.
56504
56505 2007-09-03  Jim Meyering  <jim@meyering.net>
56506
56507         New module: git-version-gen.
56508         * modules/git-version-gen: New file.
56509
56510         Import changes from coreutils for bootstrap script.
56511
56512         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56513
56514         bootstrap: uses rsync to download the .po files
56515         * build-aux/bootstrap (po_download_command_format): New global.
56516         (download_po_files): Use rsync.
56517         (update_po_files): Don't remove .po files after download,
56518         so future rsync runs can take advantage of the copies.
56519
56520         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56521
56522         Solve the unnecessary-.po-file-regeneration problem once and for all.
56523         * build-aux/bootstrap (download_po_files): New function, renamed from
56524         get_translations.  Now, downloads, but doesn't update LINGUAS.
56525         (update_po_files): New function.
56526
56527         bootstrap: Ignore more.
56528         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56529         uniwidth to e.g., lib/.gitignore.
56530         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56531
56532         * build-aux/bootstrap: New setting: vc_ignore.
56533         (insert_sorted_if_absent): Create $file if absent.
56534         Adapt to new, possibly empty, list: $vc_ignore.
56535
56536         bootstrap: generate more ignorable names
56537         * build-aux/bootstrap (slurp): When generating ignorable names,
56538         also map .sin to .sed, .gperf to .c, and .y to .c.
56539
56540 2007-09-03  Jim Meyering  <jim@meyering.net>
56541
56542         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56543         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56544
56545 2007-09-02  Bruno Haible  <bruno@clisp.org>
56546
56547         Fix mis-recognition of 'mcs' on QNX 6.
56548         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56549         output contains the string "Mono".
56550         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56551         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56552
56553 2007-09-01  Bruno Haible  <bruno@clisp.org>
56554
56555         Fix collision between uniwidth/* and linebreak modules.
56556         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56557         u32_width): Remove declarations.
56558         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56559         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56560         streq3, streq2, streq1, streq0): Remove functions.
56561         (STREQ): Remove macro.
56562         (is_cjk_encoding): Remove function.
56563         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56564         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56565         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56566         * NEWS: Document the change.
56567
56568 2007-09-01  Bruno Haible  <bruno@clisp.org>
56569
56570         * lib/streq.h: Add double-inclusion guard.
56571
56572 2007-09-01  Karl Berry  <karl@gnu.org>
56573
56574         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56575
56576 2007-08-28  Jim Meyering  <jim@meyering.net>
56577
56578         Rename mreadlink_with_size to areadlink_with_size.
56579         * NEWS: Document the change.
56580         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56581         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56582         * lib/mreadlink.h: Rename this to...
56583         * lib/areadlink.h: ...this.
56584         * modules/mreadlink-with-size: Rename this to...
56585         * modules/areadlink-with-size: ...this.
56586         * lib/canonicalize.c: Reflect the renaming.
56587         * modules/canonicalize: Likewise.
56588
56589 2007-08-26  Bruno Haible  <bruno@clisp.org>
56590
56591         * gnulib-tool (func_import): When deciding which files to remove,
56592         consider also dangling symbolic links.
56593         Reported by Eric Blake.
56594
56595 2007-08-26  Bruno Haible  <bruno@clisp.org>
56596
56597         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56598
56599 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56600
56601         * lib/readline.c: Don't include getline.h, the prototype is now
56602         found in stdio.h.
56603
56604 2007-08-23  Jim Meyering  <jim@meyering.net>
56605
56606         Getdelim touchup.
56607         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56608         around the funlockfile call, since funlockfile never sets errno.
56609         Don't set errno upon failed realloc.
56610
56611 2007-08-22  Eric Blake  <ebb9@byu.net>
56612
56613         Getline touchups.
56614         * lib/getdelim.c (getdelim): Revert regression that required *n to
56615         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56616         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56617         getdelim, rather than whether implementation is missing.
56618         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56619         * lib/stdio_.h (getline): Also declare if replacement is
56620         required.
56621         * doc/functions/getdelim.texi: New file.
56622         * doc/functions/getline.texi: Likewise.
56623         * doc/gnulib.texi (Function Substitutes): Add new files.
56624         Reported by Bruno Haible.
56625
56626 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56627
56628         * users.txt: Add Guile.
56629
56630 2007-08-22  Eric Blake  <ebb9@byu.net>
56631
56632         * tests/test-getdelim.c (main): Use remove, not unlink.
56633         * tests/test-getline.c (main): Likewise.
56634
56635         Move getline and getdelim into stdio.h, per POSIX 200x.
56636         * modules/getline (Files): Remove getline.h.
56637         (Depends-on): Add stdio.
56638         (configure.ac): Add module indicator.
56639         * modules/getdelim (Files): Remove getdelim.h.
56640         (Depends-on): Add stdio.
56641         (configure.ac): Add module indicator.
56642         * modules/stdio (Makefile.am): Work with new indicators.
56643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56644         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56645         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56646         * lib/getdelim.h: Delete.
56647         * lib/getline.h: Delete.
56648         * lib/stdio_.h (getdelim, getline): Declare.
56649         * modules/getdelim-tests: New module.
56650         * modules/getline-tests: Likewise.
56651         * tests/test-getdelim.c: New file.
56652         * tests/test-getline.c: Likewise.
56653         * NEWS: Document the change.
56654         * lib/getline.c: Update choice of header.
56655         * lib/csharpcomp.c: Likewise.
56656         * lib/getpass.c: Likewise.
56657         * lib/javacomp.c: Likewise.
56658         * lib/javaversion.c: Likewise.
56659         * lib/yesno.c: Likewise.
56660         * lib/getdelim.c: Likewise.
56661         (getdelim): Set errno on failure, and avoid memory leak.
56662
56663 2007-08-19  Bruno Haible  <bruno@clisp.org>
56664
56665         * modules/closein (Depends-on): Add freadahead.
56666         * lib/closein.c: Include freadahead.h.
56667         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56668         is zero.
56669
56670 2007-08-19  Bruno Haible  <bruno@clisp.org>
56671
56672         * modules/freadahead-tests: New file.
56673         * tests/test-freadahead.sh: New file.
56674         * tests/test-freadahead.c: New file.
56675
56676         * modules/freadahead: New file.
56677         * lib/freadahead.h: New file.
56678         * lib/freadahead.c: New file.
56679         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56680         fbufmode, fpurge, freadable, fwritable.
56681
56682 2007-08-19  Eric Blake  <ebb9@byu.net>
56683
56684         Test yesno in combination with closein.
56685         * lib/yesno.c (yesno): Document use of stdin.
56686         * modules/yesno-tests (Files): New module.
56687         * tests/test-yesno.c (main): New file.
56688         * tests/test-yesno.sh: Likewise.
56689
56690 2007-08-19  Bruno Haible  <bruno@clisp.org>
56691
56692         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56693         * lib/fseeko.c (rpl_fseeko): Likewise.
56694         * lib/fseterr.c (fseterr): Likewise.
56695
56696 2007-08-19  Bruno Haible  <bruno@clisp.org>
56697
56698         * tests/test-lseek.c (main): Disable a test for BeOS.
56699         * doc/functions/lseek.texi: Document the BeOS bug.
56700
56701 2007-08-19  Bruno Haible  <bruno@clisp.org>
56702             Eric Blake  <ebb9@byu.net>
56703
56704         * lib/lseek.c: Include <sys/stat.h>.
56705         (rpl_lseek): Add workaround code also for Unix platforms.
56706         Needed for BeOS.
56707         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56708         * doc/functions/lseek.texi: Document BeOS definiency.
56709
56710 2007-08-18  Bruno Haible  <bruno@clisp.org>
56711
56712         * modules/fstrcmp-tests: New file.
56713         * tests/test-fstrcmp.c: New file.
56714
56715 2007-08-18  Bruno Haible  <bruno@clisp.org>
56716
56717         * modules/fstrcmp: New file, from GNU gettext with modifications.
56718         * lib/fstrcmp.h: New file, from GNU gettext.
56719         * lib/fstrcmp.c: New file, from GNU gettext.
56720         * MODULES.html.sh (String handling): Add fstrcmp.
56721
56722 2007-08-18  Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56725         'bool'.
56726         (diag, compareseq): Remove const from the ctxt argument.
56727         (USE_HEURISTIC): Undefine at the end.
56728
56729 2007-08-18  Jim Meyering  <jim@meyering.net>
56730
56731         New file: lib/idcache.h
56732         * NEWS: Mention the addition.
56733         * modules/idcache (Files): Add lib/idcache.h
56734         * lib/idcache.c: Include "idcache.h".
56735         Don't include <sys/types.h>.
56736         Add a FIXME comment.
56737         Move file-scoped "static" declarations to the top.
56738         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56739
56740 2007-08-17  Bruno Haible  <bruno@clisp.org>
56741         and Paul Eggert  <eggert@cs.ucla.edu>
56742
56743         * MODULES.html.sh: Add diffseq.
56744         * modules/diffseq: New file.
56745         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56746         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56747
56748 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56749
56750         Import changes from coreutils for bootstrap script.
56751
56752         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         * build-aux/bootstrap (slurp): Work even in environments where
56755         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56756         current code does not slurp files whose names start with ".", and
56757         this looks like it might be a troublesome area.
56758
56759         2007-07-11  Jim Meyering  <jim@meyering.net>
56760
56761         If there's a GPL vN copyright comment, require that N == 3.
56762
56763         2007-07-08  Jim Meyering  <jim@meyering.net>
56764
56765         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56766         * build-aux/bootstrap (mam_template): Move definition out of loop.
56767
56768         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56769
56770         * build-aux/bootstrap (symlink_to_dir): Rename function from
56771         symlink_to_gnulib.  Add a directory parameter.  Update all
56772         callers.
56773         (cp_mark_as_generated): Also check for -- and link to -- files in
56774         gl/.
56775
56776         2007-07-08  Jim Meyering  <jim@meyering.net>
56777
56778         Adapt to deeper hierarchy in gnulib.
56779         * build-aux/bootstrap (symlink_to_dir): If the destination
56780         directory doesn't exist, create it. This is required at least for
56781         "lib/uniwidth/cjk.h".
56782
56783         2007-05-15  Jim Meyering  <jim@meyering.net>
56784
56785         * build-aux/bootstrap: Now that generated Makefile.am files
56786         are no longer under version control, they must be created at
56787         bootstrap time.
56788
56789 2007-08-14  Ben Pfaff  <blp@gnu.org>
56790
56791         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56792
56793 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56794
56795         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56796         given the changes below.
56797         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56798         even on hosts that have padding bits beyond the supported 64.
56799
56800 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56803         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56804         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56805         depends on it.
56806         (xstrtol_error): Remove.
56807         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56808         but with a different signature.
56809         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56810         * lib/xstrtol-error.c: Include exitfail.h.
56811         (xstrtol_fatal): New function, with a different signature from the
56812         old xstrtol_error, so that the caller need not worry about passing
56813         in an exit status, or about storage management of the option argument.
56814         (xstrtol_error): Now a static function.  Redo signature to
56815         implement xstrtol_fatal.  Output the correct number of hyphens in
56816         front of the option so that the caller need not worry about
56817         storage management.
56818         (N_): New macro.
56819         (_): Remove; not used now.
56820         * modules/xstrtol: Depend on getopt.
56821         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56822         of old STRTOL_FATAL_ERROR macro.
56823         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56824         of test program.
56825         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56826         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56827
56828 2007-08-08  Eric Blake  <ebb9@byu.net>
56829
56830         * lib/xstrtol-error.c: Add missing include.
56831
56832         Move xstrtol messages into gnulib domain, when --pobase is used.
56833         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56834         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56835         * modules/xstrtol (Files): Distribute new file.
56836         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56837         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56838         * tests/test-xstrtol.c: ...into new file.
56839         * tests/test-xstrtoul.c: Also test xstrtoul.
56840         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56841         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56842         * tests/test-xstrtol.sh: Drive the tests.
56843         * tests/test-xstrtoimax.sh: Likewise.
56844         * tests/test-xstrtoumax.sh: Likewise.
56845         * modules/xstrtol-tests: New module.
56846         * modules/xstrtoimax-tests: Likewise.
56847         * modules/xstrtoumax-tests: Likewise.
56848
56849 2007-08-08  Jim Meyering  <jim@meyering.net>
56850
56851         New function: mfile_name_concat.
56852         * lib/filenamecat.c (mfile_name_concat): New function, just like
56853         file_name_concat, but return NULL upon failure rather than exiting
56854         with a diagnostic.
56855         * lib/filenamecat.h: Declare it.
56856
56857 2007-08-07  Bruno Haible  <bruno@clisp.org>
56858
56859         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56860         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56861         warning from gcc.
56862         Reported by Eric Blake.
56863
56864 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56865
56866         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56867         * modules/crypto/arcfour (License): Likewise.
56868         * modules/crypto/des-tests (License): Likewise.
56869         * modules/crypto/gc-arctwo-tests (License): Likewise.
56870         * modules/crypto/gc-des-tests (License): Likewise.
56871         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56872         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56873         * modules/crypto/gc-md2-tests (License): Likewise.
56874         * modules/crypto/gc-md4-tests (License): Likewise.
56875         * modules/crypto/gc-md5-tests (License): Likewise.
56876         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56877         * modules/crypto/gc-rijndael-tests (License): Likewise.
56878         * modules/crypto/gc-sha1-tests (License): Likewise.
56879         * modules/crypto/gc-tests (License): Likewise.
56880         * modules/crypto/hmac-md5 (License): Likewise.
56881         * modules/crypto/hmac-sha1 (License): Likewise.
56882         * modules/crypto/md2-tests (License): Likewise.
56883         * modules/crypto/md4-tests (License): Likewise.
56884         * modules/crypto/md5 (License): Likewise.
56885         * modules/crypto/rijndael (License): Likewise.
56886         * modules/crypto/sha1 (License): Likewise.
56887         * modules/memxor (License): Likewise.
56888
56889 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56890         and Bruno Haible  <bruno@clisp.org>
56891
56892         * NEWS: Describe interface changes to human, xstrtol.
56893         * lib/human.h: Include <xstrtol.h>.
56894         (human_options): Return enum strtol_error, not int.  Remove
56895         bool arg; take int * instead.
56896         * lib/human.c: Don't include "gettext.h".
56897         (_): Remove; no longer used.
56898         Don't include <xstrtol.h>, since human.h does it.
56899         (human_options): Adjust to abovementioned interface changes.
56900         Do not report error to stderr; that's now the caller's
56901         responsibility.
56902         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56903         interface change.
56904         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56905         Str, Argument_type_string.  All uses changed.  Put " argument"
56906         in diagnostics to make them clearer.  Change wording of suffix
56907         message for clarity.
56908         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56909         Argument_type_string.
56910         (STRTOL_FATAL_WARN): Remove; no longer used.
56911         * modules/human (Depends-on): Remove gettext-h.
56912
56913 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56914
56915         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56916
56917 2007-07-31  Bruno Haible  <bruno@clisp.org>
56918
56919         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56920         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56921         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56922
56923 2007-07-31  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56926         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56927
56928 2007-07-30  Bruno Haible  <bruno@clisp.org>
56929
56930         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56931         * modules/c-ctype (License): Likewise.
56932         * modules/c-strcase (License): Likewise.
56933         * modules/check-version (License): Likewise.
56934         * modules/iconv (License): Likewise.
56935         * modules/iconv_open (License): Likewise.
56936         * modules/read-file (License): Likewise.
56937         * modules/striconv (License): Likewise.
56938         * modules/strverscmp (License): Likewise.
56939         * modules/vasprintf (License): Likewise.
56940         * modules/crypto/des (License): Likewise.
56941         * modules/crypto/gc (License): Likewise.
56942         * modules/crypto/gc-arcfour (License): Likewise.
56943         * modules/crypto/gc-arctwo (License): Likewise.
56944         * modules/crypto/gc-des (License): Likewise.
56945         * modules/crypto/gc-hmac-md5 (License): Likewise.
56946         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56947         * modules/crypto/gc-md2 (License): Likewise.
56948         * modules/crypto/gc-md4 (License): Likewise.
56949         * modules/crypto/gc-md5 (License): Likewise.
56950         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56951         * modules/crypto/gc-random (License): Likewise.
56952         * modules/crypto/gc-rijndael (License): Likewise.
56953         * modules/crypto/gc-sha1 (License): Likewise.
56954         * modules/crypto/md2 (License): Likewise.
56955         * modules/crypto/md4 (License): Likewise.
56956
56957 2007-07-30  Jim Meyering  <jim@meyering.net>
56958
56959         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56960         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56961         it has valid stat data.  This bug would cause du not to count the
56962         sizes of inaccessible directories.
56963         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56964         in <http://bugzilla.redhat.com/250077>.
56965
56966 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56967             Bruno Haible  <bruno@clisp.org>
56968
56969         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56970         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56971         #include_next, gives a diagnostic about it, but reports no error in
56972         the exit code.
56973         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56974
56975 2007-07-24  Ben Pfaff  <blp@gnu.org>
56976
56977         Improve name: "count-one-bits" is better than "popcount".
56978         * MODULES.html.sh: Update name.
56979         * lib/popcount.h: Renamed lib/count-one-bits.h.
56980         (popcount): Renamed count_one_bits.
56981         (popcountl): Renamed count_one_bits_l.
56982         (popcountll): Renamed count_one_bits_ll.
56983         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56984         * modules/popcount: Renamed module/count-one-bits.
56985         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56986         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56987
56988 2007-07-23  Ben Pfaff  <blp@gnu.org>
56989
56990         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56991         better code generation, and add U to large constants to avoid
56992         warnings, in non-GCC case.
56993         Suggested by Bruno Haible.
56994
56995 2007-07-23  Ben Pfaff  <blp@gnu.org>
56996
56997         * lib/popcount.h: Use verify_true instead of if...abort.
56998         * modules/popcount: Depend on verify module.
56999         Suggested by Jim Meyering.
57000
57001 2007-07-23  Bruno Haible  <bruno@clisp.org>
57002
57003         * gnulib-tool (func_import): Create a .cvsignore file also when the
57004         directory is not yet in CVS but the toplevel directory is. When
57005         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57006         Reported by Karl Berry.
57007
57008 2007-07-22  Ben Pfaff  <blp@gnu.org>
57009
57010         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57011         case.
57012         Suggested by Eric Blake.
57013
57014 2007-07-22  Ben Pfaff  <blp@gnu.org>
57015
57016         New module: popcount.
57017         * MODULES.html.sh: Add popcount.
57018         * modules/popcount: New file.
57019         * modules/popcount-tests: New file.
57020         * tests/test-popcount.c: New file.
57021         * lib/popcount.h: New file.
57022         * m4/popcount.m4: New file.
57023
57024 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57025
57026         * build-aux/announce-gen: Update to GPLv3.
57027
57028         * build-aux/config.guess: Update from config.
57029
57030 2007-07-21  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57033         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57034
57035 2007-07-20  Jim Meyering  <jim@meyering.net>
57036
57037         * check-module: Diagnose a self-dependency.
57038
57039 2007-07-19  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57042         empty.
57043         Reported by Eric Blake.
57044
57045 2007-07-18  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool: New options --po-base, --po-domain.
57048         (func_usage): Document them.
57049         (pobase, po_domain): New variables.
57050         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57051         DEFAULT_TEXT_DOMAIN.
57052         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57053         (func_import): Consider pobase and po_domain. Create a po/ directory.
57054         (func_create_testdir): Set pobase and po_domain to empty.
57055         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57056         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57057
57058 2007-07-18  Bruno Haible  <bruno@clisp.org>
57059
57060         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57061         EXTRA_DIST augmentation for files in build-aux/.
57062
57063 2007-07-16  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57066         * modules/getdelim (License): Likewise.
57067
57068 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57069
57070         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57071         * modules/d-type (License): Likewise.
57072         * modules/extensions (License): Likewise.
57073         * modules/fnmatch (License): Likewise.
57074         * modules/fseeko (License): Likewise.
57075         * modules/getaddrinfo (License): Likewise.
57076         * modules/getline (License): Likewise.
57077         * modules/getlogin_r (License): Likewise.
57078         * modules/getpass (License): Likewise.
57079         * modules/gettimeofday (License): Likewise.
57080         * modules/glob (License): Likewise.
57081         * modules/inet_ntop (License): Likewise.
57082         * modules/malloc (License): Likewise.
57083         * modules/malloca (License): Likewise.
57084         * modules/memmem (License): Likewise.
57085         * modules/mempcpy (License): Likewise.
57086         * modules/memset (License): Likewise.
57087         * modules/minmax (License): Likewise.
57088         * modules/mktime (License): Likewise.
57089         * modules/netinet_in (License): Likewise.
57090         * modules/pathmax (License): Likewise.
57091         * modules/poll (License): Likewise.
57092         * modules/regex (License): Likewise.
57093         * modules/snprintf (License): Likewise.
57094         * modules/stdbool (License): Likewise.
57095         * modules/stdint (License): Likewise.
57096         * modules/stdio (License): Likewise.
57097         * modules/strcase (License): Likewise.
57098         * modules/strcasestr (License): Likewise.
57099         * modules/strdup (License): Likewise.
57100         * modules/string (License): Likewise.
57101         * modules/strndup (License): Likewise.
57102         * modules/strnlen (License): Likewise.
57103         * modules/strpbrk (License): Likewise.
57104         * modules/strptime (License): Likewise.
57105         * modules/strsep (License): Likewise.
57106         * modules/sys_select (License): Likewise.
57107         * modules/sys_socket (License): Likewise.
57108         * modules/sys_stat (License): Likewise.
57109         * modules/sys_time (License): Likewise.
57110         * modules/time (License): Likewise.
57111         * modules/time_r (License): Likewise.
57112         * modules/timegm (License): Likewise.
57113         * modules/unistd (License): Likewise.
57114         * modules/vsnprintf (License): Likewise.
57115         * modules/wctype (License): Likewise.
57116
57117 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57118
57119         * modules/argz (License): LGPLv2+.
57120
57121 2007-07-15  Karl Berry  <karl@gnu.org>
57122
57123         * doc/gnulib.texi: revise node structure per new fdl.texi.
57124
57125 2007-07-14  Bruno Haible  <bruno@clisp.org>
57126
57127         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57128         the output file.
57129         * lib/uniname/uninames.h: Regenerated.
57130
57131 2007-07-14  Karl Berry  <karl@gnu.org>
57132
57133         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57134         omitting sectioning and index commands.
57135
57136 2007-07-13  Bruno Haible  <bruno@clisp.org>
57137
57138         New gnulib-tool option --more-symlinks.
57139         * gnulib-tool (func_usage): Document --more-symlinks.
57140         (do_copyrights): New variable.
57141         Recognize option --more-symlinks.
57142         (func_import): Don't add a copyright notice transform to
57143         sed_transform_lib_file if do_copyrights is empty.
57144
57145 2007-07-13  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/vasnprintf.c (decimal_point_char): Define also if
57148         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57149         && !NEED_PRINTF_DIRECTIVE_A.
57150         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57151         Gary V. Vaughan <gary@gnu.org>.
57152
57153 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         * lib/inttypes_.h: Undo previous change, since it was fixed
57156         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57157
57158 2007-07-13  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57161         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57162
57163 2007-07-13  Jim Meyering  <jim@meyering.net>
57164
57165         df: Don't fail for Tru64's "file-on-file mount".
57166         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57167         so we fall through and use statfs instead.  Details here:
57168         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57169         Reported by Albert Chin.
57170
57171 2007-07-13  Bruno Haible  <bruno@clisp.org>
57172
57173         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57174         * modules/configmake (License): Likewise.
57175         * modules/gettext (License): Likewise.
57176         * modules/gettext-h (License): Likewise.
57177         * modules/include_next (License): Likewise.
57178         * modules/link-warning (License): Likewise.
57179         * modules/localcharset (License): Likewise.
57180         * modules/localename (License): Likewise.
57181         * modules/lock (License): Likewise.
57182         * modules/relocatable-lib-lgpl (License): Likewise.
57183         * modules/size_max (License): Likewise.
57184         * modules/vasnprintf (License): Likewise.
57185         * modules/wchar (License): Likewise.
57186         * modules/xsize (License): Likewise.
57187
57188 2007-07-13  Bruno Haible  <bruno@clisp.org>
57189
57190         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57191         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57192
57193 2007-07-12  Bruno Haible  <bruno@clisp.org>
57194
57195         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57196         in the modules files.
57197
57198 2007-07-11  Karl Berry  <karl@gnu.org>
57199
57200         * MODULES.html.sh (func_module): use
57201          sed -e '\|^'"${includefile}"'$|d'
57202          instead of /.../d, to avoid errors on $includefile's containing /.
57203
57204 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57205
57206         * gnulib-tool (func_import): Avoid duplication of --avoid
57207         statements
57208         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57209         names to `_' in variable names.
57210
57211 2007-07-10  Eric Blake  <ebb9@byu.net>
57212
57213         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57214         * NEWS: Document this change.
57215
57216 2007-07-08  Bruno Haible  <bruno@clisp.org>
57217
57218         Update to Unicode 5.0.
57219         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57220         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57221         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57222         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57223         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57224         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57225         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57226         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57227         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57228         U+10A3F, U+1D242..U+1D244.
57229         (nonspacing_table_ind): Update.
57230         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57231         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57232
57233 2007-07-08  Bruno Haible  <bruno@clisp.org>
57234
57235         Update to Unicode 5.0.
57236         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57237         code transform. Extend the name index field of unicode_name_to_code and
57238         unicode_code_to_name from 16 to 24 bits.
57239         * lib/uniname/uniname.c (unicode_character_name,
57240         unicode_name_character): Add the range 0x12xxx to the code transform.
57241         * lib/uniname/uninames.h: Regenerated.
57242         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57243
57244 2007-07-07  Bruno Haible  <bruno@clisp.org>
57245
57246         * modules/wcwidth-tests: New file.
57247         * tests/test-wcwidth.c: New file.
57248
57249         Work around MacOS X wcwidth() bug.
57250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57251         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57252         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57253         original wcwidth in non-UTF-8 locales.
57254         * modules/wcwidth (Depends-on): Add localcharset, streq,
57255         uniwidth/width.
57256         * doc/functions/wcwidth.texi: Update.
57257
57258 2007-07-07  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57261         (wcwidth): New declaration.
57262         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57263         macros.
57264         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57265         here. Prepare for creating <wchar.h> unconditionally.
57266         * modules/wchar (Depends-on): Add link-warning.
57267         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57268         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57269         * lib/wcwidth.h: Remove file.
57270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57271         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57272         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57273         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57274         (Include): Replace wcwidth.h with <wchar.h>.
57275         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57276         * lib/mbchar.h: Don't include wcwidth.h.
57277         * lib/mbswidth.c: Likewise.
57278         * NEWS: Mention the change.
57279
57280 2007-07-07  Bruno Haible  <bruno@clisp.org>
57281
57282         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57283         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57284         definition with an external declaration.
57285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57286         defined as a function. Remove AC_C_INLINE requirement.
57287         * modules/wcwidth (Files): Add lib/wcwidth.c.
57288         (Makefile.am): Remove redundant statement.
57289
57290 2007-07-07  Bruno Haible  <bruno@clisp.org>
57291
57292         * MODULES.html.sh (Unicode string functions): Add the new modules.
57293
57294         * tests/uniwidth/test-u32-strwidth.c: New file.
57295         * modules/uniwidth/u32-strwidth-tests: New file.
57296
57297         * lib/uniwidth/u32-strwidth.c: New file.
57298         * modules/uniwidth/u32-strwidth: New file.
57299
57300         * tests/uniwidth/test-u16-strwidth.c: New file.
57301         * modules/uniwidth/u16-strwidth-tests: New file.
57302
57303         * lib/uniwidth/u16-strwidth.c: New file.
57304         * modules/uniwidth/u16-strwidth: New file.
57305
57306         * tests/uniwidth/test-u8-strwidth.c: New file.
57307         * modules/uniwidth/u8-strwidth-tests: New file.
57308
57309         * lib/uniwidth/u8-strwidth.c: New file.
57310         * modules/uniwidth/u8-strwidth: New file.
57311
57312         * tests/uniwidth/test-u32-width.c: New file.
57313         * modules/uniwidth/u32-width-tests: New file.
57314
57315         * lib/uniwidth/u32-width.c: New file.
57316         * modules/uniwidth/u32-width: New file.
57317
57318         * tests/uniwidth/test-u16-width.c: New file.
57319         * modules/uniwidth/u16-width-tests: New file.
57320
57321         * lib/uniwidth/u16-width.c: New file.
57322         * modules/uniwidth/u16-width: New file.
57323
57324         * tests/uniwidth/test-u8-width.c: New file.
57325         * modules/uniwidth/u8-width-tests: New file.
57326
57327         * lib/uniwidth/u8-width.c: New file.
57328         * modules/uniwidth/u8-width: New file.
57329
57330         * tests/uniwidth/test-uc_width.c: New file.
57331         * modules/uniwidth/width-tests: New file.
57332
57333         * lib/uniwidth/width.c: New file, from GNU libiconv.
57334         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57335         * modules/uniwidth/width: New file.
57336
57337         * lib/uniwidth.h: New file, from GNU libiconv.
57338         * modules/uniwidth/base: New file.
57339
57340 2007-07-07  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/uniname.h: New file, from GNU gettext.
57343         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57344         * lib/uniname/uninames.h: New file, from GNU gettext.
57345         * lib/uniname/uniname.c: New file, from GNU gettext.
57346         * tests/uniname/test-uninames.sh: New file.
57347         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57348         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57349         * modules/uniname/base: New file.
57350         * modules/uniname/uniname: New file.
57351         * modules/uniname/uniname-tests: New file.
57352         * MODULES.html.sh (Unicode string functions): Add the new modules.
57353
57354 2007-07-06  Bruno Haible  <bruno@clisp.org>
57355
57356         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57357
57358 2007-07-06  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57361         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57362         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57363         include <sys/time.h>.
57364         Reported by Eric Blake.
57365
57366 2007-07-06  Eric Blake  <ebb9@byu.net>
57367
57368         Fix testing canonicalize on cygwin.
57369         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57370         Revert patch from 2007-06-19.
57371         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57372         canonicalize module is also in use.
57373         * tests/test-canonicalize.c: New file.
57374         * tests/test-canonicalize.sh: Likewise.
57375         * modules/canonicalize-tests: Likewise.
57376
57377 2007-07-06  Jim Meyering  <jim@meyering.net>
57378
57379         * lib/getugroups.c (getugroups): Detect getgrent failure.
57380         Adjust comment to reflect reality: this function may return -1.
57381
57382 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57383
57384         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57385         the new TP address.
57386         (usage): Fix typo
57387         (gnulib_mk): New variable.
57388
57389 2007-07-05  Jim Meyering  <jim@meyering.net>
57390
57391         Don't let endgrent clobber errno, no matter how improbable.
57392         * lib/getugroups.c (getugroups): Save and restore errno around
57393         endgrent call.
57394
57395         Close the group DB even when failing with 2^31 or more members.
57396         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57397
57398 2007-07-04  Jim Meyering  <jim@meyering.net>
57399
57400         * lib/getugroups.h: New file.
57401         * lib/getugroups.c: Include "getugroups.h".
57402         Remove uses of "register" keyword.
57403         Move local variable, "cp", down into scope where used.
57404         Give "username" parameter the "const" attribute.
57405         * modules/getugroups (Files): Add lib/getugroups.h
57406
57407 2007-07-04  Karl Berry  <karl@gnu.org>
57408
57409         * MODULES.html.sh (func_all_modules): Complete rename of
57410         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57411
57412 2007-07-02  Bruno Haible  <bruno@clisp.org>
57413
57414         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57415         mode, when inttypes.h comes from gnulib.
57416         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57417
57418 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57419
57420         * NEWS: Mention lgpl module name change.
57421
57422         * modules/lgpl-2.1: Renamed from lgpl.
57423
57424         * NEWS: Mention gpl module name change.
57425
57426         * modules/gpl-3.0: New file, based on gpl-2.0.
57427
57428         * modules/gpl-2.0: Renamed from gpl.
57429
57430         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57431         doc/gpl-2.0.texi.
57432
57433 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57436         #define __STDC_LIMIT_MACROS temporarily while including
57437         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57438         Problem reported by Joel E. Denny in
57439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57440
57441 2007-07-01  Bruno Haible  <bruno@clisp.org>
57442
57443         * lib/unistdio.h: New file.
57444         * lib/unistdio/u-asnprintf.h: New file.
57445         * lib/unistdio/u-asprintf.h: New file.
57446         * lib/unistdio/u-printf-args.c: New file.
57447         * lib/unistdio/u-printf-args.h: New file.
57448         * lib/unistdio/u-printf-parse.h: New file.
57449         * lib/unistdio/u-snprintf.h: New file.
57450         * lib/unistdio/u-sprintf.h: New file.
57451         * lib/unistdio/u-vasprintf.h: New file.
57452         * lib/unistdio/u-vsnprintf.h: New file.
57453         * lib/unistdio/u-vsprintf.h: New file.
57454         * lib/unistdio/ulc-asnprintf.c: New file.
57455         * lib/unistdio/ulc-asprintf.c: New file.
57456         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57457         * lib/unistdio/ulc-printf-parse.c: New file.
57458         * lib/unistdio/ulc-snprintf.c: New file.
57459         * lib/unistdio/ulc-sprintf.c: New file.
57460         * lib/unistdio/ulc-vasnprintf.c: New file.
57461         * lib/unistdio/ulc-vasprintf.c: New file.
57462         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57463         * lib/unistdio/ulc-vsnprintf.c: New file.
57464         * lib/unistdio/ulc-vsprintf.c: New file.
57465         * lib/unistdio/u8-asnprintf.c: New file.
57466         * lib/unistdio/u8-asprintf.c: New file.
57467         * lib/unistdio/u8-printf-parse.c: New file.
57468         * lib/unistdio/u8-snprintf.c: New file.
57469         * lib/unistdio/u8-sprintf.c: New file.
57470         * lib/unistdio/u8-vasnprintf.c: New file.
57471         * lib/unistdio/u8-vasprintf.c: New file.
57472         * lib/unistdio/u8-vsnprintf.c: New file.
57473         * lib/unistdio/u8-vsprintf.c: New file.
57474         * lib/unistdio/u8-u8-asnprintf.c: New file.
57475         * lib/unistdio/u8-u8-asprintf.c: New file.
57476         * lib/unistdio/u8-u8-snprintf.c: New file.
57477         * lib/unistdio/u8-u8-sprintf.c: New file.
57478         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57479         * lib/unistdio/u8-u8-vasprintf.c: New file.
57480         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57481         * lib/unistdio/u8-u8-vsprintf.c: New file.
57482         * lib/unistdio/u16-asnprintf.c: New file.
57483         * lib/unistdio/u16-asprintf.c: New file.
57484         * lib/unistdio/u16-printf-parse.c: New file.
57485         * lib/unistdio/u16-snprintf.c: New file.
57486         * lib/unistdio/u16-sprintf.c: New file.
57487         * lib/unistdio/u16-vasnprintf.c: New file.
57488         * lib/unistdio/u16-vasprintf.c: New file.
57489         * lib/unistdio/u16-vsnprintf.c: New file.
57490         * lib/unistdio/u16-vsprintf.c: New file.
57491         * lib/unistdio/u16-u16-asnprintf.c: New file.
57492         * lib/unistdio/u16-u16-asprintf.c: New file.
57493         * lib/unistdio/u16-u16-snprintf.c: New file.
57494         * lib/unistdio/u16-u16-sprintf.c: New file.
57495         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57496         * lib/unistdio/u16-u16-vasprintf.c: New file.
57497         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57498         * lib/unistdio/u16-u16-vsprintf.c: New file.
57499         * lib/unistdio/u32-asnprintf.c: New file.
57500         * lib/unistdio/u32-asprintf.c: New file.
57501         * lib/unistdio/u32-printf-parse.c: New file.
57502         * lib/unistdio/u32-snprintf.c: New file.
57503         * lib/unistdio/u32-sprintf.c: New file.
57504         * lib/unistdio/u32-vasnprintf.c: New file.
57505         * lib/unistdio/u32-vasprintf.c: New file.
57506         * lib/unistdio/u32-vsnprintf.c: New file.
57507         * lib/unistdio/u32-vsprintf.c: New file.
57508         * lib/unistdio/u32-u32-asnprintf.c: New file.
57509         * lib/unistdio/u32-u32-asprintf.c: New file.
57510         * lib/unistdio/u32-u32-snprintf.c: New file.
57511         * lib/unistdio/u32-u32-sprintf.c: New file.
57512         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57513         * lib/unistdio/u32-u32-vasprintf.c: New file.
57514         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57515         * lib/unistdio/u32-u32-vsprintf.c: New file.
57516         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57517         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57518         * tests/unistdio/test-ulc-printf1.h: New file.
57519         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57520         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57521         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57522         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57523         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57524         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57525         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57526         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57527         * tests/unistdio/test-u8-asnprintf1.c: New file.
57528         * tests/unistdio/test-u8-asnprintf1.h: New file.
57529         * tests/unistdio/test-u8-printf1.h: New file.
57530         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57531         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57532         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57533         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57534         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57535         * tests/unistdio/test-u8-vasprintf1.c: New file.
57536         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57537         * tests/unistdio/test-u8-vsprintf1.c: New file.
57538         * tests/unistdio/test-u16-asnprintf1.c: New file.
57539         * tests/unistdio/test-u16-asnprintf1.h: New file.
57540         * tests/unistdio/test-u16-printf1.h: New file.
57541         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57542         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57543         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57544         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57545         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57546         * tests/unistdio/test-u16-vasprintf1.c: New file.
57547         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57548         * tests/unistdio/test-u16-vsprintf1.c: New file.
57549         * tests/unistdio/test-u32-asnprintf1.c: New file.
57550         * tests/unistdio/test-u32-asnprintf1.h: New file.
57551         * tests/unistdio/test-u32-printf1.h: New file.
57552         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57553         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57554         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57555         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57556         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57557         * tests/unistdio/test-u32-vasprintf1.c: New file.
57558         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57559         * tests/unistdio/test-u32-vsprintf1.c: New file.
57560         * modules/unistdio/base: New file.
57561         * modules/unistdio/u-printf-args: New file.
57562         * modules/unistdio/ulc-asnprintf: New file.
57563         * modules/unistdio/ulc-asprintf: New file.
57564         * modules/unistdio/ulc-fprintf: New file.
57565         * modules/unistdio/ulc-printf-parse: New file.
57566         * modules/unistdio/ulc-snprintf: New file.
57567         * modules/unistdio/ulc-sprintf: New file.
57568         * modules/unistdio/ulc-vasnprintf: New file.
57569         * modules/unistdio/ulc-vasprintf: New file.
57570         * modules/unistdio/ulc-vfprintf: New file.
57571         * modules/unistdio/ulc-vsnprintf: New file.
57572         * modules/unistdio/ulc-vsprintf: New file.
57573         * modules/unistdio/u8-asnprintf: New file.
57574         * modules/unistdio/u8-asprintf: New file.
57575         * modules/unistdio/u8-printf-parse: New file.
57576         * modules/unistdio/u8-snprintf: New file.
57577         * modules/unistdio/u8-sprintf: New file.
57578         * modules/unistdio/u8-vasnprintf: New file.
57579         * modules/unistdio/u8-vasprintf: New file.
57580         * modules/unistdio/u8-vsnprintf: New file.
57581         * modules/unistdio/u8-vsprintf: New file.
57582         * modules/unistdio/u8-u8-asnprintf: New file.
57583         * modules/unistdio/u8-u8-asprintf: New file.
57584         * modules/unistdio/u8-u8-snprintf: New file.
57585         * modules/unistdio/u8-u8-sprintf: New file.
57586         * modules/unistdio/u8-u8-vasnprintf: New file.
57587         * modules/unistdio/u8-u8-vasprintf: New file.
57588         * modules/unistdio/u8-u8-vsnprintf: New file.
57589         * modules/unistdio/u8-u8-vsprintf: New file.
57590         * modules/unistdio/u16-asnprintf: New file.
57591         * modules/unistdio/u16-asprintf: New file.
57592         * modules/unistdio/u16-printf-parse: New file.
57593         * modules/unistdio/u16-snprintf: New file.
57594         * modules/unistdio/u16-sprintf: New file.
57595         * modules/unistdio/u16-vasnprintf: New file.
57596         * modules/unistdio/u16-vasprintf: New file.
57597         * modules/unistdio/u16-vsnprintf: New file.
57598         * modules/unistdio/u16-vsprintf: New file.
57599         * modules/unistdio/u16-u16-asnprintf: New file.
57600         * modules/unistdio/u16-u16-asprintf: New file.
57601         * modules/unistdio/u16-u16-snprintf: New file.
57602         * modules/unistdio/u16-u16-sprintf: New file.
57603         * modules/unistdio/u16-u16-vasnprintf: New file.
57604         * modules/unistdio/u16-u16-vasprintf: New file.
57605         * modules/unistdio/u16-u16-vsnprintf: New file.
57606         * modules/unistdio/u16-u16-vsprintf: New file.
57607         * modules/unistdio/u32-asnprintf: New file.
57608         * modules/unistdio/u32-asprintf: New file.
57609         * modules/unistdio/u32-printf-parse: New file.
57610         * modules/unistdio/u32-snprintf: New file.
57611         * modules/unistdio/u32-sprintf: New file.
57612         * modules/unistdio/u32-vasnprintf: New file.
57613         * modules/unistdio/u32-vasprintf: New file.
57614         * modules/unistdio/u32-vsnprintf: New file.
57615         * modules/unistdio/u32-vsprintf: New file.
57616         * modules/unistdio/u32-u32-asnprintf: New file.
57617         * modules/unistdio/u32-u32-asprintf: New file.
57618         * modules/unistdio/u32-u32-snprintf: New file.
57619         * modules/unistdio/u32-u32-sprintf: New file.
57620         * modules/unistdio/u32-u32-vasnprintf: New file.
57621         * modules/unistdio/u32-u32-vasprintf: New file.
57622         * modules/unistdio/u32-u32-vsnprintf: New file.
57623         * modules/unistdio/u32-u32-vsprintf: New file.
57624         * modules/unistdio/ulc-asnprintf-tests: New file.
57625         * modules/unistdio/ulc-vasnprintf-tests: New file.
57626         * modules/unistdio/ulc-vasprintf-tests: New file.
57627         * modules/unistdio/ulc-vsnprintf-tests: New file.
57628         * modules/unistdio/ulc-vsprintf-tests: New file.
57629         * modules/unistdio/u8-asnprintf-tests: New file.
57630         * modules/unistdio/u8-vasnprintf-tests: New file.
57631         * modules/unistdio/u8-vasprintf-tests: New file.
57632         * modules/unistdio/u8-vsnprintf-tests: New file.
57633         * modules/unistdio/u8-vsprintf-tests: New file.
57634         * modules/unistdio/u16-asnprintf-tests: New file.
57635         * modules/unistdio/u16-vasnprintf-tests: New file.
57636         * modules/unistdio/u16-vasprintf-tests: New file.
57637         * modules/unistdio/u16-vsnprintf-tests: New file.
57638         * modules/unistdio/u16-vsprintf-tests: New file.
57639         * modules/unistdio/u32-asnprintf-tests: New file.
57640         * modules/unistdio/u32-vasnprintf-tests: New file.
57641         * modules/unistdio/u32-vasprintf-tests: New file.
57642         * modules/unistdio/u32-vsnprintf-tests: New file.
57643         * modules/unistdio/u32-vsprintf-tests: New file.
57644         * MODULES.html.sh (Unicode string functions): Add the new modules.
57645
57646 2007-07-01  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/sprintf.c (sprintf): Limit the available length estimation,
57649         to avoid address wraparound.
57650         * lib/vsprintf.c (vsprintf): Likewise.
57651         * modules/sprintf-posix (Dependencies): Add stdint.
57652         * modules/vsprintf-posix (Dependencies): Likewise.
57653
57654 2007-07-01  Bruno Haible  <bruno@clisp.org>
57655
57656         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57657         Windows PATH as well. Conservative double-quoting. Comments.
57658
57659 2007-07-01  Bruno Haible  <bruno@clisp.org>
57660             Eric Blake  <ebb9@byu.net>
57661             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57662
57663         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57664         empty components in $PATH, denoting '.'.
57665
57666 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57667
57668         * gnulib-tool: Fix indentation.
57669         (func_create_megatestdir): Likewise.
57670         Report by Bruno Haible.
57671
57672 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57673
57674         Sync from Automake.
57675         * build-aux/gnupload: Fix shell portability issues with for loops.
57676         Report by Karl Berry.
57677
57678 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57679
57680         * build-aux/maint.mk (POURL): Use translationproject.org.
57681
57682 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57683             Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57686         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57687         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57688         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57689         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57690
57691 2007-06-27  Bruno Haible  <bruno@clisp.org>
57692
57693         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57694         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57695
57696 2007-06-26  Karl Berry  <karl@gnu.org>
57697
57698         * MODULES.html.sh: remove xreadlink-with-size.
57699
57700 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57703         method that I hope also handles the double-include problem noted
57704         by Bruno Haible in
57705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57706
57707 2007-06-23  Bruno Haible  <bruno@clisp.org>
57708
57709         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57710         Don't let the 'mostlyclean' target fail if the last subdirectory could
57711         not be removed.
57712         Reported by Karl Berry.
57713
57714 2007-06-23  Bruno Haible  <bruno@clisp.org>
57715
57716         * gnulib-tool (echo): Add a speedier workaround for ksh.
57717         * tests/test-echo.sh: Likewise.
57718
57719 2007-06-23  Bruno Haible  <bruno@clisp.org>
57720
57721         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57722         * tests/test-echo.sh: Likewise.
57723
57724 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57725
57726         * gnulib-tool (IFS): Initialize early, so we don't set it to
57727         empty later.
57728         (self_abspathname): Rewrite algorithm to set it, reindent.
57729         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57730         (func_create_megatestdir): Merge some sed scripts.
57731
57732 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57735         exposed by Sun Studio 11 cc on Solaris 8.
57736
57737 2007-06-22  Bruno Haible  <bruno@clisp.org>
57738
57739         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57740         backslashes.
57741         * tests/test-echo.sh: New file.
57742
57743 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57744
57745         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57746         simplify `sed_replace_build_aux' scripts, they are portable but
57747         echoing them with `echo' is not.
57748         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57749
57750 2007-06-21  Karl Berry  <karl@gnu.org>
57751
57752         * config/srclist.txt: guess we can't handle the licenses via
57753         srclist at the moment.
57754
57755 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57756
57757         * MODULES.html.sh: Add include_next.
57758         * modules/include_next: New file.
57759
57760 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57761
57762         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57763         INCLUDE_NEXT.
57764         (gl_CHECK_NEXT_HEADERS): New macro.
57765         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57766         the obsolescent gl_ABSOLUTE_HEADER.
57767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57768         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57769         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57770         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57771         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57772         * m4/math_h.m4 (gl_MATH_H): Likewise.
57773         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57774         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57775         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57776         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57777         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57778         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57784         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57785         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57786         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57787         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57788         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57789         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57790         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57791         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57792         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57793         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57794         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57795         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57796         * lib/float_.h: Likewise.
57797         * lib/inttypes_.h: Likewise.
57798         * lib/math_.h: Likewise.
57799         * lib/search_.h: Likewise.
57800         * lib/signal_.h: Likewise.
57801         * lib/stdint_.h: Likewise.
57802         * lib/stdio_.h: Likewise.
57803         * lib/stdlib_.h: Likewise.
57804         * lib/string_.h: Likewise.
57805         * lib/sys_stat_.h: Likewise.
57806         * lib/sys_time_.h: Likewise.
57807         * lib/time_.h: Likewise.
57808         * lib/unistd_.h: Likewise.
57809         * lib/wchar_.h: Likewise.
57810         * lib/wctype_.h: Likewise.
57811         * lib/dirent_.h: Likewise.
57812         * lib/iconv_.h: Likewise.
57813         * lib/locale_.h: Likewise.
57814         * lib/netinet_in_.h: Likewise.
57815         * lib/sys_select_.h: Likewise.
57816         * lib/sys_socket_.h: Likewise.
57817         * lib/sysexits_.h: Likewise.
57818         * modules/fcntl (Depends-on): Depend on include_next, not
57819         absolute_header.
57820         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57821         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57822         * modules/fchdir: Likewise.
57823         * modules/float: Likewise.
57824         * modules/iconv_open: Likewise.
57825         * modules/inttypes: Likewise.
57826         * modules/locale: Likewise.
57827         * modules/math: Likewise.
57828         * modules/netinet_in: Likewise.
57829         * modules/search: Likewise.
57830         * modules/signal: Likewise.
57831         * modules/stdint: Likewise.
57832         * modules/stdio: Likewise.
57833         * modules/stdlib: Likewise.
57834         * modules/string: Likewise.
57835         * modules/sys_select: Likewise.
57836         * modules/sys_socket: Likewise.
57837         * modules/sys_stat: Likewise.
57838         * modules/sys_time: Likewise.
57839         * modules/sysexits: Likewise.
57840         * modules/time: Likewise.
57841         * modules/unistd: Likewise.
57842         * modules/wchar: Likewise.
57843         * modules/wctype: Likewise.
57844         * modules/sys_stat: Change maintainer to "all".
57845         * modules/unistd: Likewise.
57846
57847 2007-06-20  Karl Berry  <karl@gnu.org>
57848
57849         * config/srclist.txt: track www changes in license files.
57850
57851 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57852
57853         * build-aux/bootstrap: Remove stray dot.
57854         Make sure build_aux settings are honored when linking
57855         gnulib_extra_files.
57856
57857 2007-06-19  Eric Blake  <ebb9@byu.net>
57858
57859         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57860         Allow compilation on cygwin.
57861
57862 2007-06-19  Jim Meyering  <jim@meyering.net>
57863
57864         xreadlink-with-size: Remove module.  No longer used.
57865         Ex-callers now use xreadlink or mreadlink-with-size.
57866         * modules/xreadlink-with-size: Remove module.
57867         * lib/xreadlink-with-size.c: Remove file.
57868         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57869         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57870         just before the function definition *is* accurate.
57871
57872         Eliminate one way canonicalize_filename_mode could exit.
57873         * lib/canonicalize.c (canonicalize_filename_mode):
57874         Use mreadlink_with_size, not xreadlink_with_size.
57875
57876 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         Detect porting problems to FreeBSD/arm, which has time_t wider than
57879         long int.  Original problem reported for GNU diff by Xin Li in
57880         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57881         * modules/getdate (Depends-on): Add intprops, verify.
57882         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57883         is an integer type no wider than long int.
57884
57885 2007-06-18  Jim Meyering  <jim@meyering.net>
57886
57887         New module: mreadlink-with-size.
57888         * MODULES.html.sh: Add mreadlink-with-size.
57889         * modules/mreadlink-with-size: New module
57890         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57891         not xreadlink-with-size.
57892         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57893
57894 2007-06-16  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57897         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57898         Reported by Gary V. Vaughan <gary@gnu.org>.
57899
57900 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         Revamp lchown so that it lives in unistd.h where it belongs.
57903         * lib/lchown.h: Remove.
57904         * lib/dirchownmod.c: Don't include lib/lchown.h.
57905         * lib/fchownat.c: Likewise.
57906         * lib/openat.c: Likewise.
57907         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57908         does not follow symlinks.
57909         (EOPNOTSUPP): Define if not defined.
57910         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57911         is defined to 0.
57912         (lchown): New decl.
57913         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57914         Do not check for lchown decl.
57915         Set REPLACE_LCHOWN.
57916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57917         REPLACE_LCHOWN.
57918         * modules/chown: Make it clear it follows symlinks.
57919         * modules/lchown: Make it clear it doesn't follow symlinks.
57920         (Files): Remove lib/lchown.h
57921         (Depends-on): Add unistd.
57922         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57923         (Include): Include <unistd.h>, not "lchown.h".
57924         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57925         REPLACE_LCHOWN.
57926
57927 2007-06-15  Jim Meyering  <jim@meyering.net>
57928
57929         Change license (GPL to LGPL) of fsusage and dependents.
57930         * modules/fsusage (License): Change to LGPL.
57931         * modules/full-read (License): Likewise.
57932         * modules/full-write (License): Likewise.
57933         * modules/safe-read (License): Likewise.
57934         * modules/safe-write (License): Likewise.
57935
57936 2007-06-14  Ben Pfaff  <blp@gnu.org>
57937
57938         Missing part of allocsa -> malloca transition.
57939         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57940         gl_MALLOCA.
57941
57942 2007-06-12  Bruno Haible  <bruno@clisp.org>
57943
57944         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57945         to ia64, x86_64, i386.
57946         Reported by Eric Blake.
57947
57948 2007-06-12  Bruno Haible  <bruno@clisp.org>
57949
57950         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57951         cross-compiling to x86_64.
57952
57953 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57954
57955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57956         glitch reported by Ralf Wildenhues in
57957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57958
57959         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57960         Vin Shelton.
57961
57962 2007-06-11  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57965         replacement string.
57966         Reported by Eric Blake.
57967
57968 2007-06-10  Bruno Haible  <bruno@clisp.org>
57969
57970         Prepare vasnprintf code for use with Unicode strings.
57971         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57972         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57973         TYPE_U32_STRING.
57974         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57975         a_u32_string variants.
57976         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57977         * lib/printf-args.c: Don't include config.h and the specification
57978         header if PRINTF_FETCHARGS is already defined.
57979         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57980         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57981         TYPE_U16_STRING, TYPE_U32_STRING.
57982         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57983         u16_directive, u16_directives, u32_directive, u32_directives): New
57984         types.
57985         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57986         New declarations.
57987         * lib/printf-parse.c: Don't include config.h and the specification
57988         header if PRINTF_PARSE is already defined. Eliminate the set of
57989         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57990         them now. Include c-ctype.h.
57991         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57992         directive and CHAR_T_ONLY_ASCII.
57993         * lib/vasnprintf.c: Don't include config.h and the specification header
57994         if VASNPRINTF is already defined.
57995         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57996         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57997         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57998         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57999         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58000         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58001         code accordingly.
58002         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58003         pad_ourselves also in this case, with the 'c' and 's' directives, and
58004         with a different notion of "width".
58005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58006
58007 2007-06-10  Bruno Haible  <bruno@clisp.org>
58008
58009         * modules/unistr/u32-mbsnlen: New file.
58010         * lib/unistr/u32-mbsnlen.c: New file.
58011
58012         * modules/unistr/u16-mbsnlen: New file.
58013         * lib/unistr/u16-mbsnlen.c: New file.
58014
58015         * modules/unistr/u8-mbsnlen: New file.
58016         * lib/unistr/u8-mbsnlen.c: New file.
58017
58018         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58019         declarations.
58020
58021 2007-06-10  Bruno Haible  <bruno@clisp.org>
58022
58023         * lib/string_.h (mbsnlen): New declaration.
58024         * lib/mbsnlen.c: New file.
58025         * m4/mbsnlen.m4: New file.
58026         * modules/mbsnlen: New file.
58027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58028         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58029         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58030
58031 2007-06-10  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58034
58035 2007-06-10  Bruno Haible  <bruno@clisp.org>
58036
58037         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58038         * lib/mbuiter.h: Likewise.
58039
58040 2007-06-10  Bruno Haible  <bruno@clisp.org>
58041
58042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58043         declaration.
58044
58045 2007-06-10  Karl Berry  <karl@gnu.org>
58046
58047         * config/srclist.txt: remove gettext entries, Bruno prefers
58048         to update individually.
58049
58050 2007-06-10  Bruno Haible  <bruno@clisp.org>
58051
58052         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58053         'maxlen'. Ensure only length + width bytes are allocated, not
58054         length + 1 + width.
58055
58056 2007-06-09  Bruno Haible  <bruno@clisp.org>
58057
58058         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58059         (CHAR_T): Remove macro.
58060         (VASNPRINTF): Update.
58061
58062 2007-06-09  Bruno Haible  <bruno@clisp.org>
58063
58064         * MODULES.html.sh (Unicode string functions): Add the new modules.
58065
58066         * modules/uniconv/u32-conv-to-enc: New file.
58067         * lib/uniconv/u32-conv-to-enc.c: New file.
58068         * modules/uniconv/u32-conv-to-enc-tests: New file.
58069         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58070
58071         * modules/uniconv/u16-conv-to-enc: New file.
58072         * lib/uniconv/u16-conv-to-enc.c: New file.
58073         * lib/uniconv/u-conv-to-enc.h: New file.
58074         * modules/uniconv/u16-conv-to-enc-tests: New file.
58075         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58076
58077         * modules/uniconv/u8-conv-to-enc: New file.
58078         * lib/uniconv/u8-conv-to-enc.c: New file.
58079         * modules/uniconv/u8-conv-to-enc-tests: New file.
58080         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58081
58082         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58083         u32_conv_to_encoding): New declarations.
58084
58085 2007-06-09  Bruno Haible  <bruno@clisp.org>
58086
58087         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58088
58089 2007-06-09  Bruno Haible  <bruno@clisp.org>
58090
58091         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58092         * modules/malloca: Renamed from modules/allocsa, updated.
58093         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58094         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58095         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58096         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58097         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58098         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58099         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58100         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58101         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58102         * modules/c-strcasestr (Depends-on): Update.
58103         * lib/c-strcasestr.c: Update.
58104         * modules/c-strstr (Depends-on): Update.
58105         * lib/c-strstr.c: Update.
58106         * modules/canonicalize-lgpl (Depends-on): Update.
58107         * lib/canonicalize-lgpl.c: Update.
58108         * modules/clean-temp (Depends-on): Update.
58109         * lib/clean-temp.c: Update.
58110         * modules/csharpcomp (Depends-on): Update.
58111         * lib/csharpcomp.c: Update.
58112         * modules/csharpexec (Depends-on): Update.
58113         * lib/csharpexec.c: Update.
58114         * modules/javacomp (Depends-on): Update.
58115         * lib/javacomp.c: Update.
58116         * modules/javaexec (Depends-on): Update.
58117         * lib/javaexec.c: Update.
58118         * modules/mbscasestr (Depends-on): Update.
58119         * lib/mbscasestr.c: Update.
58120         * modules/mbsstr (Depends-on): Update.
58121         * lib/mbsstr.c: Update.
58122         * modules/setenv (Depends-on): Update.
58123         * lib/setenv.c: Update.
58124         * modules/strcasestr (Depends-on): Update.
58125         * lib/strcasestr.c: Update.
58126         * modules/striconveha (Depends-on): Update.
58127         * lib/striconveha.c: Update.
58128         * modules/relocatable-prog-wrapper (Files): Update.
58129         * lib/relocwrapper.c: Update.
58130         * build-aux/install-reloc: Update.
58131         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58132
58133 2007-06-08  Bruno Haible  <bruno@clisp.org>
58134
58135         Port to uClibc.
58136         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58137         * lib/fpurge.c (fpurge): Likewise.
58138         * lib/freading.c (freading): Likewise.
58139         * lib/fseeko.c (rpl_fseeko): Likewise.
58140         * lib/fseterr.c (fseterr): Likewise.
58141         * lib/fwriting.c (fwriting): Likewise.
58142         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58143
58144 2007-06-08  Bruno Haible  <bruno@clisp.org>
58145
58146         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58147         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58148         * modules/gettext (Files): Add m4/intlmacosx.m4.
58149
58150 2007-06-07  Bruno Haible  <bruno@clisp.org>
58151
58152         * modules/localename-tests: New file.
58153         * tests/test-localename.c: New file.
58154
58155         New module 'localename'.
58156         * lib/localename.h: New file.
58157         * lib/localename.c: New file, from GNU gettext.
58158         * m4/localename.m4: New file.
58159         * modules/localename: New file.
58160
58161 2007-06-07  Bruno Haible  <bruno@clisp.org>
58162
58163         Work around the lack of <wchar.h> on some builds of uClibc.
58164         * doc/headers/wchar.texi: Update.
58165         * lib/wchar_.h: Include <wchar.h> only if it exists.
58166         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58167         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58168         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58169         doesn't exist.
58170         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58171         * modules/mbfile (Depends-on): Add wchar.
58172         * modules/mbiter (Depends-on): Likewise.
58173         * modules/mbuiter (Depends-on): Likewise.
58174         Reported by Simon Josefsson.
58175
58176 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         Work around problem reported by Steven M. Schweda in
58179         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58180         Tru64 5.1B with the Compaq compiler environment installed declares
58181         an 'isblank' function but does not define it in the C library.
58182         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58183         * lib/regex_internal.h (isblank): Likewise.
58184         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58185         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58186
58187 2007-06-05  Bruno Haible  <bruno@clisp.org>
58188
58189         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58190         ia64.
58191         * modules/printf-safe: New file.
58192         * modules/fprintf-posix (Depends-on): Add printf-safe.
58193         * modules/printf-posix (Depends-on): Likewise.
58194         * modules/snprintf-posix (Depends-on): Likewise.
58195         * modules/sprintf-posix (Depends-on): Likewise.
58196         * modules/vasnprintf-posix (Depends-on): Likewise.
58197         * modules/vasprintf-posix (Depends-on): Likewise.
58198         * modules/vfprintf-posix (Depends-on): Likewise.
58199         * modules/vprintf-posix (Depends-on): Likewise.
58200         * modules/vsnprintf-posix (Depends-on): Likewise.
58201         * modules/vsprintf-posix (Depends-on): Likewise.
58202         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58203         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58204         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58205         "no" on i386, x86_64, ia64.
58206         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58207         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58208         on i386, x86_64, ia64.
58209         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58211         on i386, x86_64, ia64.
58212         * tests/test-vasnprintf-posix.c: Include float.h.
58213         (LDBL80_WORDS): New macro.
58214         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58215         on i386, x86_64, ia64.
58216         * tests/test-vasprintf-posix.c: Include float.h.
58217         (LDBL80_WORDS): New macro.
58218         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58219         on i386, x86_64, ia64.
58220         * tests/test-snprintf-posix.c: Include float.h.
58221         * tests/test-sprintf-posix.c: Likewise.
58222         * tests/test-vsnprintf-posix.c: Likewise.
58223         * tests/test-vsprintf-posix.c: Likewise.
58224
58225 2007-06-05  Bruno Haible  <bruno@clisp.org>
58226
58227         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58228         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58229         non-IEEE numbers on i386, x86_64, ia64.
58230         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58231         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58232         * tests/test-isnanl.h: Include float.h.
58233         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58234
58235 2007-06-05  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58238         also the %a / %A. Handle the %a / %A code before this extra handling.
58239
58240 2007-06-05  Bruno Haible  <bruno@clisp.org>
58241
58242         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58243         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58244
58245 2007-06-05  Bruno Haible  <bruno@clisp.org>
58246
58247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58248         typo in variable name.
58249
58250 2007-06-05  Eric Blake  <ebb9@byu.net>
58251
58252         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58253         Reported by Simon Josefsson.
58254
58255 2007-06-04  Bruno Haible  <bruno@clisp.org>
58256
58257         Avoid test failures on some PowerPC platforms.
58258         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58259         Define differently for PowerPC.
58260         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58261         Reported by Gary V. Vaughan <gary@gnu.org>.
58262
58263 2007-06-02  Bruno Haible  <bruno@clisp.org>
58264
58265         Fix test-stdint failure on FreeBSD/ia64.
58266         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58267         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58268         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58269         * doc/headers/stdint.texi: Update.
58270
58271 2007-06-01  Bruno Haible  <bruno@clisp.org>
58272
58273         * tests/test-binary-io.c (main): Pass a third argument to open().
58274         Reported by Gary V. Vaughan <gary@gnu.org>.
58275
58276 2007-06-01  Bruno Haible  <bruno@clisp.org>
58277
58278         * doc/functions/frexpl.texi: Update for mingw.
58279
58280 2007-06-01  Bruno Haible  <bruno@clisp.org>
58281
58282         * tests/test-lseek.c (main): Disable test of errno for invalid third
58283         argument.
58284         * doc/functions/lseek.texi: Update.
58285         Reported by Gary V. Vaughan <gary@gnu.org>.
58286
58287 2007-05-28  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58290
58291 2007-05-31  Eric Blake  <ebb9@byu.net>
58292
58293         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58294         cross compiling.
58295
58296 2007-05-30  Eric Blake  <ebb9@byu.net>
58297         and Bruno Haible  <bruno@clisp.org>
58298
58299         Work around mingw test failures exposed by m4-1.4.9b.
58300         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58301         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58302         moment.
58303
58304 2007-05-30  Bruno Haible  <bruno@clisp.org>
58305
58306         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58307         assuming that they are closed. Needed on HP-UX 11.
58308
58309 2007-05-29  Bruno Haible  <bruno@clisp.org>
58310
58311         Fix a problem with #include_next.
58312         * lib/dirent_.h: Split the double-inclusion guard.
58313         * lib/fcntl_.h: Likewise.
58314         * lib/float_.h: Likewise.
58315         * lib/iconv_.h: Likewise.
58316         * lib/inttypes_.h: Likewise.
58317         * lib/locale_.h: Likewise.
58318         * lib/math_.h: Likewise.
58319         * lib/netinet_in_.h: Likewise.
58320         * lib/search_.h: Likewise.
58321         * lib/signal_.h: Likewise.
58322         * lib/stdint_.h: Likewise.
58323         * lib/stdio_.h: Likewise.
58324         * lib/stdlib_.h: Likewise.
58325         * lib/string_.h: Likewise.
58326         * lib/sys_select_.h: Likewise.
58327         * lib/sys_socket_.h: Likewise.
58328         * lib/sys_stat_.h: Likewise.
58329         * lib/sys_time_.h: Likewise.
58330         * lib/sysexits_.h: Likewise.
58331         * lib/time_.h: Likewise.
58332         * lib/unistd_.h: Likewise.
58333         * lib/wchar_.h: Likewise.
58334         * lib/wctype_.h: Likewise.
58335
58336 2007-05-29  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58339         for the moment.
58340
58341 2007-05-29  Bruno Haible  <bruno@clisp.org>
58342
58343         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58344         invocation.
58345         Reported by Eric Blake.
58346
58347 2007-05-29  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58350         compiling case.
58351
58352 2007-05-29  Eric Blake  <ebb9@byu.net>
58353             Bruno Haible  <bruno@clisp.org>
58354
58355         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58356         cross compiles.
58357
58358 2007-05-28  Eric Blake  <ebb9@byu.net>
58359
58360         * modules/closein-tests (test_closein_LDADD): Support test on
58361         cygwin with libtool.
58362
58363 2007-05-28  Bruno Haible  <bruno@clisp.org>
58364
58365         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58366         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58367         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58368         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58369         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58370         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58371         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58372         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58373         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58374
58375 2007-05-28  Eric Blake  <ebb9@byu.net>
58376
58377         Unconditionally include <config.h> in unit tests.
58378         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58379         * tests/test-allocsa.c, tests/test-arcfour.c,
58380         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58381         tests/test-array_list.c, tests/test-array_oset.c,
58382         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58383         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58384         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58385         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58386         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58387         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58388         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58389         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58390         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58391         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58392         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58393         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58394         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58395         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58396         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58397         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58398         test-md5.c, test-memmem.c, test-printf-posix.c,
58399         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58400         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58401         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58402         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58403         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58404         test-vasnprintf-posix2.c, test-vasnprintf.c,
58405         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58406         test-vfprintf-posix.c, test-vprintf-posix.c,
58407         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58408         test-xvasprintf.c: Likewise.
58409
58410 2007-05-28  Bruno Haible  <bruno@clisp.org>
58411
58412         * gnulib-tool (func_import): Remember the --with-tests command-line
58413         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58414         Reported by Eric Blake.
58415
58416 2007-05-28  Bruno Haible  <bruno@clisp.org>
58417
58418         * modules/ftell-tests: New file.
58419         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58420         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58421
58422         * lib/ftell.c: New file.
58423         * modules/ftell: New file.
58424         * m4/ftell.m4: New file.
58425         * doc/functions/ftell.texi: Update.
58426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58427         REPLACE_FTELL.
58428         * lib/stdio_.h (rpl_ftell): New declaration.
58429         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58430         REPLACE_FTELL.
58431
58432 2007-05-28  Eric Blake  <ebb9@byu.net>
58433
58434         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58435
58436 2007-05-28  Bruno Haible  <bruno@clisp.org>
58437
58438         * modules/fseek-tests: New file.
58439         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58440         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58441
58442         * lib/fseek.c: New file.
58443         * modules/fseek: New file.
58444         * m4/fseek.m4: New file.
58445         * doc/functions/fseek.texi: Update.
58446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58447         REPLACE_FSEEK.
58448         * lib/stdio_.h (rpl_fseek): New declaration.
58449         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58450         REPLACE_FSEEK.
58451
58452 2007-05-28  Bruno Haible  <bruno@clisp.org>
58453
58454         * lib/stdio_.h (fflush): More comments.
58455
58456 2007-05-28  Bruno Haible  <bruno@clisp.org>
58457
58458         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58459         runtime test.
58460
58461 2007-05-28  Eric Blake  <ebb9@byu.net>
58462
58463         Improve lseek module.
58464         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58465         * lib/unistd_.h (lseek): Scale back link warning message.
58466         * tests/test-lseek.c: Beef up test.
58467         * tests/test-lseek.sh: Exercise more facets of lseek.
58468         Reported by Bruno Haible.
58469
58470 2007-05-28  Bruno Haible  <bruno@clisp.org>
58471
58472         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58473         to define.
58474
58475 2007-05-27  Bruno Haible  <bruno@clisp.org>
58476
58477         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58478
58479 2007-05-27  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/openmp: New file.
58482         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58483         Noah Misch.
58484
58485 2007-05-26  Bruno Haible  <bruno@clisp.org>
58486
58487         * modules/chdir-long (Depends-on): Add fchdir.
58488         * modules/chdir-safer (Depends-on): Likewise.
58489         * modules/fts (Depends-on): Likewise.
58490         * modules/fts-lgpl (Depends-on): Likewise.
58491         * modules/openat (Depends-on): Likewise.
58492         * modules/savewd (Depends-on): Likewise.
58493
58494 2007-05-24  Eric Blake  <ebb9@byu.net>
58495
58496         Fix lseek on mingw.
58497         * modules/lseek: New module.
58498         * m4/lseek.m4: New file.
58499         * lib/lseek.c: New file.
58500         * modules/lseek-tests: New file.
58501         * tests/test-lseek.c: New file.
58502         * tests/test-lseek.sh: New file.
58503         * MODULES.html.sh: Document lseek module.
58504         * modules/fflush (Depends-on): Add lseek, fseeko.
58505         * modules/fseeko (Depends-on): Likewise.
58506         * modules/ftello (Depends-on): Likewise.
58507         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58508         broken.
58509         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58510         broken.
58511         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58512         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58513         * lib/ftello.c (rpl_ftello): Likewise.
58514         * tests/test-fseeko.c (main): Test this.
58515         * tests/test-fseeko.sh: Likewise.
58516         * tests/test-ftello.c (main): Likewise.
58517         * tests/test-ftello.sh: Likewise.
58518         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58519         implies replacing fseek.
58520         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58521         HAVE_FTELLO.
58522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58523         * modules/unistd (Makefile.am): Likewise.
58524         * lib/unistd_.h (lseek): Declare a replacement.
58525         * doc/functions/lseek.texi (lseek): Document this fix.
58526         * doc/functions/fseek.texi (fseek): Likewise.
58527         * doc/functions/ftell.texi (ftell): Likewise.
58528
58529 2007-05-24  Bruno Haible  <bruno@clisp.org>
58530
58531         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58532         in the printed representation of a NaN.
58533         * tests/test-vasprintf-posix.c (test_function): Likewise.
58534         * tests/test-snprintf-posix.h (test_function): Likewise.
58535         * tests/test-sprintf-posix.h (test_function): Likewise.
58536         Reported by Eric Blake.
58537
58538 2007-05-23  Eric Blake  <ebb9@byu.net>
58539
58540         Fix fseeko/ftello on cygwin 1.5.24.
58541         * doc/functions/fseeko.texi (fseeko): Document the fix.
58542         * doc/functions/ftello.texi (ftello): Document the fix.
58543         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58544         * doc/functions/stdout.text (stdout): New file.
58545         * doc/functions/stderr.text (stderr): New file.
58546         * doc/gnulib.texi (Function Substitutes): Use new files.
58547         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58548         prior to 1.7.0.
58549         * tests/test-ftello.c (main): Likewise for ftello.
58550         * tests/test-fseeko.sh: New file.
58551         * tests/test-ftello.sh: New file.
58552         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58553         with seekable stdin.
58554         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58555         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58556         (gl_REPLACE_FSEEKO): New macro.
58557         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58558         * modules/fseeko (Files): Distribute fseeko.c.
58559         * modules/ftello (Files): Distribute ftello.c.
58560         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58561         mode.
58562         * lib/ftello.c (rpl_ftello): New file.
58563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58564         fseeko, ftello.
58565         (gl_STDIN_LARGE_OFFSET): New macro.
58566         * modules/stdio (Makefile.am): Perform the replacement.
58567         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58568
58569 2007-05-23  Bruno Haible  <bruno@clisp.org>
58570
58571         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58572         GNULIB_POSIXCHECK is defined.
58573
58574 2007-05-21  Bruno Haible  <bruno@clisp.org>
58575
58576         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58577         Check also the output for NaN arguments. When cross-compiling, guess
58578         no on IRIX.
58579         * lib/vasnprintf.c: Update comments.
58580         * tests/test-vasnprintf-posix.c (strisnan): New function.
58581         (test_function): Use it.
58582         * tests/test-vasprintf-posix.c (strisnan): New function.
58583         (test_function): Use it.
58584         * tests/test-snprintf-posix.h (strisnan): New function.
58585         (test_function): Use it.
58586         * tests/test-sprintf-posix.h (strisnan): New function.
58587         (test_function): Use it.
58588         Reported by Eric Blake.
58589
58590 2007-05-20  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58593         numbers that fails on BeOS.
58594         * doc/functions/frexpl.texi: Update.
58595
58596 2007-05-20  Jim Meyering  <jim@meyering.net>
58597
58598         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58599         forced upon us by glibc-2.6.
58600
58601 2007-05-20  Bruno Haible  <bruno@clisp.org>
58602
58603         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58604         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58605         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58606         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58607         NEED_PRINTF_INFINITE.
58608         (is_infinitel): New function.
58609         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58611         gl_PREREQ_VASNPRINTF_INFINITE.
58612         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58614         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58615         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58616         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58617         gl_PREREQ_VASNPRINTF_INFINITE.
58618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58625         * doc/functions/fprintf.texi: Update.
58626         * doc/functions/printf.texi: Update.
58627         * doc/functions/snprintf.texi: Update.
58628         * doc/functions/sprintf.texi: Update.
58629         * doc/functions/vfprintf.texi: Update.
58630         * doc/functions/vprintf.texi: Update.
58631         * doc/functions/vsnprintf.texi: Update.
58632         * doc/functions/vsprintf.texi: Update.
58633
58634 2007-05-20  Bruno Haible  <bruno@clisp.org>
58635
58636         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58637         was not found in libc.
58638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58639
58640 2007-05-20  Bruno Haible  <bruno@clisp.org>
58641
58642         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58643         printed as "-nan" instead of "nan".
58644         * tests/test-vasprintf-posix.c (test_function): Likewise.
58645         * tests/test-snprintf-posix.h (test_function): Likewise.
58646         * tests/test-sprintf-posix.h (test_function): Likewise.
58647         Needed for HP-UX 11.
58648
58649 2007-05-20  Jim Meyering  <jim@meyering.net>
58650
58651         Fix buggy test for the fchownat-deref bug.
58652         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58653         symlink required for the run-test.  Without it, this test would
58654         always declare that fchownat doesn't work, and client code would
58655         unnecessarily use the replacement function with fixed libc.
58656         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58657         Reported by Greg Schafer.
58658
58659 2007-05-19  Bruno Haible  <bruno@clisp.org>
58660
58661         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58662         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58663         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58664         Needed for IRIX 6.5 and Solaris 2.5.1.
58665
58666 2007-05-19  Bruno Haible  <bruno@clisp.org>
58667
58668         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58669         (test_function): Skip tests involving -0.0 on platforms where
58670         -0.0 = 0.0.
58671         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58672         (test_function): Skip tests involving -0.0 on platforms where
58673         -0.0 = 0.0.
58674         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58675         (test_function): Skip tests involving -0.0 on platforms where
58676         -0.0 = 0.0.
58677         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58678         (test_function): Skip tests involving -0.0 on platforms where
58679         -0.0 = 0.0.
58680         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58681         tests.
58682         * tests/test-printf-posix.h (test_function): Likewise.
58683         * tests/test-printf-posix.output: Remove all -0.0 related results.
58684         Needed for IRIX 6.5.
58685
58686 2007-05-19  Bruno Haible  <bruno@clisp.org>
58687
58688         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58689         printed as "nan0x7fffffff" instead of "nan".
58690         * tests/test-vasprintf-posix.c (test_function): Likewise.
58691         * tests/test-snprintf-posix.h (test_function): Likewise.
58692         * tests/test-sprintf-posix.h (test_function): Likewise.
58693         * tests/test-fprintf-posix.h (NaN): Remove macro.
58694         (test_function): Remove all NaN related tests.
58695         * tests/test-printf-posix.h (NaN): Remove macro.
58696         (test_function): Remove all NaN related tests.
58697         * tests/test-printf-posix.output: Remove all NaN related results.
58698         Needed for IRIX 6.5.
58699
58700 2007-05-19  Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58704
58705 2007-05-19  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/float_.h: New file.
58708         * m4/float_h.m4: New file.
58709         * modules/float: New file.
58710         * modules/isnanl (Dependencies): Add float.
58711         * modules/isnanl-nolibm (Dependencies): Likewise.
58712         * modules/mathl (Dependencies): Likewise.
58713         * modules/printf-frexpl (Dependencies): Likewise.
58714         * modules/signbit (Dependencies): Likewise.
58715         * modules/vasnprintf (Dependencies): Likewise.
58716         * doc/headers/float.texi: Update.
58717
58718 2007-05-19  Jim Meyering  <jim@meyering.net>
58719
58720         * lib/utimens.c (gl_futimens): Rename from futimens,
58721         now that glibc-2.6 declares futimens.
58722         * lib/utimens.h: Likewise.
58723
58724 2007-05-19  Bruno Haible  <bruno@clisp.org>
58725
58726         Avoid test failures on mingw.
58727         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58728         * tests/test-printf-posix.sh: Likewise.
58729         * tests/test-vfprintf-posix.sh: Likewise.
58730         * tests/test-vprintf-posix.sh: Likewise.
58731
58732 2007-05-19  Bruno Haible  <bruno@clisp.org>
58733
58734         Fix *printf result for NaN, Inf, -0.0 on mingw.
58735         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58736         * lib/vasnprintf.c: Include math.h and isnan.h.
58737         (is_infinite_or_zero): New function.
58738         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58739         values in the %f, %F, %e, %E, %g, %G directives.
58740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58741         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58742         gl_PRINTF_INFINITE and test its result. Invoke
58743         gl_PREREQ_VASNPRINTF_INFINITE.
58744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58745         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58746         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58747         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58748         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58751         * doc/functions/fprintf.texi: Update.
58752         * doc/functions/printf.texi: Update.
58753         * doc/functions/snprintf.texi: Update.
58754         * doc/functions/sprintf.texi: Update.
58755         * doc/functions/vfprintf.texi: Update.
58756         * doc/functions/vprintf.texi: Update.
58757         * doc/functions/vsnprintf.texi: Update.
58758         * doc/functions/vsprintf.texi: Update.
58759
58760 2007-05-19  Bruno Haible  <bruno@clisp.org>
58761
58762         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58763         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58764         Instead of multiplying with 10^k, set extra_zeroes to k.
58765         (scale10_round_long_double): Remove function.
58766
58767 2007-05-18  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58770         introduced on 2007-05-06.
58771
58772 2007-05-18  Bruno Haible  <bruno@clisp.org>
58773
58774         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58775         %g directives.
58776         * tests/test-vasprintf-posix.c (test_function): Likewise.
58777         * tests/test-snprintf-posix.h (test_function): Likewise.
58778         * tests/test-sprintf-posix.h (test_function): Likewise.
58779
58780 2007-05-18  Bruno Haible  <bruno@clisp.org>
58781
58782         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58783         (strmatch): New function.
58784         (test_function): Test the %f directive on numbers of various exponents.
58785         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58786         (strmatch): New function.
58787         (test_function): Test the %f directive on numbers of various exponents.
58788         * tests/test-snprintf-posix.h (strmatch): New function.
58789         (test_function): Test the %f directive on numbers of various exponents.
58790         * tests/test-sprintf-posix.h (strmatch): New function.
58791         (test_function): Test the %f directive on numbers of various exponents.
58792         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58793         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58794         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58795         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58796
58797 2007-05-18  Bruno Haible  <bruno@clisp.org>
58798
58799         Add support for 'long double' number output.
58800         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58801         * lib/vasnprintf.c: Include math.h and float+.h.
58802         (mp_limb_t): New type.
58803         (GMP_LIMB_BITS): New macro.
58804         (mp_twolimb_t): New type.
58805         (GMP_TWOLIMB_BITS): New macro.
58806         (mpn_t): New type.
58807         (multiply, divide, convert_to_decimal, decode_long_double,
58808         scale10_round_long_double, scale10_round_decimal_long_double,
58809         floorlog10l): New functions.
58810         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58811         for the %f, %F, %e, %E, %g, %G directives.
58812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58813         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58814         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58815         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58816         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58817         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58818         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58819         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58823         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58824         * modules/snprintf-posix (Depends-on): Likewise.
58825         * modules/sprintf-posix (Depends-on): Likewise.
58826         * modules/vasnprintf-posix (Depends-on): Likewise.
58827         * modules/vasprintf-posix (Depends-on): Likewise.
58828         * modules/vfprintf-posix (Depends-on): Likewise.
58829         * modules/vsnprintf-posix (Depends-on): Likewise.
58830         * modules/vsprintf-posix (Depends-on): Likewise.
58831         * modules/vasnprintf (Files): Add lib/float+.h.
58832         * doc/functions/fprintf.texi: Update.
58833         * doc/functions/printf.texi: Update.
58834         * doc/functions/snprintf.texi: Update.
58835         * doc/functions/sprintf.texi: Update.
58836         * doc/functions/vfprintf.texi: Update.
58837         * doc/functions/vprintf.texi: Update.
58838         * doc/functions/vsnprintf.texi: Update.
58839         * doc/functions/vsprintf.texi: Update.
58840
58841 2007-05-18  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58844
58845 2007-05-18  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58848         for printing 64-bit integers. Needed for mingw.
58849
58850 2007-05-18  Bruno Haible  <bruno@clisp.org>
58851
58852         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58853         gl_FUNC_FREXPL_WORKS.
58854         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58855
58856 2007-05-18  Bruno Haible  <bruno@clisp.org>
58857
58858         * modules/frexpl-nolibm-tests: New file.
58859
58860         * modules/frexpl-nolibm: New file.
58861         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58862
58863 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58864
58865         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58866         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58867         GCC 4.2, which otherwise issues a lot of warnings.
58868         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58869         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58870         Likewise.
58871         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58872         * modules/iconv_open (iconv.h): Likewise.
58873         * modules/locale (locale.h): Likewise.
58874         * modules/netinet_in (netinet/in.h): Likewise.
58875         * modules/sys_select (sys_select.h): Likewise.
58876         * modules/sys_socket (sys/socket.h): Likewise.
58877         * modules/sys_stat (sys/stat.h): Likewise.
58878         * modules/sysexits (sysexits.h): Likewise.
58879         * modules/unistd (unistd.h): Likewise.
58880
58881 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58882
58883         * modules/closein-tests (Makefile.am): Distribute
58884         `test-closein.sh'.
58885
58886 2007-05-17  Bruno Haible  <bruno@clisp.org>
58887
58888         * tests/test-printf-posix.output: Renamed from
58889         tests/test-fprintf-posix.out.
58890         * modules/fprintf-posix-tests: Update.
58891         * modules/printf-posix-tests: Update.
58892         * modules/vfprintf-posix-tests: Update.
58893         * modules/vprintf-posix-tests: Update.
58894         * tests/test-fprintf-posix.sh: Update.
58895         * tests/test-printf-posix.sh: Update.
58896         * tests/test-vfprintf-posix.sh: Update.
58897         * tests/test-vprintf-posix.sh: Update.
58898         Reported by Ralf Wildenhues.
58899
58900 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58903         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58904         GCC 4.2, which otherwise issues a lot of warnings.
58905         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58906         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58907         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58908         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58909         it should no longer be needed.
58910         * lib/string_.h: Likewise.
58911         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58912         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58913         * modules/inttypes (inttypes.h): Likewise.
58914         * modules/math (math.h): Likewise.
58915         * modules/search (search.h): Likewise.
58916         * modules/signal (signal.h): Likewise.
58917         * modules/stdint (stdint.h): Likewise.
58918         * modules/stdio (stdio.h): Likewise.
58919         * modules/stdlib (stdlib.h): Likewise.
58920         * modules/string (string.h): Likewise.
58921         * modules/sys_time (sys/time.h): Likewise.
58922         * modules/time (time.h): Likewise.
58923         * modules/wchar (wchar.h): Likewise.
58924         * modules/wctype (wtype.h): Likewise.
58925
58926 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58927
58928         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58929
58930 2007-05-13  Bruno Haible  <bruno@clisp.org>
58931
58932         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58933         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58934         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58935         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58936         (gl_PREREQ_STRTOK_R): Don't require it here.
58937
58938 2007-05-13  Bruno Haible  <bruno@clisp.org>
58939
58940         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58941         when used in C++ mode.
58942
58943 2007-05-12  Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/linebuffer.h: Tweak doc.
58946         * lib/linebuffer.c: Likewise.
58947
58948 2007-05-12  James Youngman  <jay@gnu.org>
58949
58950         * lib/linebuffer.c (readlinebuffer_delim): New function,
58951         like readlinebuffer, but use a caller-specified delimiter.
58952         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58953         as the delimiter.
58954         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58955
58956 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58957
58958         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58959         * modules/openat (Files): Remove openat-die.c.
58960         (Depends-on): Add openat-die.
58961         * modules/openat-die: New module.
58962
58963 2007-05-06  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58966         Update with info about Cygwin.
58967         * doc/functions/fprintf.texi: Update.
58968         * doc/functions/printf.texi: Update.
58969         * doc/functions/snprintf.texi: Update.
58970         * doc/functions/sprintf.texi: Update.
58971         * doc/functions/vfprintf.texi: Update.
58972         * doc/functions/vprintf.texi: Update.
58973         * doc/functions/vsnprintf.texi: Update.
58974         * doc/functions/vsprintf.texi: Update.
58975         Reported by Eric Blake.
58976
58977 2007-05-06  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58980         padding ourselves for the floating-point directives.
58981         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58984         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58985         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58988         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58990         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58993         * tests/test-snprintf-posix.h (test_function): Also check the width
58994         and some flags in the %f directive.
58995         * tests/test-sprintf-posix.h (test_function): Likewise.
58996         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58997         * tests/test-vasprintf-posix.c (test_function): Likewise.
58998         * doc/functions/fprintf.texi: Update.
58999         * doc/functions/printf.texi: Update.
59000         * doc/functions/snprintf.texi: Update.
59001         * doc/functions/sprintf.texi: Update.
59002         * doc/functions/vfprintf.texi: Update.
59003         * doc/functions/vprintf.texi: Update.
59004         * doc/functions/vsnprintf.texi: Update.
59005         * doc/functions/vsprintf.texi: Update.
59006
59007 2007-05-06  Bruno Haible  <bruno@clisp.org>
59008
59009         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59010         pass the ' flag character to sprintf or snprintf.
59011         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59012         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59014         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59015         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59016         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59017         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59023         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59024         flag.
59025         * tests/test-sprintf-posix.h (test_function): Likewise.
59026         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59027         * tests/test-vasprintf-posix.c (test_function): Likewise.
59028         * doc/functions/fprintf.texi: Update.
59029         * doc/functions/printf.texi: Update.
59030         * doc/functions/snprintf.texi: Update.
59031         * doc/functions/sprintf.texi: Update.
59032         * doc/functions/vfprintf.texi: Update.
59033         * doc/functions/vprintf.texi: Update.
59034         * doc/functions/vsnprintf.texi: Update.
59035         * doc/functions/vsprintf.texi: Update.
59036
59037 2007-05-01  Bruno Haible  <bruno@clisp.org>
59038
59039         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59040
59041 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59042
59043         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59044         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59045
59046 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59049         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59051
59052 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59053
59054         * lib/argp-help.c (struct hol_entry): New member `ord'.
59055         (HOL_ENTRY_PTRCMP): Use ord for comparison
59056         (hol_sort): Initialize ord.
59057
59058 2007-05-01  Bruno Haible  <bruno@clisp.org>
59059
59060         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59061         Reported by Eric Blake.
59062         * doc/gnulib.texi (Function Substitutes): Update.
59063
59064 2007-05-01  Bruno Haible  <bruno@clisp.org>
59065
59066         * doc/functions.texi: Remove file, now redundant through
59067         doc/functions/*.texi.
59068
59069 2007-05-01  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/argp (Depends-on): Add sleep.
59072
59073 2007-05-01  Bruno Haible  <bruno@clisp.org>
59074
59075         * modules/sleep-tests: New file.
59076         * tests/test-sleep.c: New file.
59077
59078         * modules/sleep: New file.
59079         * lib/sleep.c: New file.
59080         * m4/sleep.m4: New file.
59081         * lib/unistd_.h (sleep): New declaration.
59082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59083         HAVE_SLEEP.
59084         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59085         * doc/functions/sleep.texi: Document the sleep module.
59086
59087 2007-05-01  Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/sigprocmask.h: Remove file.
59090         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59091         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59092         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59093         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59094         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59095         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59096         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59097         HAVE_SIGSET_T as a shell variable.
59098         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59099         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59100         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59101         (Depends-on): Add signal. Remove verify.
59102         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59103         (Include): Mention <signal.h> instead of sigprocmask.h.
59104         * NEWS: Mention the change.
59105         * lib/fatal-signal.c: Don't include sigprocmask.h.
59106
59107 2007-05-01  Bruno Haible  <bruno@clisp.org>
59108
59109         * modules/signal: New file.
59110         * lib/signal_.h: New file.
59111         * m4/signal_h.m4: New file.
59112
59113 2007-05-01  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59116         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59117         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59118         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59119
59120 2007-05-01  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59123         configure time.
59124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59125         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59126         * modules/sys_stat (Makefile.am): Substitute their values into
59127         sys/stat.h.
59128
59129 2007-05-01  Bruno Haible  <bruno@clisp.org>
59130
59131         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59132         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59133         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59134
59135 2007-05-01  Bruno Haible  <bruno@clisp.org>
59136
59137         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59138         'assert' module here.
59139
59140 2007-05-01  Bruno Haible  <bruno@clisp.org>
59141
59142         * doc/functions/*.texi: New files.
59143         * doc/functions/google-ranking.txt: New file.
59144         * doc/gnulib.texi (Function Substitutes): New chapter.
59145         (ctime, inet_ntoa): Remove sections.
59146         * doc/ctime.texi: Remove file.
59147         * doc/inet_ntoa.texi: Remove file.
59148         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59149         dependencies.
59150         (%.info): New rule, specifying a --reference-limit.
59151
59152 2007-05-01  Bruno Haible  <bruno@clisp.org>
59153
59154         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59155
59156 2007-05-01  Bruno Haible  <bruno@clisp.org>
59157
59158         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59159         the portability of 'mkdir' to mingw systems.
59160
59161 2007-05-01  Bruno Haible  <bruno@clisp.org>
59162
59163         * doc/headers/google-ranking.txt: New file.
59164
59165 2007-04-30  Eric Blake  <ebb9@byu.net>
59166
59167         Prefer fseeko to fseek.
59168         * modules/getpass (Depends-on): Add fseeko.
59169         * lib/getpass.c (getpass): Use fseeko, not fseek.
59170
59171 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59172
59173         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59174         assumes the sorting is stable, while most qsort implementations
59175         are not.  Use argument addresses to ensure they never compare as
59176         equal.
59177
59178         * tests/test-argp-2.sh (usage-indent test): Fix output
59179         (func_compare): Restore diff options
59180         * tests/test-argp.c: Restore #include "progname.h"
59181
59182 2007-04-29  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59186         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59187         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59188         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59189         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59190         (TESTS, check_PROGRAMS): Add test-snprintf.
59191         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59192         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59193         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59194         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59195         assertions that fail on HP-UX, OSF/1, or IRIX.
59196         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59197
59198 2007-04-29  Bruno Haible  <bruno@clisp.org>
59199
59200         * MODULES.html.sh (posix_functions): Remove 'contents'.
59201
59202 2007-04-29  Karl Berry  <karl@gnu.org>
59203
59204         * config/srclist.txt (gendocs_template_min): new entry.
59205
59206 2007-04-29  Bruno Haible  <bruno@clisp.org>
59207
59208         Work around fpurge bug on BSD systems.
59209         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59210         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59211         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59212         fpurge to rpl_fpurge if the system already has this function.
59213         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59214         the case where the system already has this function. Correct invariants
59215         on BSD systems.
59216         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59217         BSD systems.
59218
59219 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59220
59221         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59222         proposed by Sven Verdoolaege.
59223
59224         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59225         options.
59226         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59227         (usage and help tests): Update
59228
59229 2007-04-29  Bruno Haible  <bruno@clisp.org>
59230
59231         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59232         Print more information in case of failure. Disable a test on BeOS.
59233
59234 2007-04-29  Bruno Haible  <bruno@clisp.org>
59235
59236         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59237         This helps debugging on systems on which no gdb is available.
59238
59239 2007-04-29  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/freading.h: Improve comments.
59242         * lib/fwriting.h: Likewise.
59243         * tests/test-freading.c (main): Don't check freading immediately after
59244         repositioning. Needed for glibc.
59245
59246 2007-04-29  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/freading.c (freading): Trivial simplification.
59249
59250 2007-04-28  Bruno Haible  <bruno@clisp.org>
59251
59252         * tests/test-fwriting.c (main): Also test the interaction between
59253         fflush and fwriting.
59254         * modules/fwriting-tests (Depends-on): Add fflush.
59255
59256         * tests/test-freading.c (main): Also test the interaction between
59257         fflush and freading.
59258         * modules/freading-tests (Depends-on): Add fflush.
59259
59260 2007-04-28  Bruno Haible  <bruno@clisp.org>
59261
59262         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59263         fseeko and ftello.
59264         Suggested by Eric Blake.
59265
59266 2007-04-28  Jim Meyering  <jim@meyering.net>
59267
59268         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59269         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59270         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59271
59272 2007-04-27  Eric Blake  <ebb9@byu.net>
59273
59274         * doc/headers/assert.texi (assert.h): Document assert module use.
59275
59276 2007-04-27  Bruno Haible  <bruno@clisp.org>
59277
59278         * doc/headers/*.texi: New files.
59279         * doc/gnulib.texi (Header File Substitutes): New chapter.
59280         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59281         dependencies.
59282         (standards.info ,standards.html, standards.dvi): Update dependencies.
59283         (mostlyclean, clean): New targets.
59284
59285 2007-04-27  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59288         * modules/sysexits (Files, Makefile.am): Update.
59289
59290         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59291         * modules/sys_socket (Files, Makefile.am): Update.
59292
59293         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59294         * modules/sys_stat (Files, Makefile.am): Update.
59295
59296 2007-04-27  Eric Blake  <ebb9@byu.net>
59297
59298         * lib/freading.h: Improve comments.
59299         * lib/fwriting.h: Likewise.
59300         * lib/fflush.c: Likewise.
59301
59302         Fix closein for mingw.
59303         * modules/closein-tests: Add tests for closein.
59304         * tests/test-closein.c: New file.
59305         * tests/test-closein.sh: Likewise.
59306         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59307         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59308
59309 2007-04-27  Bruno Haible  <bruno@clisp.org>
59310
59311         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59312         version is < 6.
59313         * lib/math_.h [__DECC]: Likewise.
59314         * lib/stdio_.h [__DECC]: Likewise.
59315         * lib/stdlib_.h [__DECC]: Likewise.
59316         * lib/string_.h [__DECC]: Likewise.
59317         * lib/time_.h [__DECC]: Likewise.
59318         * lib/wchar_.h [__DECC]: Likewise.
59319         * lib/wctype_.h [__DECC]: Likewise.
59320
59321 2007-04-27  Bruno Haible  <bruno@clisp.org>
59322
59323         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59324
59325 2007-04-27  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/fflush.c: Add comments.
59328         * modules/fpurge-tests (Depends-on): Add fflush.
59329         * modules/freadable-tests (Depends-on): Likewise.
59330         * modules/fwritable-tests (Depends-on): Likewise.
59331
59332 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59333
59334         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59335         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59336         Report by Bruno Haible <bruno@clisp.org>.
59337
59338 2007-04-26  Eric Blake  <ebb9@byu.net>
59339
59340         Fix fflush on mingw.
59341         * modules/fflush (Depends-on): Add freading.
59342         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59343         but unread data.
59344
59345 2007-04-26  Eric Blake  <ebb9@byu.net>
59346         and Bruno Haible  <bruno@clisp.org>
59347
59348         Implement freading and fwriting.
59349         * lib/freading.c: New file.
59350         * lib/freading.h: Likewise.
59351         * m4/freading.m4: Likewise.
59352         * modules/freading: Likewise.
59353         * modules/freading-tests: Likewise.
59354         * tests/test-freading.c: Likewise.
59355         * lib/fwriting.c: New file.
59356         * lib/fwriting.h: Likewise.
59357         * m4/fwriting.m4: Likewise.
59358         * modules/fwriting: Likewise.
59359         * modules/fwriting-tests: Likewise.
59360         * tests/test-fwriting.c: Likewise.
59361         * MODULES.html.sh (File stream based Input/Output): Mention them.
59362
59363 2007-04-26  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59366         'long' when we assume it.
59367         Suggested by Eric Blake.
59368
59369 2007-04-26  Bruno Haible  <bruno@clisp.org>
59370
59371         Ensure fseeko, ftello are declared on glibc systems.
59372         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59373         * modules/fseeko (configure.ac-early): Likewise.
59374         * modules/ftello (configure.ac-early): Likewise.
59375         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59376         AC_FUNC_FSEEKO for this.
59377         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59378         (gl_CHECK_FSEEKO): Remove macro.
59379
59380 2007-04-26  Bruno Haible  <bruno@clisp.org>
59381
59382         * tests/test-fflush.c (main): Also check the ftell result after
59383         fflush and fseek/fseeko.
59384         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59385         file descriptor position cache in the stream.
59386         * lib/fseeko.c (rpl_fseeko): Likewise.
59387
59388 2007-04-26  Bruno Haible  <bruno@clisp.org>
59389
59390         * modules/fflush-tests (Depends-on): Add fseeko.
59391
59392 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59393             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59394
59395         * lib/argz_.h: ensure error_t definition is obtained in same
59396         mechanism system argz.h would have.
59397         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59398         argz facilities are known bad.  Err on the side of caution if
59399         cross-compiling.
59400
59401 2007-04-25  Eric Blake  <ebb9@byu.net>
59402
59403         * lib/fpurge.c (includes): Use stdlib.h for free.
59404         * tests/test-fflush.c (main): Also test fflush-fseeko.
59405
59406 2007-04-25  Bruno Haible  <bruno@clisp.org>
59407
59408         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59409         * lib/fseeko.c: New file.
59410         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59411         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59412         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59413         gl_FUNC_FSEEKO.
59414         (gl_FUNC_FSEEKO): Invoke it.
59415         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59416         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59417         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59418
59419 2007-04-25  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/fflush (Depends-on): Add ftello.
59422
59423 2007-04-25  Bruno Haible  <bruno@clisp.org>
59424
59425         * modules/ftello-tests: New file.
59426         * tests/test-ftello.c: New file.
59427
59428         * modules/ftello: New file.
59429         * m4/ftello.m4: New file.
59430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59431         HAVE_FTELLO.
59432         * lib/stdio_.h (ftello): New declaration.
59433         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59434         HAVE_FTELLO.
59435
59436 2007-04-25  Bruno Haible  <bruno@clisp.org>
59437
59438         * modules/fseeko-tests: New file.
59439         * tests/test-fseeko.c: New file.
59440
59441         * modules/fseeko: New file.
59442         * m4/fseeko.m4: New file.
59443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59444         HAVE_FSEEKO.
59445         * lib/stdio_.h (fseeko): New declaration.
59446         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59447         HAVE_FSEEKO.
59448
59449 2007-04-25  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59452
59453 2007-04-25  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59456         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59457         * tests/test-unistd.c: Likewise.
59458         * tests/test-fcntl.c: Likewise.
59459
59460 2007-04-23  Eric Blake  <ebb9@byu.net>
59461
59462         * lib/fflush.c: Fix missing include.
59463         Reported by Bruno Haible.
59464
59465 2007-04-23  Bruno Haible  <bruno@clisp.org>
59466
59467         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59468         Reported by Eric Blake.
59469
59470 2007-04-23  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59473
59474 2007-04-23  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59477
59478 2007-04-23  Bruno Haible  <bruno@clisp.org>
59479
59480         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59481         Needed on HP-UX 11.
59482
59483 2007-04-16  Eric Blake  <ebb9@byu.net>
59484
59485         Make fflush rely on fpurge.
59486         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59487         open coding all variants.
59488         * modules/fflush (Depends-on): Add fpurge and unistd.
59489         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59490         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59491
59492         Fix --with-tests compilation on cygwin.
59493         * modules/argmatch-tests (Makefile.am): List gnulib library first
59494         in LDADD.
59495         * modules/argp-tests (Makefile.am): Likewise.
59496         * modules/array-list-tests (Makefile.am): Likewise.
59497         * modules/array-oset-tests (Makefile.am): Likewise.
59498         * modules/avltree-list-tests (Makefile.am): Likewise.
59499         * modules/avltree-oset-tests (Makefile.am): Likewise.
59500         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59501         * modules/carray-list-tests (Makefile.am): Likewise.
59502         * modules/dirname-tests (Makefile.am): Likewise.
59503         * modules/frexp-tests (Makefile.am): Likewise.
59504         * modules/isnanl-tests (Makefile.am): Likewise.
59505         * modules/linked-list-tests (Makefile.am): Likewise.
59506         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59507         * modules/lock-tests (Makefile.am): Likewise.
59508         * modules/rbtree-list-tests (Makefile.am): Likewise.
59509         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59510         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59511         * modules/tls-tests (Makefile.am): Likewise.
59512         * modules/tsearch-tests (Makefile.am): Likewise.
59513         * modules/xvasprintf-tests (Makefile.am): Likewise.
59514
59515         Fix fpurge for cygwin.
59516         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59517         value.
59518         * modules/fpurge-tests (Depends-on): Clean up trash.
59519
59520 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59521
59522         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59523
59524         * m4/autobuild.m4: Re-indent.
59525
59526 2007-04-13  Bruno Haible  <bruno@clisp.org>
59527
59528         * modules/fpurge-tests: New file.
59529         * tests/test-fpurge.c: New file.
59530
59531         * modules/fpurge: New file.
59532         * lib/fpurge.h: New file.
59533         * lib/fpurge.c: New file.
59534         * m4/fpurge.m4: New file.
59535
59536 2007-04-13  Bruno Haible  <bruno@clisp.org>
59537
59538         * modules/fbufmode-tests: New file.
59539         * tests/test-fbufmode.c: New file.
59540
59541         * modules/fbufmode: New file.
59542         * lib/fbufmode.h: New file.
59543         * lib/fbufmode.c: New file.
59544         * m4/fbufmode.m4: New file.
59545
59546 2007-04-13  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/fwritable-tests: New file.
59549         * tests/test-fwritable.c: New file.
59550
59551         * modules/fwritable: New file.
59552         * lib/fwritable.h: New file.
59553         * lib/fwritable.c: New file.
59554         * m4/fwritable.m4: New file.
59555
59556 2007-04-13  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/freadable-tests: New file.
59559         * tests/test-freadable.c: New file.
59560
59561         * modules/freadable: New file.
59562         * lib/freadable.h: New file.
59563         * lib/freadable.c: New file.
59564         * m4/freadable.m4: New file.
59565
59566 2007-04-13  Bruno Haible  <bruno@clisp.org>
59567
59568         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59569         MOSTLYCLEANFILES.
59570
59571 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59574         gzip bootstrap.conf to avoid dragging in i18n machinery.
59575         (gnulib_tool_option): Use it.
59576
59577 2007-04-13  Bruno Haible  <bruno@clisp.org>
59578
59579         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59580         %F directives.
59581         * tests/test-vasprintf-posix.c (test_function): Likewise.
59582         * tests/test-snprintf-posix.h (test_function): Likewise.
59583         * tests/test-sprintf-posix.h (test_function): Likewise.
59584         * tests/test-fprintf-posix.h (test_function): Likewise.
59585         * tests/test-printf-posix.h (test_function): Likewise.
59586         * tests/test-fprintf-posix.out: Likewise.
59587
59588 2007-04-13  Bruno Haible  <bruno@clisp.org>
59589
59590         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59591         * modules/tls-tests (configure.ac): Likewise.
59592         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59593
59594 2007-04-13  Bruno Haible  <bruno@clisp.org>
59595
59596         * lib/tls.c (glthread_tls_get): Fix return type.
59597         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59598
59599 2007-04-12  Eric Blake  <ebb9@byu.net>
59600
59601         * modules/gettime (Depends-on): Remove gettime.
59602         Reported by Dmitry V. Levin.
59603
59604 2007-04-12  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/fflush (Include): Mention <stdio.h>.
59607         * modules/strtoimax (Include): Mention <inttypes.h>.
59608         * modules/strtoumax (Include): Likewise.
59609
59610 2007-04-12  Eric Blake  <ebb9@byu.net>
59611
59612         * .cvsignore: New file.
59613         * .gitignore: Likewise.
59614
59615 2007-04-12  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59618         not before, since $(LDADD) often contains libgnu.a.
59619         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59620         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59621         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59622         Needed on Cygwin.
59623
59624 2007-04-12  Eric Blake  <ebb9@byu.net>
59625
59626         Work around glibc's failure to flush stdin on fclose.
59627         * lib/closein.c (close_stdin): Flush stdin before closing.
59628
59629         Work around glibc's failure to reset seekable stdin on exit.
59630         * modules/closein: New module.
59631         * lib/closein.c: New file.
59632         * lib/closein.h: Likewise.
59633         * m4/closein.m4: Likewise.
59634         * MODULES.html.sh (File stream based Input/Output): Document it.
59635
59636 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59637
59638         * gnulib-tool: Rename generated 'autobuild' script to
59639         'do-autobuild' in --create-megatestdir output.
59640
59641         * doc/gnulib.texi (Build robot for gnulib): Fix.
59642
59643 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59644
59645         * modules/sysexits (Depends-on): Add absolute-header.
59646
59647 2007-04-12  Eric Blake  <ebb9@byu.net>
59648
59649         No need to preserve errno on success.
59650         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59651         Reported by Bruno Haible.
59652
59653 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59654
59655         * MODULES.html.sh (Support for maintaining and releasing
59656         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59657
59658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59659
59660         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59661
59662 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59663
59664         * modules/autobuild: New module.
59665
59666         * m4/autobuild.m4: New file.
59667
59668 2007-04-11  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59671         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59675         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59676         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59680         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59689         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59695         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59698         Reported by Eric Blake.
59699
59700 2007-04-11  Bruno Haible  <bruno@clisp.org>
59701
59702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59703
59704 2007-04-10  Bruno Haible  <bruno@clisp.org>
59705
59706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59707         for NaN and Infinity. Needed on FreeBSD 6.1.
59708         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59709         regarding results for "%010a" of Infinity and NaN.
59710         * tests/test-vasprintf-posix.c (test_function): Likewise.
59711         * tests/test-snprintf-posix.h (test_function): Likewise.
59712         * tests/test-sprintf-posix.h (test_function): Likewise.
59713         * tests/test-fprintf-posix.h (test_function): Likewise.
59714         * tests/test-printf-posix.h (test_function): Likewise.
59715         * tests/test-fprintf-posix.out: Likewise.
59716
59717 2007-04-10  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/locale-tests: New file.
59720         * tests/test-locale.c: New file.
59721
59722         * modules/locale: New file.
59723         * lib/locale_.h: New file.
59724         * m4/locale_h.m4: New file.
59725
59726 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59727             Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59730         be determined, test for availability of the copysignf, copysign,
59731         copysignl functions.
59732         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59733         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59734         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59735
59736 2007-04-09  Eric Blake  <ebb9@byu.net>
59737
59738         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59739         * modules/stdio (Makefile.am): Support fflush.
59740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59741         * modules/fflush: New file.
59742         * lib/fflush.c: Likewise.
59743         * m4/fflush.m4: Likewise.
59744         * modules/fflush-tests: New test.
59745         * tests/test-fflush.c: Likewise.
59746         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59747
59748 2007-04-06  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59751         (VASNPRINTF): Use signbit for faster determination whether to print a
59752         minus sign.
59753         * modules/vasnprintf (Files): Remove lib/float+.h.
59754         * modules/fprintf-posix (Depends-on): Add signbit.
59755         * modules/snprintf-posix (Depends-on): Likewise.
59756         * modules/sprintf-posix (Depends-on): Likewise.
59757         * modules/vasnprintf-posix (Depends-on): Likewise.
59758         * modules/vasprintf-posix (Depends-on): Likewise.
59759         * modules/vfprintf-posix (Depends-on): Likewise.
59760         * modules/vsnprintf-posix (Depends-on): Likewise.
59761         * modules/vsprintf-posix (Depends-on): Likewise.
59762
59763 2007-04-06  Bruno Haible  <bruno@clisp.org>
59764
59765         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59766         * tests/test-frexpl.c (main): Likewise.
59767         * tests/test-ldexpl.c (main): Likewise.
59768         * modules/frexp-tests (Depends-on): Add signbit.
59769         * modules/frexpl-tests (Depdends-on): Likewise.
59770         * modules/ldexpl-tests (Depdends-on): Likewise.
59771
59772 2007-04-06  Bruno Haible  <bruno@clisp.org>
59773
59774         * modules/signbit-tests: New file.
59775         * tests/test-signbit.c: New file.
59776
59777         * modules/signbit: New file.
59778         * lib/signbitf.c: New file.
59779         * lib/signbitd.c: New file.
59780         * lib/signbitl.c: New file.
59781         * m4/signbit.m4: New file.
59782         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59783         (signbit): New macro.
59784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59785         REPLACE_SIGNBIT.
59786         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59787         REPLACE_FREXPL into math.h.
59788
59789 2007-04-06  Bruno Haible  <bruno@clisp.org>
59790
59791         * modules/isnanf-nolibm-tests: New file.
59792         * tests/test-isnanf.c: New file.
59793
59794         * modules/isnanf-nolibm: New file.
59795         * lib/isnanf.h: New file.
59796         * lib/isnanf.c: New file.
59797         * lib/isnan.c: Consider the USE_FLOAT macro.
59798         * m4/isnanf.m4: New file.
59799
59800 2007-04-06  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59803         (Link): New section.
59804
59805         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59806
59807 2007-04-06  Bruno Haible  <bruno@clisp.org>
59808
59809         Assume the 'long double' type.
59810         * m4/longdouble.m4: Remove file.
59811         * config/srclist.txt: Don't mention longdouble.m4.
59812         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59813         * lib/float+.h: Likewise.
59814         * lib/frexp.c: Likewise.
59815         * lib/printf-args.h: Likewise.
59816         * lib/printf-args.c: Likewise.
59817         * lib/printf-frexp.c: Likewise.
59818         * lib/printf-parse.c: Likewise.
59819         * lib/vasnprintf.c: Likewise.
59820         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59821         * m4/intl.m4: Likewise.
59822         * m4/isnanl.m4: Likewise.
59823         * m4/printf.m4: Likewise.
59824         * m4/printf-frexpl.m4: Likewise.
59825         * m4/vasnprintf.m4: Likewise.
59826         * modules/allocsa (Files): Remove m4/longdouble.m4.
59827         * modules/gettext (Files): Likewise.
59828         * modules/relocatable-prog-wrapper (Files): Likewise.
59829         * modules/vasnprintf (Files): Likewise.
59830         * modules/isnanl (Files): Likewise.
59831         (Include): Simplify.
59832         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59833         (Include): Simplify.
59834         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59835         (Include): Simplify.
59836         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59838         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59840         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59841         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59842         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59844         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59846         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59847         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59848         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59849         * tests/test-isnanl.c: Likewise.
59850         * tests/test-snprintf-posix.h: Likewise.
59851         * tests/test-sprintf-posix.h: Likewise.
59852         * tests/test-vasnprintf-posix.c: Likewise.
59853         * tests/test-vasnprintf-posix2.c: Likewise.
59854         * tests/test-vasprintf-posix.c: Likewise.
59855
59856 2007-04-06  Bruno Haible  <bruno@clisp.org>
59857
59858         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59859         * lib/math_.h [__DECC]: Include the overridden include file through
59860         #include_next, outside the double-inclusion guard.
59861         * lib/stdio_.h [__DECC]: Likewise.
59862         * lib/stdlib_.h [__DECC]: Likewise.
59863         * lib/string_.h [__DECC]: Likewise.
59864         * lib/time_.h [__DECC]: Likewise.
59865         * lib/wchar_.h [__DECC]: Likewise.
59866         * lib/wctype_.h [__DECC]: Likewise.
59867         * lib/inttypes_.h [__DECC]: Likewise.
59868         Reported by Albert Chin <china@thewrittenword.com> in
59869         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59870
59871 2007-04-04  Eric Blake  <ebb9@byu.net>
59872
59873         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59874         1.5.x.
59875
59876 2007-04-04  Bruno Haible  <bruno@clisp.org>
59877
59878         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59879         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59880
59881 2007-04-04  Bruno Haible  <bruno@clisp.org>
59882
59883         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59884         results for "%010a" of Infinity and NaN.
59885         * tests/test-vasprintf-posix.c (test_function): Likewise.
59886         * tests/test-snprintf-posix.h (test_function): Likewise.
59887         * tests/test-sprintf-posix.h (test_function): Likewise.
59888         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59889         * tests/test-printf-posix.h (test_function): Likewise.
59890         * tests/test-fprintf-posix.out: Update.
59891         Needed for FreeBSD 6.1.
59892
59893 2007-04-04  Bruno Haible  <bruno@clisp.org>
59894
59895         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59896         directly used by the gnulib modules nor by gnulib-tool.
59897
59898 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * DEPENDENCIES: Give overall description of version dependency
59901         desirability.  Use more-typical names for apps.
59902         Add shell, coreutils, diffutils, grep, tar, gzip.
59903
59904 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59905
59906         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59907
59908 2007-04-04  Karl Berry  <karl@gnu.org>
59909
59910         * MODULES.html.sh (func_module): missing '.
59911
59912 2007-04-03  Bruno Haible  <bruno@clisp.org>
59913
59914         * modules/argmatch-tests (Makefile.am): New variable
59915         test_argmatch_LDADD.
59916         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59917         * modules/array-list-tests (Makefile.am): New variable
59918         test_array_list_LDADD.
59919         * modules/array-oset-tests (Makefile.am): New variable
59920         test_array_oset_LDADD.
59921         * modules/avltree-list-tests (Makefile.am): New variable
59922         test_avltree_list_LDADD.
59923         * modules/avltree-oset-tests (Makefile.am): New variable
59924         test_avltree_oset_LDADD.
59925         * modules/avltreehash-list-tests (Makefile.am): New variable
59926         test_avltreehash_list_LDADD.
59927         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59928         test_canonicalize_lgpl_LDADD.
59929         * modules/carray-list-tests (Makefile.am): New variable
59930         test_carray_list_LDADD.
59931         * modules/dirname-tests (Makefile.am): New variable
59932         test_dirname_LDADD.
59933         * modules/linked-list-tests (Makefile.am): New variable
59934         test_linked_list_LDADD.
59935         * modules/linkedhash-list-tests (Makefile.am): New variable
59936         test_linkedhash_list_LDADD.
59937         * modules/rbtree-list-tests (Makefile.am): New variable
59938         test_rbtree_list_LDADD.
59939         * modules/rbtree-oset-tests (Makefile.am): New variable
59940         test_rbtree_oset_LDADD.
59941         * modules/rbtreehash-list-tests (Makefile.am): New variable
59942         test_rbtreehash_list_LDADD.
59943         * modules/xvasprintf-tests (Makefile.am): New variable
59944         test_xvasprintf_LDADD.
59945         Reported by Eric Blake.
59946
59947 2007-04-03  Eric Blake  <ebb9@byu.net>
59948
59949         * DEPENDENCIES: Weaken m4 requirements.
59950
59951 2007-04-03  Bruno Haible  <bruno@clisp.org>
59952
59953         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59954         * modules/isnanl-tests (configure.ac): Likewise.
59955
59956 2007-04-03  Ben Pfaff  <blp@gnu.org>
59957
59958         * modules/iconv_open: Add $(srcdir)/ to source directory
59959         references in Makefile fragments that call gperf, to fix VPATH
59960         builds.
59961
59962 2007-04-03  Bruno Haible  <bruno@clisp.org>
59963
59964         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59965         * lib/ldexpl.c: Undo last change.
59966
59967 2007-04-03  Bruno Haible  <bruno@clisp.org>
59968
59969         * modules/printf-frexpl (Depends-on): Undo last change.
59970         (Files): Add m4/ldexpl.m4.
59971
59972 2007-04-03  Bruno Haible  <bruno@clisp.org>
59973
59974         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59975         * modules/isnanl (Link): New section.
59976
59977         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59978         * modules/frexp (Link): New section.
59979
59980         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59981         * modules/frexpl (Link): New section.
59982
59983         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59984         * modules/ldexpl (Link): New section.
59985
59986 2007-04-03  Bruno Haible  <bruno@clisp.org>
59987
59988         * modules/TEMPLATE-EXTENDED: New file.
59989         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59990
59991 2007-04-03  Bruno Haible  <bruno@clisp.org>
59992
59993         * DEPENDENCIES: New file.
59994         Suggested by Simon Josefsson.
59995
59996 2007-04-03  Bruno Haible  <bruno@clisp.org>
59997
59998         * doc/gnulib.texi: Escape @.
59999
60000 2007-04-03  James Youngman  <jay@gnu.org>
60001         and Paul Eggert  <eggert@cs.ucla.edu>
60002
60003         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60004         birthtime on all systems that have birthtime, not just those which
60005         use st_birthtimensec rather than st_birthtim.  Putting zero in
60006         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60007         that the birth time is not available for files on an NFS mount.
60008
60009 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60010
60011         * modules/memxor: Move back from crypto/, suggested by Bruno.
60012         * modules/crypto/hmac-sha1: Fix memxor dependency.
60013
60014         * modules/crypto/gc: Moved from ../.
60015
60016 2007-04-02  Eric Blake  <ebb9@byu.net>
60017
60018         * lib/ldexpl.c (includes): Avoid libm.
60019
60020         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60021
60022 2007-04-02  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60025         on IRIX.
60026
60027 2007-04-02  Bruno Haible  <bruno@clisp.org>
60028
60029         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60030         x86 or x86_64 platforms running MacOS X.
60031         Reported by Ryan Schmidt <@ryandesign.com>.
60032
60033 2007-04-02  Bruno Haible  <bruno@clisp.org>
60034
60035         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60036         i386.
60037
60038 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60039
60040         * modules/crypto/arcfour: Moved from ../.
60041         * modules/crypto/arcfour-tests: Moved from ../.
60042         * modules/crypto/arctwo: Moved from ../.
60043         * modules/crypto/arctwo-tests: Moved from ../.
60044         * modules/crypto/des: Moved from ../.
60045         * modules/crypto/des-tests: Moved from ../.
60046         * modules/crypto/gc-arcfour: Moved from ../.
60047         * modules/crypto/gc-arcfour-tests: Moved from ../.
60048         * modules/crypto/gc-arctwo: Moved from ../.
60049         * modules/crypto/gc-arctwo-tests: Moved from ../.
60050         * modules/crypto/gc-des: Moved from ../.
60051         * modules/crypto/gc-des-tests: Moved from ../.
60052         * modules/crypto/gc-hmac-md5: Moved from ../.
60053         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60054         * modules/crypto/gc-hmac-sha1: Moved from ../.
60055         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60056         * modules/crypto/gc-md2: Moved from ../.
60057         * modules/crypto/gc-md2-tests: Moved from ../.
60058         * modules/crypto/gc-md4: Moved from ../.
60059         * modules/crypto/gc-md4-tests: Moved from ../.
60060         * modules/crypto/gc-md5: Moved from ../.
60061         * modules/crypto/gc-md5-tests: Moved from ../.
60062         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60063         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60064         * modules/crypto/gc-random: Moved from ../.
60065         * modules/crypto/gc-rijndael: Moved from ../.
60066         * modules/crypto/gc-rijndael-tests: Moved from ../.
60067         * modules/crypto/gc-sha1: Moved from ../.
60068         * modules/crypto/gc-sha1-tests: Moved from ../.
60069         * modules/crypto/gc-tests: Moved from ../.
60070         * modules/crypto/hmac-md5: Moved from ../.
60071         * modules/crypto/hmac-md5-tests: Moved from ../.
60072         * modules/crypto/hmac-sha1: Moved from ../.
60073         * modules/crypto/hmac-sha1-tests: Moved from ../.
60074         * modules/crypto/md2: Moved from ../.
60075         * modules/crypto/md2-tests: Moved from ../.
60076         * modules/crypto/md4: Moved from ../.
60077         * modules/crypto/md4-tests: Moved from ../.
60078         * modules/crypto/md5: Moved from ../.
60079         * modules/crypto/md5-tests: Moved from ../.
60080         * modules/crypto/memxor: Moved from ../.
60081         * modules/crypto/rijndael: Moved from ../.
60082         * modules/crypto/rijndael-tests: Moved from ../.
60083         * modules/crypto/sha1: Moved from ../.
60084
60085 2007-03-30  James Youngman  <jay@gnu.org>
60086
60087         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60088         rename() to change the ctime of a file (because ctime is unaffected
60089         by rename on jfs2 on AIX 5.1).
60090         (main): Start by doing cleanup, in case a previous run failed leaving
60091         test files behind.
60092
60093 2007-03-31  Bruno Haible  <bruno@clisp.org>
60094
60095         Support old proprietary implementations of iconv.
60096         * modules/iconv_open: New file.
60097         * lib/iconv_.h: New file.
60098         * m4/iconv_h.m4: New file.
60099         * lib/iconv_open.c: New file.
60100         * lib/iconv_open-aix.gperf: New file.
60101         * lib/iconv_open-hpux.gperf: New file.
60102         * lib/iconv_open-irix.gperf: New file.
60103         * lib/iconv_open-osf.gperf: New file.
60104         * m4/iconv_open.m4: New file.
60105         * modules/linebreak (Depends-on): Add iconv_open.
60106         * modules/striconv (Depends-on): Likewise.
60107         * modules/striconveh (Depends-on): Likewise.
60108         * modules/unicodeio (Depends-on): Likewise.
60109         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60110         (iconv_t)(-1).
60111         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60112         conversion if cd is (iconv_t)(-1).
60113         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60114         is not possible.
60115
60116 2007-03-31  Bruno Haible  <bruno@clisp.org>
60117
60118         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60119         work on Solaris either. Protect also second use of "autodetect_jp".
60120
60121 2007-03-31  Bruno Haible  <bruno@clisp.org>
60122
60123         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60124         the function is not present.
60125
60126 2007-03-31  Bruno Haible  <bruno@clisp.org>
60127
60128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60129         the function is not present.
60130
60131 2007-03-31  Bruno Haible  <bruno@clisp.org>
60132
60133         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60134         a bug in HP-UX iconv_open().
60135
60136 2007-03-31  Bruno Haible  <bruno@clisp.org>
60137
60138         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60139         (Mathematics <math.h>): New section, add fpieee.
60140         (Input/output <stdio.h>): Add fseterr.
60141         (Mathematics <math.h>): New section, add printf-frexp.
60142         (Container data structures): Add sublist.
60143         (Core language properties): Add fpucw, inline.
60144         (Functions for greatest-width integer types <inttypes.h>): Add
60145         imaxabs, imaxdiv, inttypes.
60146         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60147         isnanl-nolibm, ldexp.
60148         (Mathematics <math.h>): New section, add printf-frexpl.
60149         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60150         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60151         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60152         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60153         (Unicode string functions): Add unistr/u*-mbtoucr.
60154         (Java): Add javacomp-script, javaexec-script.
60155         (C#): Add csharpcomp-script, csharpexec-script.
60156         (Support for building libraries and executables): Add havelib,
60157         relocatable-*.
60158         (Support for maintaining and releasing projects): Renamed from
60159         'Support for maintaining and release projects'. Add announce-gen.
60160
60161 2007-03-31  Bruno Haible  <bruno@clisp.org>
60162
60163         * README: Talk primarily about git.
60164         (git and CVS): Renamed from CVS.
60165         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60166         gnulib is available through git.
60167         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60168
60169 2007-03-30  Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60172         * lib/poll_.h: Likewise.
60173         * lib/stat_.h: Likewise.
60174         * lib/sys_time_.h: Likewise.
60175         * lib/sysexit_.h: Likewise.
60176         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60177         * lib/stdbool_.h: Likewise.
60178         * lib/byteswap_.h: Add double-inclusion guard.
60179
60180 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60181
60182         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60183
60184 2007-03-30  Karl Berry  <karl@gnu.org>
60185
60186         * config/srclist-update: double space after USA in the license
60187         substitution, since that's how it's usually (?) written.
60188
60189 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60192         reported by Bruno Haible.
60193
60194 2007-03-29  Bruno Haible  <bruno@clisp.org>
60195
60196         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60197         a bug in AIX iconv().
60198
60199 2007-03-29  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/ldexpl-tests: New file.
60202         * tests/test-ldexpl.c: New file.
60203
60204 2007-03-29  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/ldexpl.c: Include fpucw.h.
60207         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60208         multiplication.
60209         * modules/ldexpl (Depends-on): Add fpucw.
60210
60211 2007-03-29  Bruno Haible  <bruno@clisp.org>
60212
60213         * modules/ldexpl: New file.
60214         * m4/ldexpl.m4: New file.
60215         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60216         set.
60217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60218         REPLACE_LDEXPL.
60219         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60220         REPLACE_LDEXPL.
60221         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60222         gl_FUNC_LDEXPL_WORKS.
60223         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60224         * modules/mathl (Files): Remove lib/ldexpl.c.
60225         (Depends-on): Add ldexpl.
60226
60227 2007-03-29  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60230
60231 2007-03-29  Bruno Haible  <bruno@clisp.org>
60232
60233         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60234         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60235         and possibly also HP-UX.
60236         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60237         work on AIX, IRIX, HP-UX, OSF/1.
60238         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60239         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60240         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60241         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60242         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60243         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60244
60245 2007-03-29  Bruno Haible  <bruno@clisp.org>
60246
60247         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60248
60249 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60252         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60253
60254 2007-03-29  Eric Blake  <ebb9@byu.net>
60255
60256         * lib/acl-internal.h: Remove redundant include.
60257         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60258         Cygwin when a file is locked.
60259
60260 2007-03-29  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60263         file.
60264         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60265
60266 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60269         try to remove a parent directory if the child couldn't be removed
60270         (except for the first rmdir, which could fail because the child
60271         doesn't exist).  Problem reported by Jeff Blaine in
60272         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60273
60274 2007-03-28  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/striconveh.c (utf8conv_carefully): New function.
60277         (mem_cd_iconveh_internal): Invoke it.
60278
60279 2007-03-28  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60282         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60283         input.
60284         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60285         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60286         unistr/u8-uctomb.
60287
60288 2007-03-28  Bruno Haible  <bruno@clisp.org>
60289
60290         * modules/unistr/u8-mbtoucr: New file.
60291         * lib/unistr/u8-mbtoucr.c: New file.
60292         * modules/unistr/u16-mbtoucr: New file.
60293         * lib/unistr/u16-mbtoucr.c: New file.
60294         * modules/unistr/u16-mbtoucr: New file.
60295         * lib/unistr/u16-mbtoucr.c: New file.
60296         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60297
60298 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60299             Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60302         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60303         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60304
60305         * m4/stdio_h.m4: Add stubs for vasprintf too.
60306
60307         * modules/stdio: Support vasprintf in sed command.
60308
60309         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60310         vasprintf.h.  Add stdio module indicator.
60311
60312         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60313         vasprintf.h.
60314
60315         * lib/vasprintf.h: File removed.
60316
60317         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60318         * lib/vasprintf.c: Ditto.
60319         * lib/xvasprintf.c: Ditto.
60320         * tests/test-vasprintf-posix.c: Ditto.
60321         * tests/test-vasprintf.c: Ditto.
60322
60323 2007-03-27  Bruno Haible  <bruno@clisp.org>
60324
60325         Make vasnprintf multithread-safe.
60326         * lib/vasnprintf.c (decimal_point_char): New function.
60327         (VASNPRINTF): Use it.
60328         Suggested by Simon Josefsson.
60329
60330 2007-03-27  Eric Blake  <ebb9@byu.net>
60331
60332         Support sub-second birthtime on cygwin.
60333         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60334         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60335         (get_stat_birthtime): Also work with st_birthtim.
60336
60337 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60338
60339         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60340         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60341         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60342         (get_stat_birthtime_ns): Simplify compile-time tests.
60343         (get_stat_birthtime): Change the API to look like
60344         get_stat_mtime etc., except return a negative tv_nsec on error.
60345         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60346         Don't check for "spare" fields.
60347         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60348         or for struct stat.st_birthtime, as these tests aren't used.
60349         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60350
60351 2007-03-27  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/stat-time.h: Include <sys/stat.h>.
60354
60355 2007-03-27  James Youngman  <jay@gnu.org>
60356
60357         * lib/stat-time.h (get_stat_birthtime): New function for
60358           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60359         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60360           and its variants.
60361         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60362         * modules/stat-time-test: New file.
60363         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60364
60365 2007-03-26  Bruno Haible  <bruno@clisp.org>
60366
60367         Better support of signalling NaNs.
60368         * lib/atanl.c: Include isnanl.h.
60369         (atanl): Perform test for NaN at the beginning of the function and
60370         through a call to isnanl.
60371         * lib/cosl.c: Include isnanl.h.
60372         (cosl): Perform test for NaN at the beginning of the function and
60373         through a call to isnanl.
60374         * lib/ldexpl.c: Include isnanl.h.
60375         (ldexpl): Perform test for NaN through a call to isnanl.
60376         * lib/logl.c: Include isnanl.h.
60377         (logl): Perform test for NaN at the beginning of the function and
60378         through a call to isnanl.
60379         * lib/sinl.c: Include isnanl.h.
60380         (sinl): Perform test for NaN at the beginning of the function and
60381         through a call to isnanl.
60382         * lib/sqrtl.c: Include isnanl.h.
60383         (sqrtl): Perform test for NaN at the beginning of the function and
60384         through a call to isnanl.
60385         * lib/tanl.c: Include isnanl.h.
60386         (tanl): Perform test for NaN at the beginning of the function and
60387         through a call to isnanl.
60388         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60389         * modules/mathl (Depends-on): Add isnanl.
60390
60391 2007-03-26  Eric Blake  <ebb9@byu.net>
60392
60393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60394         regression in logic sense of previous patch.
60395
60396 2007-03-26  Bruno Haible  <bruno@clisp.org>
60397
60398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60399         unportable shell command "if ! ...".
60400         Reported by Ralf Wildenhues.
60401
60402 2007-03-25  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60405         <sysexits.h> file, and only add EX_CONFIG.
60406         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60407         absolute file name and whether it is sufficient. Substitute also
60408         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60409         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60410         ABSOLUTE_SYSEXITS_H into sysexits.h.
60411
60412 2007-03-25  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60415         hints is NULL.
60416
60417 2007-03-25  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60420         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60421
60422 2007-03-25  Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/vasnprintf.c: Include langinfo.h.
60425         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60426         multithread-safe.
60427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60436         Reported by Simon Josefsson.
60437
60438 2007-03-25  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60441         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60442         * modules/vasnprintf (Depends-on): Add stdint.
60443
60444 2007-03-25  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/fpieee: New file.
60447         * m4/fpieee.m4: New file.
60448         * modules/isnan-nolibm (Depends-on): Add fpieee.
60449         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60450         * modules/isnanl (Depends-on): Add fpieee.
60451
60452 2007-03-25  Bruno Haible  <bruno@clisp.org>
60453
60454         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60455
60456 2007-03-25  Bruno Haible  <bruno@clisp.org>
60457
60458         Avoid test failures on IRIX 6.5.
60459         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60460         (main): Use it.
60461         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60462         macros.
60463         (main): Use them.
60464
60465 2007-03-25  Bruno Haible  <bruno@clisp.org>
60466
60467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60468         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60469         exists but doesn't work.
60470         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60471         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60473         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60474         math.h.
60475
60476 2007-03-25  Bruno Haible  <bruno@clisp.org>
60477
60478         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60479         returns inf. Needed on IRIX 6.5.
60480
60481 2007-03-25  Bruno Haible  <bruno@clisp.org>
60482
60483         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60484         (main): Use isnanl instead of x != x idiom.
60485         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60486
60487         * tests/test-frexp.c: Include isnan.h.
60488         (main): Use isnan instead of x != x idiom.
60489         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60490
60491 2007-03-25  Bruno Haible  <bruno@clisp.org>
60492
60493         * tests/test-frexp.c (NaN): New function/macro.
60494         (main): Use it instead of 0.0 / 0.0.
60495         * tests/test-isnan.c (NaN): New function/macro.
60496         (main): Use it instead of 0.0 / 0.0.
60497         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60498         (test_function): Use it instead of 0.0 / 0.0.
60499         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60500         (test_function): Use it instead of 0.0 / 0.0.
60501         * tests/test-snprintf-posix.h (NaN): New function/macro.
60502         (test_function): Use it instead of 0.0 / 0.0.
60503         * tests/test-sprintf-posix.h (NaN): New function/macro.
60504         (test_function): Use it instead of 0.0 / 0.0.
60505         * tests/test-fprintf-posix.h (NaN): New function/macro.
60506         (test_function): Use it instead of 0.0 / 0.0.
60507         * tests/test-printf-posix.h (NaN): New function/macro.
60508         (test_function): Use it instead of 0.0 / 0.0.
60509
60510         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60511
60512 2007-03-25  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60515
60516 2007-03-25  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/regexec.c (merge_state_with_log): Make static.
60519
60520 2007-03-25  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/trigl.c (kernel_rem_pio2): Make static.
60523
60524 2007-03-25  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/sincosl.c (sincosl_table): Make static.
60527
60528 2007-03-25  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60531         if the compiler does not support C99.
60532
60533 2007-03-25  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/time (Makefile.am): Ensure all rule action lines start with a
60536         tab.
60537
60538 2007-03-24  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/tsearch-tests: New file.
60541         * tests/test-tsearch.sh: New file.
60542         * tests/test-tsearch.c: New file, mostly copied from glibc.
60543
60544         * modules/search-tests: New file.
60545         * tests/test-search.c: New file.
60546
60547         * modules/search: New file.
60548         * lib/search_.h: New file, incorporating lib/tsearch.h.
60549         * m4/search_h.m4: New file.
60550         * lib/tsearch.h: Remove file.
60551         * lib/tsearch.c: Include search.h instead of tsearch.h.
60552         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60553         HAVE_TSEARCH.
60554         * modules/tsearch (Files): Remove lib/tsearch.h.
60555         (Depends-on): Add search.
60556         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60557         (Include): Change tsearch.h into search.h.
60558
60559 2007-03-24  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/fpucw: New file.
60562         * lib/fpucw.h: New file.
60563         * lib/frexp.c: Include fpucw.h.
60564         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60565         (FUNC): Use them.
60566         * lib/printf-frexp.c: Include fpucw.h.
60567         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60568         (FUNC): Use them.
60569         * lib/vasnprintf.c: Include fpucw.h.
60570         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60571         'long double' calculations.
60572         * tests/test-frexpl.c: Include fpucw.h.
60573         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60574         * tests/test-printf-frexpl.c: Include fpucw.h.
60575         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60576         * modules/frexpl (Depends-on): Add fpucw.
60577         * modules/printf-frexpl (Depends-on): Likewise.
60578         * modules/fprintf-posix (Depends-on): Likewise.
60579         * modules/snprintf-posix (Depends-on): Likewise.
60580         * modules/sprintf-posix (Depends-on): Likewise.
60581         * modules/vasnprintf-posix (Depends-on): Likewise.
60582         * modules/vasprintf-posix (Depends-on): Likewise.
60583         * modules/vfprintf-posix (Depends-on): Likewise.
60584         * modules/vsnprintf-posix (Depends-on): Likewise.
60585         * modules/vsprintf-posix (Depends-on): Likewise.
60586         * modules/frexpl-tests (Depends-on): Likewise.
60587         * modules/printf-frexpl-tests (Depends-on): Likewise.
60588
60589 2007-03-24  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/float+.h: New file.
60592         * lib/isnan.c: Include float+.h.
60593         (SIZE): New macro.
60594         (FUNC): Compare only SIZE bytes of the value.
60595         * lib/vasnprintf.c: Include float+.h.
60596         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60597         SIZEOF_LDBL or SIZEOF_DBL bytes.
60598         * modules/isnan-nolibm (Files): Add lib/float+.h.
60599         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60600         * modules/isnanl (Files): Add lib/float+.h.
60601         * modules/vasnprintf (Files): Add lib/float+.h.
60602
60603 2007-03-24  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60606         include isnanl-nolibm.h.
60607
60608 2007-03-24  Bruno Haible  <bruno@clisp.org>
60609
60610         * tests/test-read-file.c (main): Don't produce spurious output for
60611         expected situations. Make the test fail if it encountered unexpected
60612         results.
60613
60614 2007-03-24  Bruno Haible  <bruno@clisp.org>
60615
60616         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60617         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60618
60619 2007-03-24  Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60622
60623 2007-03-24  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60626         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60627
60628         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60629         * modules/utf8-ucs4: Turn into a symbolic link to module
60630         unistr/u8-mbtouc.
60631
60632         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60633         utf8-ucs4-unsafe.
60634         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60635         unistr/u8-mbtouc-unsafe.
60636
60637         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60638         * modules/utf16-ucs4: Turn into a symbolic link to module
60639         unistr/u16-mbtouc.
60640
60641         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60642         utf16-ucs4-unsafe.
60643         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60644         unistr/u16-mbtouc-unsafe.
60645
60646         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60647         * modules/ucs4-utf8: Turn into a symbolic link to module
60648         unistr/u8-ubtomb.
60649
60650         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60651         * modules/ucs4-utf16: Turn into a symbolic link to module
60652         unistr/u16-ubtomb.
60653
60654 2007-03-24  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60657         Enable the function only if HAVE_INLINE.
60658         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60659         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60660         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60661         Enable the function only if HAVE_INLINE.
60662         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60663         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60664         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60665         Enable the function only if HAVE_INLINE.
60666         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60667         Enable the function only if HAVE_INLINE.
60668         * modules/utf8-ucs4: Update.
60669         * modules/utf8-ucs4-unsafe: Update.
60670         * modules/utf16-ucs4: Update.
60671         * modules/utf16-ucs4-unsafe: Update.
60672         * modules/ucs4-utf8: Update.
60673         * modules/ucs4-utf16: Update.
60674
60675 2007-03-24  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/utf8-ucs4.h: Remove file.
60678         * lib/utf8-ucs4-unsafe.h: Remove file.
60679         * lib/utf16-ucs4.h: Remove file.
60680         * lib/utf16-ucs4-unsafe.h: Remove file.
60681         * lib/ucs4-utf8.h: Remove file.
60682         * lib/ucs4-utf16.h: Remove file.
60683         * lib/unistr.h: Include their previous contents.
60684         * m4/utf-ucs4.m4: Remove file.
60685         * m4/ucs4-utf.m4: Remove file.
60686         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60687         (Depends-on): Add unistr/base.
60688         (configure.ac): Remove gl_UTF_UCS4.
60689         (Makefile.am): Update.
60690         (Include): Change to unistr.h.
60691         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60692         (Depends-on): Add unistr/base.
60693         (configure.ac): Remove gl_UTF_UCS4.
60694         (Makefile.am): Update.
60695         (Include): Change to unistr.h.
60696         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60697         (Depends-on): Add unistr/base.
60698         (configure.ac): Remove gl_UTF_UCS4.
60699         (Makefile.am): Update.
60700         (Include): Change to unistr.h.
60701         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60702         (Depends-on): Add unistr/base.
60703         (configure.ac): Remove gl_UTF_UCS4.
60704         (Makefile.am): Update.
60705         (Include): Change to unistr.h.
60706         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60707         (Depends-on): Add unistr/base.
60708         (configure.ac): Remove gl_UCS4_UTF.
60709         (Makefile.am): Update.
60710         (Include): Change to unistr.h.
60711         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60712         (Depends-on): Add unistr/base.
60713         (configure.ac): Remove gl_UCS4_UTF.
60714         (Makefile.am): Update.
60715         (Include): Change to unistr.h.
60716         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60717         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60718         utf8-ucs4-unsafe.h.
60719         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60720         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60721         utf16-ucs4-unsafe.h.
60722         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60723         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60724         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60725         * lib/unistr/u8-strchr.c: Likewise.
60726         * lib/unistr/u8-strrchr.c: Likewise.
60727         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60728         * lib/unistr/u16-strchr.c: Likewise.
60729         * lib/unistr/u16-strrchr.c: Likewise.
60730         * lib/striconveh.c: Update.
60731         * lib/linebreak.c: Update.
60732
60733 2007-03-24  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60736         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60737
60738 2007-03-22  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60741
60742 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         * MODULES.html.sh (File system functions): New module write-any-file.
60745         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60746         * m4/write-any-file.m4: New files.
60747
60748 2007-03-23  Eric Blake  <ebb9@byu.net>
60749
60750         * gnulib-tool: Rearrange space-tab sequences, since some editors
60751         like to eat them.
60752
60753 2007-03-23  Eric Blake  <ebb9@byu.net>
60754
60755         * lib/version-etc.c (version_etc_va): Update license wording to
60756         be more concise.  Recommended by Richard Stallman.
60757
60758 2007-03-22  Bruno Haible  <bruno@clisp.org>
60759
60760         * lib/poll.c (MSG_PEEK): New fallback definition.
60761
60762 2007-03-22  Bruno Haible  <bruno@clisp.org>
60763
60764         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60765         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60766         (main): Update.
60767         Fixes a compilation error on BeOS.
60768
60769 2007-03-22  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/frexpl-tests: New file.
60772         * tests/test-frexpl.c: New file.
60773
60774         * modules/frexpl: New file.
60775         * m4/frexpl.m4: New file.
60776         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60777         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60779         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60780         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60781         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60782
60783 2007-03-22  Bruno Haible  <bruno@clisp.org>
60784
60785         * lib/frexpl.c: Share code with lib/frexp.c.
60786         * modules/mathl (Files): Add lib/frexp.c.
60787         (Depends-on): Add isnanl-nolibm.
60788
60789 2007-03-22  Bruno Haible  <bruno@clisp.org>
60790
60791         * modules/printf-frexp (Files): Add m4/frexp.m4.
60792         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60793         only if the found frexp function actually works.
60794
60795 2007-03-22  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/frexp.c: Remove older implementation that uses divisions.
60798
60799 2007-03-21  Bruno Haible  <bruno@clisp.org>
60800
60801         * modules/frexp-tests: New file.
60802         * tests/test-frexp.c: New file.
60803
60804         * modules/frexp: New file.
60805         * lib/frexp.c: New file.
60806         * m4/frexp.m4: New file.
60807         * lib/math_.h (frexp): New declaration.
60808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60809         REPLACE_FREXP.
60810         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60811
60812 2007-03-21  Bruno Haible  <bruno@clisp.org>
60813
60814         * modules/isnanl-tests: New file.
60815         * tests/test-isnanl.c: New file.
60816
60817         * modules/isnanl: New file.
60818         * lib/isnanl.h: New file.
60819         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60820         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60821         gl_FUNC_ISNANL_WORKS.
60822         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60823         New macros.
60824
60825 2007-03-21  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60828         lib/isnanl.h.
60829         (Include): Update.
60830         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60831         * lib/vasnprintf.c: Update.
60832         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60833         tests/test-isnanl.h, remove tests/test-isnanl.c.
60834         (Makefile.am): Update.
60835         * tests/test-isnanl-nolibm.c: New file.
60836         * tests/test-isnanl.h: New file.
60837         * tests/test-isnanl.c: Remove file.
60838
60839 2007-03-21  Jim Meyering  <jim@meyering.net>
60840
60841         When trying to open ".", treat ESTALE like EACCES.
60842         * lib/savewd.c (savewd_save): Resort to forking not just upon
60843         failure with EACCES, but also when errno is ESTALE.
60844
60845 2007-03-20  Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60848         Needed on AIX 5.1. Reported by Matthew Woehlke.
60849
60850 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         Suggestions by Bruno Haible:
60853         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60854         our own.
60855         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60856         * modules/acl (Depends-on): Add gettext.
60857
60858 2007-03-19  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/iconvme: Remove file.
60861         * lib/iconvme.h: Remove file.
60862         * lib/iconvme.c: Remove file.
60863         * m4/iconvme.m4: Remove file.
60864
60865 2007-03-19  Bruno Haible  <bruno@clisp.org>
60866
60867         * doc/relocatable-maint.texi: Break long shell script line.
60868         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60869
60870 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60873         handle file_has_acl.
60874         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60875         * lib/acl.c: Move header inclusions and related macro defns into
60876         lib/acl-internal.h.
60877         (S_ISLNK): Remove defn, since that's now done for us.
60878         (file_has_acl): Move to lib/file-has-acl.c.
60879         Call acl_trivial if available.  This is the crucial part of the fix.
60880         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60881         shared within the library.  Rewrite a bit, partly to make it compatible
60882         with the GNU coding style.
60883         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60884         Remove unnecessary double-quotes.
60885         Don't test for acl_to_text; the build will catch that.
60886         Replace acl_entries if it doesn't exist and it is needed.
60887         Check for -lsec and acl_trivial (as used on Solaris 10).
60888         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60889         lib/file-has-acl.c.
60890         (Depends-on): Add sys_stat, for S_ISLNK.
60891
60892 2007-03-19  Ben Pfaff  <blp@gnu.org>
60893
60894         * doc/gnulib.texi: Fix typos.
60895         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60896
60897 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60898
60899         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60900         If size is zero here, buf must be zero.
60901
60902 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60903
60904         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60905         <bruno@clisp.org>.
60906
60907 2007-03-18  Bruno Haible  <bruno@clisp.org>
60908
60909         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60910         Suggested by Eric Blake.
60911
60912 2007-03-18  Ben Pfaff  <blp@gnu.org>
60913
60914         * doc/relocatable.texi: Recommend using as prefix a directory
60915         that does not exist and will never be created.  Based on
60916         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60917         and others.
60918
60919 2007-03-17  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/fchownat.c: Include lchown.h.
60922
60923 2007-03-17  Bruno Haible  <bruno@clisp.org>
60924
60925         Fix endless loop when the given allocated size was > INT_MAX.
60926         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60927         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60928         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60929         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60930         * lib/sprintf.c (sprintf): Likewise.
60931
60932 2007-03-17  Bruno Haible  <bruno@clisp.org>
60933
60934         * tests/test-argp-2.sh (func_compare): Output a context diff.
60935
60936 2007-03-17  Bruno Haible  <bruno@clisp.org>
60937
60938         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60939         locale's decimal-point character.
60940
60941 2007-03-17  Bruno Haible  <bruno@clisp.org>
60942
60943         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60944         before comparing it. Needed because on some platforms (e.g. x86) a
60945         'long double' occupies less bytes than sizeof (long double).
60946
60947 2007-03-17  Bruno Haible  <bruno@clisp.org>
60948
60949         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60950         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60951         * tests/test-getaddrinfo.c (simple): Likewise.
60952         * tests/test-read-file.c (main): Likewise.
60953
60954 2007-03-17  Bruno Haible  <bruno@clisp.org>
60955
60956         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60957
60958 2007-03-17  Bruno Haible  <bruno@clisp.org>
60959
60960         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60961         unused variable.
60962
60963 2007-03-17  Bruno Haible  <bruno@clisp.org>
60964
60965         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60966         * tests/test-c-strncasecmp.c: Likewise.
60967
60968 2007-03-17  Bruno Haible  <bruno@clisp.org>
60969
60970         * modules/stdlib (Depends-on): Add unistd.
60971         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60972         Needed for MacOS X 10.3.
60973
60974 2007-03-17  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60977
60978 2007-03-17  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60981
60982 2007-03-17  Bruno Haible  <bruno@clisp.org>
60983
60984         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60985         to reflect files copied from gnulib (with or without modifications).
60986         Suggested by Jim Meyering.
60987
60988 2007-03-17  Eric Blake  <ebb9@byu.net>
60989
60990         * NEWS: Document stdlib change from 2007-02-18.
60991
60992 2007-03-17  Jim Meyering  <jim@meyering.net>
60993
60994         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60995         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60996         someone uses a name containing shell meta-characters.
60997         Reported by Alfred M. Szmidt.
60998
60999         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61000
61001 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61002
61003         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61004         and copy gettext configuration files only if configure.ac contains
61005         a use of AM_GNU_GETTEXT_VERSION.
61006
61007 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61008
61009         * build-aux/bootstrap (gnulib_name): New variable.
61010         (gnulib_tool_options): Use it.
61011
61012 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61013
61014         * tests/test-des.c: Use new namespace.
61015
61016 2007-03-15  Bruno Haible  <bruno@clisp.org>
61017
61018         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61019         Reported by James Youngman <jay@gnu.org>.
61020
61021 2007-03-15  Bruno Haible  <bruno@clisp.org>
61022
61023         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61024         declared prototype. Needed with cc on OSF/1 5.1.
61025
61026 2007-03-15  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61029         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61030         (struct gl_list_implementation): Add dispose_fn argument to the
61031         'create_empty', 'create' methods.
61032         (struct gl_list_impl_base): Add field 'dispose_fn'.
61033         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61034         argument.
61035         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61036         dispose_fn argument.
61037         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61038         dispose_fn on the dropped values.
61039         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61040         dispose_fn argument.
61041         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61042         dropped values.
61043         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61044         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61045         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61046         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61047         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61048         argument.
61049         (gl_tree_list_free): Call dispose_fn on the dropped values.
61050         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61051         the dropped values.
61052         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61053         Add dispose_fn argument.
61054         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61055         Call dispose_fn on the dropped values.
61056         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61057         Add dispose_fn argument.
61058         (gl_sublist_create): Initialize the 'dispose_fn' field.
61059         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61060         * tests/test-array_list.c (main): Update.
61061         * tests/test-carray_list.c (main): Update.
61062         * tests/test-avltree_list.c (main): Update.
61063         * tests/test-rbtree_list.c (main): Update.
61064         * tests/test-avltreehash_list.c (main): Update.
61065         * tests/test-rbtreehash_list.c (main): Update.
61066         * tests/test-linked_list.c (main): Update.
61067         * tests/test-linkedhash_list.c (main): Update.
61068         * tests/test-array_oset.c (main): Update.
61069
61070 2007-03-15  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61073         (gl_oset_create_empty): Add dispose_fn argument.
61074         (struct gl_oset_implementation): Add dispose_fn argument to
61075         'create_empty' method.
61076         (struct gl_oset_impl_base): Add dispose_fn field.
61077         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61078         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61079         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61080         values.
61081         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61082         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61083         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61084         dropped value.
61085         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61086         dropped value.
61087         * tests/test-array_oset.c (main): Update.
61088         * tests/test-avltree_oset.c (main): Update.
61089         * tests/test-rbtree_oset.c (main): Update.
61090         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61091
61092 2007-03-13  Bruno Haible  <bruno@clisp.org>
61093
61094         * tests/test-stdbool.c (i): Update after last patch.
61095
61096 2007-03-12  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61099         the iswprint macro. Needed on Solaris 2.5.1.
61100
61101 2007-03-12  Bruno Haible  <bruno@clisp.org>
61102
61103         * tests/test-printf-frexp.c (main): Declare x as volatile.
61104
61105 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61106
61107         * doc/gnulib.texi (Build robot for gnulib): New section.
61108
61109 2007-03-12  Jim Meyering  <jim@meyering.net>
61110
61111         * build-aux/bootstrap: New file.
61112         * build-aux/bootstrap.conf: New file, from coreutils.
61113
61114 2007-03-11  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61117
61118 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61119
61120         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61121         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61122         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61123
61124 2007-03-11  Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61127         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61128
61129 2007-03-11  Bruno Haible  <bruno@clisp.org>
61130
61131         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61132         formula. Needed for SunPRO C 5.0.
61133
61134 2007-03-11  Bruno Haible  <bruno@clisp.org>
61135
61136         * modules/long-options (Depends-on): Add getopt.
61137
61138 2007-03-11  Bruno Haible  <bruno@clisp.org>
61139
61140         * modules/modechange (Depends-on): Add stdbool.
61141
61142 2007-03-11  Bruno Haible  <bruno@clisp.org>
61143
61144         * modules/i-ring (Depends-on): Add stdbool.
61145
61146 2007-03-11  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/gc-des (Depends-on): Add stdbool.
61149
61150 2007-03-11  Bruno Haible  <bruno@clisp.org>
61151
61152         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61153
61154 2007-03-11  Bruno Haible  <bruno@clisp.org>
61155
61156         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61157
61158 2007-03-11  Bruno Haible  <bruno@clisp.org>
61159
61160         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61161
61162 2007-03-11  Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/vasnprintf.c (sprintf): Undefine.
61165
61166 2007-03-11  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61169         initializers in SunPRO C and Compaq C compilers.
61170
61171 2007-03-11  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61174         decrementing code ANSI C compliant.
61175
61176 2007-03-11  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61179         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61180
61181 2007-03-11  Bruno Haible  <bruno@clisp.org>
61182
61183         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61184         <stdbool.h> substitute doesn't pass.
61185
61186 2007-03-11  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61189
61190 2007-03-11  Bruno Haible  <bruno@clisp.org>
61191
61192         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61193         script, for submission to autobuild.josefsson.org.
61194
61195 2007-03-10  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/canonicalize-lgpl-tests: New file.
61198         * tests/test-canonicalize-lgpl.sh: New file.
61199         * tests/test-canonicalize-lgpl.c: New file.
61200
61201         * modules/c-strcase-tests: New file.
61202         * tests/test-c-strcase.sh: New file.
61203         * tests/test-c-strcasecmp.c: New file.
61204         * tests/test-c-strncasecmp.c: New file.
61205
61206         * modules/atexit-tests: New file.
61207         * tests/test-atexit.sh: New file.
61208         * tests/test-atexit.c: New file.
61209
61210 2007-03-10  Bruno Haible  <bruno@clisp.org>
61211
61212         * tests/test-binary-io.sh: Use temporary filenames that are not so
61213         likely to clash with those of other tests (in a parallel make).
61214         * tests/test-binary-io.c: Likewise.
61215
61216 2007-03-10  Bruno Haible  <bruno@clisp.org>
61217
61218         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61219         fallback; use #error instead.
61220         Suggested by Simon Josefsson.
61221
61222 2007-03-10  Bruno Haible  <bruno@clisp.org>
61223
61224         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61225         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61226         first and the last.
61227
61228 2007-03-10  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61231
61232 2007-03-10  Bruno Haible  <bruno@clisp.org>
61233
61234         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61235         "make distcheck".
61236         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61237         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61238         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61239
61240 2007-03-10  Bruno Haible  <bruno@clisp.org>
61241
61242         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61243         variable.
61244         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61245         variable.
61246
61247 2007-03-09  Eric Blake  <ebb9@byu.net>
61248         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61249
61250         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61251         types are not being provided by gnulib.
61252         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61253         types are supported.
61254
61255 2007-03-10  Bruno Haible  <bruno@clisp.org>
61256
61257         * lib/stdio_.h (__attribute__): New macro.
61258         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61259         vsprintf): Specify __attribute__ __format__ for GCC.
61260         Suggested by Eric Blake.
61261
61262 2007-03-09  Bruno Haible  <bruno@clisp.org>
61263
61264         * modules/printf-posix-tests: New file.
61265         * tests/test-printf-posix.sh: New file.
61266         * tests/test-printf-posix.c: New file.
61267
61268         * modules/printf-posix: New file.
61269         * lib/printf.c: New file.
61270         * m4/printf-posix-rpl.m4: New file.
61271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61272         REPLACE_PRINTF.
61273         * lib/stdio_.h (printf): New declaration.
61274         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61275         ____strfmon____): New macros.
61276         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61277         REPLACE_PRINTF.
61278
61279 2007-03-09  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/test-vasnprintf-posix2.sh: New file.
61282         * tests/test-vasnprintf-posix2.c: New file.
61283         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61284         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61285         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61286
61287         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61288         a locale dependent decimal point, rather than always '.'.
61289
61290 2007-03-09  Eric Blake  <ebb9@byu.net>
61291
61292         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61293         spite of platforms like Tandem/NSK that define it to -1.
61294
61295 2007-03-08  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/vprintf-posix-tests: New file.
61298         * tests/test-vprintf-posix.sh: New file.
61299         * tests/test-vprintf-posix.c: New file.
61300         * tests/test-printf-posix.h: New file.
61301
61302         * modules/vprintf-posix: New file.
61303         * lib/vprintf.c: New file.
61304         * m4/vprintf-posix.m4: New file.
61305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61306         REPLACE_VPRINTF.
61307         * lib/stdio_.h (vprintf): New declaration.
61308         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61309         REPLACE_VPRINTF.
61310
61311 2007-03-08  Bruno Haible  <bruno@clisp.org>
61312
61313         * modules/fprintf-posix-tests: New file.
61314         * tests/test-fprintf-posix.sh: New file.
61315         * tests/test-fprintf-posix.c: New file.
61316
61317         * modules/fprintf-posix: New file.
61318         * lib/fprintf.c: New file.
61319         * m4/fprintf-posix.m4: New file.
61320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61321         REPLACE_FPRINTF.
61322         * lib/stdio_.h (fprintf): New declaration.
61323         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61324         REPLACE_FPRINTF.
61325
61326 2007-03-08  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/vfprintf-posix-tests: New file.
61329         * tests/test-vfprintf-posix.sh: New file.
61330         * tests/test-vfprintf-posix.c: New file.
61331         * tests/test-fprintf-posix.h: New file.
61332         * tests/test-fprintf-posix.out: New file.
61333
61334         * modules/vfprintf-posix: New file.
61335         * lib/vfprintf.c: New file.
61336         * m4/vfprintf-posix.m4: New file.
61337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61338         REPLACE_VFPRINTF.
61339         * lib/stdio_.h (vfprintf): New declaration.
61340         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61341         REPLACE_VFPRINTF.
61342
61343 2007-03-08  Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61346
61347 2007-03-08  Bruno Haible  <bruno@clisp.org>
61348
61349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61350         instead of 'expr' invocations.
61351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61356         Suggested by Paul Eggert.
61357
61358 2007-03-08  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/fseterr-tests: New file.
61361         * tests/test-fseterr.c: New file.
61362
61363         * modules/fseterr: New file.
61364         * lib/fseterr.h: New file.
61365         * lib/fseterr.c: New file.
61366
61367 2007-03-08  Bruno Haible  <bruno@clisp.org>
61368
61369         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61370         * lib/getopt_.h: Likewise.
61371         * lib/mbswidth.h: Likewise.
61372         * lib/setenv.h: Likewise.
61373         * lib/vasnprintf.h: Likewise.
61374         * lib/vasprintf.h: Likewise.
61375         * lib/verror.h: Likewise.
61376         * lib/xsetenv.h: Likewise.
61377         * lib/xvasprintf.h: Likewise.
61378
61379 2007-03-08  Jim Meyering  <jim@meyering.net>
61380
61381         * users.txt: Add parted.
61382
61383         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61384
61385 2007-03-07  Bruno Haible  <bruno@clisp.org>
61386
61387         * m4/printf.m4: Make the shell script snippets copy&pastable.
61388
61389 2007-03-02  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/netinet_in_.h: New file.
61392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61393         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61394         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61395         (Depends-on): Add absolute-header.
61396         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61397         into netinet/in.h.
61398
61399 2007-03-03  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/sys_select_.h: New file.
61402         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61403         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61404         * modules/sys_select (Files): Add lib/sys_select_.h.
61405         (Depends-on): Add absolute-header.
61406         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61407         into sys/select.h.
61408
61409 2007-03-02  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61412         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61413         values.
61414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61415         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61416         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61417         * modules/sys_socket (Depends-on): Add absolute-header.
61418         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61419         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61420         (Include): Remove requirement of inclusion of <sys/types.h>.
61421
61422 2007-03-02  Bruno Haible  <bruno@clisp.org>
61423
61424         * lib/byteswap_.h (bswap_32): Fix formula.
61425
61426 2007-03-06  Bruno Haible  <bruno@clisp.org>
61427
61428         * modules/sprintf-posix-tests: New file.
61429         * tests/test-sprintf-posix.c: New file.
61430
61431         * modules/sprintf-posix: New file.
61432         * lib/sprintf.c: New file.
61433         * m4/sprintf-posix.m4: New file.
61434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61435         REPLACE_SPRINTF.
61436         * lib/stdio_.h (sprintf): New declaration.
61437         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61438         REPLACE_SPRINTF.
61439
61440 2007-03-06  Bruno Haible  <bruno@clisp.org>
61441
61442         * modules/vsprintf-posix-tests: New file.
61443         * tests/test-vsprintf-posix.c: New file.
61444         * tests/test-sprintf-posix.h: New file.
61445
61446         * modules/vsprintf-posix: New file.
61447         * lib/vsprintf.c: New file.
61448         * m4/vsprintf-posix.m4: New file.
61449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61450         REPLACE_VSPRINTF.
61451         * lib/stdio_.h (vsprintf): New declaration.
61452         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61453         REPLACE_VSPRINTF.
61454
61455 2007-03-06  Bruno Haible  <bruno@clisp.org>
61456
61457         * modules/vsnprintf (Depend-on): Remove minmax.
61458
61459 2007-03-06  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/snprintf-posix-tests: New file.
61462         * tests/test-snprintf-posix.c: New file.
61463
61464         * modules/snprintf-posix: New file.
61465         * m4/snprintf-posix.m4: New file.
61466         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61467         gl_FUNC_SNPRINTF.
61468         (gl_FUNC_SNPRINTF): Invoke it.
61469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61470         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61471         is set.
61472         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61473
61474 2007-03-06  Bruno Haible  <bruno@clisp.org>
61475
61476         * modules/vsnprintf-posix-tests: New file.
61477         * tests/test-vsnprintf-posix.c: New file.
61478         * tests/test-snprintf-posix.h: New file.
61479
61480         * modules/vsnprintf-posix: New file.
61481         * m4/vsnprintf-posix.m4: New file.
61482         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61483         gl_FUNC_VSNPRINTF.
61484         (gl_FUNC_VSNPRINTF): Invoke it.
61485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61486         * lib/stdio_.h (vsnprintf): Define as a replacement if
61487         REPLACE_VSNPRINTF is set.
61488         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61489
61490 2007-03-06  Bruno Haible  <bruno@clisp.org>
61491
61492         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61494
61495 2007-03-06  Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61498         (asinl): Declare also if HAVE_DECL_ASINL is set.
61499         (atanl): Declare also if HAVE_DECL_ATANL is set.
61500         (ceill): Declare also if HAVE_DECL_CEILL is set.
61501         (cosl): Declare also if HAVE_DECL_COSL is set.
61502         (expl): Declare also if HAVE_DECL_EXPL is set.
61503         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61504         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61505         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61506         (logl): Declare also if HAVE_DECL_LOGL is set.
61507         (sinl): Declare also if HAVE_DECL_SINL is set.
61508         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61509         (tanl): Declare also if HAVE_DECL_TANL is set.
61510         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61512         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61513         declaration of frexpl, ldexpl.
61514         * modules/printf-frexpl (Depends-on): Add math.
61515         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61516
61517 2007-03-05  Bruno Haible  <bruno@clisp.org>
61518
61519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61520         frexpl and ldexpl are declared.
61521         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61522
61523 2007-03-05  Bruno Haible  <bruno@clisp.org>
61524
61525         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61526         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61527
61528 2007-03-05  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/stdio_.h: Include <stddef.h>.
61531
61532 2007-03-05  Bruno Haible  <bruno@clisp.org>
61533
61534         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61535
61536 2007-03-05  Bruno Haible  <bruno@clisp.org>
61537
61538         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61539         NetBSD 4, from Ralf Wildenhues.
61540
61541 2007-03-04  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/vasprintf.h: Update #if logic for the case when the functions
61544         exist but are overridden.
61545
61546 2007-03-04  Bruno Haible  <bruno@clisp.org>
61547
61548         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61549         implementations: glibc-2.4 and MacOS X 10.3.
61550         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61551         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61552         * tests/test-vasprintf-posix.c (test_function): Likewise.
61553
61554 2007-03-04  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/vasprintf-posix-tests: New file.
61557         * tests/test-vasprintf-posix.c: New file.
61558
61559         * modules/vasprintf-posix: New file.
61560         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61561         defined.
61562         * m4/vasprintf-posix.m4: New file.
61563         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61564         gl_FUNC_VASPRINTF.
61565         (gl_FUNC_VASPRINTF): Invoke it.
61566         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61567         here.
61568         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61569
61570 2007-03-04  Bruno Haible  <bruno@clisp.org>
61571
61572         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61573         REPLACE_GETTIMEOFDAY.
61574         * modules/sys_time (Makefile.am): Likewise.
61575         * m4/sys_time_h.m4: Likewise.
61576         * m4/gettimeofday.m4: Likewise.
61577
61578 2007-03-04  Bruno Haible  <bruno@clisp.org>
61579
61580         * modules/vasnprintf-posix-tests: New file.
61581         * tests/test-vasnprintf-posix.c: New file.
61582
61583         * modules/vasnprintf-posix: New file.
61584         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61585         printf-frexpl.h.
61586         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61587         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61588         REPLACE_VASNPRINTF is defined.
61589         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61590         gl_FUNC_VASNPRINTF.
61591         (gl_FUNC_VASNPRINTF): Invoke it.
61592         * m4/vasnprintf-posix.m4: New file.
61593         * m4/printf.m4: New file.
61594
61595 2007-03-04  Bruno Haible  <bruno@clisp.org>
61596
61597         Compile progreloc.c only if --enable-relocatable is specified.
61598         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61599         if --enable-relocatable was specified.
61600         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61601         lib_SOURCES.
61602
61603 2007-03-04  Jim Meyering  <jim@meyering.net>
61604
61605         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61606         Use it consistently, rather than enumerating errno constants.
61607
61608 2007-03-04  Bruno Haible  <bruno@clisp.org>
61609
61610         * modules/xvasprintf-tests: New file.
61611         * tests/test-xvasprintf.c: New file.
61612
61613         * modules/vasprintf-tests: New file.
61614         * tests/test-vasprintf.c: New file.
61615
61616         * modules/vasnprintf-tests: New file.
61617         * tests/test-vasnprintf.c: New file.
61618
61619         * modules/vsnprintf-tests: New file.
61620         * tests/test-vsnprintf.c: New file.
61621
61622         * modules/snprintf-tests: New file.
61623         * tests/test-snprintf.c: New file.
61624
61625 2007-03-04  Bruno Haible  <bruno@clisp.org>
61626
61627         Compile relocatable.c only if --enable-relocatable is specified.
61628         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61629         gl_RELOCATABLE_LIBRARY.
61630         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61631         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61632         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61633         gl_RELOCATABLE_LIBRARY.
61634         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61635         (Makefile.am): Remove lib_SOURCES.
61636         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61637         gl_RELOCATABLE_LIBRARY.
61638         (Makefile.am): Remove lib_SOURCES.
61639         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61640         always.
61641         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61642         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61643
61644 2007-03-04  Bruno Haible  <bruno@clisp.org>
61645
61646         * modules/argmatch-tests: New file.
61647         * tests/test-argmatch.c: New file.
61648
61649         * tests/test-allocsa.c (main): Halve the number of loop runs.
61650
61651         * modules/alloca-opt-tests: New file.
61652         * tests/test-alloca-opt.c: New file.
61653
61654 2007-03-04  Jim Meyering  <jim@meyering.net>
61655
61656         Work around difference between Linux ACLs and Solaris 10 ZFS.
61657         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61658         for EINVAL.
61659
61660 2007-03-03  Bruno Haible  <bruno@clisp.org>
61661
61662         * modules/relocatable-prog (Depends-on): Add back progreloc's
61663         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61664
61665 2007-03-03  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61668         * modules/relocatable-lib: New file.
61669
61670 2007-03-03  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/relocatable-prog: Renamed from modules/relocatable.
61673         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61674
61675 2007-03-03  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61678         m4/relocatable-lib.m4.
61679         (Depends-on): Remove 'relocatable'.
61680         (configure.ac): Add gl_RELOCATABLE_NOP.
61681
61682 2007-03-03  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/relocatable-prog-wrapper: New file.
61685         * modules/relocatable (Depends-on): Add it. Remove all other
61686         dependencies except progname.
61687         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61688
61689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61690         (gl_FUNC_STRERROR): Nop.
61691         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61692
61693         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61694         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61695
61696         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61697         (gl_FUNC_READLINK): Update.
61698
61699         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61700
61701 2007-03-03  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61704         * modules/xreadlink (Depends-on): Add unistd.
61705         * modules/xreadlink-with-size (Depends-on): Likewise.
61706
61707 2007-03-03  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61710         extracted from gt_FUNC_SETENV.
61711         (gt_FUNC_SETENV): Remove macro.
61712         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61713         remove gt_FUNC_SETENV.
61714
61715 2007-03-03  Bruno Haible  <bruno@clisp.org>
61716
61717         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61718         ENABLE_RELOCATABLE here.
61719         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61720
61721 2007-03-03  Bruno Haible  <bruno@clisp.org>
61722
61723         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61724         * tests/test-rbtreehash_list.c: Include progname.h.
61725         (main): Call set_program_name.
61726
61727         * modules/rbtree-oset-tests (Depends-on): Add progname.
61728         * tests/test-rbtree_oset.c: Include progname.h.
61729         (main): Call set_program_name.
61730
61731         * modules/rbtree-list-tests (Depends-on): Add progname.
61732         * tests/test-rbtree_list.c: Include progname.h.
61733         (main): Call set_program_name.
61734
61735         * modules/linked-list-tests (Depends-on): Add progname.
61736         * tests/test-linked_list.c: Include progname.h.
61737         (main): Call set_program_name.
61738
61739 2007-03-03  Bruno Haible  <bruno@clisp.org>
61740
61741         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61742         All uses of __restrict changed to _Restrict_.
61743         * lib/glob_.h (__restrict): Remove macro.
61744
61745 2007-03-02  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/gettext (configure.ac): Require gettext infrastructure
61748         from version 0.16.1.
61749
61750 2007-03-02  Bruno Haible  <bruno@clisp.org>
61751
61752         * modules/linkedhash-list-tests (Depends-on): Add progname.
61753         * tests/test-linkedhash_list.c: Include progname.h.
61754         (main): Call set_program_name.
61755
61756         * modules/carray-list-tests (Depends-on): Add progname.
61757         * tests/test-carray_list.c: Include progname.h.
61758         (main): Call set_program_name.
61759
61760         * modules/avltreehash-list-tests (Depends-on): Add progname.
61761         * tests/test-avltreehash_list.c: Include progname.h.
61762         (main): Call set_program_name.
61763
61764         * modules/avltree-oset-tests (Depends-on): Add progname.
61765         * tests/test-avltree_oset.c: Include progname.h.
61766         (main): Call set_program_name.
61767
61768         * modules/avltree-list-tests (Depends-on): Add progname.
61769         * tests/test-avltree_list.c: Include progname.h.
61770         (main): Call set_program_name.
61771
61772         * modules/array-oset-tests (Depends-on): Add progname.
61773         * tests/test-array_oset.c: Include progname.h.
61774         (main): Call set_program_name.
61775
61776         * modules/array-list-tests (Depends-on): Add progname.
61777         * tests/test-array_list.c: Include progname.h.
61778         (main): Call set_program_name.
61779
61780         * modules/argp-tests (Depends-on): Add progname.
61781         * tests/test-argp.c: Include argp.h first. Include progname.h.
61782         (main): Call set_program_name.
61783
61784 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * doc/gnulib-tool.texi (Initial import): Reword description of
61787         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61788         limited effect even if defined after the first system include.
61789
61790 2007-03-01  Bruno Haible  <bruno@clisp.org>
61791
61792         * build-aux/config.libpath: Update to libtool-1.5.22.
61793         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61794
61795 2007-03-01  Bruno Haible  <bruno@clisp.org>
61796
61797         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61798         foo_CFLAGS.
61799         Reported by Ralf Wildenhues.
61800
61801 2007-03-01  Bruno Haible  <bruno@clisp.org>
61802
61803         * build-aux/install-reloc: Remove object files left over by some
61804         compilers.
61805         Reported by Ralf Wildenhues.
61806
61807 2007-03-01  Bruno Haible  <bruno@clisp.org>
61808
61809         * build-aux/install-reloc: Break long lines.
61810
61811 2007-03-01  Bruno Haible  <bruno@clisp.org>
61812
61813         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61814         Reported by Ralf Wildenhues.
61815
61816 2007-03-01  Bruno Haible  <bruno@clisp.org>
61817
61818         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61819         include ordering constraints.
61820
61821 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61825         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61826         as another example.
61827         * lib/time_.h: Fix misspelling.
61828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61829         Require gl_HEADER_TIME_H_DEFAULTS.
61830         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61831         * m4/time_r.m4 (gl_TIME_R): Likewise.
61832         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61833
61834 2007-03-01  Bruno Haible  <bruno@clisp.org>
61835
61836         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61837         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61838
61839 2007-03-01  Jim Meyering  <jim@meyering.net>
61840
61841         * modules/xreadlink (Maintainer): Add my name.
61842         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61843
61844 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61845             Bruno Haible  <bruno@clisp.org>
61846
61847         * build-aux/install-reloc: Compile also c-ctype.c.
61848         * build-aux/relocatable.sh.in: New file.
61849         * doc/relocatable.texi: New file.
61850         * doc/relocatable-maint.texi: New file.
61851         * doc/gnulib.texi: Include relocatable-maint.texi.
61852         * lib/progreloc.c: Include unistd.h unconditionally.
61853         * lib/relocwrapper.c: Include unistd.h unconditionally.
61854         Include c-ctype.h.
61855         (add_dotbin): Use c_tolower.
61856         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61857         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61858         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61859         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61860         to m4/relocatable-lib.m4.
61861         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61862         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61863         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61864         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61865         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61866         * modules/relocatable: New file.
61867         * modules/relocatable-lib: New file.
61868         * modules/relocatable-script: New file.
61869
61870 2007-02-28  Bruno Haible  <bruno@clisp.org>
61871
61872         Import --enable-relocatable infrastructure.
61873         * build-aux/config.libpath: New file, from GNU gettext.
61874         * build-aux/install-reloc: New file, from GNU gettext.
61875         * build-aux/reloc-ldflags: New file, from GNU gettext.
61876         * lib/relocatable.h: New file, from GNU gettext.
61877         * lib/relocatable.c: New file, from GNU gettext.
61878         * lib/relocwrapper.c: New file, from GNU gettext.
61879         * m4/relocatable.m4: New file, from GNU gettext.
61880
61881 2007-02-28  Bruno Haible  <bruno@clisp.org>
61882
61883         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61884
61885         * modules/xreadlink: New file, from GNU gettext with modifications.
61886         * lib/xreadlink.c: New file, from GNU gettext.
61887         * lib/xreadlink.h: Add comments.
61888         (xreadlink): New declaration.
61889
61890         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61891         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61892         lib/xreadlink-with-size.c.
61893         (configure.ac): Remove gl_XREADLINK invocation.
61894         (Makefile.am): Augment lib_SOURCES.
61895         * m4/xreadlink.m4: Remove file.
61896         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61897         (xreadlink_with_size): Renamed from xreadink.
61898         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61899         * modules/canonicalize (Depends-on): Replace xreadlink with
61900         xreadlink-with-size.
61901         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61902
61903 2007-02-25  Jim Meyering  <jim@meyering.net>
61904
61905         * build-aux/announce-gen: When complaining about excess arguments,
61906         list them.
61907
61908 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61909
61910         * README: Document signed integer overflow situation more
61911         accurately.
61912
61913 2007-02-25  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61916         'a' or 'A' conversion.
61917
61918 2007-02-25  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/filename: Renamed from modules/pathname.
61921         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61922         lib/concatpath.c with lib/concat-filename.c.
61923         (Makefile.am): Update.
61924         (Include): Replace pathname.h with filename.h.
61925         * lib/filename.h: Renamed from lib/pathname.h.
61926         (concatenated_filename): Renamed from concatenated_pathname.
61927         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61928         (concatenated_filename): Renamed from concatenated_pathname.
61929         * lib/findprog.c: Include filename.h instead of pathname.h.
61930         (find_in_path): Update.
61931         * lib/javacomp.c: Include filename.h instead of pathname.h.
61932         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61933         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61934         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61935         is_oldgcj_14_13_usable, is_javac_usable): Update.
61936         * lib/javaexec.c: Include filename.h instead of pathname.h.
61937         (execute_java_class): Update.
61938         * modules/findprog: Update.
61939         * modules/javacomp: Update.
61940         * modules/javaexec: Update.
61941         * MODULES.html.sh (File system functions): Add 'filename', remove
61942         'pathname'.
61943
61944 2007-02-25  Bruno Haible  <bruno@clisp.org>
61945
61946         * modules/printf-frexpl-tests: New file.
61947         * tests/test-printf-frexpl.c: New file.
61948
61949         * modules/printf-frexpl: New file.
61950         * lib/printf-frexpl.h: New file.
61951         * lib/printf-frexpl.c: New file.
61952         * m4/printf-frexpl.m4: New file.
61953
61954 2007-02-25  Bruno Haible  <bruno@clisp.org>
61955
61956         * modules/printf-frexp-tests: New file.
61957         * tests/test-printf-frexp.c: New file.
61958
61959         * modules/printf-frexp: New file.
61960         * lib/printf-frexp.h: New file.
61961         * lib/printf-frexp.c: New file.
61962         * m4/printf-frexp.m4: New file.
61963
61964 2007-02-25  Bruno Haible  <bruno@clisp.org>
61965
61966         Assume automake >= 1.10 for the tests.
61967         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61968         * modules/arctwo-tests: Likewise.
61969         * modules/argp-tests: Likewise.
61970         * modules/avltree-list-tests: Likewise.
61971         * modules/avltree-oset-tests: Likewise.
61972         * modules/avltreehash-list-tests: Likewise.
61973         * modules/carray-list-tests: Likewise.
61974         * modules/crc-tests: Likewise.
61975         * modules/des-tests: Likewise.
61976         * modules/gc-arcfour-tests: Likewise.
61977         * modules/gc-arctwo-tests: Likewise.
61978         * modules/gc-des-tests: Likewise.
61979         * modules/gc-hmac-md5-tests: Likewise.
61980         * modules/gc-hmac-sha1-tests: Likewise.
61981         * modules/gc-md2-tests: Likewise.
61982         * modules/gc-md4-tests: Likewise.
61983         * modules/gc-md5-tests: Likewise.
61984         * modules/gc-pbkdf2-sha1-tests: Likewise.
61985         * modules/gc-rijndael-tests: Likewise.
61986         * modules/gc-sha1-tests: Likewise.
61987         * modules/gc-tests: Likewise.
61988         * modules/getaddrinfo-tests: Likewise.
61989         * modules/hmac-md5-tests: Likewise.
61990         * modules/hmac-sha1-tests: Likewise.
61991         * modules/linked-list-tests: Likewise.
61992         * modules/linkedhash-list-tests: Likewise.
61993         * modules/lock-tests: Likewise.
61994         * modules/md2-tests: Likewise.
61995         * modules/md4-tests: Likewise.
61996         * modules/md5-tests: Likewise.
61997         * modules/rbtree-list-tests: Likewise.
61998         * modules/rbtree-oset-tests: Likewise.
61999         * modules/rbtreehash-list-tests: Likewise.
62000         * modules/read-file-tests: Likewise.
62001         * modules/rijndael-tests: Likewise.
62002         * modules/stdint-tests: Likewise.
62003         * modules/tls-tests: Likewise.
62004
62005 2007-02-24  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62008         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62009         function; instead check whether isnan with a double argument links.
62010         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62011         function; instead check whether isnan with a 'long double' argument
62012         links.
62013         Reported by Eric Blake <ebb9@byu.net>.
62014
62015 2007-02-24  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62018         defined.
62019         * lib/isnanl.c: Remove all code. Just include isnan.c.
62020         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62021
62022 2007-02-25  Jim Meyering  <jim@meyering.net>
62023
62024         Avoid conflicting types for 'unsetenv' on FreeBSD.
62025         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62026         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62027         in stdlib.h.
62028
62029 2007-02-24  Bruno Haible  <bruno@clisp.org>
62030
62031         * modules/isnanl-nolibm-tests: New file.
62032         * tests/test-isnanl.c: New file.
62033
62034         * modules/isnanl-nolibm: New file.
62035         * lib/isnanl.h: New file.
62036         * lib/isnanl.c: New file.
62037         * m4/isnanl.m4: New file.
62038
62039 2007-02-24  Bruno Haible  <bruno@clisp.org>
62040
62041         * modules/isnan-nolibm-tests: New file.
62042         * tests/test-isnan.c: New file.
62043
62044         * modules/isnan-nolibm: New file.
62045         * lib/isnan.h: New file.
62046         * lib/isnan.c: New file.
62047         * m4/isnan.m4: New file.
62048
62049 2007-02-24  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62052         assume that an exponent fits in 20 bits.
62053
62054 2007-02-24  Jim Meyering  <jim@meyering.net>
62055
62056         * m4/regex.m4: Update the description of the configure-time option,
62057         --without-included-regex, to state accurately what the defaults are,
62058         and perhaps to give people an idea why using this option is risky.
62059
62060 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62063         loops on small arguments.  This attempts to avoid the problem
62064         Bruno Haible reported for AIX 4.3.2 in
62065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62066
62067 2007-02-23  Bruno Haible  <bruno@clisp.org>
62068
62069         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62070         Needed for help2man.
62071
62072 2007-02-23  Karl Berry  <karl@gnu.org>
62073
62074         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62075         exists, foo.h should be cvs-ignored, not committed.
62076
62077 2007-02-23  Eric Blake  <ebb9@byu.net>
62078
62079         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62080         * lib/stat-time.h (includes): Likewise.
62081         * lib/utimecmp.c (includes): Likewise.
62082         * lib/utimens.h (includes): Likewise.
62083         * lib/getdate.y (includes): Also include "timespec.h" for use
62084         internal to the module.
62085         * modules/utimens (Depends-on): Revert yesterday's patch.
62086         * modules/nanosleep (Depends-on): Add missing dependency.
62087
62088 2007-02-22  Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/glob.c: Don't include getlogin_r.h.
62091
62092 2007-02-22  Jim Meyering  <jim@meyering.net>
62093
62094         * modules/utimens (Depends-on): Add timespec, required for
62095         utimens.h's inclusion of timespec.h.
62096
62097 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62100         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62101         Schwab in
62102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62103         I'll try to think of a better way to fix the Solaris problem.
62104
62105         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62106         like glibc; on Solaris 10, it fails with errno == EINVAL.
62107         POSIX says the behavior is unspecified if the first argument is NULL,
62108         so play it safe and never pass NULL to the system getcwd.
62109
62110 2007-02-21  Jim Meyering  <jim@meyering.net>
62111
62112         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62113         of gettimeofday.  It would conflict with the one now always
62114         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62115         an IRIX 6.5 build failure.
62116
62117 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         Minor fixups to port to Solaris 10 with Sun C 5.8.
62120         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62121         * modules/getcwd (Depends-on): Add dirfd.
62122         * lib/putenv.c (putenv): #undef it.
62123         (rpl_putenv): New decl.
62124         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62125
62126 2007-02-20  Bruno Haible  <bruno@clisp.org>
62127
62128         * modules/stdio-tests: New file.
62129         * tests/test-stdio.c: New file.
62130
62131         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62132         (Depends-on): Add stdio.
62133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62134         (Include): Use <stdio.h> instead of vsnprintf.h.
62135         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62136         HAVE_DECL_VSNPRINTF.
62137         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62138
62139         * modules/snprintf (Files): Remove lib/snprintf.h.
62140         (Depends-on): Add stdio.
62141         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62142         (Include): Use <stdio.h> instead of snprintf.h.
62143         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62144         HAVE_DECL_SNPRINTF.
62145         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62146         * lib/getaddrinfo.c: Likewise.
62147
62148         * modules/stdio: New file.
62149         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62150         * lib/snprintf.h: Remove file.
62151         * lib/vsnprintf.h: Remove file.
62152         * lib/.cppi-disable: Remove snprintf.h.
62153         * m4/stdio_h.m4: New file.
62154         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62155
62156 2007-02-20  Jim Meyering  <jim@meyering.net>
62157
62158         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62159         used by e.g., mingw.  From Bruno Haible.
62160
62161 2007-02-19  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62164         warnings.
62165         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62166
62167 2007-02-19  Bruno Haible  <bruno@clisp.org>
62168
62169         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62170         from mingw users.
62171
62172 2007-02-19  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62175         warnings.
62176         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62177
62178 2007-02-19  Jim Meyering  <jim@meyering.net>
62179
62180         Don't use FD after a successful "fdopendir (fd)".
62181         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62182         Reset it by calling dirfd on the just-obtained DIR*.
62183
62184         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62185         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62186
62187 2007-02-18  Bruno Haible  <bruno@clisp.org>
62188
62189         * lib/readlink.c: Include <unistd.h>.
62190         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62191         HAVE_READLINK.
62192         * modules/readlink (Depends-on): Add unistd.
62193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62194         (Include): Add <unistd.h>.
62195
62196         * lib/getlogin_r.h: Remove file.
62197         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62198         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62199         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62200         HAVE_DECL_GETLOGIN_R.
62201         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62203         (Include): Use <unistd.h> instead of getlogin_r.h.
62204
62205         * lib/getcwd.h: Remove file.
62206         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62207         * lib/xgetcwd.c: Likewise.
62208         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62209         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62210         * modules/getcwd (Files): Remove lib/getcwd.h.
62211         (Depends-on): Add unistd.
62212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62213         (Include): Use <unistd.h> instad of getcwd.h.
62214
62215         * lib/ftruncate.c: Include <unistd.h> first.
62216         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62217         Set HAVE_FTRUNCATE.
62218         * modules/ftruncate (Depends-on): Add unistd.
62219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62220
62221         * lib/fchdir.c: Include <unistd.h> first.
62222         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62224         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62225         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62226         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62227
62228         * lib/dup2.c: Include <unistd.h> first.
62229         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62230         HAVE_DUP2.
62231         * modules/dup2 (Depends-on): Add unistd.
62232         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62233
62234         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62235         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62236         REPLACE_CHOWN. Don't define chown as a macro here.
62237         * modules/chown (Depends-on): Add unistd.
62238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62239
62240         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62241         Add definition for GL_LINK_WARNING.
62242         (chown, dup2): New declarations.
62243         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62244         link warning.
62245         (ftruncate): New declaration.
62246         (getcwd): New declaration, taken from old getcwd.h.
62247         (getlogin_r): New declaration, taken from old getlogin_r.h.
62248         (readlink): New declaration.
62249         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62250         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62251         (gl_PREREQ_UNISTD): Remove macro.
62252         (gl_UNISTD_MODULE_INDICATOR): New macro.
62253         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62254         many new variables. Don't set UNISTD_H.
62255         * modules/unistd (Description): Change.
62256         (Depends-on): Add link-warning.
62257         (configure.ac): Update.
62258         (Makefile.am): Create unistd.h always. Substitute many new variables
62259         into it.
62260
62261 2007-02-18  Bruno Haible  <bruno@clisp.org>
62262
62263         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62264         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62265         HAVE_GETSUBOPT.
62266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62267         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62268         * lib/getsubopt.h: Remove file.
62269         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62270         (Depends-on): Add stdlib.
62271         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62272         (Includes): Use <stdlib.h> instead of getsubopt.h.
62273         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62274         Set HAVE_GETSUBOPT.
62275         * lib/getsubopt.c: Don't include getsubopt.h.
62276
62277 2007-02-18  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/fchdir (Depends-on): Add dup2.
62280
62281 2007-02-18  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/stdlib_.h: Handle glibc's special invocation convention
62284         specially.
62285
62286 2007-02-18  Bruno Haible  <bruno@clisp.org>
62287
62288         * modules/stdlib-tests: New file.
62289         * tests/test-stdlib.c: New file.
62290
62291         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62292         (Depends-on): Add stdlib.
62293         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62294         (Includes): Use <stdlib.h> instead of mkstemp.h.
62295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62296         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62297         * lib/mkstemp.c: Don't include mkstemp.h.
62298         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62299         * lib/stdlib--.h: Don't include mkstemp.h.
62300
62301         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62302         (Depends-on): Add stdlib.
62303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62304         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62305         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62306         HAVE_MKDTEMP.
62307         * lib/mkdtemp.c: Don't include mkdtemp.h.
62308         * lib/clean-temp.c: Don't include mkdtemp.h.
62309
62310         * modules/exit (Files): Remove lib/exit.h.
62311         (Depends-on): Add stdlib.
62312         (Makefile.am): Remove lib_SOURCES.
62313         (Include): Use <stdlib.h> instead of exit.h.
62314         * lib/argmatch.c: Don't include exit.h.
62315         * lib/execute.c: Likewise.
62316         * lib/pagealign_alloc.c: Likewise.
62317         * lib/pipe.c: Likewise.
62318         * lib/wait-process.c: Likewise.
62319         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62320         * lib/exitfail.c: Likewise.
62321         * lib/savewd.c: Likewise.
62322         * lib/xsetenv.c: Likewise.
62323
62324         * modules/stdlib: New file.
62325         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62326         and extra comments about mkstemp().
62327         * lib/exit.h: Remove file.
62328         * lib/mkdtemp.h: Remove file.
62329         * lib/mkstemp.h: Remove file.
62330         * m4/stdlib_h.m4: New file.
62331         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62332
62333 2007-02-18  Bruno Haible  <bruno@clisp.org>
62334
62335         * modules/math-tests: New file.
62336         * tests/test-math.c: New file.
62337
62338         * modules/math: New file.
62339         * modules/mathl (Files): Remove lib/mathl.h.
62340         (Depends-on): Add math.
62341         (Makefile.am): Don't mention mathl.h.
62342         (Include): Use <math.h> instead of mathl.h.
62343         * lib/math_.h: New file.
62344         * lib/mathl.h: Remove file.
62345         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62346         mathl.h.
62347         * lib/asinl.c: Likewise.
62348         * lib/atanl.c: Likewise.
62349         * lib/ceill.c: Likewise.
62350         * lib/cosl.c: Likewise.
62351         * lib/expl.c: Likewise.
62352         * lib/floorl.c: Likewise.
62353         * lib/frexpl.c: Likewise.
62354         * lib/ldexpl.c: Likewise.
62355         * lib/logl.c: Likewise.
62356         * lib/sincosl.c: Likewise.
62357         * lib/sinl.c: Likewise.
62358         * lib/sqrtl.c: Likewise.
62359         * lib/tanl.c: Likewise.
62360         * lib/trigl.c: Likewise.
62361         * m4/math_h.m4: New file.
62362         * MODULES.html.sh (Mathematics): Add math.
62363
62364 2007-02-17  Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/wctype-tests: New file.
62367         * tests/test-wctype.c: New file.
62368
62369         * modules/wchar-tests: New file.
62370         * tests/test-wchar.c: New file.
62371
62372         * modules/unistd-tests: New file.
62373         * tests/test-unistd.c: New file.
62374
62375         * modules/time-tests: New file.
62376         * tests/test-time.c: New file.
62377
62378         * modules/sysexits-tests: New file.
62379         * tests/test-sysexits.c: New file.
62380
62381         * modules/sys_time-tests: New file.
62382         * tests/test-sys_time.c: New file.
62383
62384         * modules/sys_stat-tests: New file.
62385         * tests/test-sys_stat.c: New file.
62386
62387         * modules/sys_socket-tests: New file.
62388         * tests/test-sys_socket.c: New file.
62389
62390         * modules/sys_select-tests: New file.
62391         * tests/test-sys_select.c: New file.
62392
62393         * modules/string-tests: New file.
62394         * tests/test-string.c: New file.
62395
62396         * modules/stdbool-tests: New file.
62397         * tests/test-stdbool.c: New file.
62398
62399         * modules/netinet_in-tests: New file.
62400         * tests/test-netinet_in.c: New file.
62401
62402         * modules/inttypes-tests: New file.
62403         * tests/test-inttypes.c: New file.
62404
62405         * modules/fcntl-tests: New file.
62406         * tests/test-fcntl.c: New file.
62407
62408         * modules/byteswap-tests: New file.
62409         * tests/test-byteswap.c: New file.
62410
62411         * modules/arpa_inet-tests: New file.
62412         * tests/test-arpa_inet.c: New file.
62413
62414 2007-02-17  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62417         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62418         if the corresponding module is not enabled. Emit link warnings if
62419         the function is used nevertheless.
62420         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62421         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62422         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62423         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62424         * modules/inttypes (Depends-on): Add link-warning.
62425         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62426         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62427         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62428         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62429         * modules/imaxdiv (configure.ac): Likewise.
62430         * modules/strtoimax (configure.ac): Likewise.
62431         * modules/strtoumax (configure.ac): Likewise.
62432
62433 2007-02-17  Bruno Haible  <bruno@clisp.org>
62434
62435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62436         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62437         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62438         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62439
62440 2007-02-17  Bruno Haible  <bruno@clisp.org>
62441
62442         * modules/link-warning: New file.
62443         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62444         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62445         * modules/string (Depends-on): Add link-warning.
62446         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62447         string.h.
62448         * MODULES.html.sh (Support for building libraries and executables): Add
62449         link-warning.
62450
62451 2007-02-17  Bruno Haible  <bruno@clisp.org>
62452
62453         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62454         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62455         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62456         long lines.
62457
62458 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62459             Bruno Haible  <bruno@clisp.org>
62460
62461         * modules/tmpfile: New file.
62462         * lib/tmpfile.c: New file.
62463         * m4/tmpfile.m4: New file.
62464         * MODULES.html.sh (func_all_modules): New section "Input/output".
62465
62466 2007-02-15  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62469         (supports_delete_on_close): New function.
62470         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62471
62472 2007-02-14  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/mbspcasecmp-tests: New file.
62475         * tests/test-mbspcasecmp.sh: New file.
62476         * tests/test-mbspcasecmp.c: New file.
62477
62478         New module mbspcasecmp.
62479         * modules/mbspcasecmp: New file.
62480         * lib/mbspcasecmp.c: New file.
62481         * lib/string_.h (strncasecmp): Change warning message.
62482         (mbspcasecmp): New declaration.
62483         * m4/mbspcasecmp.m4: New file.
62484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62485         GNULIB_MBSPCASECMP.
62486         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62487         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62488
62489 2007-02-14  Bruno Haible  <bruno@clisp.org>
62490
62491         * modules/mbsncasecmp-tests: New file.
62492         * tests/test-mbsncasecmp.sh: New file.
62493         * tests/test-mbsncasecmp.c: New file.
62494
62495         New module mbsncasecmp.
62496         * modules/mbsncasecmp: New file.
62497         * lib/mbsncasecmp.c: New file.
62498         * lib/string_.h (mbsncasecmp): New declaration.
62499         * m4/mbsncasecmp.m4: New file.
62500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62501         GNULIB_MBSNCASECMP.
62502         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62503         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62504
62505 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62508         Verify that it doesn't overlap with our flags.
62509         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62510         do not have the desired effect in multibyte locales; instead, use
62511         mbscasecmp.
62512         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62513         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62514         we don't require GNU fnmatch ourselves (if our users require it, they
62515         should do so explicitly).
62516
62517         Fix regex code so it doesn't rely on strcasecmp.
62518         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62519         Otherwise, include gnulib's langinfo.h.
62520         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62521         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62522         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62523         * modules/regex (FILES): Remove m4/codeset.m4.
62524         (Depends-on): Add localcharset.  Remove strcase.
62525
62526 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62527
62528         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62529         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62530
62531 2007-02-13  Bruno Haible  <bruno@clisp.org>
62532
62533         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62534         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62535
62536 2007-02-12  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62539         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62540         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62541         time warning rather than a link error.
62542
62543 2007-02-12  Bruno Haible  <bruno@clisp.org>
62544
62545         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62546         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62548
62549 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62550
62551         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62552         args, not 2.
62553
62554 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         New module 'time', so that apps can include <time.h> as per
62557         POSIX and GNU instead of separate include files like time_r.h
62558         and timegm.h.  This implementation tries out a simpler approach
62559         for replacing decls in standard include files (as compared to
62560         the string module), somewhat as an experiment.
62561
62562         * config/srclist.txt: Comment out mktime.c for now.
62563         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62564         since it doesn't apply any more.  Use generic wording instead.
62565         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62566         'time'.
62567         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62568         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62569         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62570         Don't include <sys/types.h>; no longer needed since we assume C89.
62571         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62572         * lib/strftime.c: Likewise.
62573         * lib/time_r.c: Likewise.
62574         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62575         * lib/nanosleep.c: Include <time.h> first, to check interface.
62576         * lib/strptime.c: Likewise.
62577         * lib/time_r.c: Likewise.
62578         * lib/timegm.c: Likewise.
62579         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62580         needed.
62581         * lib/timegm.c: Don't include timegm.h; no longer needed.
62582         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62583         time.h now handles any problems in that area.
62584         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62585         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62586         that time.h defines struct timespec.
62587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62588         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62589         handles that.
62590         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62591         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62592         needed.  Set REPLACE_LOCALTIME.
62593         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62594         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62595         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62596         nanosleep; time_h.m4 now does that.  Don't require
62597         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62598         module handles this now.
62599         * modules/getdate (Depends-on): Remove timespec.  Add time.
62600         * modules/nanosleep (Depends-on): Likewise.
62601         * modules/stat-time (Depends-on): Likewise.
62602         * modules/nanosleep (Include): Include time.h, not timespec.h.
62603         * modules/strptime (Files): Remove lib/strptime.h.
62604         (Depends-on): Add extensions, time.
62605         (Include): Include time.h, not strptime.h.
62606         * modules/time_r (Files): Remove lib/time_r.h.
62607         (Depends-on): Add time.
62608         (Include): Include time.h, not time_r.h.
62609         * modules/timegm: Likewise.
62610         * modules/timespec (Description): Now does timespec-related decls
62611         of our own, instead of struct timespec itself.
62612         (Depends-on): Add time; remove extensions.
62613         (Maintainer): Add self.
62614         * modules/utimecmp (Depends-on): Add time; remove timespec.
62615         * modules/utimens (Depends-on): Likewise.
62616         * modules/xnanosleep (Depends-on): Likewise.
62617
62618 2007-02-11  Bruno Haible  <bruno@clisp.org>
62619
62620         * lib/c-strstr.c: Include allocsa.h.
62621         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62622         * lib/c-strcasestr.c: Include allocsa.h.
62623         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62624         * lib/strcasestr.c: Include allocsa.h.
62625         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62626         * lib/mbsstr.c: Include allocsa.h.
62627         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62628         allocsa/freesa instead of malloc/free.
62629         * lib/mbscasestr.c: Include allocsa.h.
62630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62631         allocsa/freesa instead of malloc/free.
62632         * modules/c-strstr (Depends-on): Add allocsa.
62633         * modules/c-strcasestr (Depends-on): Likewise.
62634         * modules/strcasestr (Depends-on): Likewise.
62635         * modules/mbsstr (Depends-on): Likewise.
62636         * modules/mbscasestr (Depends-on): Likewise.
62637
62638 2007-02-11  Bruno Haible  <bruno@clisp.org>
62639
62640         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62641
62642         * modules/mbsspn-tests: New file.
62643         * tests/test-mbsspn.sh: New file.
62644         * tests/test-mbsspn.c: New file.
62645
62646 2007-02-11  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62649
62650         * modules/mbspbrk-tests: New file.
62651         * tests/test-mbspbrk.sh: New file.
62652         * tests/test-mbspbrk.c: New file.
62653
62654 2007-02-11  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62657         unneeded cast.
62658
62659         * modules/mbscspn-tests: New file.
62660         * tests/test-mbscspn.sh: New file.
62661         * tests/test-mbscspn.c: New file.
62662
62663 2007-02-11  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/mbscasecmp-tests: New file.
62666         * tests/test-mbscasecmp.sh: New file.
62667         * tests/test-mbscasecmp.c: New file.
62668
62669 2007-02-11  Bruno Haible  <bruno@clisp.org>
62670
62671         Ensure O(n) worst-case complexity of mbscasestr.
62672         * lib/mbscasestr.c: Include stdbool.h.
62673         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62674         functions.
62675         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62676         the bookkeeping indicates that it's worth it.
62677         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62678
62679         * modules/mbscasestr-tests: New file.
62680         * tests/test-mbscasestr1.c: New file.
62681         * tests/test-mbscasestr2.sh: New file.
62682         * tests/test-mbscasestr2.c: New file.
62683         * tests/test-mbscasestr3.sh: New file.
62684         * tests/test-mbscasestr3.c: New file.
62685         * tests/test-mbscasestr4.sh: New file.
62686         * tests/test-mbscasestr4.c: New file.
62687         * m4/locale-tr.m4: New file.
62688
62689 2007-02-11  Bruno Haible  <bruno@clisp.org>
62690
62691         Ensure O(n) worst-case complexity of mbsstr.
62692         * lib/mbsstr.c: Include stdbool.h.
62693         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62694         functions.
62695         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62696         bookkeeping indicates that it's worth it.
62697         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62698
62699         * modules/mbsstr-tests: New file.
62700         * tests/test-mbsstr1.c: New file.
62701         * tests/test-mbsstr2.sh: New file.
62702         * tests/test-mbsstr2.c: New file.
62703         * tests/test-mbsstr3.sh: New file.
62704         * tests/test-mbsstr3.c: New file.
62705         * m4/locale-fr.m4: New file.
62706
62707 2007-02-11  Bruno Haible  <bruno@clisp.org>
62708
62709         * lib/mbsrchr.c (mbsrchr): Fix bug.
62710
62711         * modules/mbsrchr-tests: New file.
62712         * tests/test-mbsrchr.sh: New file.
62713         * tests/test-mbsrchr.c: New file.
62714
62715 2007-02-11  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/mbschr.c (mbschr): Fix bug.
62718
62719         * modules/mbschr-tests: New file.
62720         * tests/test-mbschr.sh: New file.
62721         * tests/test-mbschr.c: New file.
62722         * m4/locale-zh.m4: New file.
62723
62724 2007-02-11  Bruno Haible  <bruno@clisp.org>
62725
62726         Support for copying multibyte string iterators.
62727         * lib/mbiter.h: Include <string.h>.
62728         (mbiter_multi_copy): New function.
62729         (mbi_copy): New macro.
62730         * lib/mbuiter.h: Include <string.h>.
62731         (mbuiter_multi_copy): New function.
62732         (mbui_copy): New macro.
62733
62734 2007-02-11  Bruno Haible  <bruno@clisp.org>
62735
62736         New module mbslen.
62737         * modules/mbslen: New file.
62738         * lib/mbslen.c: New file.
62739         * lib/string_.h (mbslen): New declaration.
62740         * m4/mbslen.m4: New file.
62741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62742         GNULIB_MBSLEN.
62743         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62744         * MODULES.html.sh (Internationalization functions): Add mbslen.
62745
62746 2007-02-11  Bruno Haible  <bruno@clisp.org>
62747
62748         Ensure O(n) worst-case complexity of strcasestr substitute.
62749         * lib/strcasestr.c: Include stdbool.h.
62750         (knuth_morris_pratt): New function.
62751         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62752         bookkeeping indicates that it's worth it.
62753         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62754
62755         * modules/strcasestr-tests: New file.
62756         * tests/test-strcasestr.c: New file.
62757
62758 2007-02-11  Bruno Haible  <bruno@clisp.org>
62759
62760         Ensure O(n) worst-case complexity of c_strcasestr.
62761         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62762         (knuth_morris_pratt): New function.
62763         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62764         the bookkeeping indicates that it's worth it.
62765         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62766
62767         * modules/c-strcasestr-tests: New file.
62768         * tests/test-c-strcasestr.c: New file.
62769
62770 2007-02-11  Bruno Haible  <bruno@clisp.org>
62771
62772         Ensure O(n) worst-case complexity of c_strstr.
62773         * lib/c-strstr.c: Include stdbool.h, string.h.
62774         (knuth_morris_pratt): New function.
62775         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62776         bookkeeping indicates that it's worth it.
62777         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62778
62779         * lib/c-strstr.c: Complete rewrite for maintainability.
62780
62781         * modules/c-strstr-tests: New file.
62782         * tests/test-c-strstr.c: New file.
62783
62784 2007-02-11  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62787         5.2.1 and earlier, whereby \055 was treated just like the range
62788         delimiter '-'.
62789         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62790
62791 2007-02-08  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/regex (Depends-on): Add stdbool.
62794         Reported by Dalibor Topic <robilad@kaffe.org>.
62795
62796 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62797
62798         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62799         Prefer returning from main to exiting from it.
62800         Remove unnecessary parens after sizeof.
62801
62802 2007-02-05  Bruno Haible  <bruno@clisp.org>
62803
62804         New module mbssep.
62805         * modules/mbssep: New file.
62806         * lib/mbssep.c: New file.
62807         * lib/string_.h (strsep): Add a conditional link warning.
62808         (mbssep): New declaration.
62809         * m4/mbssep.m4: New file.
62810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62811         GNULIB_MBSSEP.
62812         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62813         * MODULES.html.sh (Internationalization functions): Add mbssep.
62814
62815 2007-02-05  Bruno Haible  <bruno@clisp.org>
62816
62817         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62818         Optimize search in case of 1 delimiter.
62819
62820 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62821
62822         * lib/acl.h: Include sys/types.h before sys/acl.h.
62823
62824 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62825
62826         Merge upstream fix for glibc bugzilla #3957:
62827
62828         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62829
62830         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62831         bit for RE_HAT_LISTS_NOT_NEWLINE.
62832         (build_charclass_op): Remove bogus comment.
62833
62834 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62835
62836         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62837
62838 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62841         * lib/memmem.c [!defined _LIBC]: Include config.h.
62842
62843 2007-02-04  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62846         warning message.
62847
62848 2007-02-04  Bruno Haible  <bruno@clisp.org>
62849
62850         New module mbstok_r.
62851         * modules/mbstok_r: New file.
62852         * lib/mbstok_r.c: New file.
62853         * lib/string_.h (strtok_r): Change argument names to match the
62854         comments. Add a conditional link warning.
62855         (mbstok_r): New declaration.
62856         * m4/mbstok_r.m4: New file.
62857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62858         GNULIB_MBSTOK_R.
62859         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62860         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62861
62862 2007-02-04  Bruno Haible  <bruno@clisp.org>
62863
62864         New module mbsspn.
62865         * modules/mbsspn: New file.
62866         * lib/mbsspn.c: New file.
62867         * lib/string_.h (strspn): Add a conditional link warning.
62868         (mbsspn): New declaration.
62869         * m4/mbsspn.m4: New file.
62870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62871         GNULIB_MBSSPN.
62872         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62873         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62874
62875 2007-02-04  Bruno Haible  <bruno@clisp.org>
62876
62877         New module mbspbrk.
62878         * modules/mbspbrk: New file.
62879         * lib/mbspbrk.c: New file.
62880         * lib/string_.h (strpbrk): Add a conditional link warning.
62881         (mbspbrk): New declaration.
62882         * m4/mbspbrk.m4: New file.
62883         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62884         GNULIB_MBSPBRK.
62885         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62886         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62887
62888 2007-02-04  Bruno Haible  <bruno@clisp.org>
62889
62890         New module mbscspn.
62891         * modules/mbscspn: New file.
62892         * lib/mbscspn.c: New file.
62893         * lib/string_.h (strcspn): Add a conditional link warning.
62894         (mbscspn): New declaration.
62895         * m4/mbscspn.m4: New file.
62896         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62897         GNULIB_MBSCSPN.
62898         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62899         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62900
62901 2007-02-04  Bruno Haible  <bruno@clisp.org>
62902
62903         New module mbscasestr, reduced goal of strcasestr.
62904         * modules/mbscasestr: New file.
62905         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62906         (mbscasestr): Renamed from strcasestr.
62907         * lib/strcasestr.c: Don't include mbuiter.h.
62908         (strcasestr): Remove support for multibyte locales.
62909         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62910         Change the conditional link warning.
62911         (mbscasestr): New declaration.
62912         * m4/mbscasestr.m4: New file.
62913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62914         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62915         REPLACE_STRCASESTR.
62916         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62918         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62919         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62920         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62921         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62922         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62923         (Depends-on): Remove mbuiter.
62924         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62925
62926 2007-02-04  Bruno Haible  <bruno@clisp.org>
62927
62928         Simplify handling of strncasecmp.
62929         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62930         the conditional link warning.
62931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62932         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62933         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62934         * modules/strcase (configure.ac): Don't invoke
62935         gl_STRING_MODULE_INDICATOR.
62936         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62937
62938 2007-02-04  Bruno Haible  <bruno@clisp.org>
62939
62940         New module mbscasecmp, reduced goal of strcasecmp.
62941         * modules/mbscasecmp: New file.
62942         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62943         (mbscasecmp): Renamed from strcasecmp.
62944         * lib/strcasecmp.c: Don't include mbuiter.h.
62945         (strcasecmp): Remove support for multibyte locales.
62946         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62947         Change the conditional link warning.
62948         (mbscasecmp): New declaration.
62949         * m4/mbscasecmp.m4: New file.
62950         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62951         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62952         REPLACE_STRCASECMP.
62953         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62955         GNULIB_MBSCASECMP.
62956         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62957         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62958         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62959         (Depends-on): Remove mbuiter.
62960         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62961
62962 2007-02-04  Bruno Haible  <bruno@clisp.org>
62963
62964         New module mbsstr. Remove module strstr.
62965         * modules/mbsstr: New file.
62966         * modules/strstr: Remove file.
62967         * lib/mbsstr.c: Renamed from lib/strstr.c.
62968         (mbsstr): Renamed from strstr.
62969         * lib/string_.h (strstr): Remove declaration. Change the conditional
62970         link warning.
62971         (mbsstr): New declaration.
62972         * m4/mbsstr.m4: New file.
62973         * m4/strstr.m4: Remove file.
62974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62975         REPLACE_STRSTR.
62976         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62977         Don't initialize GNULIB_STRSTR.
62978         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62979         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62980         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62981         (Support for systems lacking ANSI C 89): Remove strstr.
62982
62983 2007-02-04  Bruno Haible  <bruno@clisp.org>
62984
62985         New module mbsrchr.
62986         * modules/mbsrchr: New file.
62987         * lib/mbsrchr.c: New file.
62988         * lib/string_.h (strrchr): Add a conditional link warning.
62989         (mbsrchr): New declaration.
62990         * m4/mbsrchr.m4: New file.
62991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62992         GNULIB_MBSRCHR.
62993         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62994         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62995
62996 2007-02-04  Bruno Haible  <bruno@clisp.org>
62997
62998         New module mbschr.
62999         * modules/mbschr: New file.
63000         * lib/mbschr.c: New file.
63001         * lib/string_.h (strchr): Add a conditional link warning.
63002         (mbschr): New declaration.
63003         * m4/mbschr.m4: New file.
63004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63005         GNULIB_MBSCHR.
63006         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63007         * MODULES.html.sh (Internationalization functions): Add mbschr.
63008
63009 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63010
63011         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63012
63013         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63014
63015 2007-02-04  Bruno Haible  <bruno@clisp.org>
63016
63017         New module description section 'configure.ac-early'.
63018         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63019         (func_get_autoconf_early_snippet): New function.
63020         (func_import, func_create_testdir): Use it. Remove special cases for
63021         modules 'extensions' and 'lock'.
63022         * modules/extensions (configure.ac-early): Require
63023         gl_USE_SYSTEM_EXTENSIONS.
63024         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63025
63026 2007-02-04  Bruno Haible  <bruno@clisp.org>
63027
63028         Make use of gcj-4.3's -fsource and -ftarget option.
63029         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63030         and if so try the options -fsource and -ftarget.
63031         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63032         source_version, ftarget_option, target_version arguments.
63033         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63034         (is_envjavac_oldgcj_14_14_usable): Renamed from
63035         is_envjavac_gcj_14_14_usable.
63036         (is_envjavac_oldgcj_14_13_usable): Renamed from
63037         is_envjavac_gcj_14_13_usable.
63038         (is_gcj_present): Update.
63039         (is_gcj_43, is_gcj43_usable): New functions.
63040         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63041         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63042         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63043         try the options -fsource and -ftarget.
63044
63045 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63046
63047         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63048         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63049         larger value.
63050
63051 2007-02-03  Jim Meyering  <jim@meyering.net>
63052
63053         Give tools a better chance to allocate space for very large buffers.
63054         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63055
63056         Make pwd and readlink work also when run with an unreadable parent dir
63057         on systems with openat support.
63058         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63059         provided getcwd function, even when we have openat support.
63060         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63061
63062 2007-02-02  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63065         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63066         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63067         portability problems if one of these functions is only used on specific
63068         platforms.
63069         Reported by Paul Eggert.
63070
63071 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63074         is causing more trouble than it's curing.
63075         * lib/regex_internal.h (__mempcpy): Remove.
63076         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63077         (and make the code a tad smaller to boot).
63078         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63079
63080 2007-02-02  Jim Meyering  <jim@meyering.net>
63081
63082         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63083         section, not in the Makefile.am: one.
63084
63085 2007-02-02  Eric Blake  <ebb9@byu.net>
63086
63087         * lib/strchrnul.c: Always include config.h first.
63088
63089         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63090         gnulib strstr is not necessary here.
63091
63092 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63093
63094         * m4/socklen.m4: Fix typo.
63095
63096 2007-02-02  Eric Blake  <ebb9@byu.net>
63097
63098         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63099         * modules/netinet_in (Makefile.am): Likewise.
63100
63101 2007-02-01  Bruno Haible  <bruno@clisp.org>
63102
63103         * lib/string_.h (GL_LINK_WARNING): New macro.
63104         (strcasecmp, strstr, strcasestr): If provided by the system,
63105         conditionally define as a macro that leads to a warning instead of to
63106         an error.
63107         (strncasecmp): Conditionally define as a macro that leads to a warning.
63108
63109 2007-02-01  Karl Berry  <karl@gnu.org>
63110
63111         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63112
63113 2007-02-01  Bruno Haible  <bruno@clisp.org>
63114
63115         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63116         renamings.
63117
63118 2007-02-01  Eric Blake  <ebb9@byu.net>
63119
63120         * modules/regex (Depends-on): Revert dependence on mempcpy.
63121         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63122         module's definition of mempcpy.
63123         Reported by Paul Eggert.
63124
63125 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63128         the symbol XYZ before redefining it.  This fixes a problem with
63129         programs that don't use XYZ, when compiled on systems that define
63130         XYZ to something else.
63131
63132 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63135         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63136         writeable to group or other and (2) is intended to have a special
63137         mode bit that is set or cleared.  In such a case, the directory
63138         should be neither group- nor other-writeable until the special
63139         mode bits are right.
63140
63141 2007-01-31  Eric Blake  <ebb9@byu.net>
63142
63143         * modules/mountlist (Depends-on): Add strstr.
63144
63145         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63146         bug.
63147         * modules/string (Makefile.am): Remove redundant replacement.
63148         * modules/regex (Depends-on): Add mempcpy.
63149
63150 2007-01-31  Bruno Haible  <bruno@clisp.org>
63151
63152         New module description field 'Link'.
63153         * gnulib-tool (func_usage): Document --extract-link-directive.
63154         (sed_extract_prog): Recognize 'Link' directive.
63155         (func_get_link_directive): New function.
63156         (func_import): Show summary of link directives.
63157         Handle --extract-link-directive option.
63158         * modules/acl (Link): New section.
63159         * modules/clock-time (Link): New section.
63160         * modules/euidaccess (Link): New section.
63161         * modules/gettext (Link): New section.
63162         * modules/iconv (Link): New section.
63163         * modules/lock (Link): New section.
63164         * modules/nanosleep (Link): New section.
63165         * modules/readline (Link): New section.
63166
63167 2007-01-27  Bruno Haible  <bruno@clisp.org>
63168
63169         Enforce the use of gnulib modules for unportable <string.h> functions.
63170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63171         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63172         (gl_HEADER_STRING_H_BODY): Require it.
63173         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63174         the symbol XYZ to one that gives a link error.
63175         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63176         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63177         * modules/mempcpy (configure.ac): Likewise.
63178         * modules/memrchr (configure.ac): Likewise.
63179         * modules/stpcpy (configure.ac): Likewise.
63180         * modules/stpncpy (configure.ac): Likewise.
63181         * modules/strcase (configure.ac): Likewise.
63182         * modules/strcasestr (configure.ac): Likewise.
63183         * modules/strchrnul (configure.ac): Likewise.
63184         * modules/strdup (configure.ac): Likewise.
63185         * modules/strndup (configure.ac): Likewise.
63186         * modules/strnlen (configure.ac): Likewise.
63187         * modules/strpbrk (configure.ac): Likewise.
63188         * modules/strsep (configure.ac): Likewise.
63189         * modules/strstr (configure.ac): Likewise.
63190         * modules/strtok_r (configure.ac): Likewise.
63191
63192 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63193
63194         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63195
63196 2007-01-30  Jim Meyering  <jim@meyering.net>
63197
63198         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63199
63200 2007-01-29  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63203         * lib/execute.c: Likewise.
63204         * lib/pipe.c: Likewise.
63205         * lib/printf-args.h: Likewise.
63206         * lib/printf-args.c: Likewise.
63207         * lib/printf-parse.c: Likewise.
63208         * lib/vasnprintf.c: Likewise.
63209
63210 2007-01-29  Eric Blake  <ebb9@byu.net>
63211
63212         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63213         declaration.
63214
63215 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63216
63217         * lib/strptime.h (strptime): Use 'restrict' for args where
63218         POSIX requires this.
63219         * lib/strptime.c (strptime): Likewise.
63220         Change license notice from LGPL to GPL, since gnulib-tool will
63221         change this as needed.
63222         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63223         defined.
63224         Include "strptime.h" first, to check interface.
63225         Do not #undef _LIBC and _NL_CURRENT.
63226         Do not include <stdlib.h>; no longer needed.
63227         Include "time_r.h" and declare ptime_locale_status
63228         only if _LIBC is not defined.
63229         (__P): Remove unused macro.
63230         (match_string): Bring back glibc version, but use it only if _LIBC
63231         is defined.
63232         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63233         Remove unnecessary assertion and abort() call.
63234         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63235         * m4/strptime.m4: Fix serial number comment.
63236         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63237         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63238         (Depends-on): Add time_r.
63239
63240 2007-01-29  Bruno Haible  <bruno@clisp.org>
63241
63242         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63243         strptime.
63244         * modules/strptime (Depends-on): Add stdbool.
63245         * lib/strptime.h: Include <time.h> always. Add comments.
63246
63247 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63248
63249         * modules/strptime: New file.
63250         * lib/strptime.h: New file.
63251         * lib/strptime.c: New file.
63252         * m4/strptime.m4: New file.
63253
63254 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63255
63256         * MODULES.html.sh: New module mpsort.
63257         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63258
63259         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63260         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63262         All uses changed.
63263         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63264         All uses changed.
63265         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63266         to _Restrict_.
63267         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63268         the parameter matches the prototype.
63269
63270 2007-01-28  Jim Meyering  <jim@meyering.net>
63271
63272         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63273         sys/time.h here, reverting that part of the previous patch:
63274         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63275
63276 2007-01-28  Bruno Haible  <bruno@clisp.org>
63277
63278         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63279         value of $(SYS_TIME_H).
63280         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63281         remove it conditionally, too. [added by Jim Meyering]
63282         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63284         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63285         GETTIMEOFDAY_REPLACEMENT to 1.
63286
63287 2007-01-28  Bruno Haible  <bruno@clisp.org>
63288
63289         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63290         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63292         Set UNISTD_H instead of UNISTD_H2.
63293         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63294
63295 2007-01-28  Bruno Haible  <bruno@clisp.org>
63296
63297         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63298         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63299
63300 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63301
63302         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63303         (func_create_testdir): Ensure C locale for `grep' and `tr'
63304         character ranges.
63305         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63306         ACLOCAL_AMFLAGS parsing state machine.
63307
63308 2007-01-27  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/unistr/base: Update.
63311
63312 2007-01-27  Bruno Haible  <bruno@clisp.org>
63313
63314         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63315         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63316         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63317         modules/unistr/u32-mbtouc.
63318         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63319         * lib/unistr.h: Update.
63320         * lib/linebreak.c: Update.
63321         * modules/unistr/u32-mbtouc: Renamed from
63322         modules/unistr/u32-mbtouc-safe.
63323         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63324         * lib/unistr.h: Update.
63325         * lib/unistr/u32-to-u8.c: Update.
63326         * lib/unistr/u32-to-u16.c: Update.
63327
63328 2007-01-27  Bruno Haible  <bruno@clisp.org>
63329
63330         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63331         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63332         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63333         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63334         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63335         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63336         modules/unistr/u16-mbtouc.
63337         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63338         * lib/unistr.h: Update.
63339         * lib/linebreak.c: Update.
63340         * modules/linebreak: Update.
63341         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63342         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63343         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63344         * modules/unistr/u16-mbtouc: Renamed from
63345         modules/unistr/u16-mbtouc-safe.
63346         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63347         * lib/unistr.h: Update.
63348         * lib/unistr/u16-to-u8.c: Update.
63349         * modules/unistr/u16-to-u8: Update.
63350         * lib/unistr/u16-to-u32.c: Update.
63351         * modules/unistr/u16-to-u32: Update.
63352
63353 2007-01-27  Bruno Haible  <bruno@clisp.org>
63354
63355         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63356         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63357         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63358         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63359         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63360         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63361         modules/unistr/u8-mbtouc.
63362         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63363         * lib/unistr.h: Update.
63364         * lib/striconveh.c: Update.
63365         * modules/striconveh: Update.
63366         * lib/linebreak.c: Update.
63367         * modules/linebreak: Update.
63368         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63369         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63370         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63371         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63372         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63373         * lib/unistr.h: Update.
63374         * lib/striconveh.c: Update.
63375         * modules/striconveh: Update.
63376         * lib/unistr/u8-to-u16.c: Update.
63377         * modules/unistr/u8-to-u16: Update.
63378         * lib/unistr/u8-to-u32.c: Update.
63379         * modules/unistr/u8-to-u32: Update.
63380
63381 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63382
63383         Sync from Libtool.
63384         * lib/argz.c: Do not include strings.h nor memory.h, include
63385         string.h unconditionally.  Patch by Simon Josefsson.
63386
63387 2007-01-27  Bruno Haible  <bruno@clisp.org>
63388
63389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63390         from gl_HEADER_STRING_H_BODY.
63391         (gl_HEADER_STRING_H_BODY): Require it.
63392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63393         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63394         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63395         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63397         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63399         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63400         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63401         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63402         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63403         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63404         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63405         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63406         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63407
63408 2007-01-27  Bruno Haible  <bruno@clisp.org>
63409
63410         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63411         check_PROGRAMS into noinst_PROGRAMS.
63412         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63413         check_PROGRAMS in this case.
63414         (func_import): Set for_test to false.
63415         (func_create_testdir): Set for_test to true.
63416
63417 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63418             Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63421         (Depends-on): Add string.
63422         (Includes): Use <string.h> instead of strcasestr.h.
63423         * modules/string (Makefile.am): Also substitute the value of
63424         REPLACE_STRCASESTR.
63425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63426         assume strcasestr is declared in <string.h> not <strings.h>. Also
63427         set REPLACE_STRCASESTR.
63428         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63429         REPLACE_STRCASESTR.
63430         * lib/strcasestr.h: Remove file.
63431         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63432         * lib/string_.h (strcasestr): New declaration.
63433
63434 2007-01-27  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/string_.h: Use 'extern'.
63437
63438 2007-01-27  Jim Meyering  <jim@meyering.net>
63439
63440         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63441         of set-but-not-used local, "q".
63442
63443         * lib/mempcpy.c: Include <config.h> before <string.h>.
63444         This fixes a compilation error on HP-UX, due to the system's
63445         "restrict"-using mempcpy prototype.
63446
63447 2007-01-26  Bruno Haible  <bruno@clisp.org>
63448
63449         Small optimization.
63450         * lib/javacomp.c: Include c-strstr.h.
63451          (is_envjavac_gcj): Use c_strstr instead of strstr.
63452         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63453
63454 2007-01-26  Bruno Haible  <bruno@clisp.org>
63455
63456         * MODULES.html.sh (Unicode string functions): Add the new modules.
63457
63458         * modules/uniconv/u32-strconv-to-locale: New file.
63459         * lib/uniconv/u32-strconv-to-locale.c: New file.
63460
63461         * modules/uniconv/u16-strconv-to-locale: New file.
63462         * lib/uniconv/u16-strconv-to-locale.c: New file.
63463
63464         * modules/uniconv/u8-strconv-to-locale: New file.
63465         * lib/uniconv/u8-strconv-to-locale.c: New file.
63466
63467         * modules/uniconv/u32-strconv-from-locale: New file.
63468         * lib/uniconv/u32-strconv-from-locale.c: New file.
63469
63470         * modules/uniconv/u16-strconv-from-locale: New file.
63471         * lib/uniconv/u16-strconv-from-locale.c: New file.
63472
63473         * modules/uniconv/u8-strconv-from-locale: New file.
63474         * lib/uniconv/u8-strconv-from-locale.c: New file.
63475
63476         * modules/uniconv/u32-strconv-to-enc: New file.
63477         * lib/uniconv/u32-strconv-to-enc.c: New file.
63478         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63479         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63480
63481         * modules/uniconv/u16-strconv-to-enc: New file.
63482         * lib/uniconv/u16-strconv-to-enc.c: New file.
63483         * lib/uniconv/u-strconv-to-enc.h: New file.
63484         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63485         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63486
63487         * modules/uniconv/u8-strconv-to-enc: New file.
63488         * lib/uniconv/u8-strconv-to-enc.c: New file.
63489         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63490         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63491
63492         * modules/uniconv/u32-strconv-from-enc: New file.
63493         * lib/uniconv/u32-strconv-from-enc.c: New file.
63494         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63495         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63496
63497         * modules/uniconv/u16-strconv-from-enc: New file.
63498         * lib/uniconv/u16-strconv-from-enc.c: New file.
63499         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63500         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63501
63502         * modules/uniconv/u8-strconv-from-enc: New file.
63503         * lib/uniconv/u8-strconv-from-enc.c: New file.
63504         * lib/uniconv/u-strconv-from-enc.h: New file.
63505         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63506         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63507
63508         * modules/uniconv/u32-conv-from-enc: New file.
63509         * lib/uniconv/u32-conv-from-enc.c: New file.
63510         * modules/uniconv/u32-conv-from-enc-tests: New file.
63511         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63512
63513         * modules/uniconv/u16-conv-from-enc: New file.
63514         * lib/uniconv/u16-conv-from-enc.c: New file.
63515         * lib/uniconv/u-conv-from-enc.h: New file.
63516         * modules/uniconv/u16-conv-from-enc-tests: New file.
63517         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63518
63519         * modules/uniconv/u8-conv-from-enc: New file.
63520         * lib/uniconv/u8-conv-from-enc.c: New file.
63521         * modules/uniconv/u8-conv-from-enc-tests: New file.
63522         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63523
63524         * modules/uniconv/base: New file.
63525         * lib/uniconv.h: New file.
63526
63527 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         * doc/gnulib-tool.texi (Initial import): Update to match current
63530         behavior with strdup module.
63531         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63532         * lib/memmem.h: Remove; all uses removed.  This is now done
63533         by <string.h>.
63534         * lib/mempcpy.h: Likewise.
63535         * lib/memrchr.h: Likewise.
63536         * lib/stpcpy.h: Likewise.
63537         * lib/stpncpy.h: Likewise.
63538         * lib/strcase.h: Likewise.
63539         * lib/strchrnul.h: Likewise.
63540         * lib/strdup.h: Likewise.
63541         * lib/strndup.h: Likewise.
63542         * lib/strnlen.h: Likewise.
63543         * lib/strpbrk.h: Likewise.
63544         * lib/strsep.h: Likewise.
63545         * lib/strstr.h: Likewise.
63546         * lib/strtok_r.h: Likewise.
63547         * lib/string_.h: New file.
63548         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63549         Rely on <string.h> instead.
63550         * lib/canon-host.c: Likewise.
63551         * lib/chdir-long.c: Likewise.
63552         * lib/concatpath.c: Likewise.
63553         * lib/exclude.c: Likewise.
63554         * lib/fchdir.c: Likewise.
63555         * lib/getaddrinfo.c: Likewise.
63556         * lib/getcwd.c: Likewise.
63557         * lib/getsubopt.c: Likewise.
63558         * lib/glob.c: Likewise.
63559         * lib/hard-locale.c: Likewise.
63560         * lib/iconvme.c: Likewise.
63561         * lib/javacomp.c: Likewise.
63562         * lib/mempcpy.c: Likewise.
63563         * lib/memrchr.c: Likewise.
63564         * lib/regex_internal.h: Likewise.
63565         * lib/stpncpy.c: Likewise.
63566         * lib/strcasecmp.c: Likewise.
63567         * lib/strchrnul.c: Likewise.
63568         * lib/strdup.c: Likewise.
63569         * lib/striconv.c: Likewise.
63570         * lib/striconveh.c: Likewise.
63571         * lib/striconveha.c: Likewise.
63572         * lib/strncasecmp.c: Likewise.
63573         * lib/strndup.c: Likewise.
63574         * lib/strnlen.c: Likewise.
63575         * lib/strsep.c: Likewise.
63576         * lib/strstr.c: Likewise.
63577         * lib/strtok_r.c: Likewise.
63578         * lib/userspec.c: Likewise.
63579         * lib/w32spawn.h: Likewise.
63580         * lib/xstrndup.c: Likewise.
63581         * lib/mountlist.c (strstr): Remove decl.
63582         * m4/string_h.m4: New file.
63583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63584         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63585         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63586         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63587         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63588         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63589         Set REPLACE_STRCASECMP if necessary.
63590         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63591         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63592         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63593         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63594         HAVE_DECL_STRDUP if necessary.
63595         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63596         since gl_FUNC_STRNDUP does that now.
63597         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63598         Check for decl here...
63599         (gl_PREREQ_STRNLEN): ... not here.
63600         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63601         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63602         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63603         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63604         necessary.
63605         * modules/string: New file.
63606         * modules/memmem (Files): Remove special-purpose include file.
63607         (Depends-on): Add string.
63608         (Include): Include <string.h>, not the removed file.
63609         * modules/mempcpy: Likewise.
63610         * modules/memrchr: Likewise.
63611         * modules/stpcpy: Likewise.
63612         * modules/stpncpy: Likewise.
63613         * modules/strcase: Likewise.
63614         * modules/strchrnul: Likewise.
63615         * modules/strdup: Likewise.
63616         * modules/strndup: Likewise.
63617         * modules/strnlen: Likewise.
63618         * modules/strpbrk: Likewise.
63619         * modules/strsep: Likewise.
63620         * modules/strstr: Likewise.
63621         * modules/strtok_r: Likewise.
63622         * tests/test-dirname.c: Don't include "strdup.h", since
63623         <string.h> now suffices.
63624         * tests/test-memmem.c: Don't include "memmem.h", since
63625         <string.h> now suffices.
63626
63627 2007-01-25  Bruno Haible  <bruno@clisp.org>
63628
63629         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63630         *resultp is 0.
63631
63632         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63633         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63634         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63635         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63636
63637         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63638         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63639         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63640         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63641         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63642         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63643
63644 2007-01-24  Bruno Haible  <bruno@clisp.org>
63645
63646         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63648         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63649         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63650         gl_FUNC_FTS_CORE.
63651         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63652         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63653         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63654         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63655         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63656         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63657         gl_FUNC_FCHOWNAT.
63658         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63659         gl_FUNC_STRFTIME.
63660         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63661         Reported by Ralf Wildenhues.
63662
63663 2007-01-24  Bruno Haible  <bruno@clisp.org>
63664
63665         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63666         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63667         gl_GETADDRINFO.
63668         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63669         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63670         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63671
63672 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63675         Don't use 'exit'; just return from 'main'.
63676         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63677
63678         * lib/fnmatch_.h: Readjust white space and comments to match
63679         glibc, to avoid spurious diffs.
63680
63681 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63682
63683         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63684         2004-12-01 change by Jakub Jelinek, since this code won't compile
63685         if !LIBC.  Problem reported by Bob Proulx.
63686
63687 2007-01-23  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/striconveh.c: Include c-strcaseeq.h.
63690         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63691         * modules/striconveh (Depends-on): Add c-strcaseeq.
63692
63693 2007-01-23  Bruno Haible  <bruno@clisp.org>
63694
63695         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63696
63697         * modules/c-strcaseeq: New file.
63698         * lib/c-strcaseeq.h: New file.
63699
63700         * modules/streq: New file.
63701         * lib/streq.h: New file.
63702
63703 2007-01-23  Bruno Haible  <bruno@clisp.org>
63704
63705         * modules/striconveha-tests: New file.
63706         * tests/test-striconveha.c: New file.
63707
63708         * lib/striconveha.h: Include <stdbool.h>.
63709         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63710         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63711         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63712         (mem_iconveha): New function.
63713         (str_iconveha_notranslit): Renamed from str_iconveha.
63714         (str_iconveha): New function.
63715         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63716         c-strcase.
63717
63718 2007-01-23  Bruno Haible  <bruno@clisp.org>
63719
63720         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63721         encodings without forgiving before trying any encoding with handler.
63722         (str_iconveha): Try all encodings without forgiving before trying any
63723         encoding with handler.
63724
63725 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63726
63727         Import the following changes from libc.
63728
63729         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63730
63731         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63732
63733         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63734
63735         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63736         normal_bracket label.
63737
63738         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63739
63740         [BZ #361]
63741         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63742         to normal_bracket after fetching the next character.
63743
63744 2007-01-22  Bruno Haible  <bruno@clisp.org>
63745
63746         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63747         argument.
63748         * lib/striconveh.c (iconv_carefully_1): New function.
63749         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63750         argument.
63751         (str_cd_iconveh): Update.
63752         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63753         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63754         * tests/test-striconveh.c (MAGIC): New macro.
63755         (new_offsets): New function.
63756         (main): Test call with and without offsets.
63757
63758 2007-01-22  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63761         * modules/sys_select (Makefile.am): Likewise.
63762         * modules/sys_socket (Makefile.am): Likewise.
63763         * modules/sys_time (Makefile.am): Likewise.
63764
63765 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * modules/gettimeofday (License): Change from GPL to LGPL, since
63768         gettimeofday is a library function.
63769
63770 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63771
63772         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63773
63774 2007-01-21  Bruno Haible  <bruno@clisp.org>
63775
63776         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63777
63778 2007-01-21  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/striconveha: New file.
63781         * lib/striconveha.h: New file.
63782         * lib/striconveha.c: New file.
63783         * MODULES.html.sh (Internationalization functions): Add striconveha.
63784         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63785         string.
63786         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63787
63788 2007-01-21  Bruno Haible  <bruno@clisp.org>
63789
63790         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63791         * lib/striconveh.c (str_iconveh): Likewise.
63792
63793 2007-01-21  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/striconveh.h (mem_iconveh): New declaration.
63796         * lib/striconveh.c (mem_iconveh): New function.
63797         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63798
63799 2007-01-21  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63802
63803         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63804         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63805         original result buffer.
63806         (str_cd_iconveh): Update.
63807         * tests/test-striconveh.c (main): Update.
63808
63809         * lib/striconv.h (mem_cd_iconv): Change specification.
63810         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63811         result buffer.
63812         (str_cd_iconv): Update.
63813         * tests/test-striconv.c (main): Update.
63814
63815 2007-01-21  Bruno Haible  <bruno@clisp.org>
63816
63817         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63818
63819 2007-01-20  Jim Meyering  <jim@meyering.net>
63820
63821         * lib/userspec.c (parse_with_separator): If a user or group string
63822         starts with "+", skip the corresponding name-to-ID look-up, since
63823         such a look-up must fail: user and group names may not include "+".
63824
63825 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63826
63827         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63828         since we now assume the sys_time module.
63829         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63830         check for sys/time.h; no longer needed.
63831         * modules/poll (Depends-on): Depend on sys_time.
63832
63833 2007-01-18  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63836         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63837
63838         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63839         gettimeofday.
63840
63841         * tests/test-gettimeofday.c: Include <time.h>.
63842         (dummy): Remove variable.
63843
63844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63845         gl_HEADER_SYS_TIME_H.
63846         (gl_HEADER_SYS_TIME_H): New macro.
63847
63848         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63849         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63851         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63852         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63854         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63855         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63856         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63857         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63858         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63859
63860         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63861         last change; it caused a compilation error when cross-compiling to
63862         Cygwin.
63863
63864 2007-01-18  Jim Meyering  <jim@meyering.net>
63865
63866         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63867         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63868         than the race-prone "test -d sys || mkdir sys".
63869         (configure.ac): Use AC_PROG_MKDIR_P.
63870         * modules/sys_select: Likewise.
63871         * modules/sys_socket: Likewise.
63872         * modules/sys_time: Likewise.
63873
63874 2007-01-18  Eric Blake  <ebb9@byu.net>
63875
63876         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63877         replace gettimeofday.
63878         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63879         name, to avoid infinite recursion.
63880
63881 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63884         module sys_time.
63885         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63886         assume timespec.h defines struct timeval.
63887         * lib/settime.c: Likewise.
63888         * lib/utimens.c: Likewise.
63889         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63890         since we now assume the gettimeofday module.
63891         * lib/tempname.c (__gen_tempname): Likewise.
63892         * lib/gettimeofday.h: Remove.
63893         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63894         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63895         Include <time.h>, for 'time()'.
63896         (localtime_buffer_addr): Also use this workaround if
63897         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63898         to simplify the uses.  All uses changed.
63899         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63900         that #undef is inside {}, and 'const' follows type name consistently.
63901         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63902         (gettimeofday): Do not use the maximum possible value for
63903         tv->tv_usec, since that might break usages other than ls.c.
63904         Instead, we'll leave ls.c alone.  This undoes today's patch
63905         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63906         we've never observed the problem but might as well keep the
63907         canary.
63908         * lib/nanosleep.c: Include timespec.h first, for interface check.
63909         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63910         now assume the sys_time module.
63911         * lib/tempname.c: Likewise.
63912         * lib/timespec.h: Likewise.
63913         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63914         needed.
63915         * lib/strftime.c: Likewise.
63916         * lib/timespec.h: Likewise.
63917         * lib/posixtm.c: Include posixtm.h first, for interface check.
63918         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63919         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63920         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63921         * lib/sys_time_.h: New file.
63922         * lib/timespec.h (struct timespec): Use long int, not long.
63923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63924         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63925         Remove obsolescent call to AC_HEADER_TIME.
63926         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63928         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63929         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63930         Likewise.
63931         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63932         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63933         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63934         into the sys_time module.  Check for gettimeofday just once.
63935         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63936         for gettimeofday signature to just check the signature.  Merely
63937         compile it, since linking doesn't test signature.  Improve test for
63938         whether gettimeofday.o is actually needed.
63939         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63940         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63941         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63942         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63943         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63944         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63945         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63946         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63947         than worrying about sys/time.h.
63948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63949         Don't bother worrying about TIME_WITH_SYS_TIME.
63950         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63951         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63952         * m4/sys_time_h.m4: New file.
63953         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63954         Don't include sys/time.h.  Return from main rather than exiting.
63955         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63956         all uses changed.
63957         * modules/gethrxtime (Depends-on): Add sys_time.
63958         * modules/gettime (Depends-on): Likewise.
63959         * modules/gettimeofday (Depends-on): Likewise.
63960         * modules/nanosleep (Depends-on): Likewise.
63961         * modules/settime (Depends-on): Likewise.
63962         * modules/tempname (Depends-on): Likewise.
63963         * modules/utimens (Depends-on): Likewise.
63964         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63965         (Include): Change back to <sys/time.h>.
63966         (Maintainer): Add self.
63967         * modules/sys_time: New file.
63968         * modules/tempname (Depends-on): Add gettimeofday.
63969         * tests/test-gettimeofday.c: Include <sys/time.h>
63970         rather than gettimeofday.h.
63971
63972 2007-01-17  Bruno Haible  <bruno@clisp.org>
63973
63974         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63975         the license default to GPL.
63976         (func_create_testdir): Don't complain if a module is LGPL and its
63977         tests module depends on GPLed modules.
63978
63979 2007-01-17  Bruno Haible  <bruno@clisp.org>
63980
63981         * lib/gettimeofday.c (gettimeofday): Add code for the case
63982         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63983         maximum possible value for tv->tv_usec, rather than the minimum one.
63984
63985 2005-10-08  Martin Lambers  <marlam@marlam.de>
63986 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63987 2007-01-16  Bruno Haible  <bruno@clisp.org>
63988
63989         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63990         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63991         gl_FUNC_GETTIMEOFDAY.
63992         (Include): Add gettimeofday.h.
63993         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63994         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63995         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63996         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63997         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63998         * lib/gettimeofday.h: New file.
63999         * lib/gettimeofday.c: Include <sys/timeb.h>.
64000         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64001         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64002         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64003         fall back on time().
64004
64005         * tests/test-gettimeofday.c: New file.
64006         * modules/gettimeofday-tests: New file.
64007
64008 2007-01-16  Eric Blake  <ebb9@byu.net>
64009
64010         * modules/fnmatch (Depends-on): Depend on wchar.
64011         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64012         * m4/fnmatch.m4: Likewise.
64013         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64014         * m4/mbchar.m4: Likewise.
64015         * modules/mbswidth (Depends-on): Depend on wchar.
64016         * lib/mbswidth.c: Assume <wchar.h>.
64017         * m4/mbswidth.m4: Likewise.
64018         * modules/quotearg (Depends-on): Depend on wchar.
64019         * lib/quotearg.c: Assume <wchar.h>.
64020         * m4/quotearg.m4: Likewise.
64021         * modules/regex (Depends-on): Depend on wchar.
64022         * lib/regex_internal.h: Assume <wchar.h>.
64023         * m4/regex.m4: Likewise.
64024         * modules/stdint (Depends-on): Depend on wchar.
64025         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64026         * m4/stdint.m4: Likewise.
64027         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64028         * modules/strftime (Depends-on): Depend on wchar.
64029         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64030         * modules/strtol (Depends-on): Depend on wchar.
64031         * lib/strtol.c: Assume <wchar.h>.
64032         * modules/wcwidth (Depends-on): Depend on wchar.
64033         * lib/wcwidth.h: Assume <wchar.h>.
64034         * m4/wcwidth.m4: Likewise.
64035
64036 2007-01-16  Bruno Haible  <bruno@clisp.org>
64037
64038         * modules/csharpexec-script: New, created from...
64039         * modules/csharpexec: ... this.
64040
64041 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64042
64043         * modules/javaexec-script: New, created from...
64044         * modules/javaexec: ... this.
64045
64046 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64047
64048         * modules/poll (Dependencies): Add sys_select.
64049
64050 2007-01-15  Jim Meyering  <jim@meyering.net>
64051
64052         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64053         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64054         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64055         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64056
64057 2007-01-15  Bruno Haible  <bruno@clisp.org>
64058
64059         * modules/striconveh: New file.
64060         * lib/striconveh.h: New file.
64061         * lib/striconveh.c: New file.
64062         * MODULES.html.sh (Internationalization functions): Add striconveh.
64063
64064         * modules/striconveh-tests: New file.
64065         * tests/test-striconveh.c: New file.
64066
64067 2007-01-15  Bruno Haible  <bruno@clisp.org>
64068
64069         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64070         not from GNU libiconv or GNU libc.
64071
64072 2007-01-15  Bruno Haible  <bruno@clisp.org>
64073
64074         * doc/gnulib-intro.texi (Copyright): Explain the different license
64075         terms for module descriptions, autoconf macros, tests, documentation.
64076
64077 2007-01-14  Bruno Haible  <bruno@clisp.org>
64078
64079         * modules/striconv-tests: New file.
64080         * tests/test-striconv.c: New file.
64081
64082 2007-01-14  Bruno Haible  <bruno@clisp.org>
64083
64084         * modules/iconv-tests: New file.
64085         * tests/test-iconv.c: New file.
64086
64087 2007-01-14  Bruno Haible  <bruno@clisp.org>
64088
64089         * gnulib-tool (func_get_license): For test modules, use the license of
64090         the main module.
64091
64092 2007-01-14  Bruno Haible  <bruno@clisp.org>
64093
64094         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64095         if iconv is found to exist.
64096
64097 2007-01-14  Bruno Haible  <bruno@clisp.org>
64098
64099         * modules/c-ctype-tests: New file.
64100         * tests/test-c-ctype.c: New file.
64101
64102 2007-01-14  Bruno Haible  <bruno@clisp.org>
64103
64104         * modules/binary-io-tests: New file.
64105         * tests/test-binary-io.sh: New file.
64106         * tests/test-binary-io.c: New file.
64107
64108 2007-01-14  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/array-oset-tests: New file.
64111         * tests/test-array_oset.c: New file.
64112
64113 2007-01-14  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/array-list-tests: New file.
64116         * tests/test-array_list.c: New file.
64117
64118 2007-01-14  Bruno Haible  <bruno@clisp.org>
64119
64120         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64121         and make.
64122         Reported by Simon Josefsson in
64123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64124
64125 2007-01-14  Bruno Haible  <bruno@clisp.org>
64126
64127         * modules/allocsa-tests: New file.
64128         * tests/test-allocsa.c: New file.
64129
64130 2007-01-14  Bruno Haible  <bruno@clisp.org>
64131
64132         * modules/fchdir (Depends-on): Add absolute-header.
64133         * modules/unistd (Depends-on): Likewise.
64134
64135 2006-12-30  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/fchdir: New file.
64138         * modules/unistd (Files): Add lib/unistd_.h.
64139         (Makefile.am): Generate unistd.h from unistd_.h.
64140         * lib/fchdir.c: New file.
64141         * lib/dirent_.h: New file.
64142         * lib/unistd_.h: New file.
64143         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64144         * m4/fchdir.m4: New file.
64145         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64146         (gl_HEADER_UNISTD): Invoke it.
64147         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64148         function.
64149         * lib/backupfile.c (opendir, closedir): Undefine.
64150         * lib/chown.c (open, close): Undefine.
64151         * lib/clean-temp.c (open, close): Undefine.
64152         * lib/copy-file.c (open, close): Undefine.
64153         * lib/execute.c (open, close): Undefine.
64154         * lib/fsusage.c (open, close): Undefine.
64155         * lib/gc-gnulib.c (open, close): Undefine.
64156         * lib/getcwd.c (opendir, closedir): Undefine.
64157         * lib/glob.c (opendir, closedir): Undefine.
64158         * lib/javacomp.c (open, close): Undefine.
64159         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64160         * lib/openat-proc.c (open, close): Undefine.
64161         * lib/pagealign_alloc.c (open, close): Undefine.
64162         * lib/pipe.c (open, close): Undefine.
64163         * lib/progreloc.c (open, close): Undefine.
64164         * lib/savedir.c (opendir, closedir): Undefine.
64165         * lib/utime.c (open, close): Undefine.
64166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64167
64168 2007-01-10  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64171
64172 2007-01-12  Eric Blake  <ebb9@byu.net>
64173
64174         Provide a robust <wchar.h>.  Further simplifications are now
64175         possible in other modules, but not included here.
64176         * modules/wchar: New module.
64177         * m4/wchar.m4: New file.
64178         * lib/wchar_.h: Likewise.
64179         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64180         of the new module.
64181         * MODULES.html.sh (Extended multibyte and wide character utilities):
64182         New section.
64183
64184 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64187         to a reasonable default for memory allocation.
64188         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64189         file system that reports garbage st_size values for symlinks.
64190         Problem reported by Liyang Hu.
64191
64192 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64193
64194         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64195         Emacs .#* auto-save files).
64196
64197 2007-01-11  Bruno Haible  <bruno@clisp.org>
64198
64199         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64200         directory.
64201
64202 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         Use @...@ consistently in lib/wctype_.h.
64205         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64206         on it being set to 1 or 0.
64207         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64208         go back to AC_SUBSTing it.
64209         * modules/wctype (Makefile.am): Undo previous change.
64210
64211 2007-01-10  Eric Blake  <ebb9@byu.net>
64212
64213         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64214         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64215         * modules/wctype (Makefile.am): Likewise.
64216         Reported by Chris McGuire.
64217
64218 2007-01-10  Jim Meyering  <jim@meyering.net>
64219
64220         fts.c: a small readability/maintainability improvement
64221         * lib/fts.c (fts_read): Make this code slightly more readable and
64222         maintainable by hoisting the "sp->fts_cur = p" assignments to
64223         immediately follow the statements that set P.  Derived from
64224         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64225
64226 2007-01-10  Eric Blake  <ebb9@byu.net>
64227
64228         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64229         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64231         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64232         Reported by Chris McGuire.
64233
64234 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64235
64236         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64237         in sed script.
64238
64239 2007-01-09  Bruno Haible  <bruno@clisp.org>
64240
64241         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64242         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64243         variables.
64244         (func_module): Use them.
64245
64246 2007-01-09  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/unistr/base: New file.
64249         * lib/unistr.h: New file.
64250
64251         * modules/unistr/u8-to-u16: New file.
64252         * lib/unistr/u8-to-u16.c: New file.
64253
64254         * modules/unistr/u8-to-u32: New file.
64255         * lib/unistr/u8-to-u32.c: New file.
64256
64257         * modules/unistr/u16-to-u8: New file.
64258         * lib/unistr/u16-to-u8.c: New file.
64259
64260         * modules/unistr/u16-to-u32: New file.
64261         * lib/unistr/u16-to-u32.c: New file.
64262
64263         * modules/unistr/u32-to-u8: New file.
64264         * lib/unistr/u32-to-u8.c: New file.
64265
64266         * modules/unistr/u32-to-u16: New file.
64267         * lib/unistr/u32-to-u16.c: New file.
64268
64269         * modules/unistr/u8-check: New file.
64270         * modules/unistr/u16-check: New file.
64271         * modules/unistr/u32-check: New file.
64272         * lib/unistr/u8-check.c: New file.
64273         * lib/unistr/u16-check.c: New file.
64274         * lib/unistr/u32-check.c: New file.
64275
64276         * modules/unistr/u8-chr: New file.
64277         * modules/unistr/u16-chr: New file.
64278         * modules/unistr/u32-chr: New file.
64279         * lib/unistr/u8-chr.c: New file.
64280         * lib/unistr/u16-chr.c: New file.
64281         * lib/unistr/u32-chr.c: New file.
64282
64283         * modules/unistr/u8-cmp: New file.
64284         * modules/unistr/u16-cmp: New file.
64285         * modules/unistr/u32-cmp: New file.
64286         * lib/unistr/u8-cmp.c: New file.
64287         * lib/unistr/u16-cmp.c: New file.
64288         * lib/unistr/u32-cmp.c: New file.
64289
64290         * modules/unistr/u8-cpy: New file.
64291         * modules/unistr/u16-cpy: New file.
64292         * modules/unistr/u32-cpy: New file.
64293         * lib/unistr/u8-cpy.c: New file.
64294         * lib/unistr/u16-cpy.c: New file.
64295         * lib/unistr/u32-cpy.c: New file.
64296         * lib/unistr/u-cpy.h: New file.
64297
64298         * modules/unistr/u8-cpy-alloc: New file.
64299         * modules/unistr/u16-cpy-alloc: New file.
64300         * modules/unistr/u32-cpy-alloc: New file.
64301         * lib/unistr/u8-cpy-alloc.c: New file.
64302         * lib/unistr/u16-cpy-alloc.c: New file.
64303         * lib/unistr/u32-cpy-alloc.c: New file.
64304         * lib/unistr/u-cpy-alloc.h: New file.
64305
64306         * modules/unistr/u8-endswith: New file.
64307         * modules/unistr/u16-endswith: New file.
64308         * modules/unistr/u32-endswith: New file.
64309         * lib/unistr/u8-endswith.c: New file.
64310         * lib/unistr/u16-endswith.c: New file.
64311         * lib/unistr/u32-endswith.c: New file.
64312         * lib/unistr/u-endswith.h: New file.
64313
64314         * modules/unistr/u8-mblen: New file.
64315         * modules/unistr/u16-mblen: New file.
64316         * modules/unistr/u32-mblen: New file.
64317         * lib/unistr/u8-mblen.c: New file.
64318         * lib/unistr/u16-mblen.c: New file.
64319         * lib/unistr/u32-mblen.c: New file.
64320
64321         * modules/unistr/u8-mbtouc: New file.
64322         * modules/unistr/u16-mbtouc: New file.
64323         * modules/unistr/u32-mbtouc: New file.
64324         * lib/unistr/u8-mbtouc.c: New file.
64325         * lib/unistr/u16-mbtouc.c: New file.
64326         * lib/unistr/u32-mbtouc.c: New file.
64327
64328         * modules/unistr/u8-mbtouc-safe: New file.
64329         * modules/unistr/u16-mbtouc-safe: New file.
64330         * modules/unistr/u32-mbtouc-safe: New file.
64331         * lib/unistr/u8-mbtouc-safe.c: New file.
64332         * lib/unistr/u16-mbtouc-safe.c: New file.
64333         * lib/unistr/u32-mbtouc-safe.c: New file.
64334
64335         * modules/unistr/u8-move: New file.
64336         * modules/unistr/u16-move: New file.
64337         * modules/unistr/u32-move: New file.
64338         * lib/unistr/u8-move.c: New file.
64339         * lib/unistr/u16-move.c: New file.
64340         * lib/unistr/u32-move.c: New file.
64341         * lib/unistr/u-move.h: New file.
64342
64343         * modules/unistr/u8-next: New file.
64344         * modules/unistr/u16-next: New file.
64345         * modules/unistr/u32-next: New file.
64346         * lib/unistr/u8-next.c: New file.
64347         * lib/unistr/u16-next.c: New file.
64348         * lib/unistr/u32-next.c: New file.
64349
64350         * modules/unistr/u8-prev: New file.
64351         * modules/unistr/u16-prev: New file.
64352         * modules/unistr/u32-prev: New file.
64353         * lib/unistr/u8-prev.c: New file.
64354         * lib/unistr/u16-prev.c: New file.
64355         * lib/unistr/u32-prev.c: New file.
64356
64357         * modules/unistr/u8-set: New file.
64358         * modules/unistr/u16-set: New file.
64359         * modules/unistr/u32-set: New file.
64360         * lib/unistr/u8-set.c: New file.
64361         * lib/unistr/u16-set.c: New file.
64362         * lib/unistr/u32-set.c: New file.
64363         * lib/unistr/u-set.h: New file.
64364
64365         * modules/unistr/u8-startswith: New file.
64366         * modules/unistr/u16-startswith: New file.
64367         * modules/unistr/u32-startswith: New file.
64368         * lib/unistr/u8-startswith.c: New file.
64369         * lib/unistr/u16-startswith.c: New file.
64370         * lib/unistr/u32-startswith.c: New file.
64371         * lib/unistr/u-startswith.h: New file.
64372
64373         * modules/unistr/u8-stpcpy: New file.
64374         * modules/unistr/u16-stpcpy: New file.
64375         * modules/unistr/u32-stpcpy: New file.
64376         * lib/unistr/u8-stpcpy.c: New file.
64377         * lib/unistr/u16-stpcpy.c: New file.
64378         * lib/unistr/u32-stpcpy.c: New file.
64379         * lib/unistr/u-stpcpy.h: New file.
64380
64381         * modules/unistr/u8-stpncpy: New file.
64382         * modules/unistr/u16-stpncpy: New file.
64383         * modules/unistr/u32-stpncpy: New file.
64384         * lib/unistr/u8-stpncpy.c: New file.
64385         * lib/unistr/u16-stpncpy.c: New file.
64386         * lib/unistr/u32-stpncpy.c: New file.
64387         * lib/unistr/u-stpncpy.h: New file.
64388
64389         * modules/unistr/u8-strcat: New file.
64390         * modules/unistr/u16-strcat: New file.
64391         * modules/unistr/u32-strcat: New file.
64392         * lib/unistr/u8-strcat.c: New file.
64393         * lib/unistr/u16-strcat.c: New file.
64394         * lib/unistr/u32-strcat.c: New file.
64395         * lib/unistr/u-strcat.h: New file.
64396
64397         * modules/unistr/u8-strchr: New file.
64398         * modules/unistr/u16-strchr: New file.
64399         * modules/unistr/u32-strchr: New file.
64400         * lib/unistr/u8-strchr.c: New file.
64401         * lib/unistr/u16-strchr.c: New file.
64402         * lib/unistr/u32-strchr.c: New file.
64403
64404         * modules/unistr/u8-strcmp: New file.
64405         * modules/unistr/u16-strcmp: New file.
64406         * modules/unistr/u32-strcmp: New file.
64407         * lib/unistr/u8-strcmp.c: New file.
64408         * lib/unistr/u16-strcmp.c: New file.
64409         * lib/unistr/u32-strcmp.c: New file.
64410
64411         * modules/unistr/u8-strcpy: New file.
64412         * modules/unistr/u16-strcpy: New file.
64413         * modules/unistr/u32-strcpy: New file.
64414         * lib/unistr/u8-strcpy.c: New file.
64415         * lib/unistr/u16-strcpy.c: New file.
64416         * lib/unistr/u32-strcpy.c: New file.
64417         * lib/unistr/u-strcpy.h: New file.
64418
64419         * modules/unistr/u8-strcspn: New file.
64420         * modules/unistr/u16-strcspn: New file.
64421         * modules/unistr/u32-strcspn: New file.
64422         * lib/unistr/u8-strcspn.c: New file.
64423         * lib/unistr/u16-strcspn.c: New file.
64424         * lib/unistr/u32-strcspn.c: New file.
64425         * lib/unistr/u-strcspn.h: New file.
64426
64427         * modules/unistr/u8-strdup: New file.
64428         * modules/unistr/u16-strdup: New file.
64429         * modules/unistr/u32-strdup: New file.
64430         * lib/unistr/u8-strdup.c: New file.
64431         * lib/unistr/u16-strdup.c: New file.
64432         * lib/unistr/u32-strdup.c: New file.
64433         * lib/unistr/u-strdup.h: New file.
64434
64435         * modules/unistr/u8-strlen: New file.
64436         * modules/unistr/u16-strlen: New file.
64437         * modules/unistr/u32-strlen: New file.
64438         * lib/unistr/u8-strlen.c: New file.
64439         * lib/unistr/u16-strlen.c: New file.
64440         * lib/unistr/u32-strlen.c: New file.
64441         * lib/unistr/u-strlen.h: New file.
64442
64443         * modules/unistr/u8-strmblen: New file.
64444         * modules/unistr/u16-strmblen: New file.
64445         * modules/unistr/u32-strmblen: New file.
64446         * lib/unistr/u8-strmblen.c: New file.
64447         * lib/unistr/u16-strmblen.c: New file.
64448         * lib/unistr/u32-strmblen.c: New file.
64449
64450         * modules/unistr/u8-strmbtouc: New file.
64451         * modules/unistr/u16-strmbtouc: New file.
64452         * modules/unistr/u32-strmbtouc: New file.
64453         * lib/unistr/u8-strmbtouc.c: New file.
64454         * lib/unistr/u16-strmbtouc.c: New file.
64455         * lib/unistr/u32-strmbtouc.c: New file.
64456
64457         * modules/unistr/u8-strncat: New file.
64458         * modules/unistr/u16-strncat: New file.
64459         * modules/unistr/u32-strncat: New file.
64460         * lib/unistr/u8-strncat.c: New file.
64461         * lib/unistr/u16-strncat.c: New file.
64462         * lib/unistr/u32-strncat.c: New file.
64463         * lib/unistr/u-strncat.h: New file.
64464
64465         * modules/unistr/u8-strncmp: New file.
64466         * modules/unistr/u16-strncmp: New file.
64467         * modules/unistr/u32-strncmp: New file.
64468         * lib/unistr/u8-strncmp.c: New file.
64469         * lib/unistr/u16-strncmp.c: New file.
64470         * lib/unistr/u32-strncmp.c: New file.
64471
64472         * modules/unistr/u8-strncpy: New file.
64473         * modules/unistr/u16-strncpy: New file.
64474         * modules/unistr/u32-strncpy: New file.
64475         * lib/unistr/u8-strncpy.c: New file.
64476         * lib/unistr/u16-strncpy.c: New file.
64477         * lib/unistr/u32-strncpy.c: New file.
64478         * lib/unistr/u-strncpy.h: New file.
64479
64480         * modules/unistr/u8-strnlen: New file.
64481         * modules/unistr/u16-strnlen: New file.
64482         * modules/unistr/u32-strnlen: New file.
64483         * lib/unistr/u8-strnlen.c: New file.
64484         * lib/unistr/u16-strnlen.c: New file.
64485         * lib/unistr/u32-strnlen.c: New file.
64486         * lib/unistr/u-strnlen.h: New file.
64487
64488         * modules/unistr/u8-strpbrk: New file.
64489         * modules/unistr/u16-strpbrk: New file.
64490         * modules/unistr/u32-strpbrk: New file.
64491         * lib/unistr/u8-strpbrk.c: New file.
64492         * lib/unistr/u16-strpbrk.c: New file.
64493         * lib/unistr/u32-strpbrk.c: New file.
64494         * lib/unistr/u-strpbrk.h: New file.
64495
64496         * modules/unistr/u8-strrchr: New file.
64497         * modules/unistr/u16-strrchr: New file.
64498         * modules/unistr/u32-strrchr: New file.
64499         * lib/unistr/u8-strrchr.c: New file.
64500         * lib/unistr/u16-strrchr.c: New file.
64501         * lib/unistr/u32-strrchr.c: New file.
64502
64503         * modules/unistr/u8-strspn: New file.
64504         * modules/unistr/u16-strspn: New file.
64505         * modules/unistr/u32-strspn: New file.
64506         * lib/unistr/u8-strspn.c: New file.
64507         * lib/unistr/u16-strspn.c: New file.
64508         * lib/unistr/u32-strspn.c: New file.
64509         * lib/unistr/u-strspn.h: New file.
64510
64511         * modules/unistr/u8-strstr: New file.
64512         * modules/unistr/u16-strstr: New file.
64513         * modules/unistr/u32-strstr: New file.
64514         * lib/unistr/u8-strstr.c: New file.
64515         * lib/unistr/u16-strstr.c: New file.
64516         * lib/unistr/u32-strstr.c: New file.
64517         * lib/unistr/u-strstr.h: New file.
64518
64519         * modules/unistr/u8-strtok: New file.
64520         * modules/unistr/u16-strtok: New file.
64521         * modules/unistr/u32-strtok: New file.
64522         * lib/unistr/u8-strtok.c: New file.
64523         * lib/unistr/u16-strtok.c: New file.
64524         * lib/unistr/u32-strtok.c: New file.
64525         * lib/unistr/u-strtok.h: New file.
64526
64527         * modules/unistr/u8-uctomb: New file.
64528         * modules/unistr/u16-uctomb: New file.
64529         * modules/unistr/u32-uctomb: New file.
64530         * lib/unistr/u8-uctomb.c: New file.
64531         * lib/unistr/u16-uctomb.c: New file.
64532         * lib/unistr/u32-uctomb.c: New file.
64533
64534         * MODULES.html.sh (Unicode string functions): Add the new modules.
64535
64536 2007-01-08  Bruno Haible  <bruno@clisp.org>
64537
64538         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64539         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64540         subdirectories.
64541
64542 2007-01-08  Karl Berry  <karl@gnu.org>
64543
64544         * doc/error.texi: mention that main() fns must set program_name
64545         when progname is used.
64546
64547 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64548
64549         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64550         WCTYPE_H is empty, for the benefit of builds from non-distclean
64551         directories.  Problem reported by Eric Blake in
64552         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64553
64554 2007-01-08  Bruno Haible  <bruno@clisp.org>
64555
64556         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64557         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64558         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64559         PROVIDE_CANONICALIZE_FILENAME_MODE.
64560         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64561
64562 2007-01-08  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64565         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64566         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64567         * lib/fts.c: Likewise.
64568         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64569
64570 2006-12-25  Bruno Haible  <bruno@clisp.org>
64571
64572         * modules/utf8-ucs4-safe: New file.
64573         * lib/utf8-ucs4-safe.h: New file.
64574         * lib/unistr/utf8-ucs4-safe.c: New file.
64575
64576         * modules/utf16-ucs4-safe: New file.
64577         * lib/utf16-ucs4-safe.h: New file.
64578         * lib/unistr/utf16-ucs4-safe.c: New file.
64579
64580         * MODULES.html.sh (Unicode string functions): Add the new modules.
64581
64582 2007-01-08  Bruno Haible  <bruno@clisp.org>
64583
64584         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64585         (Depends-on): Add unitypes.
64586         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64587         (u8_mbtouc_aux): Move out to separate file.
64588         (u8_mbtouc): Use ucs4_t, uint8_t types.
64589         * lib/unistr/utf8-ucs4.c: New file.
64590
64591         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64592         (Depends-on): Add unitypes.
64593         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64594         (u16_mbtouc_aux): Move out to separate file.
64595         (u16_mbtouc): Use ucs4_t, uint16_t types.
64596         * lib/unistr/utf16-ucs4.c: New file.
64597
64598         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64599         (Depends-on): Add unitypes.
64600         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64601         (u8_uctomb_aux): Move out to separate file.
64602         (u8_uctomb): Use ucs4_t, uint8_t types.
64603         * lib/unistr/ucs4-utf8.c: New file.
64604
64605         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64606         (Depends-on): Add unitypes.
64607         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64608         (u16_uctomb_aux): Move out to separate file.
64609         (u16_uctomb): Use ucs4_t, uint16_t types.
64610         * lib/unistr/ucs4-utf16.c: New file.
64611
64612 2006-12-25  Bruno Haible  <bruno@clisp.org>
64613
64614         * modules/unitypes: New file.
64615         * lib/unitypes.h: New file.
64616         * MODULES.html.sh (func_all_modules): New section "Unicode string
64617         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64618         this section. Add unitypes.
64619
64620 2007-01-08  Bruno Haible  <bruno@clisp.org>
64621
64622         Avoid variable names that conflict with those from libtool.
64623         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64624         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64625         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64626         library_names_spec to acl_library_names_spec, hardcode_* to
64627         acl_hardcode_*.
64628         Reported by Ralf Wildenhues.
64629
64630 2007-01-08  Bruno Haible  <bruno@clisp.org>
64631
64632         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64633         definition.
64634         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64635         definition.
64636         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64637         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64638         definition.
64639         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64640         definition.
64641         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64642         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64643         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64644         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64645         definition.
64646         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64647         definition.
64648         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64649         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64650         GC_USE_<algorithm>.
64651         * lib/gc-libgcrypt.c: Likewise.
64652         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64653         * modules/gc-arctwo (configure.ac): Likewise.
64654         * modules/gc-des (configure.ac): Likewise.
64655         * modules/gc-hmac-md5 (configure.ac): Likewise.
64656         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64657         * modules/gc-md2 (configure.ac): Likewise.
64658         * modules/gc-md4 (configure.ac): Likewise.
64659         * modules/gc-md5 (configure.ac): Likewise.
64660         * modules/gc-random (configure.ac): Likewise.
64661         * modules/gc-rijndael (configure.ac): Likewise.
64662         * modules/gc-sha1 (configure.ac): Likewise.
64663
64664 2007-01-08  Bruno Haible  <bruno@clisp.org>
64665
64666         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64667         macro definition.
64668         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64669         definition.
64670         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64671         definition.
64672         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64673         * modules/fcntl-safer (configure.ac): Likewise.
64674         * modules/fopen-safer (configure.ac): Likewise.
64675         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64676         GNULIB_FWRITEERROR macro definition.
64677
64678 2007-01-08  Bruno Haible  <bruno@clisp.org>
64679
64680         * m4/gnulib-common.m4: New file.
64681         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64682         (func_get_filelist): Add m4/gnulib-common.m4.
64683
64684 2007-01-08  Bruno Haible  <bruno@clisp.org>
64685
64686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64687         command.
64688
64689 2007-01-08  Jim Meyering  <jim@meyering.net>
64690
64691         Use a more robust test for a "can't happen" condition.
64692         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64693         narrowed the st_size value.  Presuming the "can't happen" condition
64694         is true, that narrowing could conceivably convert an invalid st_size
64695         value into a valid one.  Instead, use a change based on Matthew
64696         Woehlke's original patch.
64697
64698         Slight readability improvement: use an assert-like macro
64699         in place of literal "abort ()" uses.
64700         * lib/fts.c (fts_assert): Define.
64701         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64702         Use this macro instead of a bare 'abort'.
64703
64704 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64707         simply work around them.
64708         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64709         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64710         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64711         declaring.
64712         Don't bother to define as macros, since the standard doesn't require it.
64713         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64714         longer worry about IRIX 5.3.
64715         (HAVE_WCTYPE_CTMP_BUG): Remove.
64716
64717 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64720         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64721         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64722         Problems reported by Georg Schwarz for IRIX 5.3.
64723
64724         * gnulib-tool (autoconf_minversion): Take the maximum version number
64725         found, not the minimum.  Problem reported by James Youngman.
64726
64727 2007-01-03  Karl Berry  <karl@gnu.org>
64728
64729         * doc/error.texi: new file, explaining interaction with progname.
64730         * doc/gnulib.texi: include it.  Update copyright.
64731
64732 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64733
64734         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64735         AC_CANONICAL_HOST, to improve autobuild outputs.
64736
64737 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64738             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64739
64740         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64741         sockets, server sockets, and other file descriptors.  Count errors
64742         to compute the return value.  Reorder the code a bit to be easier
64743         to follow.  Don't set event bits that were not requested (except
64744         POLLERR and POLLHUP).
64745
64746 2007-01-01  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64749
64750 2007-01-03  Jim Meyering  <jim@meyering.net>
64751
64752         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64753
64754 2007-01-02  Bruno Haible  <bruno@clisp.org>
64755
64756         * modules/settime (Include): Require timespec.h.
64757         * modules/nanosleep (Include): Likewise.
64758
64759 2007-01-01  Bruno Haible  <bruno@clisp.org>
64760
64761         * gnulib-tool (func_emit_copyright_notice): Bump year.
64762         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64763
64764 2007-01-01  Bruno Haible  <bruno@clisp.org>
64765
64766         Improve support for OpenBSD.
64767         * build-aux/config.rpath (libname_spec): Export.
64768         (library_names_spec): New variable. Export.
64769         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64770         library_names_spec from the config.rpath output. Locate shared library
64771         through the name pattern in library_names_spec.
64772
64773 2007-01-01  Eric Blake  <ebb9@byu.net>
64774
64775         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64776
64777 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64778
64779         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64780         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64781         assume the C locale, and avoid an "eval" that could cause trouble.
64782         Problem with SORT reported by Bob Proulx.
64783
64784         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64785         Define.  Trivial patch from Henning Nielsen Lund, originally
64786         sent to bug-grep@gnu.org today.
64787
64788 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64791         struct stat.  Problem reported by Henning Nielsen Lund.
64792         * lib/acl.c: Include acl.h first, to check interface.  Don't
64793         bother to include sys/types.h and sys/stat.h again.
64794
64795 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64796
64797         Import the following change from libc; problem reported by
64798         Sven Verdoolaege.
64799
64800         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64801
64802         [BZ #1373]
64803         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64804
64805 2006-12-28  Jim Meyering  <jim@meyering.net>
64806
64807         * build-aux/announce-gen: Do not assume that the package
64808         builds any of tar.gz, tar.bz2, and .xdelta files.
64809         Suggestion from Simon Josefsson.
64810
64811 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64812
64813         * modules/announce-gen: New file.
64814
64815 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64818         handles its gotchas now.
64819         * lib/mbswidth.c: Likewise.
64820         * lib/wcwidth.h: Likewise.
64821         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64822         and iswcntrl; the wctype module does this stuff now.
64823         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64825         * modules/mbchar (Depends-on): Add wctype.
64826         * modules/mbswidth (Depends-on): Likewise.
64827         * modules/wcwidth (Depends-on): Likewise.
64828
64829 2006-12-27  Eric Blake  <ebb9@byu.net>
64830
64831         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64832         module uses more than what <wctype.h> is required to provide.
64833
64834 2006-12-26  Eric Blake  <ebb9@byu.net>
64835
64836         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64837
64838 2006-12-26  Eric Blake  <ebb9@byu.net>
64839
64840         * modules/absolute-header: New module.
64841         * modules/fcntl (Depends-on): Depend on it.
64842         * modules/inttypes (Depends-on): Likewise.
64843         * modules/stdint (Depends-on): Likewise.
64844         * modules/sys_stat (Depends-on): Likewise.
64845         * modules/wctype (Depends-on): Likewise.
64846         * MODULES.html.sh (Support for building libraries and
64847         executables): Document it.
64848
64849 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64850
64851         * gnulib-tool (SED): Remove, undoing previous change.
64852         The problem was that it broke coreutils on Solaris, because
64853         "sed --posix" leaked into a makefile.
64854         (sed): New alias, if 'alias' and GNU sed.
64855
64856 2006-12-24  Jim Meyering  <jim@meyering.net>
64857
64858         Work around an fchownat bug in glibc-2.4:
64859         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64860         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64861         in spite of the -P option.
64862         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64863         New macros.
64864         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64865         * modules/openat (Files): Add lib/fchownat.c.
64866         * lib/openat.c (fchownat): Don't define here.  Move to...
64867         * lib/fchownat.c: ...this new file.
64868
64869 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         Fix bug reported by Bruno Haible in
64872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64873         where quotearg.c didn't compile on Mac OS X 10.2 because it
64874         lacks <wchar.h> and wint_t.
64875         * lib/wctype_.h (__wctype_wint_t): New type.
64876         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64877         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64878         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64879         Arg is now of type __wctype_wint_t, not wint_t.
64880         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64881         substitute HAVE_WINT_T.
64882         * modules/wctype (Files): Add m4/wint_t.m4.
64883         (wctype.h): Substitute HAVE_WINT_T.
64884
64885 2006-12-23  Bruno Haible  <bruno@clisp.org>
64886
64887         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64888
64889 2006-12-23  Bruno Haible  <bruno@clisp.org>
64890
64891         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64892         S_ISLNK.
64893         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64894         mingw.
64895
64896 2006-12-22  Bruno Haible  <bruno@clisp.org>
64897
64898         * lib/copy-file.c: Include acl.h.
64899         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64900         Close the file descriptors only after being done with copy_acl.
64901         * modules/copy-file (Depends-on): Add acl.
64902
64903 2006-12-22  Bruno Haible  <bruno@clisp.org>
64904
64905         * gnulib-tool (SED): New variable.
64906         Use $SED instead of sed everywhere.
64907
64908 2006-12-22  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/no-c++: New file.
64911         * m4/no-c++.m4: New file.
64912         * MODULES.html.sh (Support for building libraries and executables):
64913         Add no-c++.
64914
64915 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64916
64917         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64918         Include <limits.h>, and use its INT_MAX to rewrite the
64919         j loop so that it does not overflow 'int'.  Problem reported by
64920         Ralf Wildenhues in
64921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64922         Play it safe by shifting left by 1 rather than multiplying by 2,
64923         as GCC is less likely to optimize this away when the value
64924         is signed (when it assumes overflow leads to undefined behavior).
64925         Also, don't assume time_t uses two's complement.
64926
64927 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64928
64929         * MODULES.html.sh: New module wctype.
64930         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64931         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64932         <wctype.h>, since the new wctype module should fix this.
64933         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64934         the wctype module should arrange for it.
64935         * lib/regex_internal.h: Likewise.
64936         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64937         since the wctype module should handle this now.
64938         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64939         * modules/fnmatch (Depends-on): Add wctype.
64940         * modules/quotearg (Depends-on): Likewise.
64941         * modules/regex (Depends-on): Likewise.
64942
64943 2006-12-19  Bruno Haible  <bruno@clisp.org>
64944
64945         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64946         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64947
64948 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64949
64950         * modules/savewd (Depends-on): Fix dependency on fcntl.
64951
64952 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64955         conforms to C99, rather than relying on the user's environment
64956         setting of STDINT_H.
64957
64958 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64959         and Eric Blake  <ebb9@byu.net>
64960
64961         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64962         This is more consistent with the other defines here.
64963         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64964         Port to z/OS.  Problem reported by Paul Gilmartin.
64965         Change local vars to use gl_ prefix rather than ac_.
64966         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64967         with other defines.
64968         * modules/double-slash-root: New module.
64969         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64970         (Depends-on): Add double-slash-root.
64971         * MODULES.html.sh (File system functions): Mention new module.
64972
64973 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64976         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64977         This is for the benefit of gzip, which doesn't do i18n.
64978
64979 2006-12-12  Jim Meyering  <jim@meyering.net>
64980
64981         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64982         Reported by Andreas Schwab <schwab@suse.de>.
64983
64984 2006-12-12  Bruno Haible  <bruno@clisp.org>
64985
64986         Merge these changes.
64987         2006-09-05  Bruno Haible  <bruno@clisp.org>
64988         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64989         iconv_alloc succeeded.
64990         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64991         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64992         test for " && dest " at the end - dest is always != NULL there. Call
64993         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64994         with 2xNULL arguments, also to flush the state storage. Handle the
64995         IRIX iconv behaviour. Realloc the final result, to throw away unused
64996         memory.
64997
64998 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64999
65000         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65001         and fchmodat unconditionally, since glibc 2.4 has them.
65002         Problem reported by Arkadiusz Miskiewicz.
65003
65004 2006-12-10  Bruno Haible  <bruno@clisp.org>
65005
65006         * gnulib-tool (func_import): Show the include files only for those
65007         modules that are copied and specified.
65008         Reported by Karl Berry.
65009
65010 2006-12-08  Jim Meyering  <jim@meyering.net>
65011
65012         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65013         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65014
65015         * build-aux/announce-gen: Add two new options, both optional:
65016         --bootstrap-tools=TOOL_LIST
65017               a comma-separated list of tools, e.g.,
65018               autoconf,automake,bison,gnulib
65019         --gnulib-snapshot-date=DATE
65020               if gnulib is in the bootstrap tool list,
65021               then report this as the snapshot date.
65022               If not specified, use the current date/time.
65023               If you specify a date here, be sure it's UTC.
65024
65025 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65026
65027         * tests/test-argp-2.sh: Fix test to match actual output.
65028         (func_compare): Fix sed script to be portable.
65029
65030 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65033         workaround for this case.  It is not autoconfigured now; offhand
65034         it's hard to see how to autoconfigure it.
65035
65036 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65037
65038         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65039         a directory that is about to be chowned.  Such a directory's
65040         initial file permissions should permit the owner only and this
65041         should not be changed until after the chown, since the group and
65042         other bits would be incorrect if they granted permission before
65043         the chown.
65044
65045         Fix porting problem for iswctype reported by Georg Schwarz in:
65046         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65047         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65048         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65049         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65050         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65051
65052 2006-12-03  Jim Meyering  <jim@meyering.net>
65053
65054         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65055         p->fts_statp may not yet be defined.
65056         (fts_read): Instead, set it in the caller, once p->fts_statp is
65057         sure to be defined, and corresponds to a top-level directory.
65058         This bug made du -x fail.  Here's the coreutils test case:
65059         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65060         Reported by Mike Frysinger.
65061
65062 2006-12-01  Jim Meyering  <jim@meyering.net>
65063
65064         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65065         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65066         Reported by Simon Josefsson.
65067
65068 2006-11-30  Jim Meyering  <jim@meyering.net>
65069
65070         * m4/warning.m4: Use the all-permissive copyright notice
65071         recommended by RMS (rather than LGPL).
65072         * m4/vararrays.m4: Likewise.
65073         * m4/flexmember.m4: Likewise.
65074
65075 2006-11-29  Bruno Haible  <bruno@clisp.org>
65076
65077         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65078         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65079         using +=.
65080         Reported by Simon Josefsson <simon@josefsson.org>.
65081
65082 2006-11-28  James Youngman <jay@gnu.org>
65083
65084         * README: Advise users that they might find the bug-gnulib@gnu.org
65085         and autotools-announce@gnu.org mailing lists useful.
65086
65087 2006-11-28  Bruno Haible  <bruno@clisp.org>
65088
65089         * m4/ptrdiff_max.m4: Remove file.
65090
65091 2006-11-21  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65094         _AC_COMPUTE_INT.
65095         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65096         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65097         _AC_COMPUTE_INT.
65098         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65099         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65100         _AC_COMPUTE_INT.
65101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65102
65103 2006-11-28  Jim Meyering  <jim@meyering.net>
65104
65105         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65106         warning from "gcc -Wshadow" about shadowing the builtin.
65107
65108 2006-11-27  Bruno Haible  <bruno@clisp.org>
65109
65110         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65111         _AC_COMPUTE_INT.
65112         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65113
65114 2006-11-27  Bruno Haible  <bruno@clisp.org>
65115             Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65118
65119 2006-11-26  Bruno Haible  <bruno@clisp.org>
65120
65121         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65122         noinst_LTLIBRARIES.
65123
65124 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65125             Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65128         if compiling with "gcc -ansi".
65129
65130 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         Fix some incompatibilities with gcc -ansi -pedantic.
65133         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65134         if compiling pedantically with GCC, unless it's C99 or later.
65135         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65136         it mishandles gcc -ansi -pedantic as well.
65137         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65138         if gcc -pedantic.
65139         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65140         initializers for struct if -pedantic, unless it's C99 or later.
65141
65142 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65143
65144         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65145         Don't close an fd more than once. Identical atimes indicate
65146         success, not failure.
65147
65148 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65149
65150         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65151
65152 2006-11-23  Jim Meyering  <jim@meyering.net>
65153
65154         * build-aux/announce-gen: New file.  From coreutils.
65155
65156 2006-11-22  Jim Meyering  <jim@meyering.net>
65157
65158         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65159         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65160         (fts_read): Use a temporary to narrow the overused st_size member
65161         before using it in a switch statement.  Reported by Matthew Woehlke.
65162
65163         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65164         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65165
65166 2006-11-20  Bruno Haible  <bruno@clisp.org>
65167
65168         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65169         changequote instead of pairs of brackets.
65170         Reported by Andreas Schwab <schwab@suse.de>.
65171
65172 2006-11-21  Jim Meyering  <jim@meyering.net>
65173
65174         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65175         so as to remain compatible with older compilers.
65176         Patch from Michael Deutschmann.
65177
65178 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * MODULES.html.sh (File system functions): Add openat.
65181
65182         * lib/openat.h (rpl_fstatat): New macro, if
65183         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65184         (fstatat): Define to rpl_fstatat under the same conditions,
65185         unless COMPILING_FSTATAT.
65186         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65187         seems to have the bug.
65188         * lib/fstatat.c: New file.
65189         * modules/openat (Files): Add it.
65190
65191 2006-11-20  Bruno Haible  <bruno@clisp.org>
65192
65193         * Makefile: New file.
65194
65195 2006-11-20  Jim Meyering  <jim@meyering.net>
65196
65197         The beginnings of syntax-related checks for gnulib.
65198         * lib/Makefile: New file.
65199         * lib/t-idcache: New script.  Ensure that the two halves of
65200         idcache.c stay in sync.
65201
65202         * lib/idcache.c: Adjust comments in user- and group- portions to
65203         be more accurate, and to be consistent with one another.
65204
65205 2006-11-20  Jim Meyering  <jim@meyering.net>
65206
65207         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65208         continue using the flexible array member (thus, this module performs
65209         half as many malloc calls), with the addition that...
65210         (getgroup, getuser): Consistently record a non-match via an empty
65211         "name" string, and map an empty string match to a NULL return value.
65212         * modules/idcache (Depends-on): Re-add flexmember.
65213
65214         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65215         (getuidbyname, getgroup, getgidbyname): Likewise.
65216
65217         Use cleaner syntax: NULL rather than 0.
65218         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65219
65220 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65223         It mishandled the case where the group was missing.
65224         Problem reported by Greg Schafer.
65225         * modules/idcache: Likewise.
65226
65227 2006-11-18  Jim Meyering  <jim@meyering.net>
65228
65229         * check-module (%exempt_header): Add exception for some
65230         conditionally-included headers.
65231
65232         * modules/i-ring (Depends-on): Add verify.
65233         (License): Change to LGPL.
65234
65235 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65236
65237         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65238         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65239         and inttostr.h.  Use snprintf rather than uinttostr, so that
65240         LGPLed code doesn't depend on GPLed.
65241
65242 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * modules/inline (License): Change from GPL to LGPL.
65245
65246 2006-11-17  Jim Meyering  <jim@meyering.net>
65247
65248         * modules/d-type (License): Switch to LGPL.
65249
65250 2006-11-15  Bruno Haible  <bruno@clisp.org>
65251
65252         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65253
65254 2006-11-15  Eric Blake  <ebb9@byu.net>
65255
65256         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65257         the module dependency.
65258
65259 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65260             Bruno Haible  <bruno@clisp.org>
65261
65262         * gnulib-tool (func_create_testdir): Add license consistency check.
65263
65264 2006-11-15  Eric Blake  <ebb9@byu.net>
65265
65266         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65267         random "(cached)" in configure output.
65268
65269 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65270
65271         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65272         test for conforming inttypes.h is both announced and cached.
65273
65274         * MODULES.html.sh (seen_modules, seen_files): New variables.
65275         (func_module): Rewrite to use a few less gnulib-tool and sed
65276         invocations.  Avoid a couple of quadratic algorithms for ...
65277         (missed_modules, missed_files): ... these, with ...
65278         (func_append, func_tmpdir): ... these new functions, from
65279         gnulib-tool.  Analogously, install traps for cleanup.
65280
65281         * tests/test-gc.c (main): Remove unused variables.
65282         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65283
65284 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65285
65286         * modules/inttostr (License): Change to LGPL.
65287
65288 2006-11-14  Eric Blake  <ebb9@byu.net>
65289
65290         * modules/tempname (License): Change to LGPL.
65291
65292 2006-11-14  Eric Blake  <ebb9@byu.net>
65293
65294         * doc/functions.texi (Function Portability): *printf functions on
65295         Cygwin now understand all POSIX size specifiers.
65296
65297 2006-11-14  Bruno Haible  <bruno@clisp.org>
65298
65299         * modules/c-ctype (License): Change to LGPL.
65300
65301 2006-11-12  Bruno Haible  <bruno@clisp.org>
65302
65303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65304         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65305         for GNOME libraries, for which the include files are installed in
65306         subdirectories of $prefix/include.
65307
65308 2006-11-12  Bruno Haible  <bruno@clisp.org>
65309
65310         * m4/lib-link.m4: Require at least autoconf-2.54.
65311         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65312         name to underscores for the --with option.
65313
65314 2006-11-13  Bruno Haible  <bruno@clisp.org>
65315
65316         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65317         the tests directory.
65318         Reported by Ralf Wildenhues.
65319
65320 2006-11-13  Bruno Haible  <bruno@clisp.org>
65321
65322         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65323         (func_emit_initmacro_end): Undo the override here.
65324         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65325         Works around the famous automake error in coreutils.
65326
65327 2006-11-13  Eric Blake  <ebb9@byu.net>
65328
65329         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65330         element, not its node.
65331
65332 2006-11-12  Bruno Haible  <bruno@clisp.org>
65333
65334         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65335         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65336
65337 2006-11-12  Bruno Haible  <bruno@clisp.org>
65338
65339         * gnulib-tool: New option --local-symlink.
65340         (func_usage): Document it.
65341         (lsymbolic): New variable.
65342         (func_import, func_create_testdir): If --symlink was not specified,
65343         test whether --local-symlink was specified and the file comes from
65344         the local_gnulib_dir.
65345
65346 2006-11-12  Bruno Haible  <bruno@clisp.org>
65347
65348         * gnulib-tool (func_ln): New function.
65349         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65350
65351 2006-11-12  Bruno Haible  <bruno@clisp.org>
65352
65353         Finish support for source files in subdirectories.
65354         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65355         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65356         AUTOMAKE_OPTIONS.
65357         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65358
65359 2006-11-12  Bruno Haible  <bruno@clisp.org>
65360
65361         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65362         EXTRA_lib_SOURCES augmentation.
65363         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65364
65365 2006-11-12  Jim Meyering  <jim@meyering.net>
65366
65367         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65368         file descriptors.  This also averts a failure on systems with
65369         native openat support when a traversed directory lacks "x" access.
65370         * lib/fts_.h: Include "i-ring.h"
65371         (struct FTS) [fts_fd_ring]: New member.
65372         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65373         (FCHDIR): Add parentheses.
65374         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65375         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65376         When descending, rather than simply closing the previous
65377         fts_cwd_fd value, push that file descriptor onto the ring.
65378         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65379         (fts_open): Initialize the new fd_ring member.
65380         (fts_close): Clear the ring.
65381         (fts_safe_changedir): When possible, use our new fd_ring to skip
65382         the diropen and fstat and dev/ino comparison that would normally
65383         accompany a virtual `chdir ("..")'.
65384
65385         * modules/fts (Depends-on): Add i-ring.
65386         * modules/i-ring: New module.
65387         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65388         * m4/i-ring.m4: New file.
65389
65390 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65391
65392         * gnulib-tool (func_create_testdir): Fix replacement of
65393         `build-aux' in configure.ac.  Run autotools in gltests
65394         subdirectory.
65395         (func_create_testdir, func_create_megatestdir, test): There is
65396         no need for '--force' in most autotool invocations in a new
65397         tree.  Actually fail the whole test if any of the tools, or the
65398         configure or make stages fail.
65399
65400         Sync from Automake.
65401         * build-aux/gnupload: Revert last change.  Add pointer to upload
65402         instructions of the GNU Maintenance Instructions.
65403         Suggestion by Karl Berry.
65404
65405 2006-11-10  Jim Meyering  <jim@meyering.net>
65406
65407         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65408
65409 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65412         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65413         (bind_textdomain_codeset) [! ENABLE_NLS]:
65414         Evaluate all the arguments.  That way, callers get compatible behavior
65415         if the arguments have side effects.  Also, it avoids some GCC
65416         diagnostics in some cases; Joel E. Denny reported problems when Bison
65417         was configured with --enable-gcc-warnigs.
65418
65419 2006-11-10  Jim Meyering  <jim@meyering.net>
65420
65421         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65422         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65423         account.
65424
65425 2006-11-10  Jim Meyering  <jim@meyering.net>
65426
65427         * modules/inline: New file/module.
65428         * modules/xalloc (Files): Remove m4/inline.m4.
65429         (Depends-on): Add inline, instead.
65430         * modules/oset: Likewise.
65431         * modules/list: Likewise.
65432
65433 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65434
65435         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65436         Problem reported by Matthew Woehlke.
65437
65438 2006-11-09  Bruno Haible  <bruno@clisp.org>
65439
65440         * lib/tempname.c (gen_tempname): Remove variant that invokes
65441         __gen_tempname.
65442         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65443         __gen_tempname.
65444
65445 2006-11-08  Bruno Haible  <bruno@clisp.org>
65446
65447         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65448         to 'yes' instead of 'cross-compiling'.
65449
65450 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65451
65452         * lib/quotearg.h (quotearg_free): New decl.
65453         * lib/quotearg.c (quotearg_free): New function.
65454         (slot0, nslots, slotvec0, slotvec):
65455         Now file-scope so that quotearg_free can get at them.
65456
65457 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65458
65459         Sync from Automake.
65460         * build-aux/gnupload: Add missing 'gnu' to example URL.
65461         Report by Karl Berry.
65462
65463 2006-11-08  Bruno Haible  <bruno@clisp.org>
65464
65465         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65466         Suggested by Paul Eggert.
65467
65468 2006-11-08  Jim Meyering  <jim@meyering.net>
65469
65470         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65471         It's already included if !_LIBC.
65472         (fts_safe_changedir): Add a comment.
65473
65474 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65475
65476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65477         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65478         Matthew Woehlke.
65479
65480         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65481         definitions up, to avoid colliding with change below.
65482         (static_inline) [HAVE_INLINE]: New macro.
65483         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65484         Provide extern decls when !HAVE_INLINE.  Do not define unless
65485         static_inline is defined, either by us or by xmalloc.c.  Use
65486         static_inline rather than static inline.
65487         (XCALLOC): Optimize sizeof(T) = 1 case.
65488         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65489
65490 2006-11-07  Bruno Haible  <bruno@clisp.org>
65491
65492         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65493         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65494         AC_C_INLINE.
65495         * modules/xalloc (Files): Add m4/inline.m4.
65496
65497 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65498
65499         * README: Fix typo.
65500         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65501         (Miscellanous Notes): ...from this.
65502
65503 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65506         Mention that offsetof should be used instead of sizeof.
65507         From Bruno Haible.
65508
65509 2006-11-07  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65512
65513 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65516         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65517         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65518         (gl_tree_add_before, gl_tree_add_after):
65519         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65520         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65521         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65522         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65523         (gl_linked_add_after, gl_linked_add_at): Likewise.
65524         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65525         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65526         (gl_tree_add_before, gl_tree_add_after): Likewise.
65527         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65528         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65529         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65530
65531 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65532
65533         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65534
65535 2006-11-06  Bruno Haible  <bruno@clisp.org>
65536
65537         * m4/inline.m4: New file.
65538         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65539         * modules/list (Files): Add m4/inline.m4.
65540         * modules/oset (Files): Likewise.
65541
65542 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65543
65544         * lib/idcache.c: Include <stddef.h>, for offsetof.
65545         (struct userid.name): Change from char * to a flexible array member.
65546         All uses changed.
65547         * modules/idcache (Depends-on): Add flexmember.
65548
65549         * MODULES.html.sh (Core language properties): New module flexmember.
65550         * modules/flexmember, m4/flexmember.m4: New files.
65551
65552         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65553         inline functions that are identical with the old xnmalloc_inline,
65554         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65555         that we can avoid some unnecessary integer multiplications and
65556         divisions in the common case where the element size is known at
65557         compile time.
65558         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65559         needed.
65560         (xnboundedmalloc): Remove.
65561         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65562         arguments, for consistency with rest of this header.
65563         (xcharalloc): Rewrite using XNMALLOC.
65564         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65565         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65566         versions have been moved to lib/xalloc.h and renamed to be the
65567         non-*_inline versions.
65568         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65569         and xnrealloc functions, since those functions are now inline and
65570         now call us.
65571         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65572         renaming described above.
65573         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65574         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65575         captures the dependency in AC_C_INLINE.
65576
65577         New module canonicalize-lgpl, proposed by Charles Wilson in
65578         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65579         with a few small changes afterwards.
65580         * MODULES.html.sh (File system functions): New module
65581         canonicalize-lgpl.
65582         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65583         and canonicalize_file_name.
65584         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65585         * modules/canonicalize-lgpl: New files.
65586
65587 2006-11-05  Bruno Haible  <bruno@clisp.org>
65588
65589         * gnulib-tool (func_import, func_create_testdir): Create directories
65590         also for files in subdirectories of lib/.
65591
65592 2006-11-05  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65595         ANSI C compliant.
65596
65597 2006-11-03  Bruno Haible  <bruno@clisp.org>
65598
65599         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65600         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65601         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65602         (xnboundedmalloc): New inline function.
65603         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65604         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65605         xmalloc.
65606         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65607         xmalloc.
65608         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65609         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65610         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65611         xmalloc.
65612         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65613         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65614         xmalloc.
65615         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65616         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65617         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65618         xmalloc.
65619         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65620         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65621         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65622         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65623         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65624         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65625         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65626
65627 2006-11-03  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/c-ctype.h [C++]: Define functions without name mangling.
65630         * lib/fwriteerror.h [C++]: Likewise.
65631         * lib/gcd.h [C++]: Likewise.
65632         * lib/linebreak.h [C++]: Likewise.
65633
65634 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65635
65636         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65637         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65638         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65639         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65640         Check for functions and headers just once.
65641         Check for declaration of canonicalize_file_name.
65642         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65643
65644 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65645
65646         * gnulib-tool (func_import): Fix typo in actioncmd.
65647
65648 2006-11-02  Bruno Haible  <bruno@clisp.org>
65649
65650         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65651         newline sequence in the Makefile.am snippet as a space, like "make"
65652         does.
65653         Reported by Roger Persson <perrog@gmail.com>.
65654
65655 2006-11-01  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65658         already declared in <string.h>.
65659         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65660
65661 2006-11-01  Bruno Haible  <bruno@clisp.org>
65662
65663         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65664         * lib/strcase.h: Include <string.h>.
65665         (strcasecmp): Define to rpl_strcasecmp here.
65666
65667 2006-11-01  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65670
65671 2006-11-01  Eric Blake  <ebb9@byu.net>
65672
65673         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65674
65675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65676
65677 2006-10-29  Bruno Haible  <bruno@clisp.org>
65678
65679         Make it compile in C++ mode.
65680         * lib/full-write.c (full_rw): Add a cast.
65681
65682 2006-11-01  Bruno Haible  <bruno@clisp.org>
65683
65684         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65685         be POSIX compliant.
65686         Reported by Roger Persson <perrog@gmail.com>.
65687
65688 2006-11-01  Eric Blake  <ebb9@byu.net>
65689
65690         * lib/getopt_.h: Fix comments.
65691
65692 2006-10-31  Eric Blake  <ebb9@byu.net>
65693
65694         * modules/tmpdir (Depends-on): Add sys_stat.
65695         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65696         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65697         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65698         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65699         tempname.
65700
65701 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65702
65703         Avoid some C++ diagnostics reported by Bruno Haible.
65704         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65705         xmalloc.
65706         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65707         (struct slotvec): Move to top level.
65708         (quotearg_n_options): Rewrite to avoid xmalloc.
65709         * lib/xalloc.h (xcharalloc): New function.
65710         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65711         [defined __cplusplus]: Add function template that provides result
65712         type propagation.  This part of the change is from Bruno Haible.
65713
65714 2006-10-29  Bruno Haible  <bruno@clisp.org>
65715
65716         Make it compile in C++ mode.
65717         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65718         * lib/strnlen1.c (strnlen1): Cast memchr result.
65719         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65720         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65721         (create_temp_dir): Rename local variable 'template'.
65722         (compile_csharp_using_sscli): Add cast.
65723         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65724         * lib/findprog.c (find_in_path): Likewise.
65725         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65726         * lib/wait-process.c (register_slave_subprocess): Likewise.
65727
65728 2006-10-22  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/tsearch: New file.
65731         * lib/tsearch.h: New file.
65732         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65733         * m4/tsearch.m4: New file.
65734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65735
65736 2006-10-29  Eric Blake  <ebb9@byu.net>
65737
65738         * lib/arcfour.c: Assume config.h.
65739         * lib/arctwo.c: Likewise.
65740         * lib/base64.c: Likewise.
65741         * lib/check-version.c: Likewise.
65742         * lib/crc.c: Likewise.
65743         * lib/des.c: Likewise.
65744         * lib/gc-gnulib.c: Likewise.
65745         * lib/gc-libgcrypt.c: Likewise.
65746         * lib/gc-pbkdf2-sha1.c: Likewise.
65747         * lib/getaddrinfo.c: Likewise.
65748         * lib/getdelim.c: Likewise.
65749         * lib/getline.c: Likewise.
65750         * lib/hmac-md5.c: Likewise.
65751         * lib/hmac-sha1.c: Likewise.
65752         * lib/iconvme.c: Likewise.
65753         * lib/md2.c: Likewise.
65754         * lib/md4.c: Likewise.
65755         * lib/memxor.c: Likewise.
65756         * lib/read-file.c: Likewise.
65757         * lib/readline.c: Likewise.
65758         * lib/rijndael-alg-fst.c: Likewise.
65759         * lib/rijndael-api-fst.c: Likewise.
65760         * lib/xgetdomainname.c: Likewise.
65761
65762 2006-10-28  Eric Blake  <ebb9@byu.net>
65763
65764         * lib/xstrndup.c: Assume config.h.
65765
65766 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65769         stat-macros.h is now for our own macros, whereas stat_h is for
65770         macros in the <sys/stat.h> name space.
65771         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65772         (STAT_MACROS_H): Remove.
65773         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65774         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65775         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65776         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65777         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65778         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65779         Move these macros to ...
65780         * lib/stat_.h: here.  Don't include stat-macros.h.
65781         * lib/canonicalize.c: Don't include stat-macros.h.
65782         * lib/chown.c: Likewise.
65783         * lib/euidaccess.c: Likewise.
65784         * lib/file-type.c: Likewise.
65785         * lib/filemode.c: Likewise.
65786         * lib/glob.c: Likewise.
65787         * lib/isapipe.c: Likewise.
65788         * lib/lchown.c: Likewise.
65789         * lib/lstat.c: Likewise.
65790         * lib/mkdir-p.c: Likewise.
65791         * lib/rmdir.c: Likewise.
65792         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65794         unless mkdir isn't declared, to speed up 'configure'.
65795         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65796         would define all the S_* symbols.
65797         * modules/canonicalize (Depends-on):
65798         Depend on sys_stat, not stat-macros.
65799         * modules/chown: Likewise.
65800         * modules/euidaccess: Likewise.
65801         * modules/filemode: Likewise.
65802         * modules/file-type: Likewise.
65803         * modules/glob: Likewise.
65804         * modules/isapipe: Likewise.
65805         * modules/lchown: Likewise.
65806         * modules/lstat: Likewise.
65807         * modules/mkancesdirs: Likewise.
65808         * modules/rmdir: Likewise.
65809         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65810         * modules/modechange: Likewise.
65811         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65812         (configure.ac): Remove gl_STAT_MACROS.
65813         * modules/sys_stat (Depends-on): Remove stat-macros.
65814
65815 2006-10-27  Bruno Haible  <bruno@clisp.org>
65816
65817         * m4/signed.m4: Remove file.
65818         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65819         invocation.
65820         * modules/vasnprintf (Files): Remove m4/signed.m4.
65821
65822 2006-10-27  Bruno Haible  <bruno@clisp.org>
65823
65824         Update to GNU gettext 0.16.
65825         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65826         m4/inttypes-h.m4, m4/signed.m4.
65827         * m4/gettext.m4: Update to GNU gettext 0.16.
65828         * m4/intl.m4: New file, from GNU gettext.
65829         * m4/intldir.m4: New file, from GNU gettext.
65830         * config/srclist.txt: Update
65831
65832 2006-10-27  Eric Blake  <ebb9@byu.net>
65833
65834         * MODULES.html.sh: Document tempname.
65835         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65836         dependencies.
65837         (Files): Move lib/tempname.c...
65838         * modules/tempname: ...to this new module.
65839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65840         (gl_PREREQ_TEMPNAME): Move...
65841         * m4/tempname.m4: ...to this new file.
65842         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65843         * modules/sys_stat (Depends-on): Add stat-macros.
65844         * lib/stat_.h (includes): Pick up stat macros.
65845         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65846         if stat macros are broken.
65847         * lib/tempname.c (includes): No need to include "stat-macros.h".
65848         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65849         (direxists, __path_search) [!_LIBC]: Don't compile these in
65850         gnulib; the tmpdir module covers that.
65851         * lib/tempname.h: New file.
65852
65853 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * COPYING: Explain how gnulib-tool converts licence headers.
65856         Almost all wording by Eric Blake.
65857
65858 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * lib/mbchar.h (is_basic_table): Make read-only.
65861         * lib/mbchar.c (is_basic_table): Likewise.
65862         Reported by John Darrington.
65863
65864 2006-10-25  Bruno Haible  <bruno@clisp.org>
65865
65866         * lib/progname.h (set_program_name): Undefine before defining.
65867
65868 2006-10-25  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65871         false for non-gcc C++ compilers.
65872         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65873
65874 2006-10-24  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65877         iconv implementations like Irix iconv.
65878
65879 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * modules/vararrays: New file.
65882         * m4/vararrays.m4: New file, taken from diffutils.
65883         * MODULES.html.sh: New module vararrays.
65884
65885 2006-10-24  Karl Berry  <karl@gnu.org>
65886
65887         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65888         Don't call GNU Unix.
65889
65890 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65891
65892         * users.txt: Add Libtool.
65893
65894         Sync from Libtool:
65895
65896         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65897
65898         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65899         to gnulib's policy of including config.h unconditionally.
65900
65901 2006-10-24  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/wcwidth (Files): Add m4/wint_t.m4.
65904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65905         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65906
65907 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65910         to pacify GCC with some -W flags enabled.  Problem reported by
65911         Bruno Haible.
65912
65913 2006-10-24  Jim Meyering  <jim@meyering.net>
65914
65915         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65916         Reported by Karl Berry.
65917
65918 2006-10-23  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65921
65922 2006-10-24  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/gl_list.h: Use C comment style, not C++ comment style.
65925
65926 2006-10-23  Eric Blake  <ebb9@byu.net>
65927
65928         * lib/getaddrinfo.c (includes): Add missing include.
65929
65930 2006-10-23  Bruno Haible  <bruno@clisp.org>
65931             Paul Eggert  <eggert@cs.ucla.edu>
65932
65933         Ability to rename obstack_free.
65934         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65935         obstack_free.
65936         (obstack_free): Invoke the __obstack_free macro.
65937         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65938
65939 2006-10-23  Bruno Haible  <bruno@clisp.org>
65940             Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65943         __argc, __argv from the declaration. (They are defined as macros on
65944         mingw.)
65945
65946 2006-10-22  Bruno Haible  <bruno@clisp.org>
65947
65948         * doc/gnulib-intro.texi: New file.
65949         * doc/gnulib.texi: Include it.
65950
65951 2006-10-21  Bruno Haible  <bruno@clisp.org>
65952
65953         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65954         "Introduction", "Miscellanous Notes", "Particular Modules".
65955
65956 2006-10-21  Bruno Haible  <bruno@clisp.org>
65957
65958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65959         Change mostlyclean-local rule to avoid sh syntax error from bash
65960         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65961
65962 2006-10-23  Jim Meyering  <jim@meyering.net>
65963
65964         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65965         in place of snprintf.
65966
65967         * modules/inttostr (Files): Add lib/uinttostr.c.
65968         * lib/uinttostr.c (inttostr): New file/function.
65969         * lib/inttostr.h (uinttostr): Declare.
65970         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65971         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65972         Add uinttostr.
65973         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65974
65975 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * lib/canonicalize.c (ELOOP): Define if not already defined.
65978         Problem reported by Bruno Haible in
65979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65980
65981 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65984         Problem reported by Perry Smith and Ville Laurikari.
65985
65986         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65987         uses.
65988
65989 2006-10-19  Bruno Haible  <bruno@clisp.org>
65990
65991         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65992         for mingw.
65993
65994 2006-10-19  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65997         Needed for mingw.
65998
65999 2006-10-19  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66002
66003 2006-10-19  Bruno Haible  <bruno@clisp.org>
66004
66005         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66006         it.
66007
66008 2006-10-19  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66011         invocation.
66012
66013 2006-10-19  Bruno Haible  <bruno@clisp.org>
66014
66015         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66016         mountlist by default.
66017
66018 2006-10-16  Bruno Haible  <bruno@clisp.org>
66019
66020         * lib/c-strstr.c: Include c-strstr.h.
66021
66022 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66023
66024         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66025         in a slash.
66026
66027 2006-10-18  Bruno Haible  <bruno@clisp.org>
66028
66029         * lib/lock.h [C++]: Wrap definitions in extern "C".
66030
66031 2006-10-18  Bruno Haible  <bruno@clisp.org>
66032
66033         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66034         gl_LIBOBJS list.
66035
66036 2006-10-18  Bruno Haible  <bruno@clisp.org>
66037
66038         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66039
66040 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * lib/xstrtol.h: Include gettext.h.
66043         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66044         Problem reported by Eric Blake.
66045         * modules/xstrtol (Depends-on): Add gettext-h.
66046
66047 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66048
66049         * lib/strftime.c (advance): New macro.
66050         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66051         incomplete type, so you can't add 0 to it.  Problem and patch
66052         reported by Eelco Dolstra for dietlibc.
66053
66054 2006-10-18  Jim Meyering  <jim@meyering.net>
66055
66056         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66057         type for a local, and rename it: s/up/user_proc/.
66058
66059 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66060
66061         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66062         READ_UTMP_USER_PROCESS.
66063         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66064
66065 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66068         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66069
66070 2006-10-17  Eric Blake  <ebb9@byu.net>
66071
66072         * lib/sigprocmask.c (sigprocmask): Fix typo.
66073
66074         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66075
66076         * modules/clean-temp (Makefile.am): Don't add to make output...
66077         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66078         config.h.
66079
66080 2006-10-17  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66083         differently if DEFAULT_TEXT_DOMAIN is set.
66084
66085 2006-10-16  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/clean-temp.c: Include fwriteerror.h.
66088
66089 2006-10-16  Bruno Haible  <bruno@clisp.org>
66090
66091         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66092
66093 2006-10-16  Bruno Haible  <bruno@clisp.org>
66094
66095         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66096         * lib/sigprocmask.h: Include <sys/types.h>.
66097         (sigset_t): Use the system's definition if present.
66098
66099 2006-10-17  Eric Blake  <ebb9@byu.net>
66100
66101         * lib/xvasprintf.c (includes): Assume config.h.
66102         * lib/xasprintf.c (includes): Likewise.
66103
66104 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66105
66106         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66107         at least as wide as intmax_t.
66108
66109 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66110
66111         (Imported from Automake.)
66112         * build-aux/gnupload: Update to version 1.1 of directive file.
66113
66114 2006-10-16  Eric Blake  <ebb9@byu.net>
66115
66116         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66117         match Automake 1.10a.
66118
66119 2006-10-14  Bruno Haible  <bruno@clisp.org>
66120
66121         * modules/sigprocmask: New file.
66122         * lib/sigprocmask.h: New file.
66123         * lib/sigprocmask.c: New file.
66124         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66125         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66126         request sigprocmask.o.
66127         (gl_PREREQ_SIGPROCMASK): New macro.
66128         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66129         (Depends-on): Add sigprocmask.
66130         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66131         gt_SIGNALBLOCKING. Test for 'raise' only once.
66132         * lib/fatal-signal.c: Include sigprocmask.h.
66133         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66134         unblock_fatal_signals): Define always.
66135         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66136         sigprocmask.
66137
66138 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         Sync from Automake.
66141         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66142         which incorrectly sets the mode of an existing destination
66143         directory.  In some cases the unpatched install-sh could do the
66144         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66145         system.  We hope this is rare in practice, but it's clearly worth
66146         fixing.  Problem reported by Alex Unleashed in
66147         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66148         Also, don't bother to check for -m bugs unless we're using -m;
66149         suggested by Stepan Kasal.
66150
66151 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66152
66153         Sync from Automake.
66154         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66155         `-c' flag, so they appear at the same position as in %FASTDEP%
66156         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66157         which ignores unknown options only after the first non-option.
66158         Bug report against M4 by Nelson H. F. Beebe.
66159
66160 2006-10-13  Jim Meyering  <jim@meyering.net>
66161
66162         Fix a bug in yesterday's change.
66163         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66164         p->fts_statp->st_dev would be used uninitialized.
66165         Ensures that we always call fts_stat on the very first entry.
66166         Miklos Szeredi reported that find -xdev stopped working.
66167
66168 2006-10-12  Bruno Haible  <bruno@clisp.org>
66169
66170         * gnulib-tool (func_get_automake_snippet): Append an automatically
66171         computed EXTRA_DIST augmentation.
66172         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66173         * modules/alloca-opt (Makefile.am): Likewise.
66174         * modules/allocsa (Makefile.am): Likewise.
66175         * modules/arcfour (Makefile.am): Likewise.
66176         * modules/arctwo (Makefile.am): Likewise.
66177         * modules/argmatch (Makefile.am): Likewise.
66178         * modules/argz (Makefile.am): Likewise.
66179         * modules/atexit (Makefile.am): Likewise.
66180         * modules/backupfile (Makefile.am): Likewise.
66181         * modules/byteswap (Makefile.am): Likewise.
66182         * modules/c-strtod (Makefile.am): Likewise.
66183         * modules/c-strtold (Makefile.am): Likewise.
66184         * modules/calloc (Makefile.am): Likewise.
66185         * modules/canon-host (Makefile.am): Likewise.
66186         * modules/canonicalize (Makefile.am): Likewise.
66187         * modules/chdir-long (Makefile.am): Likewise.
66188         * modules/chdir-safer (Makefile.am): Likewise.
66189         * modules/check-version (Makefile.am): Likewise.
66190         * modules/chown (Makefile.am): Likewise.
66191         * modules/cloexec (Makefile.am): Likewise.
66192         * modules/close-stream (Makefile.am): Likewise.
66193         * modules/closeout (Makefile.am): Likewise.
66194         * modules/crc (Makefile.am): Likewise.
66195         * modules/csharpexec (Makefile.am): Likewise.
66196         * modules/cycle-check (Makefile.am): Likewise.
66197         * modules/des (Makefile.am): Likewise.
66198         * modules/dev-ino (Makefile.am): Likewise.
66199         * modules/dirfd (Makefile.am): Likewise.
66200         * modules/dirname (Makefile.am): Likewise.
66201         * modules/dup2 (Makefile.am): Likewise.
66202         * modules/eealloc (Makefile.am): Likewise.
66203         * modules/error (Makefile.am): Likewise.
66204         * modules/euidaccess (Makefile.am): Likewise.
66205         * modules/exclude (Makefile.am): Likewise.
66206         * modules/exitfail (Makefile.am): Likewise.
66207         * modules/fcntl-safer (Makefile.am): Likewise.
66208         * modules/fcntl (Makefile.am): Likewise.
66209         * modules/file-type (Makefile.am): Likewise.
66210         * modules/fileblocks (Makefile.am): Likewise.
66211         * modules/filemode (Makefile.am): Likewise.
66212         * modules/filenamecat (Makefile.am): Likewise.
66213         * modules/fnmatch (Makefile.am): Likewise.
66214         * modules/fopen-safer (Makefile.am): Likewise.
66215         * modules/fpending (Makefile.am): Likewise.
66216         * modules/fprintftime (Makefile.am): Likewise.
66217         * modules/free (Makefile.am): Likewise.
66218         * modules/fsusage (Makefile.am): Likewise.
66219         * modules/ftruncate (Makefile.am): Likewise.
66220         * modules/fts (Makefile.am): Likewise.
66221         * modules/gc-arcfour (Makefile.am): Likewise.
66222         * modules/gc-des (Makefile.am): Likewise.
66223         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66224         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66225         * modules/gc-md4 (Makefile.am): Likewise.
66226         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66227         * modules/gc-sha1 (Makefile.am): Likewise.
66228         * modules/gc (Makefile.am): Likewise.
66229         * modules/getaddrinfo (Makefile.am): Likewise.
66230         * modules/getcwd (Makefile.am): Likewise.
66231         * modules/getdelim (Makefile.am): Likewise.
66232         * modules/getdomainname (Makefile.am): Likewise.
66233         * modules/getgroups (Makefile.am): Likewise.
66234         * modules/gethostname (Makefile.am): Likewise.
66235         * modules/gethrxtime (Makefile.am): Likewise.
66236         * modules/getline (Makefile.am): Likewise.
66237         * modules/getloadavg (Makefile.am): Likewise.
66238         * modules/getlogin_r (Makefile.am): Likewise.
66239         * modules/getndelim2 (Makefile.am): Likewise.
66240         * modules/getopt (Makefile.am): Likewise.
66241         * modules/getpagesize (Makefile.am): Likewise.
66242         * modules/getpass-gnu (Makefile.am): Likewise.
66243         * modules/getpass (Makefile.am): Likewise.
66244         * modules/getsubopt (Makefile.am): Likewise.
66245         * modules/gettime (Makefile.am): Likewise.
66246         * modules/gettimeofday (Makefile.am): Likewise.
66247         * modules/getugroups (Makefile.am): Likewise.
66248         * modules/getusershell (Makefile.am): Likewise.
66249         * modules/glob (Makefile.am): Likewise.
66250         * modules/group-member (Makefile.am): Likewise.
66251         * modules/hard-locale (Makefile.am): Likewise.
66252         * modules/hash (Makefile.am): Likewise.
66253         * modules/hmac-md5 (Makefile.am): Likewise.
66254         * modules/hmac-sha1 (Makefile.am): Likewise.
66255         * modules/human (Makefile.am): Likewise.
66256         * modules/idcache (Makefile.am): Likewise.
66257         * modules/imaxabs (Makefile.am): Likewise.
66258         * modules/imaxdiv (Makefile.am): Likewise.
66259         * modules/inet_ntop (Makefile.am): Likewise.
66260         * modules/inet_pton (Makefile.am): Likewise.
66261         * modules/intprops (Makefile.am): Likewise.
66262         * modules/inttostr (Makefile.am): Likewise.
66263         * modules/inttypes (Makefile.am): Likewise.
66264         * modules/isapipe (Makefile.am): Likewise.
66265         * modules/javaversion (Makefile.am): Likewise.
66266         * modules/lchmod (Makefile.am): Likewise.
66267         * modules/lchown (Makefile.am): Likewise.
66268         * modules/localcharset (Makefile.am): Likewise.
66269         * modules/long-options (Makefile.am): Likewise.
66270         * modules/lstat (Makefile.am): Likewise.
66271         * modules/malloc (Makefile.am): Likewise.
66272         * modules/mathl (Makefile.am): Likewise.
66273         * modules/mbchar (Makefile.am): Likewise.
66274         * modules/md2 (Makefile.am): Likewise.
66275         * modules/md4 (Makefile.am): Likewise.
66276         * modules/md5 (Makefile.am): Likewise.
66277         * modules/memcasecmp (Makefile.am): Likewise.
66278         * modules/memchr (Makefile.am): Likewise.
66279         * modules/memcmp (Makefile.am): Likewise.
66280         * modules/memcoll (Makefile.am): Likewise.
66281         * modules/memcpy (Makefile.am): Likewise.
66282         * modules/memmem (Makefile.am): Likewise.
66283         * modules/memmove (Makefile.am): Likewise.
66284         * modules/mempcpy (Makefile.am): Likewise.
66285         * modules/memrchr (Makefile.am): Likewise.
66286         * modules/memset (Makefile.am): Likewise.
66287         * modules/memxor (Makefile.am): Likewise.
66288         * modules/mkancesdirs (Makefile.am): Likewise.
66289         * modules/mkdir-p (Makefile.am): Likewise.
66290         * modules/mkdir (Makefile.am): Likewise.
66291         * modules/mkdtemp (Makefile.am): Likewise.
66292         * modules/mkstemp (Makefile.am): Likewise.
66293         * modules/mktime (Makefile.am): Likewise.
66294         * modules/modechange (Makefile.am): Likewise.
66295         * modules/mountlist (Makefile.am): Likewise.
66296         * modules/nanosleep (Makefile.am): Likewise.
66297         * modules/obstack (Makefile.am): Likewise.
66298         * modules/openat (Makefile.am): Likewise.
66299         * modules/pagealign_alloc (Makefile.am): Likewise.
66300         * modules/pathmax (Makefile.am): Likewise.
66301         * modules/physmem (Makefile.am): Likewise.
66302         * modules/poll (Makefile.am): Likewise.
66303         * modules/posixtm (Makefile.am): Likewise.
66304         * modules/posixver (Makefile.am): Likewise.
66305         * modules/putenv (Makefile.am): Likewise.
66306         * modules/quote (Makefile.am): Likewise.
66307         * modules/quotearg (Makefile.am): Likewise.
66308         * modules/raise (Makefile.am): Likewise.
66309         * modules/read-file (Makefile.am): Likewise.
66310         * modules/readline (Makefile.am): Likewise.
66311         * modules/readlink (Makefile.am): Likewise.
66312         * modules/readtokens (Makefile.am): Likewise.
66313         * modules/readutmp (Makefile.am): Likewise.
66314         * modules/realloc (Makefile.am): Likewise.
66315         * modules/regex (Makefile.am): Likewise.
66316         * modules/rename-dest-slash (Makefile.am): Likewise.
66317         * modules/rename (Makefile.am): Likewise.
66318         * modules/rijndael (Makefile.am): Likewise.
66319         * modules/rmdir (Makefile.am): Likewise.
66320         * modules/rpmatch (Makefile.am): Likewise.
66321         * modules/safe-read (Makefile.am): Likewise.
66322         * modules/safe-write (Makefile.am): Likewise.
66323         * modules/same-inode (Makefile.am): Likewise.
66324         * modules/same (Makefile.am): Likewise.
66325         * modules/save-cwd (Makefile.am): Likewise.
66326         * modules/savedir (Makefile.am): Likewise.
66327         * modules/setenv (Makefile.am): Likewise.
66328         * modules/settime (Makefile.am): Likewise.
66329         * modules/sha1 (Makefile.am): Likewise.
66330         * modules/sig2str (Makefile.am): Likewise.
66331         * modules/snprintf (Makefile.am): Likewise.
66332         * modules/stat-macros (Makefile.am): Likewise.
66333         * modules/stat-time (Makefile.am): Likewise.
66334         * modules/stdbool (Makefile.am): Likewise.
66335         * modules/stdint (Makefile.am): Likewise.
66336         * modules/stdlib-safer (Makefile.am): Likewise.
66337         * modules/stpcpy (Makefile.am): Likewise.
66338         * modules/stpncpy (Makefile.am): Likewise.
66339         * modules/strcase (Makefile.am): Likewise.
66340         * modules/strcasestr (Makefile.am): Likewise.
66341         * modules/strchrnul (Makefile.am): Likewise.
66342         * modules/strcspn (Makefile.am): Likewise.
66343         * modules/strdup (Makefile.am): Likewise.
66344         * modules/strerror (Makefile.am): Likewise.
66345         * modules/strftime (Makefile.am): Likewise.
66346         * modules/strndup (Makefile.am): Likewise.
66347         * modules/strnlen (Makefile.am): Likewise.
66348         * modules/strpbrk (Makefile.am): Likewise.
66349         * modules/strsep (Makefile.am): Likewise.
66350         * modules/strstr (Makefile.am): Likewise.
66351         * modules/strtod (Makefile.am): Likewise.
66352         * modules/strtoimax (Makefile.am): Likewise.
66353         * modules/strtok_r (Makefile.am): Likewise.
66354         * modules/strtol (Makefile.am): Likewise.
66355         * modules/strtoll (Makefile.am): Likewise.
66356         * modules/strtoul (Makefile.am): Likewise.
66357         * modules/strtoull (Makefile.am): Likewise.
66358         * modules/strtoumax (Makefile.am): Likewise.
66359         * modules/strverscmp (Makefile.am): Likewise.
66360         * modules/sys_socket (Makefile.am): Likewise.
66361         * modules/sys_stat (Makefile.am): Likewise.
66362         * modules/sysexits (Makefile.am): Likewise.
66363         * modules/time_r (Makefile.am): Likewise.
66364         * modules/timegm (Makefile.am): Likewise.
66365         * modules/timespec (Makefile.am): Likewise.
66366         * modules/tmpfile-safer (Makefile.am): Likewise.
66367         * modules/trim (Makefile.am): Likewise.
66368         * modules/unistd-safer (Makefile.am): Likewise.
66369         * modules/unlinkdir (Makefile.am): Likewise.
66370         * modules/unlocked-io (Makefile.am): Likewise.
66371         * modules/userspec (Makefile.am): Likewise.
66372         * modules/utime (Makefile.am): Likewise.
66373         * modules/utimecmp (Makefile.am): Likewise.
66374         * modules/utimens (Makefile.am): Likewise.
66375         * modules/vasnprintf (Makefile.am): Likewise.
66376         * modules/vasprintf (Makefile.am): Likewise.
66377         * modules/vsnprintf (Makefile.am): Likewise.
66378         * modules/xalloc (Makefile.am): Likewise.
66379         * modules/xgetcwd (Makefile.am): Likewise.
66380         * modules/xnanosleep (Makefile.am): Likewise.
66381         * modules/xreadlink (Makefile.am): Likewise.
66382         * modules/xstrtod (Makefile.am): Likewise.
66383         * modules/xstrtol (Makefile.am): Likewise.
66384         * modules/xstrtold (Makefile.am): Likewise.
66385         * modules/yesno (Makefile.am): Likewise.
66386         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66387
66388 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * modules/error (Makefile.am): Distribute files through
66391         EXTRA_DIST, not lib_SOURCES.
66392
66393 2006-10-12  Eric Blake  <ebb9@byu.net>
66394
66395         * modules/error (Makefile.am): Distribute files in /lib.
66396         * modules/obstack (Makefile.am): Likewise.
66397
66398 2006-10-12  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/acl (Makefile.am): Distribute all files in lib/ through
66401         EXTRA_DIST.
66402         * modules/arcfour (Makefile.am): Likewise.
66403         * modules/arctwo (Makefile.am): Likewise.
66404         * modules/argmatch (Makefile.am): Likewise.
66405         * modules/argz (Makefile.am): Likewise.
66406         * modules/atexit (Makefile.am): Likewise.
66407         * modules/backupfile (Makefile.am): Likewise.
66408         * modules/c-strtod (Makefile.am): Likewise.
66409         * modules/c-strtold (Makefile.am): Likewise.
66410         * modules/calloc (Makefile.am): Likewise.
66411         * modules/canon-host (Makefile.am): Likewise.
66412         * modules/canonicalize (Makefile.am): Likewise.
66413         * modules/chdir-long (Makefile.am): Likewise.
66414         * modules/chdir-safer (Makefile.am): Likewise.
66415         * modules/check-version (Makefile.am): Likewise.
66416         * modules/chown (Makefile.am): Likewise.
66417         * modules/cloexec (Makefile.am): Likewise.
66418         * modules/close-stream (Makefile.am): Likewise.
66419         * modules/closeout (Makefile.am): Likewise.
66420         * modules/crc (Makefile.am): Likewise.
66421         * modules/cycle-check (Makefile.am): Likewise.
66422         * modules/des (Makefile.am): Likewise.
66423         * modules/dirfd (Makefile.am): Likewise.
66424         * modules/dirname (Makefile.am): Likewise.
66425         * modules/dup2 (Makefile.am): Likewise.
66426         * modules/euidaccess (Makefile.am): Likewise.
66427         * modules/exclude (Makefile.am): Likewise.
66428         * modules/exitfail (Makefile.am): Likewise.
66429         * modules/fcntl-safer (Makefile.am): Likewise.
66430         * modules/file-type (Makefile.am): Likewise.
66431         * modules/fileblocks (Makefile.am): Likewise.
66432         * modules/filemode (Makefile.am): Likewise.
66433         * modules/filenamecat (Makefile.am): Likewise.
66434         * modules/fnmatch (Makefile.am): Likewise.
66435         * modules/fopen-safer (Makefile.am): Likewise.
66436         * modules/fpending (Makefile.am): Likewise.
66437         * modules/fprintftime (Makefile.am): Likewise.
66438         * modules/free (Makefile.am): Likewise.
66439         * modules/fsusage (Makefile.am): Likewise.
66440         * modules/ftruncate (Makefile.am): Likewise.
66441         * modules/fts (Makefile.am): Likewise.
66442         * modules/gc (Makefile.am): Likewise.
66443         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66444         * modules/getaddrinfo (Makefile.am): Likewise.
66445         * modules/getcwd (Makefile.am): Likewise.
66446         * modules/getdelim (Makefile.am): Likewise.
66447         * modules/getdomainname (Makefile.am): Likewise.
66448         * modules/getgroups (Makefile.am): Likewise.
66449         * modules/gethostname (Makefile.am): Likewise.
66450         * modules/gethrxtime (Makefile.am): Likewise.
66451         * modules/getline (Makefile.am): Likewise.
66452         * modules/getloadavg (Makefile.am): Likewise.
66453         * modules/getlogin_r (Makefile.am): Likewise.
66454         * modules/getopt (Makefile.am): Likewise.
66455         * modules/getpass (Makefile.am): Likewise.
66456         * modules/getpass-gnu (Makefile.am): Likewise.
66457         * modules/getsubopt (Makefile.am): Likewise.
66458         * modules/gettime (Makefile.am): Likewise.
66459         * modules/gettimeofday (Makefile.am): Likewise.
66460         * modules/getugroups (Makefile.am): Likewise.
66461         * modules/getusershell (Makefile.am): Likewise.
66462         * modules/glob (Makefile.am): Likewise.
66463         * modules/group-member (Makefile.am): Likewise.
66464         * modules/hard-locale (Makefile.am): Likewise.
66465         * modules/hash (Makefile.am): Likewise.
66466         * modules/hmac-md5 (Makefile.am): Likewise.
66467         * modules/hmac-sha1 (Makefile.am): Likewise.
66468         * modules/human (Makefile.am): Likewise.
66469         * modules/idcache (Makefile.am): Likewise.
66470         * modules/imaxabs (Makefile.am): Likewise.
66471         * modules/imaxdiv (Makefile.am): Likewise.
66472         * modules/inet_ntop (Makefile.am): Likewise.
66473         * modules/inet_pton (Makefile.am): Likewise.
66474         * modules/inttostr (Makefile.am): Likewise.
66475         * modules/isapipe (Makefile.am): Likewise.
66476         * modules/lchown (Makefile.am): Likewise.
66477         * modules/long-options (Makefile.am): Likewise.
66478         * modules/lstat (Makefile.am): Likewise.
66479         * modules/malloc (Makefile.am): Likewise.
66480         * modules/mathl (Makefile.am): Likewise.
66481         * modules/mbchar (Makefile.am): Likewise.
66482         * modules/md2 (Makefile.am): Likewise.
66483         * modules/md4 (Makefile.am): Likewise.
66484         * modules/md5 (Makefile.am): Likewise.
66485         * modules/memcasecmp (Makefile.am): Likewise.
66486         * modules/memchr (Makefile.am): Likewise.
66487         * modules/memcmp (Makefile.am): Likewise.
66488         * modules/memcoll (Makefile.am): Likewise.
66489         * modules/memcpy (Makefile.am): Likewise.
66490         * modules/memmem (Makefile.am): Likewise.
66491         * modules/memmove (Makefile.am): Likewise.
66492         * modules/mempcpy (Makefile.am): Likewise.
66493         * modules/memrchr (Makefile.am): Likewise.
66494         * modules/memset (Makefile.am): Likewise.
66495         * modules/memxor (Makefile.am): Likewise.
66496         * modules/mkancesdirs (Makefile.am): Likewise.
66497         * modules/mkdir (Makefile.am): Likewise.
66498         * modules/mkdir-p (Makefile.am): Likewise.
66499         * modules/mkdtemp (Makefile.am): Likewise.
66500         * modules/mkstemp (Makefile.am): Likewise.
66501         * modules/mktime (Makefile.am): Likewise.
66502         * modules/modechange (Makefile.am): Likewise.
66503         * modules/mountlist (Makefile.am): Likewise.
66504         * modules/nanosleep (Makefile.am): Likewise.
66505         * modules/openat (Makefile.am): Likewise.
66506         * modules/pagealign_alloc (Makefile.am): Likewise.
66507         * modules/physmem (Makefile.am): Likewise.
66508         * modules/poll (Makefile.am): Likewise.
66509         * modules/posixtm (Makefile.am): Likewise.
66510         * modules/posixver (Makefile.am): Likewise.
66511         * modules/putenv (Makefile.am): Likewise.
66512         * modules/quote (Makefile.am): Likewise.
66513         * modules/quotearg (Makefile.am): Likewise.
66514         * modules/raise (Makefile.am): Likewise.
66515         * modules/read-file (Makefile.am): Likewise.
66516         * modules/readline (Makefile.am): Likewise.
66517         * modules/readlink (Makefile.am): Likewise.
66518         * modules/readtokens (Makefile.am): Likewise.
66519         * modules/readutmp (Makefile.am): Likewise.
66520         * modules/realloc (Makefile.am): Likewise.
66521         * modules/regex (Makefile.am): Likewise.
66522         * modules/rename (Makefile.am): Likewise.
66523         * modules/rename-dest-slash (Makefile.am): Likewise.
66524         * modules/rijndael (Makefile.am): Likewise.
66525         * modules/rmdir (Makefile.am): Likewise.
66526         * modules/rpmatch (Makefile.am): Likewise.
66527         * modules/safe-read (Makefile.am): Likewise.
66528         * modules/safe-write (Makefile.am): Likewise.
66529         * modules/same (Makefile.am): Likewise.
66530         * modules/save-cwd (Makefile.am): Likewise.
66531         * modules/savedir (Makefile.am): Likewise.
66532         * modules/setenv (Makefile.am): Likewise.
66533         * modules/settime (Makefile.am): Likewise.
66534         * modules/sha1 (Makefile.am): Likewise.
66535         * modules/sig2str (Makefile.am): Likewise.
66536         * modules/snprintf (Makefile.am): Likewise.
66537         * modules/stdlib-safer (Makefile.am): Likewise.
66538         * modules/stpcpy (Makefile.am): Likewise.
66539         * modules/stpncpy (Makefile.am): Likewise.
66540         * modules/strcase (Makefile.am): Likewise.
66541         * modules/strcasestr (Makefile.am): Likewise.
66542         * modules/strchrnul (Makefile.am): Likewise.
66543         * modules/strcspn (Makefile.am): Likewise.
66544         * modules/strdup (Makefile.am): Likewise.
66545         * modules/strerror (Makefile.am): Likewise.
66546         * modules/strftime (Makefile.am): Likewise.
66547         * modules/strndup (Makefile.am): Likewise.
66548         * modules/strnlen (Makefile.am): Likewise.
66549         * modules/strpbrk (Makefile.am): Likewise.
66550         * modules/strsep (Makefile.am): Likewise.
66551         * modules/strstr (Makefile.am): Likewise.
66552         * modules/strtod (Makefile.am): Likewise.
66553         * modules/strtoimax (Makefile.am): Likewise.
66554         * modules/strtok_r (Makefile.am): Likewise.
66555         * modules/strtol (Makefile.am): Likewise.
66556         * modules/strtoll (Makefile.am): Likewise.
66557         * modules/strtoul (Makefile.am): Likewise.
66558         * modules/strtoull (Makefile.am): Likewise.
66559         * modules/strtoumax (Makefile.am): Likewise.
66560         * modules/strverscmp (Makefile.am): Likewise.
66561         * modules/time_r (Makefile.am): Likewise.
66562         * modules/timegm (Makefile.am): Likewise.
66563         * modules/tmpfile-safer (Makefile.am): Likewise.
66564         * modules/unistd-safer (Makefile.am): Likewise.
66565         * modules/unlinkdir (Makefile.am): Likewise.
66566         * modules/userspec (Makefile.am): Likewise.
66567         * modules/utime (Makefile.am): Likewise.
66568         * modules/utimecmp (Makefile.am): Likewise.
66569         * modules/utimens (Makefile.am): Likewise.
66570         * modules/vasnprintf (Makefile.am): Likewise.
66571         * modules/vasprintf (Makefile.am): Likewise.
66572         * modules/vsnprintf (Makefile.am): Likewise.
66573         * modules/xalloc (Makefile.am): Likewise.
66574         * modules/xgetcwd (Makefile.am): Likewise.
66575         * modules/xnanosleep (Makefile.am): Likewise.
66576         * modules/xreadlink (Makefile.am): Likewise.
66577         * modules/xstrtod (Makefile.am): Likewise.
66578         * modules/xstrtol (Makefile.am): Likewise.
66579         * modules/xstrtold (Makefile.am): Likewise.
66580         * modules/yesno (Makefile.am): Likewise.
66581
66582 2006-10-12  Jim Meyering  <jim@meyering.net>
66583
66584         * m4/getloadavg.m4: Revert the change below.
66585
66586         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66587         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66588         fail with a symlink, which is what coreutils' ./bootstrap now
66589         creates by default.
66590
66591 2006-10-12  Bruno Haible  <bruno@clisp.org>
66592
66593         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66594         mingw.
66595         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66596         MSVC and mingw explicitly.
66597
66598 2006-10-11  Simon Josefsson  <jas@extundo.com>
66599             Bruno Haible  <bruno@clisp.org>
66600
66601         Add support for multiple gnulib-tool invocations in the scope of a
66602         single configure.ac file.
66603         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66604         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66605         with the same contents as the _LIBADD variable.
66606         (func_emit_initmacro_start, func_emit_initmacro_end,
66607         func_emit_initmacro_done): New functions.
66608         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66609         gl_LIBOBJS and gl_LTLIBOBJS.
66610
66611 2006-10-11  Bruno Haible  <bruno@clisp.org>
66612
66613         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66614         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66615         autoreconf. Instead, invoke autopoint explicitly but move back the
66616         *.m4 files from gnulib.
66617
66618 2006-10-11  Bruno Haible  <bruno@clisp.org>
66619
66620         * gnulib-tool (func_usage): Make module names after --create-testdir
66621         optional.
66622         (func_create_testdir): If no module was specified, use nearly all
66623         modules.
66624
66625 2006-10-12  Jim Meyering  <jim@meyering.net>
66626
66627         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66628         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66629         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66630         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66631         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66632         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66633         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66634         (fts_set_stat_required): New function.
66635         (fts_open): Defer the calls to fts_stat, if possible or requested.
66636         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66637         into fts_stat itself.
66638         (fts_read): Perform any required (deferred) fts_stat call.
66639         (fts_build): Likewise, for the directory we're about to open and read.
66640         In the readdir loop, carefully decide whether each entry will require
66641         an eventual call to fts_stat, using dirent.d_type info if available.
66642         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66643         a command line argument into this function.  Update all callers.
66644         Map a return value of FTS_DOT to FTS_D for a command line argument.
66645         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66646         Thanks to Miklos Szeredi for his tenacity and for the initial
66647         bug report about "find" failing on a FUSE-based file system.
66648
66649         * lib/fts.c (fts_open): Use consistent indentation.
66650
66651 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66654         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66655         reported by Jim Meyering.  All uses of cache variables renamed
66656         to match Autoconf's.
66657         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66658         the other one.
66659
66660         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66661         Fix misspelling in diagnostic.
66662
66663 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66666         defined.  Problem reported by Matthew Woehlke.
66667
66668         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66669         Add support for Tandem NonStop R series.
66670         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66671         Use new macro.
66672
66673         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66674         (has_trailing_slash): Omit size arg; all callers changed.
66675         Omit 'inline', since it doesn't help performance and we'd
66676         need to configure it.
66677         Don't count //, ///, etc. as having a trailing slash.
66678         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66679         (rpl_rename_dest_slash): On failure, use rename's errno rather
66680         than (in some cases) an incorrect or junk errno.
66681         Simplify code by removing need to compute length; this does
66682         cause it to make two passes instead of one over the file name,
66683         but it's worth it.
66684
66685         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66686         change, since Autoconf's version may no longer be appropriate now
66687         that we are using CVS Autoconf's version.  Add support for Tandem.
66688
66689 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66690             Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66693         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66694         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66695         gl_AC_TYPE_LONG_LONG.
66696
66697         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66698         instead of HAVE_LONG_LONG.
66699         * lib/printf-args.c (printf_fetchargs): Likewise.
66700         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66701         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66702         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66703         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66704         gl_AC_TYPE_LONG_LONG.
66705
66706 2006-10-11  Bruno Haible  <bruno@clisp.org>
66707
66708         * m4/longlong.m4: Add comments.
66709         * m4/ulonglong.m4: Likewise.
66710
66711 2006-10-10  Bruno Haible  <bruno@clisp.org>
66712
66713         Make it possible to #define stpcpy, strdup to aliases.
66714         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66715         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66716
66717 2006-10-10  Bruno Haible  <bruno@clisp.org>
66718
66719         Make it possible to #define gcd to an alias.
66720         * lib/gcd.c: Include config.h.
66721
66722 2006-10-10  Bruno Haible  <bruno@clisp.org>
66723
66724         Make it possible to #define c_isascii to an alias.
66725         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66726         defined. Undefine the macros before defining them, to avoid gcc
66727         warnings.
66728         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66729         define NO_C_CTYPE_MACROS early.
66730
66731 2006-10-10  Bruno Haible  <bruno@clisp.org>
66732
66733         Make it possible to #define set_program_name to an alias.
66734         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66735         ENABLE_RELOCATABLE early.
66736
66737 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66740         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66741         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66742         More generally, don't assume that 64-bit signed int is available
66743         if unsigned int is, and vice versa.
66744         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66745         unsigned symbols, not on their signed counterparts.
66746         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66747         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66748         (UINT64_C, UINTMAX_C):
66749         Likewise.
66750         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66751         unsigned counterparts.
66752         (Have_long_long, Unsigned): New macros.
66753         (Int): Renamed from INT.
66754         (strtoimax): Use the new macros.
66755         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66756         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66757         * modules/inttypes (inttypes.h): Substitute
66758         HAVE_UNSIGNED_LONG_LONG_INT.
66759         * modules/stdint (stdint.h): Likewise.
66760         (Files): Add m4/ulonglong.m4.
66761
66762 2006-10-10  Bruno Haible  <bruno@clisp.org>
66763
66764         Fix a gcc -Wshadow warning.
66765         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66766         to 'bucket'.
66767         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66768         gl_linked_indexof_from_to): Likewise.
66769         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66770         Likewise.
66771         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66772         Likewise.
66773         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66774         Reported by Eric Blake.
66775
66776 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66777
66778         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66779         for NetBSD.  Problem reported by Bruno Haible.
66780
66781 2006-10-09  Jim Meyering  <jim@meyering.net>
66782
66783         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66784         Patch from Bruno Haible.
66785
66786 2006-10-09  Jim Meyering  <jim@meyering.net>
66787
66788         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66789         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66790         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66791
66792 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         Don't include <config.h> twice; this doesn't work in some cases,
66795         e.g., when config.h has "#define intmax_t long long int" and
66796         we include <config.h>, <inttypes.h>, <config.h> in that order.
66797         Problem reported by Matthew Woehlke in:
66798         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66799         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66800         * lib/fts-cycle.c: Don't include config.h.
66801         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66802         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66803         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66804         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66805         inttypes.h.
66806         * lib/xstrtoumax.c: Likewise.
66807         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66808         __strtol and the like, so that this module is more like its siblings.
66809         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66810         Remove; no longer needed now that we assume gnulib inttypes.h.
66811
66812 2006-10-08  Bruno Haible  <bruno@clisp.org>
66813
66814         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66815         option.
66816
66817 2006-10-07  Jim Meyering  <jim@meyering.net>
66818
66819         * modules/inttypes (inttypes.h): Revert what seems to have been
66820         an inadvertent part of today's change: use "|", not "/" in the
66821         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66822
66823 2006-10-07  Bruno Haible  <bruno@clisp.org>
66824
66825         * modules/sublist: New file.
66826
66827 2006-10-07  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66830         * modules/argz (argz.h): Likewise.
66831         * modules/arpa_inet (arpa/inet.h): Likewise.
66832         * modules/byteswap (byteswap.h): Likewise.
66833         * modules/configmake (configmake.h): Likewise.
66834         * modules/fcntl (fcntl.h): Likewise.
66835         * modules/fnmatch (fnmatch.h): Likewise.
66836         * modules/getopt (getopt.h): Likewise.
66837         * modules/glob (glob.h): Likewise.
66838         * modules/inttypes (inttypes.h): Likewise.
66839         * modules/netinet_in (netinet/in.h): Likewise.
66840         * modules/poll (poll.h): Likewise.
66841         * modules/stdbool (stdbool.h): Likewise.
66842         * modules/stdint (stdint.h): Likewise.
66843         * modules/sys_select (sys/select.h): Likewise.
66844         * modules/sys_socket (sys/socket.h): Likewise.
66845         * modules/sys_stat (sys/stat.h): Likewise.
66846         * modules/sysexits (sysexits.h): Likewise.
66847         * modules/unistd (unistd.h): Likewise.
66848         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66849         Add a "DO NOT EDIT" comment to the generated file.
66850         (func_import): Likewise for gnulib-comp.m4.
66851
66852 2006-10-07  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/gl_sublist.h: New file.
66855         * lib/gl_sublist.c: New file.
66856
66857 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66860         name (relative to the original working directory) and the file
66861         name component (relative to the temporary working directory).  All
66862         callers changed.
66863         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66864         * lib/mkdir-p.c (make_dir_parents): Likewise.
66865         * lib/mkdir-p.h (make_dir_parents): Likewise.
66866
66867 2006-10-06  Eric Blake  <ebb9@byu.net>
66868
66869         Define several macros for use by the clean-temp module.
66870         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66871         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66872         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66873
66874         * lib/clean-temp.h (close_stream_temp): New declaration.
66875         * lib/clean-temp.c (includes): Pull in headers according to what
66876         other modules are in use.
66877         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66878
66879 2006-10-06  Bruno Haible  <bruno@clisp.org>
66880
66881         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66882         instead of fopen, fwriteerror.
66883
66884 2006-10-06  Bruno Haible  <bruno@clisp.org>
66885
66886         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66887         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66888         int.
66889         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66890         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66891         Return an error indicator.
66892         Suggested by Eric Blake.
66893
66894 2006-10-06  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66897         Reported by Eric Blake.
66898
66899 2006-10-06  Bruno Haible  <bruno@clisp.org>
66900
66901         * modules/closeout (Description): Mention stderr too.
66902
66903 2006-10-06  Bruno Haible  <bruno@clisp.org>
66904         and Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * lib/closeout.c (close_stdout): Also close stderr.
66907         * lib/closeout.h: Update comment.
66908
66909 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66910
66911         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66912         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66913         * lib/dirchownmod.c: Include lchown.h.
66914         * lib/lchown.c: Don't include files that lchown.h now includes.
66915         Don't declare chown, since lchown.h now does that.
66916         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66917         (lchown): Define to rpl_chown if lchown is declared but
66918         does not exist.  Declare using a prototype if lchown is not
66919         declared.  Add a copyright notice.
66920         * lib/mkstemp.h: Include <unistd.h>.
66921         * lib/openat.c: Include lchown.h.
66922
66923         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66924         we now test for that separately.
66925         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66926         rather than O_NOFOLLOW, when testing whether it's possible to
66927         avoid a race condition reliably.
66928         * lib/savewd.c (savewd_chdir): Likewise.
66929
66930         Remove macros that are no longer needed now that stdint.h is
66931         reliable.
66932         * lib/fsusage.c (UINTMAX_MAX): Remove.
66933         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66934         * lib/utimecmp.c (SIZE_MAX): Remove.
66935
66936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66937
66938         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66939         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66940         O_NOATIME works.
66941
66942 2006-10-05  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/gl_list.h (gl_sortedlist_search_from_to,
66945         gl_sortedlist_indexof_from_to): New declarations.
66946         (gl_list_implementation): New fields sortedlist_search_from_to,
66947         sortedlist_indexof_from_to.
66948         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66949         inline functions.
66950         * lib/gl_list.c (gl_sortedlist_search_from_to,
66951         gl_sortedlist_indexof_from_to): New functions.
66952         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66953         function.
66954         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66955         (gl_array_sortedlist_search_from_to): New function.
66956         (gl_array_list_implementation): Update.
66957         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66958         function.
66959         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66960         (gl_carray_sortedlist_search_from_to): New function.
66961         (gl_carray_list_implementation): Update.
66962         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66963         gl_linked_sortedlist_indexof_from_to): New functions.
66964         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66965         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66966         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66967         gl_tree_sortedlist_indexof_from_to): New functions.
66968         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66969         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66970         Update.
66971         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66972         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66973         Update.
66974
66975 2006-10-05  Bruno Haible  <bruno@clisp.org>
66976
66977         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66978         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66979         (struct gl_list_implementation): Add fields search_from_to,
66980         indexof_from_to. Remove fields search, indexof.
66981         (gl_list_search): Use the search_from_to method.
66982         (gl_list_search_from, gl_list_search_from_to): New functions.
66983         (gl_list_indexof): Use the indexof_from_to method.
66984         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66985         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66986         (gl_list_search_from, gl_list_search_from_to): New functions.
66987         (gl_list_indexof): Use the indexof_from_to method.
66988         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66989         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66990         gl_array_indexof. Add start_index, end_index arguments.
66991         (gl_array_search_from_to): Renamed from gl_array_search. Add
66992         start_index, end_index arguments.
66993         (gl_array_remove, gl_array_list_implementation): Update.
66994         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66995         gl_carray_indexof. Add start_index, end_index arguments.
66996         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66997         start_index, end_index arguments.
66998         (gl_carray_remove, gl_carray_list_implementation): Update.
66999         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67000         gl_linked_search. Add start_index, end_index arguments.
67001         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67002         start_index, end_index arguments.
67003         (gl_linked_remove): Update.
67004         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67005         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67006         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67007         field to 'size_t'.
67008         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67009         gl_tree_search. Add start_index, end_index arguments.
67010         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67011         start_index, end_index arguments.
67012         (gl_tree_remove): Update.
67013         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67014         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67015         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67016         function.
67017         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67018         gl_tree_search. Add start_index, end_index arguments.
67019         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67020         start_index, end_index arguments.
67021         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67022         Update.
67023         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67024
67025 2006-10-05  Bruno Haible  <bruno@clisp.org>
67026
67027         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67028
67029         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67030         fwriteerror_temp): New declarations.
67031         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67032         (descriptors): New variable.
67033         (cleanup): First, close the descriptors.
67034         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67035         fclose_temp, fwriteerror_temp): New functions.
67036
67037 2006-10-04  Jim Meyering  <jim@meyering.net>
67038
67039         * lib/fts.c (fts_open): Tiny comment change.
67040
67041 2006-10-04  Bruno Haible  <bruno@clisp.org>
67042
67043         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67044         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67045         gl_LOCK_BODY.
67046         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67047         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67048         gl_LOCK_EARLY_BODY.
67049         (gl_LOCK): Require gl_LOCK_BODY.
67050
67051 2006-10-04  Bruno Haible  <bruno@clisp.org>
67052
67053         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67054         (gl_oset_search_atleast): New declaration.
67055         (struct gl_oset_implementation): Add field 'search_atleast'.
67056         (gl_oset_search_atleast): New inline function.
67057         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67058         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67059         (gl_array_oset_implementation): Update.
67060         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67061         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67062         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67063
67064 2006-10-04  Bruno Haible  <bruno@clisp.org>
67065
67066         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67067
67068 2006-10-03  Bruno Haible  <bruno@clisp.org>
67069
67070         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67071         from gl_avltreehash_list_implementation.
67072
67073 2006-10-03  Bruno Haible  <bruno@clisp.org>
67074
67075         * lib/gl_oset.c (gl_oset_add): Fix return type.
67076
67077 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67078
67079         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67080
67081 2006-10-02  Eric Blake  <ebb9@byu.net>
67082
67083         * modules/strnlen (Depends-on): Add extensions.
67084
67085 2006-10-02  Eric Blake  <ebb9@byu.net>
67086
67087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67088         definition in 2.60+.
67089
67090 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67091
67092         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67093         checks.
67094
67095 2006-10-02  Bruno Haible  <bruno@clisp.org>
67096
67097         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67098         to the AUTOMAKE_OPTIONS.
67099         Reported by Jim Meyering.
67100
67101 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         Work around bug in Solaris 10 /proc file system:
67104         /proc/self/fd/NNN/.. isn't the parent directory of
67105         the directory whose file descriptor is NNN.  This needs to
67106         be worked around at run time, not compile time, since a
67107         program might be built on Solaris 8, where things work, and
67108         run on Solaris 10.
67109         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67110         to use the following interface instead:
67111         (OPENAT_BUFFER_SIZE): New macro.
67112         (openat_proc_name): New function.
67113         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67114         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67115         Likewise.
67116         * lib/openat-proc.c: New file.
67117         * modules/openat (Files): Add lib/openat-proc.c.
67118         (Depends-on): Add same-inode, stdbool.
67119         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67120
67121 2006-09-29  Bruno Haible  <bruno@clisp.org>
67122
67123         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67124         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67125         argument. Set stdout_closed before testing for ferror, not after.
67126         (fwriteerror, fwriteerror_no_ebadf): New functions.
67127
67128 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67129
67130         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67131
67132 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67133
67134         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67135         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67136
67137 2006-09-28  Jim Meyering  <jim@meyering.net>
67138
67139         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67140         Include <unistd.h>.
67141
67142 2006-09-28  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67145         * modules/linkedhash-list (Depends-on): Likewise.
67146         * modules/rbtreehash-list (Depends-on): Likewise.
67147
67148 2006-09-28  Bruno Haible  <bruno@clisp.org>
67149
67150         * lib/strndup.h: Simplify the redefinition of strndup.
67151         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67152         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67153
67154 2006-09-28  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67157         * lib/gl_linkedhash_list.c: Likewise.
67158         * lib/gl_rbtreehash_list.c: Likewise.
67159
67160 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67163         getaddrinfo.
67164
67165         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67166         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67167         it causes <stdio_ext.h> to cause a compile-time error.
67168         Problem reported by Nelson H. F. Beebe.
67169         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67170         of HAVE_DECL___PENDING.
67171
67172         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67174         declaration.
67175
67176 2006-09-27  Jim Meyering  <jim@meyering.net>
67177
67178         This file could end up with a definition for a function
67179         named __strndup, rather than rpl_strndup on a system with
67180         incomplete weak_alias support.
67181         * lib/strndup.c (strndup): Rename from __strndup.
67182         Remove #defines that used to map __strndup to strndup.
67183         Don't use K&R prototypes.
67184         Remove LIBC-related code, since this file is not sync'd with glibc.
67185         * lib/strndup.h: Revamp, accordingly.
67186         * m4/strndup.m4: Modernize.
67187
67188 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * modules/savewd (Depends-on): Add 'raise'.
67191         * lib/savewd.c: Include <signal.h>, for 'raise'.
67192
67193 2006-09-26  Jim Meyering  <jim@meyering.net>
67194
67195         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67196         when we detect Darwin 8.7.0's acl_get_file bug.
67197         Rearrange to perform the new (below) run-test while $LIBS
67198         contains any acl-related library.  Set USE_ACL at the end.
67199         (gl_ACL_GET_FILE): New function.
67200
67201 2006-09-26  Eric Blake  <ebb9@byu.net>
67202
67203         * lib/verror.c: Include <config.h> unconditionally.
67204
67205 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67206
67207         * modules/clock-time (Maintainer): Add self.
67208         * modules/getlogin_r (Depends-on): Add extensions.
67209
67210 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67211
67212         * modules/clock-time: New module.
67213         * modules/nanosleep (Depends-on): Add clock-time.
67214         * modules/gethrxtime (Depends-on): Likewise.
67215         * modules/gettime (Depends-on): Likewise.
67216         * modules/settime (Depends-on): Likewise.
67217
67218         * modules/fts-lgpl: Depend on openat.
67219         * modules/mkancesdirs: Depend on savewd.
67220         * modules/mkdir-p: Likewise.
67221
67222 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67223
67224         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67225
67226         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67227         `gl_have_arbitrary_file_name_length_limit' to
67228         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67229         actually works between configure runs.
67230
67231 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67232             Bruno Haible  <bruno@clisp.org>
67233
67234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67235
67236 2006-09-25  Jim Meyering  <jim@meyering.net>
67237
67238         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67239         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67240
67241 2006-09-25  Eric Blake  <ebb9@byu.net>
67242
67243         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67244         exec's in 2006-09-18 patch when shuffling fds.
67245
67246 2006-09-25  Bruno Haible  <bruno@clisp.org>
67247
67248         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67249         Reported by Jim Meyering.
67250
67251 2006-09-24  Jim Meyering  <jim@meyering.net>
67252
67253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67254         compare a pointer against a literal "0".  That caused failures with
67255         at least HP-UX's hpcc.
67256
67257 2006-09-22  Simon Josefsson  <jas@extundo.com>
67258
67259         * modules/gc-sha1:
67260         * modules/gc-md4:
67261         * modules/gc-hmac-sha1:
67262         * modules/gc-hmac-md5:
67263         * modules/gc-des:
67264         * modules/gc-arcfour: Distribute more files.
67265
67266 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67267
67268         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67269         (gl_linked_iterator_from_to): Initialize struct completely.
67270         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67271         (gl_tree_iterator_from_to): Likewise
67272         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67273         * lib/gl_array_list.c [lint] (gl_array_iterator)
67274         (gl_array_iterator_from_to): Likewise.
67275         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67276         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67277         (gl_carray_iterator_from_to): Likewise.
67278
67279         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67280         * lib/md4.c (md4_process_block): Remove unused variable.
67281         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67282         parentheses for clarity.
67283
67284 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67285
67286         * modules/bison-i18n (Depends-on): Add gettext.
67287
67288 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67289
67290         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67291         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67292         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67293         also add missing comma that caused broken test.
67294         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67295         stdlib.h, for `abort'.
67296         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67297         variables.
67298         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67299         include unistd.h if present, for `rmdir'.
67300         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67301         variables.
67302         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67303         in the process include standard headers for prototypes.
67304         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67305         gets declared on GNU/Linux.
67306         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67307         unistd.h, for `rmdir'.
67308         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67309
67310         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67311         always true.
67312         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67313
67314         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67315
67316 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67317
67318         * gnulib-tool (func_version): Create output all at once.  This
67319         may help avoid triggering unnecessary SIGPIPEs, and at any
67320         rate it doesn't hurt.
67321
67322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67323             Bruno Haible  <bruno@clisp.org>
67324
67325         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67326         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67327         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67328
67329         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67330         (gl_FUNC_VASPRINTF): Invoke it.
67331
67332 2006-09-22  Bruno Haible  <bruno@clisp.org>
67333
67334         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67335         getloadavg.c as first argument.
67336
67337 2006-09-22  Bruno Haible  <bruno@clisp.org>
67338
67339         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67340         at the beginning of the gl_INIT macro.
67341         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67342         gl_GETLOADAVG.
67343
67344 2006-09-22  Bruno Haible  <bruno@clisp.org>
67345
67346         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67347         module.
67348         Suggested by Ralf Wildenhues.
67349
67350 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         Import this patch from libc:
67353
67354         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67355
67356         * lib/regex_internal.c (re_string_reconstruct): Handle
67357         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67358         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67359         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67360         re_string_context_at.
67361
67362         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67363         now requires it.
67364         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67365         gl_REGEX now does it for us.
67366         (gl_REGEX): Add test taken from
67367         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67368
67369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67370         Check that large offsets work.  Modernize Autoconf usages.
67371         Prefer "yes" to mean a good thing rather than a bad.
67372         Don't put "#define mkstemp" in config.h, as this might interfere
67373         with standard system headers that "#define mkstemp mkstemp64".
67374
67375         * modules/mkstemp (Depends-on): Add extensions, so that
67376         mkstemp is visible on some platforms.
67377         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67378         (Include): Change to "mkstemp.h" from <stdlib.h>.
67379         (Files): Add mkstemp.h.
67380
67381         * lib/mkstemp.h: New file, since some standard headers
67382         #define mkstemp.
67383         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67384         Include "mkstemp.h".
67385         Make the _LIBC code resemble glibc original more,
67386         e.g., use K&R style.
67387         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67388         (mkstemp): Remove, since mkstemp.h does this for us.
67389         * lib/stdlib--.h: Include mkstemp.h.
67390
67391         Import this patch from libc:
67392
67393         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67394
67395         * lib/tempname.c (__gen_tempname): Change attempts_min
67396         into a macro.  Use preprocessor to decide how to initialize
67397         attempts [Coverity CID 67].
67398
67399 2006-09-20  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/mkdtemp.c: Import from libc.
67402         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67403                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67404                 attempts_min into a macro.  Use preprocessor to decide how to
67405                 initialize attempts [Coverity CID 67].
67406         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67407                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67408                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67409
67410 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67411
67412         * gnulib-tool (func_exit): New function, to allow to pass the
67413         exit status portably through the trap.  Use everywhere.
67414         (--help, --version): Signal a write error.
67415         (trap): catch SIGPIPE, for write errors.
67416         Exit at the end of the trap, with the correct exit status.
67417
67418 2006-09-19  Karl Berry  <karl@gnu.org>
67419
67420         * doc/gnulib.texi: note about the license texinfo files.
67421
67422 2006-09-19  Eric Blake  <ebb9@byu.net>
67423
67424         * gnulib-tool: Avoid space-tab.
67425
67426 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67429         that prevented coreutils 6.1 from building.  Problem reported
67430         by Petter Reinholdtsen.
67431
67432 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67433
67434         * gnulib-tool (avoidlist): Fix typo that broke options like
67435         --avoid=lock that are used by coreutils bootstrap.
67436
67437 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67438
67439         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67440         more systematically.
67441
67442 2006-09-18  Jim Meyering  <jim@meyering.net>
67443
67444         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67445
67446 2006-09-18  Bruno Haible  <bruno@clisp.org>
67447
67448         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67449
67450 2006-09-18  Bruno Haible  <bruno@clisp.org>
67451
67452         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67453         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67454         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67455         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67456         * m4/gettext.m4: Require autoconf >= 2.52.
67457         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67458         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67459         of gl_cv_header_inttypes_h.
67460
67461 2006-09-18  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/javaversion.c: Include configmake.h.
67464
67465 2006-09-18  Bruno Haible  <bruno@clisp.org>
67466
67467         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67468         avoid that the while loops be executed in a subshell.
67469
67470 2006-09-18  Bruno Haible  <bruno@clisp.org>
67471
67472         * MODULES.html.sh (func_module): Break long lines.
67473         Suggested by Bruce Korb <bkorb@gnu.org>.
67474
67475 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67476
67477         Speed up by a factor of 1.12.
67478         * gnulib-tool (nl): New variable.
67479         (func_import): Rewrite include directive extraction to only read each
67480         directive once.
67481
67482 2006-09-17  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/javaversion (Makefile.am): Remove DEFS setting.
67485         (Depends-on): Add configmake, for PKGDATADIR definition.
67486
67487 2006-09-17  Bruno Haible  <bruno@clisp.org>
67488
67489         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67490
67491 2006-09-17  Bruno Haible  <bruno@clisp.org>
67492
67493         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67494         (func_modules_transitive_closure, func_modules_add_dummy,
67495         func_modules_to_filelist, func_import, func_create_testdir,
67496         func_create_megatestdir, ...): Use it wherever possible.
67497         Suggested by Ralf Wildenhues.
67498
67499 2006-09-16  Karl Berry  <karl@gnu.org>
67500
67501         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67502         to avoid sectioning errors.
67503         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67504         [ifinfo]: blank line after @center-ed titles.
67505         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67506         Spell FSF address consistently with others.
67507         (These changes approved by rms.)
67508
67509 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67510
67511         Speed up by a factor of 1.61.
67512         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67513         already checked module names again.
67514
67515 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67516
67517         Speed up by a factor of 1.13.
67518         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67519         for new_files, and the input to func_add_or_update.
67520
67521 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67522
67523         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67524         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67525
67526 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * modules/mkancesdirs (Depends-on): Add fcntl.
67529         * modules/savewd: New file.
67530         * MODULES.html.sh (File system functions): Add savewd.
67531
67532         * modules/configmake (Makefile.am): Add support for the
67533         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67534
67535 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * m4/savewd.m4: New file.
67538
67539 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67542         (dirchownmod): New arg FD.  All callers changed.
67543         Use FD rather than opening the directory ourself, as opening is
67544         now the caller's responsibility.
67545         * lib/dirchownmod.h: Likewise.
67546         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67547         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67548         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67549         (test_dir): Remove.
67550         (mkancesdirs): Return length of prefix of FILE that has already
67551         been made, or -2 if there is a child doing the work.  Redo
67552         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67553         ".", and treat ".." specially since it might stray back into
67554         already-created areas.  Use a subprocess if necessary.  New arg
67555         WD; all users changed.  MAKE_DIR function should now return 1
67556         if it creates a directory that is not readable.  Return -2 if
67557         a child process is spun off.
67558         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67559         Adjust signature to match code.
67560         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67561         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67562         all users changed.
67563         * lib/savewd.c, lib/savewd.h: New files.
67564
67565 2006-09-15  Jim Meyering  <jim@meyering.net>
67566
67567         * modules/rename-dest-slash: New module.
67568         * MODULES.html.sh (posix_compat): Add it here.
67569
67570         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67571
67572 2006-09-15  Jim Meyering  <jim@meyering.net>
67573
67574         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67575         file.
67576
67577         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67578
67579 2006-09-15  Jim Meyering  <jim@meyering.net>
67580
67581         * lib/rename-dest-slash.c (has_trailing_slash): Use
67582         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67583         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67584         test before testing whether SRC is a directory.
67585         Suggestions from Bruno Haible.
67586
67587         Avoid a warning about an unused variable.
67588         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67589         into the #ifdef block where it's used.
67590
67591         * lib/rename-dest-slash.c: New file.
67592
67593 2006-09-14  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/allocsa.c: Include <config.h> unconditionally.
67596         * lib/asnprintf.c: Likewise.
67597         * lib/asprintf.c: Likewise.
67598         * lib/c-strcasecmp.c: Likewise.
67599         * lib/c-strcasestr.c: Likewise.
67600         * lib/c-strncasecmp.c: Likewise.
67601         * lib/c-strstr.c: Likewise.
67602         * lib/classpath.c: Likewise.
67603         * lib/clean-temp.c: Likewise.
67604         * lib/concatpath.c: Likewise.
67605         * lib/copy-file.c: Likewise.
67606         * lib/csharpcomp.c: Likewise.
67607         * lib/csharpexec.c: Likewise.
67608         * lib/execute.c: Likewise.
67609         * lib/fatal-signal.c: Likewise.
67610         * lib/findprog.c: Likewise.
67611         * lib/fwriteerror.c: Likewise.
67612         * lib/gl_array_list.c: Likewise.
67613         * lib/gl_array_oset.c: Likewise.
67614         * lib/gl_avltree_list.c: Likewise.
67615         * lib/gl_avltree_oset.c: Likewise.
67616         * lib/gl_avltreehash_list.c: Likewise.
67617         * lib/gl_carray_list.c: Likewise.
67618         * lib/gl_linked_list.c: Likewise.
67619         * lib/gl_linkedhash_list.c: Likewise.
67620         * lib/gl_list.c: Likewise.
67621         * lib/gl_oset.c: Likewise.
67622         * lib/gl_rbtree_list.c: Likewise.
67623         * lib/gl_rbtree_oset.c: Likewise.
67624         * lib/gl_rbtreehash_list.c: Likewise.
67625         * lib/imaxabs.c: Likewise.
67626         * lib/imaxdiv.c: Likewise.
67627         * lib/javacomp.c: Likewise.
67628         * lib/javaexec.c: Likewise.
67629         * lib/javaversion.c: Likewise.
67630         * lib/linebreak.c: Likewise.
67631         * lib/localcharset.c: Likewise.
67632         * lib/lock.c: Likewise.
67633         * lib/mbchar.c: Likewise.
67634         * lib/mbswidth.c: Likewise.
67635         * lib/mkdtemp.c: Likewise.
67636         * lib/pipe.c: Likewise.
67637         * lib/printf-args.c: Likewise.
67638         * lib/printf-parse.c: Likewise.
67639         * lib/progname.c: Likewise.
67640         * lib/progreloc.c: Likewise.
67641         * lib/readlink.c: Likewise.
67642         * lib/sh-quote.c: Likewise.
67643         * lib/stpcpy.c: Likewise.
67644         * lib/stpncpy.c: Likewise.
67645         * lib/strcasecmp.c: Likewise.
67646         * lib/strcasestr.c: Likewise.
67647         * lib/strcspn.c: Likewise.
67648         * lib/striconv.c: Likewise.
67649         * lib/strncasecmp.c: Likewise.
67650         * lib/strnlen1.c: Likewise.
67651         * lib/strstr.c: Likewise.
67652         * lib/strtok_r.c: Likewise.
67653         * lib/tls.c: Likewise.
67654         * lib/tmpdir.c: Likewise.
67655         * lib/unicodeio.c: Likewise.
67656         * lib/unsetenv.c: Likewise.
67657         * lib/vasnprintf.c: Likewise.
67658         * lib/vasprintf.c: Likewise.
67659         * lib/wait-process.c: Likewise.
67660         * lib/xallocsa.c: Likewise.
67661         * lib/xsetenv.c: Likewise.
67662         * lib/xstriconv.c: Likewise.
67663
67664 2006-09-13  Simon Josefsson  <jas@extundo.com>
67665
67666         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67667         that internally, suggested by Ralf Wildenhues
67668         <Ralf.Wildenhues@gmx.de>.
67669
67670 2006-09-13  Simon Josefsson  <jas@extundo.com>
67671
67672         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67673         @LIBOBJS@.
67674         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67675
67676 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67679         longer worry about uses that don't define HAVE_CONFIG_H.
67680         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67681         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67682         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67683         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67684         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67685         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67686         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67687         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67688         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67689         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67690         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67691         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67692         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67693         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67694         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67695         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67696         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67697         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67698         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67699         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67700         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67701         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67702         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67703         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67704         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67705         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67706         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67707         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67708         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67709         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67710         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67711         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67712         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67713         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67714         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67715         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67716         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67717         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67718         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67719         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67720         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67721         Likewise.
67722
67723 2006-09-13  Eric Blake  <ebb9@byu.net>
67724
67725         * lib/getopt.c: Fix typo in last commit.
67726
67727 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67728
67729         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67730         dgettext.
67731
67732 2006-09-12  Jim Meyering  <jim@meyering.net>
67733
67734         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67735         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67736         Reported by Nelson H. F. Beebe.
67737
67738 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67739
67740         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67741         program_invocation_name and program_invocation_short_name are
67742         initialized.
67743         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67744         and program_invocation_short_name to argp.h, so they are visible
67745         to user programs.
67746         * lib/argp.h: Likewise
67747
67748 2006-09-10  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67751         m4/inttypes_h.m4, m4/uintmax_t.m4.
67752
67753 2006-09-10  Bruno Haible  <bruno@clisp.org>
67754
67755         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67756         gl_AC_TYPE_UINTMAX_T.
67757
67758 2006-09-10  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67761
67762 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67763
67764         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67765         convention.  Text proposed by Bruno Haible.
67766         (struct argp_option): Document the use of N_() wrappers.
67767
67768         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67769         '\v', and translate the two parts separately, instead of feeding
67770         the whole string to gettext.  This allows to exclude
67771         '\v' from the strings visible to the translator by writing doc
67772         strings as N_("..") "\v" N_("..").
67773
67774 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * config/srclist.txt: Undo latest change; the bug was fixed.
67777
67778 2006-09-09  Bruno Haible  <bruno@clisp.org>
67779
67780         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67781         assignments if building a library without libtool.
67782         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67783         in func_emit_lib_Makefile_am.
67784         (func_import): When building a static library libfoo.a, arrange to
67785         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67786         (func_create_testdir): Likewise.
67787         * modules/gc (configure.ac, Makefile.am): If building statically,
67788         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67789         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67790         * modules/striconv (configure.ac, Makefile.am): Likewise.
67791         Based on a suggestion by Ralf Wildenhues.
67792
67793 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67794
67795         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67796         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67797         Also:
67798
67799         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67800         Add year_2050_test to catch glibc bug 2821
67801         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67802
67803         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67804         Prefer #ifdef to #if.
67805
67806         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67807         Return from 'main' instead of calling 'exit'.
67808
67809 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67812         returned the maximum time_t value rather than (time_t) -1.
67813         Problem originally reported by William Bardwell
67814         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67815
67816         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67817         Moved to here ...
67818         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67819         ... from here.
67820
67821 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67824         2821 is fixed.
67825
67826 2006-09-08  Jim Meyering  <jim@meyering.net>
67827
67828         Don't make generated files read-only.  That would bother too many
67829         people.  However, do retain the ability to work when targets are
67830         read-only: remove the destination and temporary files before writing
67831         them (when generated via sed or echo), or by using the -f option for
67832         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67833         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67834         * modules/byteswap, modules/configmake, modules/fcntl:
67835         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67836         * modules/localcharset, modules/netinet_in, modules/poll:
67837         * modules/stdbool, modules/stdint, modules/sys_select:
67838         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67839
67840 2006-09-08  Jim Meyering  <jim@meyering.net>
67841
67842         Avoid new build failure on FreeBSD 6.0.
67843         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67844         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67845         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67846
67847 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67848
67849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67850
67851 2006-09-07  Jim Meyering  <jim@meyering.net>
67852
67853         Fix global typo in last change: use chmod u-w, not chmod u-x.
67854         Spotted by Paul Eggert and Bruce Korb.
67855         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67856         * modules/byteswap, modules/configmake, modules/fcntl:
67857         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67858         * modules/localcharset, modules/netinet_in, modules/poll:
67859         * modules/stdbool, modules/stdint, modules/sys_select:
67860         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67861
67862 2006-09-06  Jim Meyering  <jim@meyering.net>
67863
67864         Make generated files be read-only.
67865         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67866         Ensure that each generated file is now read-only.
67867         * modules/argz: Likewise.
67868         * modules/arpa_inet: Likewise.
67869         * modules/byteswap: Likewise.
67870         * modules/configmake: Likewise.
67871         * modules/fcntl: Likewise.
67872         * modules/fnmatch: Likewise.
67873         * modules/getopt: Likewise.
67874         * modules/glob: Likewise.
67875         * modules/inttypes: Likewise.
67876         * modules/netinet_in: Likewise.
67877         * modules/poll: Likewise.
67878         * modules/stdbool: Likewise.
67879         * modules/stdint: Likewise.
67880         * modules/sys_select: Likewise.
67881         * modules/sys_socket: Likewise.
67882         * modules/sys_stat: Likewise.
67883         * modules/sysexits: Likewise.
67884         * modules/localcharset: Same as above, but continue using temporary
67885         file named "t-$@" (why different?) rather than the "$@-t" used
67886         everywhere else.
67887
67888         * modules/sysexits (Makefile.am): Replace literal occurrences
67889         of "sysexit.h" more readable, and more consistent, "$@".
67890
67891 2006-09-06  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/striconv: New file.
67894         * modules/xstriconv: New file.
67895         * MODULES.html.sh (Internationalization functions): Add striconv,
67896         xstriconv.
67897
67898 2006-09-06  Bruno Haible  <bruno@clisp.org>
67899
67900         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67901         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67902         not using libtool correctly.
67903
67904 2006-09-06  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/striconv.h: New file.
67907         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67908         iconvstring.c.
67909         * lib/xstriconv.h: New file.
67910         * lib/xstriconv.c: New file.
67911
67912 2006-09-06  Bruno Haible  <bruno@clisp.org>
67913
67914         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67915         lib_..._LDFLAGS.
67916
67917 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67918
67919         * lib/argz_.h: Sync from Libtool.
67920
67921         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67922                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67923
67924         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67925
67926 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67927
67928         * modules/trim: New file.
67929
67930 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67931
67932         * lib/trim.h: New file.
67933         * lib/trim.c: New file.
67934
67935 2006-09-05  Bruno Haible  <bruno@clisp.org>
67936
67937         * MODULES.html.sh (String handling): Add trim.
67938
67939 2006-09-04  Karl Berry  <karl@gnu.org>
67940
67941         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67942         until next release.
67943
67944 2006-09-03  Bruno Haible  <bruno@clisp.org>
67945
67946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67947         correctly.
67948
67949 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67950
67951         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67952         not gl_GETLOADAVG.  Omit unneeded semicolons.
67953         Problems reported by Ralf Wildenhues in
67954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67955         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67956         at the end, which is the usual gnulib style.
67957
67958         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67959         of doing all the work ourselves.
67960         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67961         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67962
67963 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67966         Problem reported by Ralf Wildenhues in
67967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67968
67969         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67970         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67971
67972 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67973
67974         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67975         yesterday's patch by changing test -n to test -z.
67976
67977 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67978
67979         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67980         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67981         the former is now obsolescent.
67982
67983         * modules/chdir-long (Depends-on): Add fcntl.
67984
67985 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67986
67987         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67988         obsolescent, and programs should use gnulib instead.
67989         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67990         but with prefixes changed.
67991
67992 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67993
67994         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67995         or stdbool.h, because they might not exist while configuring.
67996
67997         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67998         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67999         does that for us.
68000         (O_DIRECTORY): Remove.
68001
68002 2006-08-31  Eric Blake  <ebb9@byu.net>
68003
68004         * gnulib-tool: Don't let emacs change spaces to TAB.
68005
68006 2006-08-31  Bruno Haible  <bruno@clisp.org>
68007
68008         * gnulib-tool: When calling func_import more than once, do it in a
68009         subshell.
68010         Reported by Eric Blake <ebb9@byu.net>.
68011
68012 2006-08-31  Bruno Haible  <bruno@clisp.org>
68013
68014         * gnulib-tool (nl): Remove variable.
68015         (sed_transform_lib_file): Use more robust test for config-h module.
68016         (func_import): Fix typo in 2006-08-25 patch.
68017
68018 2006-08-31  Bruno Haible  <bruno@clisp.org>
68019
68020         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68021         specified, augment Makefile.am variables instead of assigning them.
68022
68023 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         Work around a bug in both the Linux and SunOS 64-bit kernels:
68026         nanosleep mishandles sleeps for longer than 2**31 seconds.
68027         Problem reported by Frank v Waveren in
68028         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68030         Check for nanosleep bug.
68031         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68032
68033 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         Work around a bug in both the Linux and SunOS 64-bit kernels:
68036         nanosleep mishandles sleeps for longer than 2**31 seconds.
68037         Problem reported by Frank v Waveren in
68038         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68039         * lib/nanosleep.c (BILLION): New constant.
68040         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68041         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68042         implementation.
68043
68044 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         * modules/nanosleep (Depends-on): Add gettime.
68047
68048 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68049         and Simon Josefsson  <jas@extundo.com>
68050         and Oskar Liljeblad  <oskar@osk.mine.nu>
68051
68052         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68053         * gnulib-tool (func_import): New license type 'unmodifiable license
68054         text'.
68055         * modules/fdl: Use it.  Longer description.
68056         * module/gpl, module/lgpl: New files.
68057
68058 2006-08-30  Jim Meyering  <jim@meyering.net>
68059
68060         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68061         shadowing the parameter.
68062
68063 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68064
68065         Sync from Libtool:
68066
68067         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68068
68069         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68070         sharing with gnulib.  Report by Eric Blake.
68071
68072 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * modules/isapipe: New file.
68075         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68076
68077 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68078
68079         * modules/configmake (Makefile.am): Add a comment, and omit
68080         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68081         by Bruno Haible.
68082
68083 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         * m4/isapipe.m4: New file.
68086
68087 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * lib/isapipe.c, lib/isapipe.h: New files.
68090
68091 2006-08-29  Jim Meyering  <jim@meyering.net>
68092
68093         * modules/configmake (Makefile.am): Make configmake.h depend on
68094         Makefile.  Otherwise, a stale configmake.h could hang around.
68095
68096 2006-08-29  Eric Blake  <ebb9@byu.net>
68097
68098         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68099         resolution of upstream bug 3044.
68100
68101 2006-08-29  Bruno Haible  <bruno@clisp.org>
68102
68103         * modules/localcharset (Depends-on): Add configmake.
68104         (Makefile.am): Remove setting of LIBDIR through DEFS.
68105
68106 2006-08-29  Bruno Haible  <bruno@clisp.org>
68107
68108         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68109         defined.
68110
68111 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * modules/fcntl: New file.
68114         * modules/chdir-safer (Depends-on): Add fcntl.
68115         * modules/fts: Likewise.
68116         * modules/mkdir-p: Likewise.
68117
68118         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68119         This undoes the most recent change, since we're now addressing the
68120         problem in a different way.
68121
68122         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68123         into output, since the output might be called Makefile.am even
68124         if $makefile_name is something different.
68125         (func_import): Use $makefile_am rather than
68126         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68127         empty.
68128
68129         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68130
68131 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68134         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68135         recent change to stdint.m4, since we're now addressing the problem in a
68136         different way.
68137
68138 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * m4/fcntl_h.m4: New file.
68141
68142 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68143
68144         * lib/fcntl_.h: New file.
68145         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68146         the fcntl module.
68147         * lib/dirchownmod.c: Likewise.
68148         * lib/fts.c: Likewise.
68149
68150         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68151         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68152         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68153         just before including <inttypes.h>, to avoid circular inclusion.
68154
68155 2006-08-28  Jim Meyering  <jim@meyering.net>
68156
68157         * doc/visibility.texi: Actually read and correct the grammar of the
68158         sentence affected by yesterday's change.
68159
68160 2006-08-28  Eric Blake  <ebb9@byu.net>
68161
68162         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68163         needs wrapper.
68164
68165 2006-08-28  Eric Blake  <ebb9@byu.net>
68166
68167         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68168
68169 2006-08-28  Eric Blake  <ebb9@byu.net>
68170
68171         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68172
68173 2006-08-28  Bruno Haible  <bruno@clisp.org>
68174
68175         * modules/c-strstr: New file, from GNU gettext.
68176         * MODULES.html.sh (String handling): Add c-strstr.
68177
68178 2006-08-28  Bruno Haible  <bruno@clisp.org>
68179
68180         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68181         macros.
68182         Reported by Eric Blake.
68183
68184 2006-08-28  Bruno Haible  <bruno@clisp.org>
68185
68186         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68187         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68188         * lib/vasprintf.c: Include errno.h, limits.h.
68189         (EOVERFLOW): New fallback definition.
68190         (vasprintf): Test here whether the string length is > INT_MAX.
68191         * lib/vsnprintf.c: Include errno.h, limits.h.
68192         (EOVERFLOW): New fallback definition.
68193         (vsnprintf): Fix bug when generated string was too long for the buffer.
68194         Test here whether the string length is > INT_MAX.
68195
68196 2006-08-28  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/inttypes_.h (SCNX*): Remove definitions.
68199         Reported by Eric Blake.
68200
68201 2006-08-28  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/c-strstr.h: New file, from GNU gettext.
68204         * lib/c-strstr.c: New file, from GNU gettext.
68205
68206 2006-08-28  Bruno Haible  <bruno@clisp.org>
68207
68208         * gnulib-tool: Reorder some statements.
68209
68210 2006-08-28  Bruno Haible  <bruno@clisp.org>
68211
68212         * gnulib-tool: New option --makefile-name.
68213         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68214         $makefile_name.
68215         (func_import): Write $makefile_name to the cache file, and read it from
68216         there unless explicitly specified. Use $makefile_name as file name
68217         instead of Makefile.am. Adjust the recommendations accordingly.
68218
68219 2006-08-28  Bruno Haible  <bruno@clisp.org>
68220
68221         * gnulib-tool (func_verify_module): Check against misapplying patch.
68222
68223 2006-08-28  Bruno Haible  <bruno@clisp.org>
68224
68225         * gnulib-tool (func_relativize, func_relconcat): New functions.
68226         Give an error if --local-dir is given with --update.
68227         Remove trailing slashes from $local_gnulib_dir.
68228         (func_import): Store the relativized $local_gnulib_dir in
68229         gnulib-cache.m4, and read it from there if not specified explicitly.
68230
68231 2006-08-28  Bruno Haible  <bruno@clisp.org>
68232
68233         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68234         is the current directory. Respect also $local_gnulib_dir.
68235
68236 2006-08-28  Bruno Haible  <bruno@clisp.org>
68237             Simon Josefsson  <jas@extundo.com>
68238
68239         BeOS portability.
68240         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68241
68242 2006-08-27  Jim Meyering  <jim@meyering.net>
68243
68244         * doc/visibility.texi: Remove duplicate word: "pointer".
68245
68246 2006-08-26  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68249         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68250         (Makefile.am): Create inttypes.h from inttypes_.h.
68251         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68252
68253         * modules/imaxabs: New file.
68254
68255         * modules/imaxdiv: New file.
68256
68257 2006-08-26  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/inttypes.m4: New file.
68260         * m4/_inttypes_h.m4: Remove file.
68261         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68262         PRI_MACROS_BROKEN.
68263         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68264
68265         * m4/imaxabs.m4: New file.
68266
68267         * m4/imaxdiv.m4: New file.
68268
68269 2006-08-26  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/inttypes_.h: New file.
68272         * lib/inttypes.h: Remove file.
68273         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68274
68275         * lib/imaxabs.c: New file.
68276
68277         * lib/imaxdiv.c: New file.
68278
68279 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         New config-h module, so that "make" output needn't be cluttered
68282         by -DHAVE_CONFIG_H.
68283         * MODULES.html.sh (Support for building libraries and executables):
68284         Add config-h.
68285         * modules/config-h: New file.
68286         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68287         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68288         the config-h module is used.
68289
68290         New configmake module, so that "make" output needn't be cluttered
68291         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68292         * MODULES.html.sh (Support for building libraries and executables):
68293         Add configmake.
68294         * modules/configmake: New file.
68295
68296 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * m4/config-h.m4: New file.
68299
68300 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         * config/srclist.txt: Add elisp-comp.
68303
68304 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * MODULES.html.sh (Support for building libraries and executables):
68307         Add elisp-comp.
68308         * build-aux/elisp-comp: New file.
68309         * modules/elisp-comp: New file.
68310
68311 2006-08-24  Bruno Haible  <bruno@clisp.org>
68312
68313         * gnulib-tool (func_create_testdir): Use non-default values of
68314         sourcebase and m4base.
68315
68316 2006-08-24  Bruno Haible  <bruno@clisp.org>
68317
68318         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68319         HTML structure.
68320
68321 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         * modules/openat (Depends-on): Add lchown.
68324
68325 2006-08-23  Bruno Haible  <bruno@clisp.org>
68326
68327         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68328         of gl_LOCK_EARLY instead of gl_LOCK.
68329
68330 2006-08-23  Bruno Haible  <bruno@clisp.org>
68331
68332         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68333         on OSF/1 to no.
68334         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68335
68336 2006-08-23  Bruno Haible  <bruno@clisp.org>
68337
68338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68339         as unusable.
68340
68341         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68342         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68343         (gl_LOCK): New macro.
68344
68345 2006-08-22  Simon Josefsson  <jas@extundo.com>
68346
68347         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68348         to md5 module.
68349
68350 2006-08-22  Simon Josefsson  <jas@extundo.com>
68351
68352         * MODULES.html.sh: Add "Support for maintaining and release
68353         projects".
68354
68355         * build-aux/gnupload: New file, from coreutils.
68356
68357 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68358
68359         Avoid the need for AC_LIBSOURCES in m4 macros.
68360         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68361         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68362         * modules/check-version (EXTRA_DIST): Add check-version.h.
68363         * modules/crc (EXTRA_DIST): Add crc.h.
68364         * modules/des (EXTRA_DIST): Add des.h.
68365         * modules/gc (EXTRA_DIST): Add gc.h.
68366         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68367         * modules/getline (EXTRA_DIST): Add getline.h.
68368         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68369         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68370         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68371         * modules/md2 (EXTRA_DIST): Add md2.h.
68372         * modules/md4 (EXTRA_DIST): Add md4.h.
68373         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68374         * modules/read-file (EXTRA_DIST): Add read-file.h.
68375         * modules/readline (EXTRA_DIST): Add readline.h.
68376         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68377         rijndael-api-fst.h.
68378
68379 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * m4/rijndael.m4 (gl_ARCFOUR):
68382         * m4/arctwo.m4 (gl_ARCTWO):
68383         * m4/check-version.m4 (gl_CHECK_VERSION):
68384         * m4/crc.m4 (gl_CRC):
68385         * m4/des.m4 (gl_DES):
68386         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68387         * m4/gc.m4 (gl_GC):
68388         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68389         * m4/getline.m4 (gl_FUNC_GETLINE):
68390         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68391         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68392         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68393         * m4/md2.m4 (gl_MD2):
68394         * m4/md4.m4 (gl_MD4):
68395         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68396         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68397         * m4/readline.m4 (gl_FUNC_READLINE):
68398         * m4/rijndael.m4 (gl_RIJNDAEL):
68399         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68400         to get the necessary .h files and whatnot.
68401
68402 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68405         gnulib rather than the other way around.
68406         * config/srclistvars.sh (COREUTILS): Remove.
68407
68408 2006-08-22  Jim Meyering  <jim@meyering.net>
68409
68410         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68411
68412         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68413
68414 2006-08-22  Eric Blake  <ebb9@byu.net>
68415
68416         * modules/regexprops-generic: New file.
68417         * MODULES.html.sh (Support for building documentation): List it.
68418
68419 2006-08-22  Eric Blake  <ebb9@byu.net>
68420
68421         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68422         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68423         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68424         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68425
68426 2006-08-22  Bruno Haible  <bruno@clisp.org>
68427
68428         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68429         and lib_LTLIBRARIES like the other lib_* variables.
68430
68431 2006-08-22  Bruno Haible  <bruno@clisp.org>
68432
68433         * build-aux/x-to-1.in: New file, from GNU gettext.
68434
68435 2006-08-22  Bruno Haible  <bruno@clisp.org>
68436
68437         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68438         <utmpx.h> exists.
68439
68440 2006-08-22  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68443         <utmpx.h> exists.
68444
68445 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68446
68447         BeOS portability.
68448         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68449         exist.
68450         Problem reported by Bruno Haible.
68451
68452 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         Avoid the need for AC_LIBSOURCES in m4 macros.
68455         * modules/acl (EXTRA_DIST): Add acl.h.
68456         * modules/argmatch (Files): Add m4/argmatch.m4.
68457         (configure.ac): Add gl_ARGMATCH.
68458         (EXTRA_DIST): Renamed from lib_SOURCES, for
68459         consistency with the other modules.  Remove argmatch.c.
68460         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68461         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68462         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68463         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68464         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68465         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68466         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68467         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68468         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68469         * modules/closeout (EXTRA_DIST): Add closeout.h.
68470         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68471         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68472         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68473         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68474         dirname.h; remove basename.c and stripslash.c.
68475         * modules/exclude (EXTRA_DIST): Add exclude.h.
68476         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68477         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68478         * modules/file-type (EXTRA_DIST): Add file-type.h.
68479         * modules/filemode (EXTRA_DIST): Add filemode.h.
68480         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68481         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68482         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68483         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68484         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68485         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68486         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68487         * modules/getdate (EXTRA_DIST): Add getdate.c.
68488         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68489         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68490         * modules/getpass (EXTRA_DIST): Add getpass.h.
68491         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68492         * modules/group-member (EXTRA_DIST): Add group-member.h.
68493         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68494         * modules/hash (EXTRA_DIST): Add hash.h.
68495         * modules/human (EXTRA_DIST): Add human.h.
68496         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68497         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68498         * modules/lchown (EXTRA_DIST): Add lchown.h.
68499         * modules/long-options (EXTRA_DIST): Add long-options.h.
68500         * modules/lstat (EXTRA_DIST): Add lstat.h.
68501         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68502         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68503         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68504         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68505         * modules/memxor (EXTRA_DIST): Add memxor.h.
68506         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68507         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68508         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68509         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68510         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68511         * modules/physmem (EXTRA_DIST): Add physmem.h.
68512         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68513         * modules/posixver (EXTRA_DIST): Add posixver.h.
68514         * modules/quote (EXTRA_DIST): Add quote.h.
68515         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68516         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68517         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68518         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68519         regex_internal.h regexec.c.
68520         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68521         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68522         * modules/same (EXTRA_DIST): Add same.h.
68523         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68524         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68525         * modules/savedir (EXTRA_DIST): Add savedir.h.
68526         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68527         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68528         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68529         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68530         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68531         * modules/strdup (EXTRA_DIST): Add strdup.h.
68532         * modules/strftime (EXTRA_DIST): Add strftime.h.
68533         * modules/strndup (EXTRA_DIST): Add strndup.h.
68534         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68535         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68536         * modules/time_r (EXTRA_DIST): Add time_r.h.
68537         * modules/timespec (EXTRA_DIST): Add timespec.h.
68538         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68539         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68540         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68541         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68542         * modules/userspec (EXTRA_DIST): Add userspec.h.
68543         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68544         * modules/utimens (EXTRA_DIST): Add utimens.h.
68545         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68546         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68547         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68548         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68549         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68550         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68551         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68552         * modules/yesno (EXTRA_DIST): Add yesno.h.
68553
68554 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68557
68558         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68559         * m4/dev-ino.m4, same-inode.m4: Remove.
68560
68561         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68562         * m4/acl.m4 (AC_FUNC_ACL):
68563         * m4/backupfile.m4 (gl_BACKUPFILE):
68564         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68565         * m4/canon-host.m4 (gl_CANON_HOST):
68566         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68567         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68568         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68569         * m4/cloexec.m4 (gl_CLOEXEC):
68570         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68571         * m4/closeout.m4 (gl_CLOSEOUT):
68572         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68573         * m4/dirname.m4 (gl_DIRNAME):
68574         * m4/exclude.m4 (gl_EXCLUDE):
68575         * m4/exitfail.m4 (gl_EXITFAIL):
68576         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68577         * m4/file-type.m4 (gl_FILE_TYPE):
68578         * m4/filemode.m4 (gl_FILEMODE):
68579         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68580         * m4/fpending.m4 (gl_FUNC_FPENDING):
68581         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68582         * m4/fts.m4 (gl_FUNC_FTS):
68583         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68584         * m4/getdate.m4 (gl_GETDATE):
68585         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68586         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68587         * m4/getpass.m4 (gl_FUNC_GETPASS):
68588         * m4/gettime.m4 (gl_GETTIME):
68589         * m4/getugroups.m4 (gl_GETUGROUPS):
68590         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68591         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68592         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68593         * m4/hash.m4 (gl_HASH):
68594         * m4/idcache.m4 (gl_IDCACHE):
68595         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68596         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68597         * m4/long-options.m4 (gl_LONG_OPTIONS):
68598         * m4/lstat.m4 (gl_FUNC_LSTAT):
68599         * m4/md5.m4 (gl_MD5):
68600         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68601         * m4/memcoll.m4 (gl_MEMCOLL):
68602         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68604         * m4/memxor.m4 (gl_MEMXOR):
68605         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68606         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68607         * m4/modechange.m4 (gl_MODECHANGE):
68608         * m4/mountlist.m4 (gl_MOUNTLIST):
68609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68610         * m4/openat.m4 (gl_FUNC_OPENAT):
68611         * m4/pathmax.m4 (gl_PATHMAX):
68612         * m4/physmem.m4 (gl_PHYSMEM):
68613         * m4/posixtm.m4 (gl_POSIXTM):
68614         * m4/posixver.m4 (gl_POSIXVER):
68615         * m4/quote.m4 (gl_QUOTE):
68616         * m4/quotearg.m4 (gl_QUOTEARG):
68617         * m4/readtokens.m4 (gl_READTOKENS):
68618         * m4/readutmp.m4 (gl_READUTMP):
68619         * m4/regex.m4 (gl_REGEX):
68620         * m4/safe-read.m4 (gl_SAFE_READ):
68621         * m4/safe-write.m4 (gl_SAFE_WRITE):
68622         * m4/same.m4 (gl_SAME):
68623         * m4/save-cwd.m4 (gl_SAVE_CWD):
68624         * m4/savedir.m4 (gl_SAVEDIR):
68625         * m4/settime.m4 (gl_SETTIME):
68626         * m4/sha1.m4 (gl_SHA1):
68627         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68628         * m4/stat-macros.m4 (gl_STAT_MACROS):
68629         * m4/stat-time.m4 (gl_STAT_TIME):
68630         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68631         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68632         * m4/strdup.m4 (gl_FUNC_STRDUP):
68633         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68634         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68635         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68636         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68637         * m4/time_r.m4 (gl_TIME_R):
68638         * m4/timespec.m4 (gl_TIMESPEC):
68639         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68640         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68641         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68642         * m4/userspec.m4 (gl_USERSPEC):
68643         * m4/utimecmp.m4 (gl_UTIMECMP):
68644         * m4/utimens.m4 (gl_UTIMENS):
68645         * m4/xalloc.m4 (gl_XALLOC):
68646         * m4/xgetcwd.m4 (gl_XGETCWD):
68647         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68648         * m4/xreadlink.m4 (gl_XREADLINK):
68649         * m4/xstrtod.m4 (gl_XSTRTOD):
68650         * m4/yesno.m4 (gl_YESNO):
68651         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68652         to get the necessary .h files and whatnot.
68653
68654 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68655             Bruno Haible  <bruno@clisp.org>
68656
68657         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68658         /bin/sh understanding of '!' conditional negation.
68659
68660 2006-08-21  Jim Meyering  <jim@meyering.net>
68661
68662         * modules/openat (Depends-on): Really alphabetize.
68663
68664         * modules/acl (Depends-on): Add error and quote.
68665
68666         * check-module (find_included_lib_files): Add at-func.c to the
68667         ok-to-include-more-than-once white list.
68668
68669         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68670
68671 2006-08-21  Bruno Haible  <bruno@clisp.org>
68672
68673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68674         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68675         Reported by Martin Lambers <marlam@marlam.de>.
68676
68677 2006-08-21  Bruno Haible  <bruno@clisp.org>
68678
68679         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68680         specify an installation location, don't emit a noinst_LIBRARIES or
68681         noinst_LTLIBRARIES assignment.
68682
68683 2006-08-21  Bruno Haible  <bruno@clisp.org>
68684
68685         BeOS portability.
68686         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68687         BeOS has mbrtowc() but no <wctype.h>.
68688
68689 2006-08-21  Bruno Haible  <bruno@clisp.org>
68690
68691         BeOS portability.
68692         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68693         exist.
68694
68695 2006-08-21  Bruno Haible  <bruno@clisp.org>
68696
68697         BeOS portability.
68698         * lib/mbchar.h: Include <wctype.h> only if it exists.
68699
68700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         Remove files that are no longer needed by their respective modules.
68703         * m4/obstack.m4: Remove.
68704         * m4/strerror_r.m4: Remove.
68705         * m4/uint32_t.m4: Remove.
68706         * m4/uintptr_t.m4: Remove.
68707         * m4/ullong_max.m4: Remove.
68708         * m4/xstrtoimax.m4: Remove.
68709         * m4/xstrtoumax.m4: Remove.
68710
68711         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68712         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68713         dependencies now capture this.
68714
68715         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68716         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68717         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68718         * m4/human.m4 (gl_HUMAN): Likewise.
68719         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68720         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68721
68722         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68723
68724         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68725         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68726         stdint.
68727         * m4/human.m4 (gl_HUMAN): Likewise.
68728         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68729         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68730         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68732         * m4/xstrtol (gl_XSTRTOL): Likewise.
68733
68734         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68735         AC_TYPE_LONG_LONG_INT.
68736         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68737         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68738         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68739         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68740
68741         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68742         on stdbool.
68743
68744         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68745         (gl_PREREQ_XSTRTOUL): Remove.
68746
68747         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68748
68749         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68750         mode.
68751
68752 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         Add and change modules to make it easier for coreutils to use
68755         gnulib-tool.
68756         * modules/backupfile (Files): Remove m4/d-ino.m4.
68757         (Depends-on): Add d-ino.
68758         * modules/cycle-check (Depends-on): Add stdint.
68759         (lib_SOURCES): Add cycle-check.h.
68760         * modules/d-ino: New module.
68761         * modules/d-type: New module.
68762         * modules/error (Files): Remove m4/strerror_r.m4.
68763         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68764         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68765         m4/inttypes_h.m4, m4/uintmax_t.m4.
68766         (Depends-on): Add stdint.
68767         (lib_SOURCES): Add fsusage.h.
68768         * modules/getcwd (Files): Remove d-ino.m4.
68769         (Depends-on): Add d-ino.
68770         * modules/getndelim2 (Depends-on): Add stdint.
68771         * modules/glob (Files): Remove m4/d-type.m4.
68772         (Depends-on): Add d-type.
68773         * modules/host-os: New module.
68774         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68775         m4/inttypes_h.m4, m4/uintmax_t.m4.
68776         * Depends-on: Add stdint.
68777         (lib_SOURCES): Add human.h.
68778         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68779         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68780         m4/uintmax_t.m4, m4/ulonglong.m4.
68781         (Depends-on): Add stdint.
68782         (EXTRA_DIST): Add inttostr.h.
68783         * modules/lchmod: New module.
68784         * modules/link-follow: New module.
68785         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68786         (Depends-on): Add lchmod.
68787         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68788         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68789         (Depends-on): Add stdint.
68790         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68791         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68792         (Depends-on): Add stdint.
68793         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68794         * modules/perl: New module.
68795         * modules/regex (Depends-on): Add stdint.
68796         * modules/rmdir-errno: New module.
68797         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68798         m4/intmax_t.m4.
68799         (Depends-on): Add stdint.
68800         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68801         m4/uintmax_t.m4.
68802         (Depends-on): Add stdint.
68803         * modules/unlink-busy: New module.
68804         * modules/utimecmp (Depends-on): Add stdint.
68805         * modules/uptime: New module.
68806         * modules/winsz-ioctl: New module.
68807         * modules/winsz-termios: New module.
68808         * modules/xnanosleep (Depends-on): Add nanosleep.
68809         * modules/ullong_max: Remove.
68810         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68811         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68812         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68813         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68814         (Depends-on): Add inttypes.
68815         (lib_SOURCES): Add xstrtol.h.
68816         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68817         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68818         * MODULES.html.sh: Move 'assert' into the assert section.
68819         Move 'dummy' into the linking section.
68820         Remove ullong_max.
68821         Add section for compatibility checks for POSIX:2001 functions,
68822         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68823         winsz-ioctl, and winsz-termios into it.
68824         Add lchmod.
68825         Add top-level Misc section and put host-os, perl, and uptime
68826         into it.
68827
68828 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68831         now assume the stdint module.  Do not include inttypes.h.
68832         * lib/fsusage.h: Likewise.
68833         * lib/getndelim2.c: Likewise.
68834         * lib/human.h: Likewise.
68835         * lib/inttostr.h: Likewise.
68836         * lib/obstack.c: Likewise.
68837         * lib/regex_internal.h: Likewise.
68838         * lib/tempname.c: Likewise.
68839         * lib/utimecmp.c: Likewise.
68840         * lib/xstrtol.h: Likewise.
68841
68842         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68843
68844         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68845         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68846         * lib/xtime.h: Likewise.
68847
68848 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68849
68850         * modules/openat (Files): Add lib/fchmodat.c.
68851         Fixes problem reported by Jay Youngman.
68852
68853 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68856         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68857
68858 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68859             Bruno Haible  <bruno@clisp.org>
68860
68861         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68862         and is a script that invokes bison. Tighten the code. Add comments.
68863
68864 2006-08-18  Jim Meyering  <jim@meyering.net>
68865
68866         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68867         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68868         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68869         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68870
68871 2006-08-18  Bruno Haible  <bruno@clisp.org>
68872
68873         * modules/bison-i18n: New file.
68874         * MODULES.html.sh (Internationalization functions): Add it.
68875
68876 2006-08-18  Bruno Haible  <bruno@clisp.org>
68877
68878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68879         sys/statvfs.h. When getmntinfo was found, check its declaration and
68880         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68881
68882 2006-08-18  Bruno Haible  <bruno@clisp.org>
68883
68884         * m4/bison-i18n.m4: New file, from bison.
68885
68886 2006-08-18  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68889         (ME_DUMMY): Treat "kernfs" as a dummy.
68890         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68891
68892 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         Update from coreutils.
68895
68896         2006-08-15  Jim Meyering  <jim@meyering.net>
68897
68898         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68899
68900         2006-01-17  Jim Meyering  <jim@meyering.net>
68901
68902         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68903
68904         2006-01-11  Jim Meyering  <jim@meyering.net>
68905
68906         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68907         Check for the lchmod function.
68908
68909 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         Update from coreutils.
68912
68913         * lib/__fpending.h: Add copyright notice.
68914         * lib/fprintftime.h: Likewise.
68915         * lib/savedir.c: Use (C) in copyright notice.
68916         * lib/savedir.h: Likewise.
68917
68918         2006-08-15  Jim Meyering  <jim@meyering.net>
68919
68920         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68921         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68922         in support of the EXPECTED_ERRNO macro.
68923         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68924         definitions.  Instead, define the appropriate symbols and include
68925         "at-func.c".
68926         * lib/mkdirat.c (mkdirat): Likewise.
68927         * lib/fchmodat.c (fchmodat): Likewise.
68928         (ENOSYS): Remove definition.
68929         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68930         it.  Don't include "unistd--.h" -- it wasn't ever used.
68931
68932         2006-01-17  Jim Meyering  <jim@meyering.net>
68933
68934         Rewrite fts.c not to change the current working directory,
68935         by using openat, fstatat, fdopendir, etc..
68936
68937         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68938         (HAVE_OPENAT_SUPPORT): Define.
68939         [_LIBC] (fchdir): Don't undef or define; no longer used.
68940         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68941         Now, this `function' always succeeds, and consumes its file descriptor
68942         parameter -- so callers must not close such FDs.  Update callers.
68943         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68944         (diropen): Add parameter, SP.  Adjust all callers.
68945         Implement using diropen_fd, rather than open.
68946         (fts_open): Initialize new member, fts_cwd_fd.
68947         Remove fts_rft-setting code.
68948         (fts_close): Close fts_cwd_fd, if necessary.
68949         (__opendir2): Define in terms of opendir or opendirat,
68950         depending on whether the FST_NOCHDIR flag is set.
68951         (fts_build): Since fts_safe_changedir consumes its FD, and since
68952         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68953         and close the dup'd file descriptor upon failure.
68954         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68955         (fts_safe_changedir): Tweak semantics to reflect that this function
68956         now calls cwd_advance_fd and hence consumes its FD argument.
68957         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68958         [struct FTS] (fts_rft): Remove now-unused member.
68959         [struct FTS] (fts_cycle.state): Improve comment.
68960
68961         * lib/openat.c (openat_needs_fchdir): New function.
68962         * lib/openat.h (openat_needs_fchdir): Declare it.
68963
68964 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68965
68966         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68967         Problem and fix reported by Pádraig Brady in
68968         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68969
68970 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68973
68974 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68975
68976         * lib/memcoll.c (memcoll): Optimize for the common case where the
68977         arguments are bytewise equal.
68978
68979 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * doc/regexprops-generic.texi: Add a copyright notice.
68982
68983 2006-08-15  Bruno Haible  <bruno@clisp.org>
68984
68985         * modules/tmpdir (License): Change to LGPL.
68986
68987 2006-08-15  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68990         module.
68991
68992 2006-08-14  Simon Josefsson  <jas@extundo.com>
68993
68994         * config/srclist.txt: Add gnupload.
68995
68996 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         Change copyright notice from LGPL 2 to GPL 2, since that's the
68999         standard form used in the gnulib repository.
69000         * tests/test-lock.c: Likewise.
69001         * tests/test-stdint.c: Likewise.
69002         * tests/test-tls.c: Likewise.
69003
69004         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69005         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69006         Add copyright notice.
69007
69008         * check-module: Add copyright notice.  Output a copyright
69009         notice if "--version" is specified.
69010         * modules/COPYING: New file.
69011         * tests/test-getaddrinfo.c: Add copyright notice.
69012         * tests/test-verify.c: Likewise.
69013
69014 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         Change copyright notice from LGPL 2 to GPL 2, since that's the
69017         standard form used in the gnulib repository.
69018         * lib/lock.c: LGPL -> GPL.
69019         * lib/lock.h: Likewise.
69020         * lib/strnlen1.c: Likewise.
69021         * lib/strnlen1.h: Likewise.
69022         * lib/tls.c: Likewise.
69023         * lib/tls.h: Likewise.
69024         * lib/tmpdir.c: Likewise.
69025
69026         * lib/TODO: Remove; this belongs only in coreutils.
69027
69028 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         Add copyright notices to long-enough files that lack them, since
69031         otherwise the files aren't clearly free.  Use the same notice that
69032         getdate.texi already uses.
69033         * doc/alloca-opt.texi: Add copyright notice.
69034         * doc/alloca.texi: Likewise.
69035         * doc/ctime.texi: Likewise.
69036         * doc/functions.texi: Likewise.
69037         * doc/gcd.texi: Likewise.
69038         * doc/gnulib-tool.texi: Likewise.
69039         * doc/inet_ntoa.texi: Likewise.
69040         * doc/visibility.texi: Likewise.
69041
69042         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69043         * doc/quote.texi: Add copyright notice.
69044
69045         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69046         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69047         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69048         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69049         is now obsolete, and give a pointer to the Sun list.
69050         Add copyright notice.
69051
69052 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * config/srclistvars.sh: Add copyright notice.
69055
69056 2006-08-14  Eric Blake  <ebb9@byu.net>
69057
69058         Import the following change from libc:
69059
69060         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69061
69062         Upstream bug 2997.
69063         * lib/misc/error.c: Add space between program name and message if file
69064         name is missing.
69065
69066 2006-08-12  Karl Berry  <karl@gnu.org>
69067
69068         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69069         remove, these originate in gnulib now.
69070
69071 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69072
69073         * doc/Makefile (standards.info standards.html standards.dvi):
69074         Also depend on make-stds.texi.
69075
69076 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69079         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69080
69081         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69082         in wchar_t.  Problem reported by Eric Blake.
69083
69084         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69085         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69086         Also, help the compiler to keep LEN in a register.
69087
69088 2006-08-11  Eric Blake  <ebb9@byu.net>
69089
69090         * users.txt: Sort.  Add tar.
69091
69092 2006-08-11  Bruno Haible  <bruno@clisp.org>
69093
69094         * users.txt: New file.
69095
69096 2006-08-11  Bruno Haible  <bruno@clisp.org>
69097
69098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69099         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69100
69101 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * modules/snprintf (Depends-on): Remove minmax.
69104         (Maintainer): Add self and Bruno.
69105
69106 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69109         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69110         (EOVERFLOW): Define if the system does not.
69111         Do not include "minmax.h"; it wasn't used.
69112         (snprintf): Don't assume size_t promotes to an unsigned type.
69113         Fix bug when generated string was too long for the buffer: the
69114         buffer's contents are supposed to be the initial prefix of the
69115         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69116         exceeds INT_MAX; do the check ourselves.
69117
69118         Import the following changes from libc:
69119
69120         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69121
69122         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69123         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69124         set wc to the byte which couldn't be converted.
69125         (re_string_reconstruct): Don't clear valid_raw_len before calling
69126         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69127         tip_context using re_string_context_at.
69128
69129         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69130
69131         * lib/posix/regex.h: g++ still cannot handled [restrict].
69132
69133         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69134
69135         * lib/posix/regex.h: Remove special handling for VMS.
69136
69137 2006-08-10  Jim Meyering  <jim@meyering.net>
69138
69139         * modules/same-inode: New module.
69140         * modules/dev-ino: New module.
69141         * modules/cycle-check: Depend on these modules, rather than simply
69142         including their .h files.
69143         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69144         required via m4/cycle-check.m4.
69145         * modules/same: Depend on new same-inode module, rather than
69146         including same-inode.h.
69147         * modules/chdir-safer: New file.
69148
69149         * modules/chown (Depends-on): Add stat-macros.
69150
69151 2006-08-10  Jim Meyering  <jim@meyering.net>
69152
69153         * m4/cycle-check.m4: New file.
69154         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69155         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69156
69157 2006-08-10  Eric Blake  <ebb9@byu.net>
69158
69159         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69160         in from original proposal.
69161
69162 2006-08-10  Eric Blake  <ebb9@byu.net>
69163         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69164
69165         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69166         namespace.
69167
69168 2006-08-10  Bruno Haible  <bruno@clisp.org>
69169
69170         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69171         as well.
69172
69173 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         Sync from coreutils.
69176
69177         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69178
69179         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69180         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69181
69182 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69183
69184         * modules/restrict: Remove; no longer needed now that we assume
69185         Autoconf 2.59 or later.
69186         * MODULES.html.sh: Remove 'restrict'.
69187         * modules/argp (Depends-on): Remove 'restrict'.
69188         * modules/base64 (Depends-on): Likewise.
69189         * modules/gc (Depends-on): Likewise.
69190         * modules/getaddrinfo (Depends-on): Likewise.
69191         * modules/glob (Depends-on): Likewise.
69192         * modules/inet_ntop (Depends-on): Likewise.
69193         * modules/inet_pton (Depends-on): Likewise.
69194         * modules/memxor (Depends-on): Likewise.
69195         * modules/regex (Depends-on): Likewise.
69196         * modules/strtok_r (Depends-on): Likewise.
69197         * modules/time_r (Depends-on): Likewise.
69198
69199 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69202         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69203         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69204         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69205         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69206         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69207         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69208         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69209
69210         Merge from coreutils.
69211         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69212         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69213         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69214         * m4/time_r.m4 (gl_TIME_R): Likewise.
69215
69216 2006-08-09  Karl Berry  <karl@gnu.org>
69217
69218         * config/srclist.txt: no more gettext-tools, per Bruno.
69219
69220 2006-08-08  Eric Blake  <ebb9@byu.net>
69221
69222         * modules/verror: New module.
69223         * MODULES.html.sh: Document it.
69224
69225 2006-08-08  Eric Blake  <ebb9@byu.net>
69226
69227         * lib/verror.h, lib/verror.c: New files.
69228
69229 2006-08-08  Eric Blake  <ebb9@byu.net>
69230
69231         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69232         verror_at_line output complies with GNU Coding Standards even when
69233         file is NULL.
69234
69235 2006-08-07  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69238         versions of AIX.
69239         Reported by Ralf Wildenhues.
69240
69241 2006-08-07  Bruno Haible  <bruno@clisp.org>
69242
69243         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69244         in an AC_DEFUN. Needed so that the autoconf snippets can use
69245         AC_REQUIRE.
69246
69247 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69248
69249         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69250         Initialize pkgdata_DATA.
69251         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69252         overriding it.
69253
69254 2006-08-06  Eric Blake  <ebb9@byu.net>
69255
69256         * lib/error.h: Fold in some upstream changes from glibc.
69257         * lib/error.c: Likewise.
69258
69259 2006-08-04  Bruno Haible  <bruno@clisp.org>
69260
69261         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69262         Make the mostlyclean-local rule depend on mostlyclean-generic.
69263         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69264
69265 2006-07-31  Bruno Haible  <bruno@clisp.org>
69266
69267         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69268         <stdlib.h>, <string.h>.
69269
69270 2006-07-30  Bruno Haible  <bruno@clisp.org>
69271
69272         * modules/readlink (License): Change to LGPL.
69273
69274 2006-07-30  Bruno Haible  <bruno@clisp.org>
69275
69276         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69277         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69278         set PKGDATADIR to point to it.
69279
69280 2006-07-30  Bruno Haible  <bruno@clisp.org>
69281
69282         * modules/csharpexec (configure.ac): Comment out macro invocation.
69283         * modules/javaexec (configure.ac): Likewise.
69284         * modules/javacomp-script (configure.ac): Likewise.
69285
69286         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69287
69288 2006-07-30  Bruno Haible  <bruno@clisp.org>
69289
69290         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69291         linked-list.
69292
69293 2006-07-30  Bruno Haible  <bruno@clisp.org>
69294
69295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69296
69297 2006-07-30  Bruno Haible  <bruno@clisp.org>
69298
69299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69300         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69301         get removed.
69302
69303 2006-07-29  Bruno Haible  <bruno@clisp.org>
69304
69305         Make it possible for gnulib-tool to work with locally modified or
69306         augmented gnulib repositories.
69307         * gnulib-tool (func_usage): Document --local-dir option.
69308         (local_gnulib_dir): New variable.
69309         Handle --local-dir option.
69310         (func_lookup_file): New function.
69311         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69312         (func_get_description, func_get_filelist, func_get_description,
69313         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69314         func_get_automake_snippet, func_get_include_directive,
69315         func_get_license, func_get_maintainer): Use func_lookup_file.
69316         (func_import, func_create_testdir): Use func_lookup_file.
69317
69318 2006-07-29  Bruno Haible  <bruno@clisp.org>
69319
69320         * modules/setenv (Depends-on): Add unistd.
69321
69322 2006-07-29  Bruno Haible  <bruno@clisp.org>
69323
69324         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69325
69326 2006-07-29  Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69329
69330 2006-07-29  Bruno Haible  <bruno@clisp.org>
69331
69332         * gnulib-tool (import, update): If there is no Makefile.am, look at
69333         aclocal.m4, instead of bailing out.
69334
69335 2006-07-29  Bruno Haible  <bruno@clisp.org>
69336
69337         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69338         Categorize the options by when they are useful.
69339
69340 2006-07-29  Bruno Haible  <bruno@clisp.org>
69341
69342         * gnulib-tool (func_usage): Document option --no-libtool.
69343         Handle option --no-libtool.
69344         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69345         for changed semantics of $libtool variable.
69346         (func_import): Likewise. If libtool is not used, show this through
69347         an option --no-libtool.
69348         (func_create_testdir): Update.
69349
69350 2006-07-29  Bruno Haible  <bruno@clisp.org>
69351
69352         * gnulib-tool (func_import): Extend error message about missing
69353         --doc-base.
69354
69355 2006-07-29  Bruno Haible  <bruno@clisp.org>
69356
69357         * gnulib-tool (func_import): Don't create the $docbase directory if
69358         there is no file to store there.
69359
69360 2006-07-29  Bruno Haible  <bruno@clisp.org>
69361
69362         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69363         relevant, look for configure.ac there, not in the current directory.
69364         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69365
69366 2006-07-29  Bruno Haible  <bruno@clisp.org>
69367
69368         * gnulib-tool (SORT): New variable.
69369         (func_usage): Undocument --assume-autoconf option.
69370         Remove --assume-autoconf option handling.
69371         (autoconf_minversion): Determine from the contents of configure.ac.
69372         (func_import): Remove autoconf_minversion handling.
69373         Suggested by Eric Blake.
69374
69375 2006-07-29  Bruno Haible  <bruno@clisp.org>
69376
69377         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69378
69379 2006-07-29  Bruno Haible  <bruno@clisp.org>
69380
69381         * config/srclist.txt (*setenv.[ch]): Remove rules.
69382
69383 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69384
69385         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69386
69387 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69388
69389         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69390         arpa/inet.h.
69391
69392 2006-07-28  Simon Josefsson  <jas@extundo.com>
69393
69394         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69395         * modules/inet_pton (Depends-on): Likewise.
69396
69397 2006-07-28  Simon Josefsson  <jas@extundo.com>
69398
69399         * m4/netinet_in_h.m4: New file.
69400
69401 2006-07-28  Simon Josefsson  <jas@extundo.com>
69402
69403         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69404         #include's.
69405
69406 2006-07-28  Simon Josefsson  <jas@extundo.com>
69407
69408         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69409         #include's.
69410
69411 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69414         setgid on directories only if they set these bits.
69415         * lib/modechange.h: Remove obsolete comment about masks.
69416
69417 2006-07-28  Eric Blake  <ebb9@byu.net>
69418
69419         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69420         macro expansion.
69421
69422 2006-07-28  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69425
69426 2006-07-28  Bruno Haible  <bruno@clisp.org>
69427
69428         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69429
69430 2006-07-28  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69433         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69434         Define fallbacks.
69435         Avoids link error on FreeBSD 4.x.
69436         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69437
69438         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69439         encoding.
69440         * lib/mbswidth.c (iswcntrl): Likewise.
69441
69442 2006-07-27  Bruno Haible  <bruno@clisp.org>
69443
69444         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69445         test.
69446
69447 2006-07-27  Bruno Haible  <bruno@clisp.org>
69448
69449         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69450         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69451         defined.
69452
69453 2006-07-26  Eric Blake  <ebb9@byu.net>
69454
69455         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69456
69457 2006-07-26  Eric Blake  <ebb9@byu.net>
69458
69459         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69460         like mingw that lack mkstemp.
69461         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69462         avoid compilation warning on mingw.
69463
69464 2006-07-26  Bruno Haible  <bruno@clisp.org>
69465
69466         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69467         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69468         INT_FAST*_MIN, INTPTR_MIN.
69469
69470 2006-07-25  Bruno Haible  <bruno@clisp.org>
69471
69472         * modules/version-etc (Depends-on): Add stdarg.
69473
69474 2006-07-25  Bruno Haible  <bruno@clisp.org>
69475
69476         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69477         complex commands.
69478
69479 2006-07-25  Bruno Haible  <bruno@clisp.org>
69480
69481         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69482         defined in <stdarg.h> or config.h.
69483
69484 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69487         (gl_STDIO_SAFER): Remove.
69488
69489 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * MODULES.html.sh (File stream based Input/Output):
69492         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69493         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69494         * modules/fopen-safer, modules/tmpfile-safer: New files.
69495         * modules/stdio-safer: Remove.
69496
69497 2006-07-24  Bruno Haible  <bruno@clisp.org>
69498
69499         * modules/tmpdir: New file.
69500         * MODULES.html.sh (File system functions): Add it.
69501
69502 2006-07-24  Bruno Haible  <bruno@clisp.org>
69503
69504         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69505         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69506
69507 2006-07-24  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/clean-temp: New file.
69510
69511 2006-07-24  Bruno Haible  <bruno@clisp.org>
69512
69513         * m4/tmpdir.m4: New file, from GNU gettext.
69514
69515 2006-07-24  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/tmpdir.h: New file, from GNU gettext.
69518         * lib/tmpdir.c: New file, from GNU gettext.
69519
69520 2006-07-24  Bruno Haible  <bruno@clisp.org>
69521
69522         * lib/clean-temp.h: New file, from GNU gettext.
69523         * lib/clean-temp.c: New file, from GNU gettext.
69524
69525 2006-07-23  Eric Blake  <ebb9@byu.net>
69526
69527         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69528         (Depends-on): Add binary-io.
69529
69530 2006-07-23  Eric Blake  <ebb9@byu.net>
69531
69532         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69533
69534 2006-07-23  Eric Blake  <ebb9@byu.net>
69535
69536         * lib/tmpfile-safer.c: New file.
69537         * lib/stdio-safer.h (fopen_safer): Add prototype.
69538         * lib/stdio--.h (tmpfile): Make safer.
69539
69540 2006-07-23  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69543         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69544         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69545         gl_linked_remove_at): Use it.
69546
69547 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69548         and Simon Josefsson <jas@extundo.com>
69549
69550         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69551
69552         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69553
69554 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * modules/close-stream: New file.
69557         * modules/closeout (Description): Make it clear that it exits
69558         with a diagnostic on error.
69559         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69560         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69561
69562 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * m4/close-stream.m4: New file.
69565
69566 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         * lib/close-stream.c, lib/close-stream.h: New files.
69569
69570 2006-07-22  Bruno Haible  <bruno@clisp.org>
69571
69572         Merge from GNU gettext 0.15.
69573
69574         2006-05-01  Bruno Haible  <bruno@clisp.org>
69575
69576                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69577
69578         2006-07-22  Bruno Haible  <bruno@clisp.org>
69579
69580                 * modules/javaversion: New file.
69581                 * MODULES.html.sh (Java): Add javaversion.
69582
69583         2006-03-12  Bruno Haible  <bruno@clisp.org>
69584
69585                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69586
69587         2005-12-04  Bruno Haible  <bruno@clisp.org>
69588
69589                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69590                 (untested).
69591
69592         2006-06-21  Bruno Haible  <bruno@clisp.org>
69593
69594                 Avoid warnings from recent versions of mcs.
69595                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69596                 -o, -L, -r any more. Use options documented since mcs-1.0
69597                 instead. Similarly for -g.
69598
69599         2005-12-04  Bruno Haible  <bruno@clisp.org>
69600
69601                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69602                 .resources, not .resource.
69603
69604         2005-07-09  Bruno Haible  <bruno@clisp.org>
69605
69606                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69607                 add a .dll suffix.
69608                 Reported by Mark Junker <mjscod@gmx.de>.
69609
69610         2006-07-22  Bruno Haible  <bruno@clisp.org>
69611
69612                 * modules/gettext: Upgrade to gettext-0.15.
69613                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69614                 m4/visibility.m4.
69615                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69616
69617 2006-07-22  Bruno Haible  <bruno@clisp.org>
69618
69619         Merge from GNU gettext 0.15.
69620
69621         2006-03-25  Bruno Haible  <bruno@clisp.org>
69622
69623                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69624
69625         2006-07-21  Bruno Haible  <bruno@clisp.org>
69626
69627                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69628                 "1.1".
69629
69630         2006-05-09  Bruno Haible  <bruno@clisp.org>
69631
69632                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69633                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69634                 for the conftestver execution.
69635
69636         2006-05-01  Bruno Haible  <bruno@clisp.org>
69637
69638                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69639                 optional target-version argument. Verify that the compiler
69640                 groks source of the specified source-version, or add -source
69641                 option as necessary. Verify that the compiler produces
69642                 bytecode in the specified target-version, or add -target and
69643                 -source options as necessary. Make the result of the test
69644                 available as variable CONF_JAVAC. Also log error output in
69645                 config.log.
69646
69647         2006-03-11  Bruno Haible  <bruno@clisp.org>
69648
69649                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69650
69651         2006-05-09  Bruno Haible  <bruno@clisp.org>
69652
69653                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69654                 CLASSPATH_SEPARATOR to a semicolon.
69655
69656         2006-03-12  Bruno Haible  <bruno@clisp.org>
69657
69658                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69659                 available as variable CONF_JAVA, for subsequent autoconf
69660                 tests. Also log error output in config.log.
69661
69662         2006-07-19  Bruno Haible  <bruno@clisp.org>
69663
69664                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69665                 that getline works on glibc2 systems. Needed to avoid trouble
69666                 in relocatable.c.
69667                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69668
69669         2005-12-04  Bruno Haible  <bruno@clisp.org>
69670
69671                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69672                 launcher (untested).
69673
69674         2005-12-04  Bruno Haible  <bruno@clisp.org>
69675
69676                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69677
69678         2006-07-22  Bruno Haible  <bruno@clisp.org>
69679
69680                 * gettext.m4: Update from GNU gettext-0.15.
69681                 * nls.m4: Likewise.
69682                 * po.m4: Likewise.
69683                 * inttypes-pri.m4: Likewise.
69684                 * inttypes-h.m4: Renamed from inttypes.m4.
69685                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69686
69687 2006-07-22  Bruno Haible  <bruno@clisp.org>
69688
69689         Merge from GNU gettext 0.15.
69690
69691         2005-07-05  Bruno Haible  <bruno@clisp.org>
69692
69693                 * printf-args.c (printf_fetchargs): Work around broken
69694                 definition of wint_t on mingw.
69695
69696         2005-02-12  Bruno Haible  <bruno@clisp.org>
69697
69698                 * xallocsa.h: Add extern "C" for C++.
69699
69700         2006-05-17  Bruno Haible  <bruno@clisp.org>
69701
69702                 Cygwin portability.
69703                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69704
69705         2006-04-30  Bruno Haible  <bruno@clisp.org>
69706
69707                 * progreloc.c: Include <mach-o/dyld.h> if available.
69708                 (find_executable): Use _NSGetExecutablePath when possible.
69709
69710         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69711
69712                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69713                 function.
69714
69715         2005-12-29  Bruno Haible  <bruno@clisp.org>
69716
69717                 * progreloc.c (set_program_name_and_installdir): Fix
69718                 compilation error.
69719
69720         2005-12-04  Bruno Haible  <bruno@clisp.org>
69721
69722                 Cygwin portability.
69723                 * progreloc.c: Include <windows.h> also on Cygwin.
69724                 (find_executable): Add support for Cygwin.
69725                 (set_program_name_and_installdir): Handle also platforms with
69726                 nonempty EXEEXT.
69727
69728         2006-07-11  Bruno Haible  <bruno@clisp.org>
69729
69730                 * javacomp.c: Fix a comment.
69731                 Reported by Jim Meyering.
69732
69733         2006-04-30  Bruno Haible  <bruno@clisp.org>
69734
69735                 * javacomp.h (compile_java_class): Add source_version,
69736                 target_version arguments.
69737                 * javacomp.c: Rewritten to choose only a compiler that
69738                 respects the specified source_version and target_version.
69739
69740         2006-06-27  Bruno Haible  <bruno@clisp.org>
69741
69742                 Assume correct S_ISDIR macro.
69743                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69744
69745         2006-07-22  Bruno Haible  <bruno@clisp.org>
69746
69747                 * javaversion.h: New file, from GNU gettext.
69748                 * javaversion.c: New file, from GNU gettext.
69749                 * javaversion.java: New file, from GNU gettext.
69750                 * javaversion.class: New file, from GNU gettext.
69751
69752         2006-05-17  Bruno Haible  <bruno@clisp.org>
69753
69754                 Cygwin portability.
69755                 * javaexec.c (execute_java_class): Test for jview program
69756                 also on Cygwin.
69757
69758         2006-04-09  Bruno Haible  <bruno@clisp.org>
69759
69760                 * fatal-signal.c: Don't include string.h.
69761                 (at_fatal_signal): Use a copying loop instead of memcpy.
69762
69763         2005-12-04  Bruno Haible  <bruno@clisp.org>
69764
69765                 * csharpexec.c: Add support for 'clix' launcher (untested).
69766                 (execute_csharp_using_sscli): New function.
69767                 (execute_csharp_program): Call it.
69768
69769         2006-06-21  Bruno Haible  <bruno@clisp.org>
69770
69771                 Avoid warnings from recent versions of mcs.
69772                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69773                 -o, -L, -r any more. Use options documented since mcs-1.0
69774                 instead. Similarly for -g.
69775
69776         2005-07-09  Bruno Haible  <bruno@clisp.org>
69777
69778                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69779                 add a .dll suffix.
69780                 Reported by Mark Junker <mjscod@gmx.de>.
69781
69782         2006-06-17  Bruno Haible  <bruno@clisp.org>
69783
69784                 * config.charset: Update for NetBSD 3.0.
69785
69786         2006-05-17  Bruno Haible  <bruno@clisp.org>
69787
69788                 Cygwin portability.
69789                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69790
69791         2006-05-16  Bruno Haible  <bruno@clisp.org>
69792
69793                 * localcharset.c [CYGWIN]: Include <windows.h>.
69794                 (get_charset_aliases): For Cygwin, return the same CPxxx
69795                 aliases list as under WIN32.
69796                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69797                 the environment variables. Fall back to GetACP().
69798
69799         2006-04-05  Bruno Haible  <bruno@clisp.org>
69800
69801                 * config.charset: Update Juan Manuel Guerrero's address.
69802
69803         2005-02-12  Bruno Haible  <bruno@clisp.org>
69804
69805                 * allocsa.h: Add extern "C" for C++.
69806
69807         2005-02-10  Bruno Haible  <bruno@clisp.org>
69808
69809                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69810                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69811
69812         2006-07-22  Bruno Haible  <bruno@clisp.org>
69813
69814                 * gettext.h: Update to GNU gettext-0.15.
69815
69816 2006-07-22  Bruno Haible  <bruno@clisp.org>
69817
69818         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69819         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69820         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69821
69822 2006-07-21  Eric Blake  <ebb9@byu.net>
69823
69824         * modules/stdlib-safer: New file.
69825         * MODULES.html.sh (File stream based Input/Output): Add
69826         stdlib-safer.
69827
69828 2006-07-21  Eric Blake  <ebb9@byu.net>
69829
69830         * lib/stdlib-safer.h: New file from coreutils, required by
69831         stdlib--.h.
69832
69833 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69836
69837 2006-07-20  Bruno Haible  <bruno@clisp.org>
69838
69839         * gnulib-tool: Recognize new option --assume-autoconf.
69840         (autoconf_minversion): New variable.
69841         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69842
69843 2006-07-20  Bruno Haible  <bruno@clisp.org>
69844
69845         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69846
69847 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69848
69849         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69850         Reindent and repaginate.
69851
69852 2006-07-19  Derek Price  <derek@ximbiot.com>
69853
69854         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69855         Correct grammar.
69856
69857 2006-07-17  Bruno Haible  <bruno@clisp.org>
69858
69859         * modules/list: New file.
69860         * modules/array-list: New file.
69861         * modules/carray-list, modules/carray-list-tests: New files.
69862         * modules/linked-list, modules/linked-list-tests: New files.
69863         * modules/avltree-list, modules/avltree-list-tests: New files.
69864         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69865         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69866         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69867         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69868         * modules/oset: New file.
69869         * modules/array-oset: New file.
69870         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69871         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69872         * tests/test-carray_list.c: New file.
69873         * tests/test-linked_list.c: New file.
69874         * tests/test-avltree_list.c: New file.
69875         * tests/test-rbtree_list.c: New file.
69876         * tests/test-linkedhash_list.c: New file.
69877         * tests/test-avltreehash_list.c: New file.
69878         * tests/test-rbtreehash_list.c: New file.
69879         * tests/test-avltree_oset.c: New file.
69880         * tests/test-rbtree_oset.c: New file.
69881         * MODULES.html.sh (Container data structures): New section.
69882
69883 2006-07-17  Bruno Haible  <bruno@clisp.org>
69884
69885         * m4/gl_list.m4: New file.
69886
69887 2006-07-17  Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/gl_list.h: New file.
69890         * lib/gl_list.c: New file.
69891         * lib/gl_array_list.h: New file.
69892         * lib/gl_array_list.c: New file.
69893         * lib/gl_carray_list.h: New file.
69894         * lib/gl_carray_list.c: New file.
69895         * lib/gl_linked_list.h: New file.
69896         * lib/gl_linked_list.c: New file.
69897         * lib/gl_anylinked_list1.h: New file.
69898         * lib/gl_anylinked_list2.h: New file.
69899         * lib/gl_avltree_list.h: New file.
69900         * lib/gl_avltree_list.c: New file.
69901         * lib/gl_anyavltree_list1.h: New file.
69902         * lib/gl_anyavltree_list2.h: New file.
69903         * lib/gl_rbtree_list.h: New file.
69904         * lib/gl_rbtree_list.c: New file.
69905         * lib/gl_anyrbtree_list1.h: New file.
69906         * lib/gl_anyrbtree_list2.h: New file.
69907         * lib/gl_anytree_list1.h: New file.
69908         * lib/gl_anytree_list2.h: New file.
69909         * lib/gl_linkedhash_list.h: New file.
69910         * lib/gl_linkedhash_list.c: New file.
69911         * lib/gl_anyhash_list1.h: New file.
69912         * lib/gl_anyhash_list2.h: New file.
69913         * lib/gl_avltreehash_list.h: New file.
69914         * lib/gl_avltreehash_list.c: New file.
69915         * lib/gl_rbtreehash_list.h: New file.
69916         * lib/gl_rbtreehash_list.c: New file.
69917         * lib/gl_anytreehash_list1.h: New file.
69918         * lib/gl_anytreehash_list2.h: New file.
69919
69920         * lib/gl_oset.h: New file.
69921         * lib/gl_oset.c: New file.
69922         * lib/gl_array_oset.h: New file.
69923         * lib/gl_array_oset.c: New file.
69924         * lib/gl_avltree_oset.h: New file.
69925         * lib/gl_avltree_oset.c: New file.
69926         * lib/gl_rbtree_oset.h: New file.
69927         * lib/gl_rbtree_oset.c: New file.
69928         * lib/gl_anytree_oset.h: New file.
69929
69930 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * m4/mkancesdirs.m4: New file.
69933         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69934         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69935         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69936         it.
69937
69938 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69941         * lib/mkancesdirs.h: New files.
69942         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69943         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69944         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69945         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69946         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69947         callers changed.  Revamp internals significantly, by not
69948         attempting to create directories that are temporarily more
69949         permissive than the final results.  Do not attempt to use
69950         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69951         This removes some race conditions, fixes some bugs, and simplifies
69952         things.  Use new dirchownmod function to do owner and mode changes.
69953         * lib/mkdir-p.h: Likewise.
69954         * lib/modechange.c (octal_to_mode): New function.
69955         (struct mode_change): New member mentioned.
69956         (make_node_op_equals): New arg mentioned.  All callers changed.
69957         (mode_compile): Keep track of which mode bits the user has explicitly
69958         mentioned.
69959         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69960         New arg PMODE_BITS, to keep track of which mode bits the user
69961         mentioned; it treats S_ISUID and S_ISGID speciall.
69962         All callers changed.
69963         * lib/modechange.h: Likewise.
69964
69965 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * MODULES.html.sh: Add mkancestors.
69968         * modules/mkancesdirs: New module.
69969         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69970         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69971         The chdir-safer and afs files are now orphans; I'll remove them
69972         unless someone speaks up.
69973         Add lib/dirchownmod.c, lib/dirchownmod.h.
69974         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69975         Add lchown, mkancesdirs.
69976         (Maintainer): Add self.
69977
69978 2006-07-15  Karl Berry  <karl@gnu.org>
69979
69980         * gnulib-tool: help message wording/arrangement.
69981
69982 2006-07-14  Simon Josefsson  <jas@extundo.com>
69983
69984         * doc/gnulib.texi (Libtool and Windows): New section.
69985
69986 2006-07-12  Simon Josefsson  <jas@extundo.com>
69987
69988         * modules/gendocs (License): Fix license, approved by Karl.
69989
69990 2006-07-12  Eric Blake  <ebb9@byu.net>
69991
69992         * MODULES.html.sh: Add gendocs.
69993
69994 2006-07-11  Eric Blake  <ebb9@byu.net>
69995
69996         * modules/fdl: New module, to install doc/fdl.texi.
69997         * MODULES.html.sh: Add new section for documentation modules.
69998         * gnulib-tool: Avoid space-tab.
69999         (--doc-base): New option, to manage files from doc.
70000
70001 2006-07-11  Eric Blake  <ebb9@byu.net>
70002
70003         * m4/absolute-header.m4: Fix comments to match recent change.
70004
70005 2006-07-11  Eric Blake  <ebb9@byu.net>
70006
70007         * gnulib-tool: List --doc-base before --tests-base.
70008
70009 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70010
70011         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70012
70013 2006-07-11  Bruno Haible  <bruno@clisp.org>
70014
70015         * README: Mention where to put documentation.
70016
70017 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70018
70019         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70020
70021 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70024         to stdint.m4.
70025
70026 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70029         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70030         "no/such/file/stdint.h" when there is no such file, so that
70031         the resulting C code can be parsed by dodgy compilers.
70032         Problems reported by Bob Proulx.
70033
70034 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70035
70036         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70037         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70038         macros into the GNU _D_EXACT_NAMLEN.
70039         * lib/savedir.c:  Likewise.
70040         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70041
70042 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70043         and Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70046         * m4/savedir.m4:
70047         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70048         macros into the GNU _D_EXACT_NAMLEN.
70049
70050 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70051
70052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70053         around the absolute name, to work around a problem with the HP-UX
70054         11.23 native C compiler, reported by Bob Proulx.
70055
70056 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * doc/maintain.texi, make-stds.texi: Sync from
70059         <http://savannah.gnu.org/projects/gnustandards>.
70060
70061 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70064
70065 2006-07-09  Jim Meyering  <jim@meyering.net>
70066
70067         * m4/glob.m4: Remove a doubled word in a comment.
70068
70069 2006-07-09  Jim Meyering  <jim@meyering.net>
70070
70071         * lib/argp-pv.c: Remove a doubled word in a comment.
70072         * lib/check-version.c (check_version): Likewise.
70073         * lib/javacomp.c (compile_java_class): Likewise.
70074
70075 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70078         for the benefit of people using Autoconf 2.60.  If you want to
70079         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70080         (or m4/onceonly.m4, if pre-2.57) manually.
70081
70082 2006-07-08  Jim Meyering  <jim@meyering.net>
70083
70084         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70085         comment.
70086         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70087         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70088         comment.
70089
70090 2006-07-08  Jim Meyering  <jim@meyering.net>
70091
70092         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70093
70094 2006-07-07  Simon Josefsson  <jas@extundo.com>
70095
70096         * tests/test-crc.c: Change expected crc value, the test vector
70097         were probably computed using the old broken crc.c?
70098
70099 2006-07-06  Simon Josefsson  <jas@extundo.com>
70100
70101         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70102         now the canonical place for the M4 file).
70103
70104         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70105         from the sys_socket dependency now.
70106
70107         * modules/inet_pton (Files): Ditto.
70108
70109         * modules/inet_ntop (Files): Ditto.
70110
70111 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70112
70113         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70114         not gl_PREREQ_GETUSERSHELL.
70115
70116 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70117
70118         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70119         with only one argument, for Autoconf 2.60.
70120         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70121         expand to nothing, so add a shell command to avoid syntax error.
70122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70123
70124 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70125
70126         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70127
70128 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70131         no longer needed.  Check for isblank decl.
70132         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70133         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70134         of existence.
70135
70136 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * lib/getloadavg.c: Use __VMS, not VMS.
70139         * lib/getopt.c: Likewise.
70140         * lib/getpagesize.h: Likewise.
70141         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70142         and probably does not work.
70143
70144 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * lib/.cppi-disable: Add wcwidth.
70147         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70148         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70149         (ISGRAPH): Remove.  All uses changed to isgraph.
70150         (FOLD) [!defined _LIBC]: Remove special case.
70151         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70152         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70153         HAVE_ISBLANK.
70154         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70155         case.
70156
70157 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70158
70159         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70160         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70161         brackets.  Other minor changes to suppress some compiler
70162         warnings.
70163
70164 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70165         and Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70168         of invoking obsolescent AC_HEADER_DIRENT macro.
70169         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70170         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70171         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70172         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70173         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70174         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70175         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70176         * m4/readdir.m4: Remove; no longer needed.
70177
70178 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70179         and Paul Eggert  <eggert@cs.ucla.edu>
70180
70181         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70182         Don't worry about this obsolete case any more.
70183         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70184         directories.
70185         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70186         worry about this obsolete case any more.
70187         * lib/fts.c: Likewise.
70188         * lib/getcwd.c: Likewise.
70189         * lib/glob.h: Likewise.
70190         * lib/savedir.c: Likewise.
70191
70192 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70195         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70197         needed.
70198         All uses removed.
70199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70200         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70201         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70202         needed.
70203         * m4/getdate.m4 (gl_GETDATE): Likewise.
70204         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70205         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70206         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70207         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70208         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70209         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70210         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70211         needed.
70212
70213 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * lib/memcasecmp.c: Include <limits.h>.
70216         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70217         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70218         Don't assume isdigit succeeds only on '0' through '9'.
70219
70220 2006-07-05  Eric Blake  <ebb9@byu.net>
70221
70222         * modules/getaddrinfo (Depends-on): Add snprintf.
70223
70224 2006-07-05  Eric Blake  <ebb9@byu.net>
70225
70226         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70227         to avoid 'header present but could not be compiled' on cygwin.
70228
70229 2006-07-05  Eric Blake  <ebb9@byu.net>
70230
70231         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70232         missing from netdb.h.
70233         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70234
70235 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70236
70237         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70238         no longer needed.
70239         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70240         * m4/getdate.m4 (gl_GETDATE): Likewise.
70241         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70242         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70243         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70244         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70246
70247 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70248
70249         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70250         All uses of is_space replaced by isspace.
70251         * lib/exit.h: Don't talk about STDC_HEADERS.
70252         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70253         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70254         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70255         replaced by isprint etc.
70256         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70257         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70258         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70259         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70260         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70261         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70262
70263 2006-07-05  Bruno Haible  <bruno@clisp.org>
70264
70265         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70266         the function exists, before testing against AIX.
70267         Reported by Martin Lambers <marlam@marlam.de>.
70268
70269 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70272         From Mark D. Baushke.
70273
70274 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70275
70276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70277         to the absolute name, not just one, to bypass Sun C 5.8's
70278         "warning: #include of /usr/include/... may be non-portable".
70279
70280 2006-07-04  Eric Blake  <ebb9@byu.net>
70281
70282         * modules/dirname-tests: New test module.
70283         * tests/test-dirname.c: New file, replacing dirname.c
70284         TEST_DIRNAME section that was recently deleted.
70285
70286 2006-07-04  Bruno Haible  <bruno@clisp.org>
70287
70288         Assume ANSI C header files and <ctype.h> functions.
70289         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70290         (mbsnwidth): Use isprint, iscntrl instead.
70291
70292 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         Merge from coreutils.
70295         * MODULES.html.sh: Add xstrtold.
70296         * modules/xstrtold: New file.
70297         * modules/cycle-check (Files): Add lib/same-inode.h.
70298         * modules/dirname (Files): Add m4/double-slash-root.m4.
70299         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70300         * modules/mkdir-p (Files): Add lib/same-inode.h.
70301         * modules/same (Files): Add lib/same-inode.h.
70302
70303 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70306         This is to keep the terminology clean; POSIX talks about
70307         "absolute pathnames", not "full pathnames", but the GNU
70308         Coding Standards say to use "path" for something else;
70309         so use "absolute" to keep both sides happy.
70310         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70311         Set gl_absolute_header, not gl_full_header_path.
70312         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70313         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70314         All uses changed.
70315
70316         Merge from coreutils.
70317
70318         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70321         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70322         want to require the building of c-strtod.o.
70323         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70324         needs -lm directly.
70325         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70326
70327         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70330         --as-needed option if available.  Problem reported by Albert Chin in
70331         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70332         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70333         cc merely issues a bunch of annoying warnings for --as-needed
70334         (this problem was reported by Bob Proulx).  Also, try linking with
70335         -lm to detect a bug in binutils 2.16 (this problem was reported
70336         by Ralf Wildenhues).
70337
70338         2006-06-18  Jim Meyering  <jim@meyering.net>
70339
70340         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70341         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70342         macro.
70343         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70344         also check for glibc-2.4's abort-inducing bug.
70345
70346         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70347         Low-probability clean-up should be to use rmdir to get rid of
70348         the just-created directory, not unlink.
70349
70350         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70351         configure fail, and request a bug report to inform us about it.
70352         Add a comment that, barring reports to the contrary, in 2007 we'll
70353         assume ftruncate is universally available.
70354
70355         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70358
70359         2006-03-12  Jim Meyering  <jim@meyering.net>
70360
70361         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70362         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70363         * m4/same.m4 (gl_SAME): Likewise.
70364         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70365
70366         2006-03-11  Eric Blake  <ebb9@byu.net>
70367
70368         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70369         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70370         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70371         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70372
70373 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70376         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70377         reported by Mark D. Baushke, one in
70378         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70379
70380         Merge from coreutils.
70381
70382         * lib/.cppi-disable: Add stdint_.h.
70383         * lib/.cvsignore: Add stdint.h.
70384
70385         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70388         both double and long double versions.
70389         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70390         * lib/xstrtold.c: New file.
70391         * lib/xstrtod.h (xstrtold): New decl.
70392
70393         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         * lib/filemode.c (setst): Remove.
70396         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70397         (arguably) clearer, and the generated code is a bit smaller on my
70398         Debian GNU/Linux stable x86 host.
70399
70400         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70403         Assume that filemode.h includes sys/types.h and sys/stat.h.
70404         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70405         (ftypelet): Reorder to put common cases first, for efficiency.
70406         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70407         to do 'M'.
70408         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70409         of 10, for compatibility with FreeBSD.  All callers changed.
70410         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70411         types that can't be deduced solely from st_mode.  First arg is now a
70412         const pointer.
70413         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70414         (strmode): Renamed from mode_string.
70415         (filemodestring): New decl.
70416         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70417         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70418         needed.
70419         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70420
70421         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70424         fsusage.h now does that.  Include fsusage.h first, to test interface.
70425         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70426         at most one method (the old code could have generated decls that
70427         didn't conform to C89, not that this was ever exercised).
70428         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70429
70430         2006-03-19  Jim Meyering  <jim@meyering.net>
70431
70432         Work even in a chroot where d_ino values for entries in "/"
70433         don't match the stat.st_ino values for the same names.
70434         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70435         number, iterate through all entries again, using lstat instead.
70436         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70437         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70438
70439         * lib/getcwd.c (__getcwd): Clarify a comment.
70440         Use memcpy in place of a call to strcpy.
70441
70442         2006-03-12  Jim Meyering  <jim@meyering.net>
70443
70444         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70445         matches that of the current directory (which we're about to chdir ".."
70446         out of), then save the dev-ino of the parent, instead.
70447
70448         * lib/same-inode.h (SAME_INODE): New file/macro.
70449         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70450         Include "same-inode.h", instead.
70451         * lib/same.c: Likewise.
70452         * lib/cycle-check.h: Include "same-inode.h".
70453         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70454         * lib/cycle-check.c (SAME_INODE): Remove definition.
70455         * lib/root-dev-ino.h: Include "same-inode.h".
70456
70457         2006-03-11  Eric Blake  <ebb9@byu.net>
70458
70459         * lib/same.c (same_name): s/base_name/last_component/
70460         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70461         * lib/filenamecat.c (file_name_concat): Likewise.
70462
70463         2006-03-11  Eric Blake  <ebb9@byu.net>,
70464                     Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70467         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70468         drive prefix.
70469         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70470         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70471         (last_component): New method.
70472         * lib/dirname.c (dir_len): Determine when drive letters need a
70473         subsequent slash.  Preserve // when it is special.
70474         (dir_name): Don't append dot when drive letter is absolute.
70475         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70476         * lib/basename.c (base_name): New semantics - malloc the result.
70477         Preserve // when it is special.  Preserve relative files that look
70478         like drive letters.
70479         (base_len): Preserve // when it is special.
70480         (last_component): New method, similar to old base_name semantics.
70481         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70482         base_name.  Strip redundant slashes from ///.
70483
70484 2006-07-03  Jim Meyering  <jim@meyering.net>
70485
70486         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70487         macro is used before the first cycle_check call.
70488
70489 2006-07-03  Eric Blake  <ebb9@byu.net>
70490
70491         * modules/dirname (Depends-on): Add xstrndup.
70492
70493 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70496         test cases, so that config.log is a bit easier to follow.
70497
70498 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70501         both are 64 bits, since this seems to be the tradition, and this
70502         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70503         we ever run into a host that prefers long long to long in this
70504         case, we'll need another configure-time test.  Problem reported by
70505         Jim Meyering.
70506
70507 2006-07-02  Eric Blake  <ebb9@byu.net>
70508
70509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70510
70511 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * modules/inttypes (Depends-on): No longer depends on stdint.
70514         * modules/stdint (Description): Say more about assumptions.
70515         Say that the fast types might differ.  Say macros are used.
70516         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70517         (Makefile.am): Revise list of substituted symbols to match
70518         new stdint.m4.
70519         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70520         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70521         * tests/test-stdint.c (verify_same_types)
70522         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70523         the code conforms to C99/C89.
70524         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70525         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70526
70527 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70530         but fix a bug, by requiring at least 64 bits.
70531         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70532         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70533         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70534         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70535
70536         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70537         changes.  Make 2.59 a prerequisite.  Check and substitute for
70538         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70539         inttypes.h.  Do not use special include files; just use the
70540         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70541         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70542         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70543         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70544         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70545         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70546         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70547         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70548         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70549         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70550         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70551         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70552         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70553         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70554         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70555         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70556         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70557         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70558         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70559         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70560         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70561         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70562         not check for things that C99 does not require, e.g., int8_t.  If
70563         a test isn't needed unless <stdint.h> isn't working, and is
70564         unlikely to be needed for any other reason, then don't do it
70565         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70566         size_t, since we assume C89 freestanding at least.  Do not check
70567         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70568         the right thing even if the types are not defined.  Instead use:
70569         (gl_STDINT_TYPE_PROPERTIES): New macro.
70570         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70571         testing whether <sys/types.h> clashes, as Autoconf does this for
70572         us now.  All uses removed.
70573         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70574         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70575         (gl_CHECK_TYPE_SAME):
70576         Remove; no longer needed.
70577         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70578         exists, since we'll return 0 anyway in that case.
70579         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70580
70581 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70584         possible collision with system files.
70585         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70586         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70587         WCHAR_MIN and WCHAR_MAX in this case.
70588         (<stddef.h>): Do not include; no longer needed.
70589         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70590         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70591         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70592         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70593         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70594         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70595         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70596         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70597         !defined(__c99))]: Include in this case too, since it's harmless
70598         now.
70599         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70600         dangerous to do so.
70601         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70602         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70603         (_STDINT_MIN, _STDINT_MAX): New macros.
70604         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70605         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70606         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70607         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70608         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70609         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70610         macros, not typedefs; this simplifies things quite a bit.
70611         Use long int for all types narrower than int64_t.
70612         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70613         Define in terms of long long int or int64_t or long int,
70614         not int64_t or int32_t.  This saves some compile-time testing.
70615         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70616         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70617         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70618         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70619         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70620         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70621         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70622         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70623         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70624         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70625         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70626         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70627         undef any previous version and define our own version, for
70628         simplicity and consistency with the new macros for types.
70629         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70630         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70631         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70632         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70633         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70634         @WINT_T_SUFFIX@ to keep things simple here.
70635         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70636         Simplify by assuming typical 8/16/32/64 host, since we're
70637         already doing that elsewhere anyway.
70638         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70639         and assume long long int is 64 bits if available.  This
70640         speeds up 'configure'.
70641
70642 2006-07-01  Eric Blake  <ebb9@byu.net>
70643
70644         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70645         Reported by Andreas Buening.
70646
70647 2006-07-01  Eric Blake  <ebb9@byu.net>
70648
70649         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70650
70651 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70652
70653         * lib/getaddrinfo.c: fixed typo
70654
70655 2006-06-29  Jim Meyering  <jim@meyering.net>
70656
70657         * modules/strftime (Maintainer): Add my name, since with the
70658         FPRINTFTIME changes strftime.c has forked from glibc.
70659
70660 2006-06-29  Eric Blake  <ebb9@byu.net>
70661
70662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70663
70664 2006-06-29  Eric Blake  <ebb9@byu.net>
70665
70666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70667
70668 2006-06-29  Eric Blake  <ebb9@byu.net>
70669
70670         * lib/stat_.h: New file.
70671
70672 2006-06-29  Eric Blake  <ebb9@byu.net>
70673
70674         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70675         unused static function.
70676
70677 2006-06-29  Eric Blake  <ebb9@byu.net>
70678
70679         * doc/functions.texi (Function Portability): Document missing lstat
70680         on mingw.
70681
70682 2006-06-29  Eric Blake  <ebb9@byu.net>
70683
70684         * MODULES.html.sh: Add sys_stat.
70685         * modules/sys_stat: New module.
70686         * modules/mkstemp (Depends-on): Add sys_stat.
70687
70688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70689
70690         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70691
70692 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70693
70694         * m4/c-bs-a.m4: Removed.
70695
70696 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70697
70698         * lib/strftime.c: Assume strftime() exists.
70699
70700 2006-06-29  Derek Price  <derek@ximbiot.com>
70701
70702         * modules/c-bs-a: Removed - \a is C89.
70703         * MODULES.html.sh: Remove c-bs-a.
70704
70705 2006-06-29  Bruno Haible  <bruno@clisp.org>
70706
70707         * modules/wcwidth (License): Change to LGPL.
70708
70709 2006-06-28  Simon Josefsson  <jas@extundo.com>
70710
70711         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70712         on _WIN32.
70713
70714         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70715         getnameinfo.
70716
70717 2006-06-28  Simon Josefsson  <jas@extundo.com>
70718
70719         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70720
70721 2006-06-28  Simon Josefsson  <jas@extundo.com>
70722
70723         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70724         functions there.  It will succeed on Windows XP, but on Windows
70725         2000 and (presumably) earlier, it will fail, and use the internal
70726         re-implementation.
70727         (use_win32_p): New function.
70728         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70729         Support AI_NUMERICSERV to disable getservbyname.
70730         (getnameinfo): New function, only supports
70731         NI_NUMERICHOST|NI_NUMERICSERV for now.
70732
70733         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70734         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70735         getnameinfo.
70736
70737 2006-06-28  Eric Blake  <ebb9@byu.net>
70738
70739         * modules/wcwidth: New file.
70740         * modules/mbchar (Depends-on): Add wcwidth.
70741         * modules/mbswidth (Depends-on): Add wcwidth.
70742         * MODULES.html.sh: Add wcwidth.
70743
70744 2006-06-28  Eric Blake  <ebb9@byu.net>
70745
70746         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70748
70749 2006-06-28  Eric Blake  <ebb9@byu.net>
70750
70751         * lib/xvasprintf.h: Fix comments.
70752
70753 2006-06-28  Eric Blake  <ebb9@byu.net>
70754
70755         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70756         * lib/mbswidth.c (wcwidth): Move from here...
70757         * lib/wcwidth.h: ...to this new file.
70758
70759 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70760
70761         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70762
70763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70764         it's obsolete.
70765         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70766
70767 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70768
70769         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70770         Autoconf 2.60 says this stuff was obsolete.
70771
70772 2006-06-28  Bruno Haible  <bruno@clisp.org>
70773
70774         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70775
70776 2006-06-28  Bruno Haible  <bruno@clisp.org>
70777
70778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70779         gt_TYPE_WCHAR_T.
70780
70781 2006-06-28  Bruno Haible  <bruno@clisp.org>
70782
70783         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70784         declaration for wcwidth.
70785         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70786
70787 2006-06-28  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70790         (mkdir): Define using _mkdir.
70791
70792 2006-06-28  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/getaddrinfo.h: Fix POSIX URL.
70795         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70796         _WIN32.
70797         (use_win32_p): Make static.
70798         (getaddrinfo): Reject service name if it is empty or does not consist
70799         solely of decimal digits, or if its value is > 65535.
70800         (getnameinfo): Remove useless casts.
70801
70802 2006-06-27  Simon Josefsson  <jas@extundo.com>
70803
70804         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70805         Eggert and Martin Lambers.
70806
70807 2006-06-27  Simon Josefsson  <jas@extundo.com>
70808
70809         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70810         Eggert and Martin Lambers.
70811
70812 2006-06-27  Bruno Haible  <bruno@clisp.org>
70813
70814         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70815         result to 0, not to empty.
70816         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70817
70818 2006-06-27  Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70821
70822 2006-06-26  Simon Josefsson  <jas@extundo.com>
70823
70824         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70825         present.
70826
70827 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70828
70829         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70830         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70831         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70832
70833 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70834
70835         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70836
70837 2006-06-26  Bruno Haible  <bruno@clisp.org>
70838
70839         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70840
70841 2006-06-26  Bruno Haible  <bruno@clisp.org>
70842
70843         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70844
70845 2006-06-26  Bruno Haible  <bruno@clisp.org>
70846
70847         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70848         SGI C compiler in pre-C99 mode.
70849         Suggested by Mark D. Baushke and Larry Jones.
70850
70851 2006-06-26  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70854         WCHAR_MAX.
70855         Reported by Mark D. Baushke and Larry Jones.
70856
70857 2006-06-26  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70860         in pre-C99 mode.
70861         Suggested by Mark D. Baushke and Larry Jones.
70862
70863 2006-06-23  Simon Josefsson  <jas@extundo.com>
70864             Bruno Haible  <bruno@clisp.org>
70865
70866         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70867         Emit mostlyclean-local rule.
70868         (func_emit_tests_Makefile_am): Likewise.
70869         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70870
70871 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70872
70873         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70874
70875 2006-06-23  Bruno Haible  <bruno@clisp.org>
70876
70877         * tests/test-stdint.c: Update to match ISO C 99 Technical
70878         Corrigendum 1.
70879
70880 2006-06-23  Bruno Haible  <bruno@clisp.org>
70881
70882         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70883
70884 2006-06-23  Bruno Haible  <bruno@clisp.org>
70885
70886         * lib/stdint_.h: Treat IRIX like OpenBSD.
70887
70888 2006-06-23  Bruno Haible  <bruno@clisp.org>
70889
70890         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70891         ISO C 99 Technical Corrigendum 1.
70892
70893 2006-06-22  Simon Josefsson  <jas@extundo.com>
70894
70895         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70896         MinGW.
70897
70898 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70901         needed.  Some compiler complained about some of them.  Problem reported
70902         by Larry Jones in
70903         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70904
70905 2006-06-21  Simon Josefsson  <jas@extundo.com>
70906
70907         * tests/test-getaddrinfo.c: New file.
70908
70909         * modules/getaddrinfo-tests: New file.
70910
70911         * MODULES.html.sh: Add inet_pton.
70912
70913         * modules/inet_pton: New file.
70914
70915 2006-06-21  Simon Josefsson  <jas@extundo.com>
70916
70917         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70918         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70919         of using the (limited) gnulib implementation on Windows XP.
70920
70921         * m4/inet_pton.m4: New file.
70922
70923 2006-06-21  Simon Josefsson  <jas@extundo.com>
70924
70925         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70926         variable.
70927
70928         * lib/socket_.h: Don't define WINVER.
70929
70930         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70931         slightly modified to work in gnulib.
70932
70933 2006-06-21  Simon Josefsson  <jas@extundo.com>
70934
70935         * doc/gnulib.texi (Windows sockets): Add.
70936
70937 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/read-file.c (fread_file): Start with buffer allocation of
70940         0 bytes rather than 1 byte; this simplifies the code.
70941         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70942         code to free buffer and save/restore errno.
70943         (internal_read_file): Remove unused local.
70944
70945 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70948         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70949         Problem reported by Denis Excoffier in
70950         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70951
70952 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70953
70954         * modules/sys_socket, modules/socklen: Include sys/types since
70955         FreeBSD 4.x's sys/socket.h needs it.
70956
70957 2006-06-19  Simon Josefsson  <jas@extundo.com>
70958
70959         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70960
70961 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70964
70965 2006-06-19  Bruno Haible  <bruno@clisp.org>
70966
70967         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70968         and FULL_PATH_INTTYPES_H in angle brackets.
70969         Reported by Mark D. Baushke <mdb@gnu.org>.
70970
70971 2006-06-17  Eric Blake  <ebb9@byu.net>
70972
70973         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70974         errno.
70975
70976 2006-06-17  Bruno Haible  <bruno@clisp.org>
70977
70978         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70979         <sys/inttypes.h>.
70980
70981 2006-06-17  Bruno Haible  <bruno@clisp.org>
70982
70983         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70984         whether errno is declared. Assume <errno.h> declares errno.
70985
70986 2006-06-17  Bruno Haible  <bruno@clisp.org>
70987
70988         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70989
70990 2006-06-17  Bruno Haible  <bruno@clisp.org>
70991
70992         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70993         problem on Solaris 2.5.1.
70994
70995 2006-06-16  Eric Blake  <ebb9@byu.net>
70996
70997         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70998         * lib/unicodeio.c [!defined errno]: Likewise.
70999         * lib/strtol.c [!defined errno]: Likewise.
71000         * lib/strtod.c [!defined errno]: Likewise.
71001
71002 2006-06-15  Eric Blake  <ebb9@byu.net>
71003
71004         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71005
71006 2006-06-15  Eric Blake  <ebb9@byu.net>
71007
71008         * config/srclist.txt (ssize_t.m4): Lose sync.
71009
71010 2006-06-15  Bruno Haible  <bruno@clisp.org>
71011
71012         * modules/stdint (Files): Include m4/full-header-path.m4,
71013         m4/size_max.m4, m4/wchar_t.m4.
71014         (Makefile.am): Many more substitutions.
71015         * modules/stdint-tests: New file.
71016         * tests/test-stdint.c: New file.
71017
71018 2006-06-15  Bruno Haible  <bruno@clisp.org>
71019
71020         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71021         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71022         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71023         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71024         gl_CHECK_TYPE_SAME): New macros.
71025
71026 2006-06-15  Bruno Haible  <bruno@clisp.org>
71027
71028         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71029
71030 2006-06-15  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/stdint_.h: Rewritten to be fully auto-configured.
71033         Fixes bug on HP-UX/IA64.
71034
71035 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * lib/getdate.y (__attribute__): Don't define if already defined.
71038         Problem reported by Larry Jones.
71039         * lib/utimens.c (__attribute__): Likewise.
71040
71041 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71042
71043         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71044         reported by Andreas Schwab.
71045
71046 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71047             Bruno Haible  <bruno@clisp.org>
71048
71049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71050         check for the declaration of strnlen and a run test that exposes the
71051         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71052         rpl_strndup.
71053
71054 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71055             Bruno Haible  <bruno@clisp.org>
71056
71057         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71058
71059 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71060
71061         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71062         compile test, for Tru64 4.0D.
71063
71064 2006-05-28  Karl Berry  <karl@gnu.org>
71065
71066         * config/srclist.txt (printf-args.c): lose sync.
71067
71068 2006-05-26  Martin Lambers  <marlam@marlam.de>
71069
71070         * lib/getpass.c: Updates the test for the native W32 API, and adds
71071         missing includes, thus fixing compilation warnings.
71072
71073 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71074
71075         * lib/exclude.c (exclude_fnmatch): New function.
71076         (excluded_file_name): Call exclude_fnmatch.
71077         * lib/exclude.h (excluded_file_name): New prototype
71078
71079 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/tempname.c (small_open, large_open): New macros.
71082         (__open, __open64) [!_LIBC]: Remove.
71083         (__gen_tempname): Use small_open and large_open instead of __open
71084         and __open64.  This fixes a portability bug on HP-UX 11.11i
71085         reported by Simon Wing-Tang in
71086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71087
71088 2006-05-24  Bruno Haible  <bruno@clisp.org>
71089
71090         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71091         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71092         Reported by Thorsten Maerz <torte@netztorte.de> via
71093         Aaron Stone <aaron@serendipity.cx>.
71094
71095 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71098         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71099         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71100         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71101         not really conditional on the cache.
71102         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71103
71104 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71107         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71108         (my_usleep): Don't mishandle maximum value.
71109
71110 2006-05-19  Jim Meyering  <jim@meyering.net>
71111
71112         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71113
71114 2006-05-17  Bruno Haible  <bruno@clisp.org>
71115
71116         Cygwin portability.
71117         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71118
71119 2006-05-17  Bruno Haible  <bruno@clisp.org>
71120
71121         * lib/stdint_.h: Fix recognition of Cygwin.
71122
71123 2006-05-15  Bruno Haible  <bruno@clisp.org>
71124
71125         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71126         on libtool patch by Ralf Wildenhues.
71127
71128 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71131         test for C99 conformance; (bool) 0.5 is an integer constant
71132         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71133         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71134
71135 2006-05-11  Simon Josefsson  <jas@extundo.com>
71136
71137         * m4/xvasprintf.m4: Fix obvious typo.
71138
71139 2006-05-11  Jim Meyering  <jim@meyering.net>
71140
71141         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71142         James Lemley.
71143
71144 2006-05-10  Simon Josefsson  <jas@extundo.com>
71145
71146         * lib/md4.c: Typo fix, update copyright years.
71147         (K1, K2): Don't use L because it turn computations into 64-bit on
71148         64-bit platforms.
71149
71150 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71151
71152         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71153         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71154         unwanted sign propagation, e.g., on hosts with 64-bit int.
71155         There still are some problems with reeelly weird theoretical hosts
71156         (e.g., 33-bit int) but it's not worth worrying about now.
71157         * lib/sha1.c (rol): Likewise.
71158         (K1, K2, K3, K4): Remove unnecessary L suffix.
71159
71160 2006-05-10  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/des.c: Cast to avoid warnings.
71163
71164 2006-05-09  Bruno Haible  <bruno@clisp.org>
71165
71166         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71167         (Depends-on): Depend also on xsize, stdarg.
71168         (configure.ac): Add gl_XVASPRINTF.
71169
71170 2006-05-09  Bruno Haible  <bruno@clisp.org>
71171
71172         * m4/xvasprintf.m4: New file.
71173
71174 2006-05-09  Bruno Haible  <bruno@clisp.org>
71175
71176         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71177         (EOVERFLOW): Define fallback value.
71178         (xstrcat): New function.
71179         (xvasprintf): Recognize the special case of a string concatenation.
71180
71181 2006-05-08  Eric Blake  <ebb9@byu.net>
71182
71183         * gnulib-tool (func_version): Base copyright year on CVS date.
71184         (func_emit_copyright_notice): New function.
71185         (func_emit_lib_Makefile_am): Use it.
71186         (func_emit_tests_Makefile_am): Likewise.
71187         (func_import): Likewise.
71188
71189 2006-05-08  Bruno Haible  <bruno@clisp.org>
71190
71191         * modules/stdarg: New file.
71192         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71193
71194 2006-05-08  Bruno Haible  <bruno@clisp.org>
71195
71196         * m4/stdarg.m4: New file, from GNU gettext.
71197
71198 2006-05-08  Bruno Haible  <bruno@clisp.org>
71199
71200         * config/srclist.txt (build-aux/config.rpath): different from latest
71201         release.
71202
71203 2006-05-08  Bruno Haible  <bruno@clisp.org>
71204
71205         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71206
71207 2006-05-05  Jim Meyering  <jim@meyering.net>
71208
71209         * m4/warning.m4: New file, derived from bison's file by the same name.
71210
71211 2006-05-03  Bruno Haible  <bruno@clisp.org>
71212
71213         * lib/stdint_.h: Shorter URL.
71214         * lib/inttypes.h: Likewise.
71215
71216 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71219
71220 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/verify.h: Document the internals better.  Most of this change
71223         was written by Bruno Haible.
71224
71225 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * doc/verify.texi: New file, partly based on a proposal by
71228         Bruno Haible.
71229
71230 2006-05-02  Bruno Haible  <bruno@clisp.org>
71231
71232         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71233         test from here...
71234         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71235
71236 2006-04-29  Bruno Haible  <bruno@clisp.org>
71237
71238         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71239         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71240
71241 2006-04-29  Bruno Haible  <bruno@clisp.org>
71242
71243         * gnulib-tool: Make --update option actually work.
71244
71245 2006-04-29  Bruno Haible  <bruno@clisp.org>
71246
71247         * doc/gcd.texi: New file.
71248         * doc/gnulib.texi: Include it.
71249
71250 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * lib/getdate.y (get_date): When adding relative date, start with the
71253         initial time, not with the result of the first mktime call.
71254
71255 2006-04-25  Bruno Haible  <bruno@clisp.org>
71256
71257         * gnulib-tool (func_import): Output the include directives in three
71258         blocks, sorted separately.
71259         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71260
71261 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71262
71263         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71264         to define main with arguments, for C++.  Reported by Eric Blake.
71265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71266         Prefer 'int main ()' to 'int main (void)', for C++.
71267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71269         for 'main', for C99 and C++.
71270
71271 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71274         Don't assume that exit status -1 is valid.
71275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71276         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71277         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71278         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71279         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71280         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71281         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71282         functions can be used without declaring them, or that you can
71283         exit with status -1.
71284         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71285
71286 2006-04-24  Karl Berry  <karl@gnu.org>
71287
71288         * config/srclist.txt (longdouble.m4): sync lost.
71289
71290 2006-04-24  Eric Blake  <ebb9@byu.net>
71291
71292         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71293
71294 2006-04-24  Bruno Haible  <bruno@clisp.org>
71295
71296         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71297         poll() implementation in AIX.
71298         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71299
71300 2006-04-24  Bruno Haible  <bruno@clisp.org>
71301
71302         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71303         assigned exactly once.
71304
71305 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71306             Bruno Haible  <bruno@clisp.org>
71307
71308         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71309         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71310         for AM_CPPFLAGS.
71311
71312 2006-04-23  Bruno Haible  <bruno@clisp.org>
71313
71314         * modules/copy-file: Depend on unistd.
71315         * modules/execute: Likewise.
71316         * modules/fatal-signal: Likewise.
71317         * modules/findprog: Likewise.
71318         * modules/mkdtemp : Likewise.
71319         * modules/pipe: Likewise.
71320         * modules/wait-process: Likewise.
71321
71322 2006-04-23  Bruno Haible  <bruno@clisp.org>
71323
71324         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71325         condition was already detected.
71326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71327
71328 2006-04-23  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/copy-file.c: Include <unistd.h> unconditionally.
71331         * lib/execute.c: Likewise.
71332         * lib/fatal-signal.c: Likewise.
71333         * lib/findprog.c: Likewise.
71334         * lib/mkdtemp.c: Likewise.
71335         * lib/pipe.h: Likewise.
71336         * lib/pipe.c: Likewise.
71337         * lib/wait-process.h: Likewise.
71338
71339 2006-04-23  Bruno Haible  <bruno@clisp.org>
71340
71341         * gnulib-tool (func_usage): Fix --import description. Document
71342         --update.
71343         (func_import): Create temporary file in a temporary directory, if
71344         --dry-run is specified. Silence errors from 'grep' when there are no
71345         m4 files in $m4dir.
71346         (func_create_testdir): Silence errors from 'grep' when there are no
71347         m4 files in $m4dir.
71348         Reported by Karl Berry <karl@freefriends.org>.
71349
71350 2006-04-20  Bruno Haible  <bruno@clisp.org>
71351
71352         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71353         one argument, so that the code will be portable to Autoconf 2.60.
71354         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71355         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71356         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71357
71358 2006-04-19  Derek Price  <derek@ximbiot.com>
71359             Eric Blake  <ebb9@byu.net>
71360
71361         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71362         rather than "/full/path.h".  Update comment to match.  Shorten &
71363         generalize m4_translit call via AS_TR_CPP.
71364
71365 2006-04-19  Derek Price  <derek@ximbiot.com>
71366             Eric Blake  <ebb9@byu.net>
71367
71368         * lib/inttypes.h: Correct grammar in comment.
71369
71370 2006-04-18  Derek Price  <derek@ximbiot.com>
71371             Paul Eggert  <eggert@cs.ucla.edu>
71372
71373         * modules/inttypes: New file.
71374         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71375
71376 2006-04-18  Derek Price  <derek@ximbiot.com>
71377             Paul Eggert  <eggert@cs.ucla.edu>
71378
71379         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71380         New files.
71381
71382 2006-04-18  Derek Price  <derek@ximbiot.com>
71383             Paul Eggert  <eggert@cs.ucla.edu>
71384
71385         * lib/inttypes.h: New file.
71386         * lib/strtoimax.c: Assume <inttypes.h>.
71387
71388 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71389
71390         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71391         isn't mounted.  Problem reported by Kir Kolyshkin.
71392
71393 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71396         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71397         Derek R. Price.
71398         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71399         implementation.
71400
71401 2006-04-12  Eric Blake  <ebb9@byu.net>
71402
71403         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71404         is now done automatically by the corresponding Autoconf macro.
71405
71406 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71409         time_r.h.
71410
71411 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         Merge regex changes from libc, removing some of our
71414         POSIX-conformance changes that were rejected and redoing them in a
71415         less-intrusive way.
71416
71417         * lib/regcomp.c (re_compile_internal, init_dfa):
71418         Length arg is now size_t, not Idx.  All uses changed.
71419         (peek_token): Forward decl now says internal_function.
71420         (__re_error_msgid, __re_error_msgid_idx):
71421         Now static rather than extern with attribute_hidden.
71422         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71423         For some reason libc prefers K&R style defns for external functions.
71424         (regerror) [!defined _LIBC]: Likewise.
71425         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71426         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71427         (build_range_exp, build_collating_symbol):
71428         Use K&R-style defn.
71429         (re_compile_fastmap): Use '\0' to memset, not 0.
71430         (utf8_sb_map): Make the calculations more obvious.
71431         (init_dfa, parse_bracket_exp, build_charclass_op):
71432         Call calloc and cast result, as glibc does.
71433         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71434         (build_range_exp, build_collating_symbol):
71435         Now internal functions.
71436
71437         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71438
71439         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71440         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71441         Don't depend on VMS; depend on __VMS instead, for POSIX
71442         namespace cleanness.
71443         (regoff_t): Define to ssize_t, not long int.
71444
71445         Remove the REG_ macros named below.  Instead, make the old names
71446         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71447         __USE_GNU_REGEX.
71448         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71449         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71450         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71451         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71452         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71453         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71454         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71455         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71456         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71457         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71458         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71459         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71460         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71461         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71462         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71463         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71464         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71465         (REG_NREGS):
71466         Remove.  All uses replaced by the old RE_* names.
71467         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71468         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71469         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71470         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71471         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71472         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71473         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71474         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71475         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71476         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71477         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71478         Don't bother having these macros be independent of each others'
71479         values, since they no longer exist in the POSIX name space.
71480
71481         Rename the following member names back to their old names,
71482         unless !__USE_GNU_REGEX.  All uses changed back.
71483         (buffer): Renamed from re_buffer.
71484         (allocated): Renamed from re_allocated.
71485         (used): Renamed from re_used.
71486         (syntax): Renamed from re_syntax.
71487         (fastmap): Renamed from re_fastmap.
71488         (translate): Renamed from re_translate.
71489         (can_be_null): Renamed from re_can_be_null.
71490         (regs_allocated): Renamed from re_regs_allocated.
71491         (fastmap_accurate): Renamed from re_fastmap_accurate.
71492         (no_sub): Renamed from re_no_sub.
71493         (not_bol): Renamed from re_not_bol.
71494         (not_eol): Renamed from re_not_eol.
71495         (newline_anchor): Renamed from re_newline_anchor.
71496         (num_regs): Renamed from rm_num_regs.
71497         (start): Renamed from rm_start.
71498         (end): Renamed from rm_end.
71499
71500         (free_state): Move up a bit.
71501
71502         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71503         #define to be empty.
71504         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71505         when that is what is intended.
71506         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71507         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71508         (MAX): New macro.
71509         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71510         All uses changed back to re_malloc, etc.  It's now the caller's
71511         responsibility to check for overflow; all callers changed.
71512         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71513         (re_x2nrealloc): Remove.
71514         (free_state): Remove decl.
71515
71516         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71517         (re_set_registers, re_exec):
71518         Use K&R-style defn.
71519
71520         2006-01-31  Roland McGrath  <roland@redhat.com>
71521
71522         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71523         Reported by Mike Frysinger <vapier@gentoo.org>.
71524
71525         2006-01-15  Andreas Jaeger  <aj@suse.de>
71526
71527         [BZ #1950]
71528         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71529         build_wcs_upper_buffer change.
71530         (build_wcs_upper_buffer): Change return type.
71531
71532         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71533
71534         * lib/regex_internal.h: Include <stdint.h> if available.
71535
71536         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71537
71538         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71539
71540         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71541
71542         * lib/regcomp.c: Adjust for changed secondary hash function.
71543
71544         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71545
71546         * lib/regex.h: Pretty printing.
71547         Clean up namespace a bit.
71548
71549         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71550
71551         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71552         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71553
71554         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71555                     Ulrich Drepper  <drepper@redhat.com>
71556
71557         [BZ #1302]
71558         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71559         changed.
71560         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71561
71562         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71563
71564         [BZ #281]
71565         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71566         * lib/regcomp.c: Remove unnecessary uses of
71567         unsigned RE_TRANSLATE_TYPE.
71568         * lib/regex_internal.h: Likewise.
71569         * lib/regex_internal.c: Likewise.
71570         * lib/regexec.c: Likewise.
71571         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71572
71573         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71574
71575         * lib/regexec.c (find_recover_state): Remove unnecessary
71576         initialization.
71577         (transit_state_bkref): Make DFA a const pointer.
71578         (get_subexp): Likewise.
71579         (check_arrival): Likewise.
71580         (update_cur_sifted_state): Likewise.
71581         (re_search_internal): Likewise.
71582         (prune_impossible_nodes): Likewise.
71583         (acquire_init_state_context): Likewise.
71584         (proceed_next_node): Likewise.
71585         (set_regs): Likewise.
71586         (free_fail_stack_return): Likewise.
71587         (check_arrival_expand_ecl): Mark DFA parameter as const.
71588         (check_arrival_expand_ecl_sub): Likewise.
71589         (check_subexp_limits): Likewise.
71590         (sub_epsilon_src_nodes):  Likewise.
71591         (add_epsilon_src_nodes):  Likewise.
71592         (merge_state_array): Likewise.
71593         (update_regs): Likewise.
71594         (build_trtable): Likewise.
71595         (sift_states_backward): Mark MCTX parameter as const.
71596         (build_sifted_states): Likewise.
71597         (update_cur_sifted_state): Likewise.
71598         (sift_states_mkref): Likewise.
71599         (check_arrival_expand_ecl): Mark eclosure as const.
71600         (check_dst_limits_calc_pos_1): Likewise.
71601         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71602         pointer.
71603
71604         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71605
71606         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71607         (transit_state_sb): Likewise.
71608         (transit_state_mb): Likewise.
71609         (sift_states_iter_mb): Likewise.
71610         (check_arrival_add_next_nodes): Likewise.
71611         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71612         [_LIBC] (re_search_2_stub): Use mempcpy.
71613
71614         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71615         mbrtowc for very simple UTF-8 case.
71616
71617         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71618         a pointer-to-const.
71619         (re_acquire_state_context): Likewise.
71620         * lib/regex_internal.h: Adjust prototypes.
71621
71622         * lib/regex.c: Prevent using C++ compilers.
71623
71624         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71625         (re_acquire_state_context): Likewise.
71626
71627 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * modules/regex (Depends-on): Add ssize_t.
71630
71631 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71634         translation table.
71635
71636 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71639
71640 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71641             Bruno Haible  <bruno@clisp.org>
71642
71643         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71644         <sys/types.h> and <inttypes.h>.
71645
71646 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71647
71648         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71649         `__error_t_defined', so argp.h will not typedef the former.
71650
71651 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71654         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71655         glibc names.  Even if glibc is changed to conform to POSIX, the
71656         traditional names will be available anyway, since regex depends on
71657         the extensions module.  Also, fix a longstanding typo in the
71658         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71659         reported by Emanuele Giaquinta.  Also, change sense of cached
71660         variable, so that the message makes sense.
71661
71662 2006-03-24  Simon Josefsson  <jas@extundo.com>
71663
71664         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71665         including some doc fixes.
71666         (base64_encode_alloc): Fix +1 bug on allocation failures.
71667
71668 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71669
71670         * lib/base64.c (base64_encode): Do not read past end of array with
71671         unsanitized input on systems with CHAR_BIT > 8.
71672
71673 2006-03-24  Eric Blake  <ebb9@byu.net>
71674
71675         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71676
71677 2006-03-22  Karl Berry  <karl@gnu.org>
71678
71679         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71680         * config/srclistvars.sh (COREUTILS): new var.
71681
71682 2006-03-17  Jim Meyering  <jim@meyering.net>
71683
71684         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71685         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71686
71687 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71690         no longer needs it.  Instead, check that regoff_t is as least
71691         as wide as ptrdiff_t.
71692
71693         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71694         so that our regex.h stays compatible with the installed regex.
71695         This is helpful for installers who configure --without-included-regex.
71696         Problem reported by Emanuele Giaquinta.
71697
71698 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71701         Typedef to long int, not to off_, as POSIX will likely change
71702         in that direction.
71703
71704 2006-03-15  Eric Blake  <ebb9@byu.net>
71705
71706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71707
71708 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71709
71710         * lib/argp-help.c (validate_uparams): Fix typo
71711         * lib/argp-parse.c (argp_default_options): Consistently begin help
71712         messages with a lowercase letter.
71713
71714 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71717         overrun buffers and shouldn't be used (much as gets shouldn't be
71718         used).
71719         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71720
71721 2006-03-08  Simon Josefsson  <jas@extundo.com>
71722
71723         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71724         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71725
71726 2006-03-08  Simon Josefsson  <jas@extundo.com>
71727
71728         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71729         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71730
71731 2006-03-08  Simon Josefsson  <jas@extundo.com>
71732
71733         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71734         signal that configure disabled the device.
71735
71736 2006-03-08  Simon Josefsson  <jas@extundo.com>
71737
71738         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71739         languages.
71740
71741 2006-03-07  Simon Josefsson  <jas@extundo.com>
71742
71743         * modules/getopt (Depends-on): Add unistd.
71744
71745         * modules/unistd: New file.
71746
71747 2006-03-07  Simon Josefsson  <jas@extundo.com>
71748
71749         * modules/gc-random: New file.
71750
71751 2006-03-07  Simon Josefsson  <jas@extundo.com>
71752
71753         * m4/unistd_h.m4: New file.
71754
71755 2006-03-07  Simon Josefsson  <jas@extundo.com>
71756
71757         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71758         test to be side-effect free by storing the result in the cache
71759         variable gl_cv_lib_readline, and moving the assignment of
71760         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71761         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71762
71763 2006-03-07  Simon Josefsson  <jas@extundo.com>
71764
71765         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71766         error on missing devices (the functions will return an error).
71767
71768         * m4/gc.m4: Move random stuff to gc-random.m4
71769
71770 2006-03-07  Simon Josefsson  <jas@extundo.com>
71771
71772         * lib/unistd_.h: New file.
71773
71774 2006-03-07  Simon Josefsson  <jas@extundo.com>
71775
71776         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71777
71778 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71781         Problem reported by Juan Manuel Guerrero.
71782
71783 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71786         the unistd module.
71787         * lib/getlogin_r.c: Likewise.
71788         * lib/getlogin_r.h: Likewise.
71789         * lib/glob.c: Likewise.
71790         * lib/pagealign_alloc.c: Likewise.
71791         * lib/unistd_.h: Remove; no longer needed.
71792
71793 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71794
71795         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71796         Add unistd.
71797         * modules/c-stack (Depends-on): Add unistd.
71798         * modules/getlogin_r: Likewise.
71799         * modules/glob: Likewise.
71800         * modules/pagealign_alloc: Likewise.
71801         * modules/unistd (Files): Remove lib/unistd_.h.
71802         (EXTRA_DIST): Remove.
71803         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71804         need unistd_.h.
71805         (MOSTLYCLEANFILES): Remove unistd.h-t.
71806
71807 2006-03-03  Simon Josefsson  <jas@extundo.com>
71808
71809         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71810
71811 2006-03-03  Simon Josefsson  <jas@extundo.com>
71812
71813         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71814         libidn and bison.
71815
71816 2006-03-03  Simon Josefsson  <jas@extundo.com>
71817
71818         * build-aux/maint.mk: Add indent target.
71819
71820 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71821
71822         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71823         our replacement poll.h in any case, to avoid a differing
71824         declaration from a system header.  Seen on AIX.
71825
71826 2006-03-01  Simon Josefsson  <jas@extundo.com>
71827
71828         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71829         <kasal@ucw.cz>.
71830
71831 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * modules/gettime (Depends-on): Add extensions module.
71834         * modules/nanosleep (Depends-on): Likewise.
71835         * modules/settime (Depends-on): Likewise.
71836
71837 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71840         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71841         pedantically.
71842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71843         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71844
71845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71846         not "==".  Reported by Ralf Wildenhues.
71847
71848 2006-03-01  Karl Berry  <karl@gnu.org>
71849
71850         * doc/Copyright/request-*: new files, synced from gnuorg.
71851
71852 2006-03-01  Karl Berry  <karl@gnu.org>
71853
71854         * config/srclist.txt (Copyright/*): new entries.
71855
71856 2006-02-28  Simon Josefsson  <jas@extundo.com>
71857
71858         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71859
71860 2006-02-27  Simon Josefsson  <jas@extundo.com>
71861
71862         * lib/base64.h: Indent #define's.  From Jim Meyering
71863         <jim@meyering.net>.
71864
71865 2006-02-27  Jim Meyering  <jim@meyering.net>
71866
71867         Revert the change of 2006-02-24, so these files can continue
71868         to be sync'd from gettext.
71869         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71870         of `config.h'.
71871
71872 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * modules/intprops: New file.
71875         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71876         Add intprops.
71877         * modules/getloadavg (Files): Remove lib/intprops.h.
71878         (Depends-on): Add intprops.
71879         * modules/human: Likewise.
71880         * modules/inttostr: Likewise.
71881         * modules/openat: Likewise.
71882         * modules/sig2str: Likewise.
71883         * modules/userspec: Likewise.
71884         * modules/utimecmp: Likewise.
71885         * modules/xnanosleep: Likewise.
71886         * modules/xstrtol: Likewise.
71887
71888 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71889
71890         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71891         * modules/lock-tests (TESTS): Use $(EXEEXT).
71892         * modules/tls-tests: Likewise.
71893         * modules/argp-tests: Likewise.
71894         (check_PROGRAMS): New var, replacing...
71895         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71896
71897 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71898
71899         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71900         `config.h'.
71901
71902 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71905
71906 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71907
71908         Sync from coreutils.
71909         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71910         gl_CHDIR_SAFER.
71911
71912 2006-02-22  Jim Meyering  <jim@meyering.net>
71913
71914         Sync from coreutils.
71915         * m4/chdir-safer.m4: New file.
71916
71917 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71920         AT_FDCWD exceeds INT_MAX.
71921         * lib/openat.h (AT_FDCWD): Likewise.
71922
71923 2006-02-17  Eric Blake  <address@hidden>
71924
71925         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71926
71927 2006-02-16  Simon Josefsson  <jas@extundo.com>
71928
71929         * modules/getaddrinfo (Depends-on): Add sys_socket.
71930
71931 2006-02-15  Simon Josefsson  <jas@extundo.com>
71932
71933         * build-aux/maint.mk: Add dsyntax-check rule.
71934
71935 2006-02-15  Eric Blake  <ebb9@byu.net>
71936
71937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71938         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71939         'present but cannot compile' warnings on cygwin.
71940         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71941         use ws2tcpip.h if sys/socket.h works.
71942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71943         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71944
71945 2006-02-14  Simon Josefsson  <jas@extundo.com>
71946
71947         * modules/maintainer-makefile (Files): Rename.
71948
71949         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71950         and (the local) Makefile.cfg to maint-cfg.mk.
71951
71952         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71953         to the latter.
71954
71955         * modules/maintainer-makefile: New module.
71956
71957         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71958         severaly stripped to make it possible to build it up from scratch
71959         with reliable tests.
71960
71961         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71962         fixes to permit overriding the default actions when configure and
71963         makefile are not available.
71964
71965 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         Sync from coreutils.
71968         * modules/lstat (Depends-on): Don't depend on xalloc.
71969         (License): Change from GPL to LGPL, since this is now simply a
71970         replacement for a libc function.
71971
71972 2006-02-14  Jim Meyering  <jim@meyering.net>
71973
71974         Sync from coreutils.
71975
71976         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71977         failure on deficient systems, and simplify gnulib lgpl dependencies.
71978         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71979         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71980
71981         * lib/xalloc-die.c: Remove unused definition of N_.
71982
71983 2006-02-14  Jim Meyering  <jim@meyering.net>
71984
71985         Sync from coreutils.
71986         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71987         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71988         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71989         double-quote uses of that variable, to accommodate the rare case in
71990         which getmntent is available in none of the libraries checked.  This
71991         happens at least on FreeBSD 5.0.
71992
71993 2006-02-13  Simon Josefsson  <jas@extundo.com>
71994
71995         * gnulib-tool (Usage): Fix --import, from
71996         karl@freefriends.org (Karl Berry).
71997
71998 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71999
72000         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72001
72002 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72003
72004         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72005         "autoupdate" on 2005-12-12.
72006
72007 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         * modules/closeout (Depends-on): Remove atexit.
72010
72011 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72014         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72015
72016 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72019         __EXTENSIONS__ if this causes compilation to fail.  Problem
72020         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72021         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72022
72023 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72026         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72027         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72028         All uses changed.
72029
72030 2006-01-26  Simon Josefsson  <jas@extundo.com>
72031
72032         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72033         prototype is visible on mingw32.
72034
72035         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72036         for mingw32.
72037
72038         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72039         mingw32).
72040
72041 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72044         attempt to open for write; this always fails, at least on POSIX
72045         hosts.  This reinstates the 2006-01-09 change, which was
72046         inadvertently removed.
72047
72048 2006-01-26  Bruno Haible  <bruno@clisp.org>
72049
72050         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72051         Reported by Paul Eggert.
72052
72053 2006-01-26  Bruno Haible  <bruno@clisp.org>
72054             Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * lib/stdbool_.h (_Bool)
72057         [(! (defined __cplusplus || defined __BEOS__)
72058           && !defined __GNUC__
72059           && !(defined __HP_cc || defined __xlc__
72060                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72061                || defined __sgi))]:
72062         #define to signed char in these cases too; this simplifies
72063         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72064         etc., separately) and makes it more conservative.
72065
72066 2006-01-25  Simon Josefsson  <jas@extundo.com>
72067
72068         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72069         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72070         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72071
72072 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72073
72074         * lib/argp-namefrob.h: Bugfix. Remove stray #
72075
72076 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72079         so that we test the test.
72080         Check for yet another HP-UX cc bug involving *bool |= bool.
72081
72082 2006-01-25  Karl Berry  <karl@gnu.org>
72083
72084         * config/srclist.txt (vasnprintf.c): sync lost.
72085
72086 2006-01-25  Jim Meyering  <jim@meyering.net>
72087
72088         Sync from the stable (b5) branch of coreutils:
72089
72090         * lib/fts.c (fts_children): Don't let close() clobber errno from
72091         failed fchdir().
72092
72093         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72094         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72095         a dangling symlink.  That can also happen at least for ELOOP.
72096         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72097         FYI, this bug predates the inclusion of fts.c in coreutils.
72098
72099         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72100         in their own block, so pre-c99 compilers don't object.
72101
72102         Avoid the double-free (first in fts_read, second in fts_close) that
72103         would occur when an `active' directory is made inaccessible (e.g.,
72104         via chmod a-x) during a traversal.
72105         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72106         before returning.  Reproduce this failure by
72107         mkdir -p a/b; cd a; chmod a-x . b
72108         Reported by Stavros Passas.
72109
72110 2006-01-25  Jim Meyering  <jim@meyering.net>
72111
72112         * lib/fileblocks.c: Remove more useless parentheses.
72113         * lib/readutmp.h: Likewise.
72114
72115 2006-01-25  Bruno Haible  <bruno@clisp.org>
72116
72117         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72118         warnings.
72119         Reported by Paul Eggert.
72120
72121 2006-01-25  Bruno Haible  <bruno@clisp.org>
72122
72123         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72124         rid of a trap command. For Solaris sh.
72125         Reported by Mark D. Baushke <mdb@gnu.org>.
72126
72127 2006-01-24  Simon Josefsson  <jas@extundo.com>
72128
72129         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72130         Bruno.
72131
72132 2006-01-24  Karl Berry  <karl@gnu.org>
72133
72134         * config/srclist.txt (argp-namefrob.h): sync lost.
72135
72136 2006-01-24  Jim Meyering  <jim@meyering.net>
72137
72138         * modules/openat (Files): Add lib/intprops.h.
72139         From Mark D. Baushke.
72140
72141 2006-01-24  Jim Meyering  <jim@meyering.net>
72142
72143         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72144         Reported by Mark D. Baushke.
72145
72146 2006-01-24  Jim Meyering  <jim@meyering.net>
72147
72148         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72149
72150 2006-01-24  Bruno Haible  <bruno@clisp.org>
72151
72152         * modules/strnlen (Maintainer): Change from glibc to all.
72153
72154 2006-01-24  Bruno Haible  <bruno@clisp.org>
72155
72156         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72157         Patch by Paul Eggert.
72158
72159 2006-01-24  Bruno Haible  <bruno@clisp.org>
72160
72161         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72162         already has it.
72163         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72164         2005-11-26.
72165
72166         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72167         'signed char' to avoid problems with the built-in _Bool type.
72168         Reported by Paul Eggert on 2005-11-26.
72169
72170 2006-01-24  Bruno Haible  <bruno@clisp.org>
72171
72172         * gnulib-tool (func_import): Avoid constructing complicated sed
72173         expressions inside backquote.
72174         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72175
72176 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72177
72178         These changes imported from libc.
72179         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72180         test and two separate function calls.
72181         * lib/strndup.c (__strndup): Add libc_hidden_def.
72182
72183 2006-01-23  Simon Josefsson  <jas@extundo.com>
72184
72185         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72186         Remove the test_*_SOURCES variable: automake infers it by default.
72187         * modules/tls-tests: Likewise.
72188
72189 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72190
72191         Work around porting bugs reported by Dieter in
72192         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72193         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72194         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72195         Include "getopt.h" first, to check interface.
72196         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72197         !HAVE_DECL_GETENV.
72198         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72199         (__strndup): Revert to K&R-style function dfns, the glibc style.
72200         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72201         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72202         Include strnlen.h first, to get prototype properly.
72203         (strnlen): Renamed from __strnlen.
72204         Remove weak alias.
72205
72206 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72209
72210 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * config/srclist.txt: Adjust to reflect glibc reorganization.
72213         This affects only comments.
72214
72215 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72216
72217          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72218          Reported by Bruce Korb <bkorb@gnu.org>.
72219
72220 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72223         to pacify gcc -Wswitch-default.
72224
72225 2006-01-22  Bruno Haible  <bruno@clisp.org>
72226
72227         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72228         temporary buffer for sprintf, take into account the precision also
72229         for 'd', 'i', 'u', 'o', 'x', 'X'.
72230
72231 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72232
72233         * modules/argp-tests: New module
72234         * tests/test-argp.c: New file
72235         * tests/test-argp-2.sh: New file
72236
72237 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72238
72239         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72240         (__argp_base_name): Removed
72241         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72242         typo.
72243         (__argp_base_name): Provide macro definition or extern declaration
72244         depending on the configuration
72245
72246 2006-01-20  Simon Josefsson  <jas@extundo.com>
72247
72248         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72249
72250 2006-01-20  Simon Josefsson  <jas@extundo.com>
72251
72252         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72253
72254 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72257         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72258         Suggested by Bruno Haible.
72259
72260 2006-01-20  Karl Berry  <karl@gnu.org>
72261
72262         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72263         until changes propagate, I guess.
72264
72265 2006-01-19  Simon Josefsson  <jas@extundo.com>
72266
72267         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72268
72269 2006-01-19  Simon Josefsson  <jas@extundo.com>
72270
72271         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72272
72273 2006-01-19  Simon Josefsson  <jas@extundo.com>
72274
72275         * gnulib-tool: Set check_PROGRAMS.
72276
72277         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72278         modules/des-tests, modules/gc-arcfour-tests,
72279         modules/gc-arctwo-tests, modules/gc-des-tests,
72280         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72281         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72282         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72283         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72284         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72285         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72286         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72287         test_*_SOURCES.
72288
72289 2006-01-18  Simon Josefsson  <jas@extundo.com>
72290
72291         * modules/socklen (Depends-on): Depend on sys_socket.
72292
72293 2006-01-18  Simon Josefsson  <jas@extundo.com>
72294
72295         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72296         modules/des-tests, modules/gc-arcfour-tests,
72297         modules/gc-arctwo-tests, modules/gc-des-tests,
72298         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72299         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72300         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72301         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72302         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72303         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72304         $(EXEEXT) to automake TESTS variable, for mingw32.
72305
72306 2006-01-17  Simon Josefsson  <jas@extundo.com>
72307
72308         * modules/socklen (Include): Need sys/socket.h.
72309
72310 2006-01-17  Bruno Haible  <bruno@clisp.org>
72311
72312         * modules/ssize_t (Include): Add <sys/types.h>.
72313
72314 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72317         it's not portable and it doesn't work with cross-compiles.
72318         Problem reported by Bruno Haible.  Fix missing-$ typo in
72319         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72320         -zignore from being used with Sun's C compiler.
72321
72322 2006-01-12  Simon Josefsson  <jas@extundo.com>
72323
72324         * lib/base64.c: Fix warning, reported by Bruno Haible
72325         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72326
72327 2006-01-12  Bruno Haible  <bruno@clisp.org>
72328
72329         * modules/ldd: New file.
72330         * build-aux/ldd.sh.in: New file.
72331         * MODULES.html.sh (Support for building libraries and executables): Add
72332         ldd.
72333
72334 2006-01-12  Bruno Haible  <bruno@clisp.org>
72335
72336         * m4/ldd.m4: New file.
72337
72338 2006-01-12  Bruno Haible  <bruno@clisp.org>
72339
72340         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72341         endless loop while replacing $auxdir with build-aux.
72342
72343 2006-01-11  Simon Josefsson  <jas@extundo.com>
72344
72345         * lib/stdint_.h (SIZE_MAX): Add missing (.
72346
72347 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         Sync from coreutils.
72350         * lib/md5.c: Fix commentary typos.
72351         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72352         * lib/md5.h (__attribute__): Remove; unused.
72353         * lib/sha1.c: Fix commentary to match md5 better.
72354         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72355         so that we don't need to worry about alignment.  All uses changed.
72356         This merges the 2005-10-28 md5 change into sha1.
72357
72358 2006-01-11  Jim Meyering  <jim@meyering.net>
72359
72360         Sync from coreutils.
72361         * lib/md5.c (OP): Fix spacing.
72362
72363 2006-01-11  Bruno Haible  <bruno@clisp.org>
72364
72365         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72366         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72367         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72368
72369 2006-01-11  Bruno Haible  <bruno@clisp.org>
72370
72371         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72372         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72373         the "early" section as well.
72374
72375 2006-01-11  Bruno Haible  <bruno@clisp.org>
72376
72377         Avoid "ar: no archive members specified" error on MacOS X.
72378         * gnulib-tool (func_modules_add_dummy): New function.
72379         (func_import, func_create_testdir): Invoke it.
72380
72381 2006-01-11  Bruno Haible  <bruno@clisp.org>
72382
72383         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72384         with $auxdir in AC_CONFIG_FILES statements.
72385
72386 2006-01-11  Bruno Haible  <bruno@clisp.org>
72387
72388         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72389         Initialize also noinst_HEADERS to empty.
72390
72391 2006-01-11  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72394         variables.
72395         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72396         autoreconf.
72397
72398 2006-01-11  Bruno Haible  <bruno@clisp.org>
72399
72400         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72401         overridable by the user.
72402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72403
72404 2006-01-10  Simon Josefsson  <jas@extundo.com>
72405
72406         * modules/sys_socket: New file.
72407
72408 2006-01-10  Simon Josefsson  <jas@extundo.com>
72409
72410         * m4/sys_socket_h.m4: New file.
72411
72412 2006-01-10  Simon Josefsson  <jas@extundo.com>
72413
72414         * lib/socket_.h: New file.
72415
72416 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72417
72418         * modules/readutmp (Maintainer): Add myself.
72419
72420 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72423         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72424         People who are still concerned with buggy memcmp implementations
72425         can invoke gl_FUNC_MEMCMP themselves.
72426
72427 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/regex_internal.h (BITSET_WORD_BITS):
72430         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72431         preprocessor mishandles large unsigned values as if they were signed.
72432         Problem reported by Claudio Fontana in
72433         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72434
72435 2006-01-10  Jim Meyering  <jim@meyering.net>
72436
72437         Avoid the double-free (first in fts_read, second in fts_close) that
72438         would occur when an `active' directory is made inaccessible (e.g.,
72439         via chmod a-x) during a traversal.
72440         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72441         before returning.  Reproduce this failure by
72442         mkdir -p a/b; cd a; chmod a-x . b
72443         Reported by Stavros Passas.
72444
72445         Sync from coreutils.
72446         * lib/sha1.c: Tweak grammar in a comment.
72447
72448 2006-01-10  Jim Meyering  <jim@meyering.net>
72449
72450         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72451         Patch by Joerg Sonnenberger.
72452
72453 2006-01-10  Bruno Haible  <bruno@clisp.org>
72454
72455         * modules/readutmp: Depend on module free.
72456         * modules/strtok_r: Depend on module restrict.
72457
72458 2006-01-10  Bruno Haible  <bruno@clisp.org>
72459
72460         * modules/gettext (configure.ac): Add an invocation of
72461         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72462
72463 2006-01-10  Bruno Haible  <bruno@clisp.org>
72464
72465         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72466         Reported by Werner Lemberg <wl@gnu.org>.
72467
72468 2006-01-10  Bruno Haible  <bruno@clisp.org>
72469
72470         * lib/localcharset.c: Update from GNU gettext.
72471
72472 2006-01-10  Bruno Haible  <bruno@clisp.org>
72473
72474         * lib/argp.h (__const): Remove macro. Use const instead.
72475         * lib/argp-fmtstream.h (__const): Likewise.
72476         * lib/glob_.h (__const): Remove macro.
72477         * lib/glob-libc.h: Use const instead of __const.
72478
72479 2006-01-10  Bruno Haible  <bruno@clisp.org>
72480
72481         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72482         variable.
72483         Needed to avoid an automake error regarding the 'gettext' module.
72484
72485 2006-01-09  Simon Josefsson  <jas@extundo.com>
72486
72487         * modules/inet_ntop (Depends-on): Add restrict.
72488
72489 2006-01-09  Simon Josefsson  <jas@extundo.com>
72490
72491         * modules/gc-rijndael-tests (License): Put under LGPL.
72492
72493         * modules/gc-des-tests (License): Likewise.
72494
72495         * modules/gc-arcfour-tests (License): Likewise.
72496
72497         * modules/gc-arctwo-tests (License): Likewise.
72498
72499         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72500
72501         * modules/gc-hmac-sha1-tests (Files): Likewise.
72502
72503         * modules/gc-hmac-md5-tests (License): Likewise.
72504
72505         * modules/gc-sha1-tests (License): Likewise.
72506
72507         * modules/gc-md5-tests (License): Likewise.
72508
72509         * modules/gc-md4-tests (License): Likewise.
72510
72511         * modules/gc-md2-tests (License): Likewise.
72512
72513         * modules/gc-tests (License): Likewise.
72514
72515         * modules/des-tests (License): Likewise.
72516
72517         * modules/md4-tests (License): Likewise.
72518
72519         * modules/md2-tests (License): Likewise.
72520
72521 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         Sync from coreutils:
72524
72525         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72526         * modules/lib-ignore: New file.
72527         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72528         chdir-safer.m4, lchmod.m4.
72529         * modules/openat: Add mkdirat.c, openat-priv.h.
72530
72531 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72532
72533         Sync from coreutils.
72534         * m4/lib-ignore.m4: New file.
72535         * m4/lchmod.m4: New file.
72536
72537 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         Sync from coreutils.
72540         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72541         for write access: POSIX says that must fail.
72542         * lib/fts.c (diropen): Likewise.
72543         * lib/save-cwd.c (save_cwd): Likewise.
72544         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72545         well, for minor improvements on hosts that lack O_DIRECTORY.
72546         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72547         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72548         Fall back on chown if open failed with EACCES.
72549
72550         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72551         Report an error at compile-time if only a 1-second nominal clock
72552         resolution is found.
72553
72554         * lib/lchmod.h: New file.
72555         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72556         (make_dir_parents): Use lchown rather than chown, and
72557         lchmod rather than chmod.
72558
72559         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72560         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72561         "proc" reported by n0dalus.
72562
72563         * lib/mountlist.c: Include <limits.h>.
72564         (dev_from_mount_options)
72565         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72566         New function.  It no longer assumes "dev=" has the System V meaning
72567         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72568         (read_file_system_list)
72569         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72570         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72571         dev= in that case.
72572
72573         * lib/posixtm.h (PDS_PRE_2000): New macro.
72574         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72575         allow_century.  All usages changed.  Reject dates outside the range
72576         1969-1999 if PDS_PRE_2000 is used.
72577
72578 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         Sync from coreutils.
72581         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72582         (Time of day items): Mention the possibility of leap seconds.
72583         Problem reported by Dr. David Alan Gilbert.
72584
72585 2006-01-09  Jim Meyering  <jim@meyering.net>
72586
72587         Sync from coreutils.
72588
72589         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72590
72591         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72592
72593         * lib/modechange.c (mode_compile): Reject an invalid mode string
72594         that starts with an octal digit.  From Andreas Gruenbacher.
72595
72596         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72597         and dup to open_safer and dup_safer, respectively.
72598         (openat_permissive): Fix typo in comment.
72599
72600         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72601         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72602         (_): Remove; no longer needed.
72603         (openat): Renamed from rpl_openat; no need for rpl_openat
72604         since openat.h renames openat for us.
72605         Replace most of the body with a call to openat_permissive,
72606         to avoid duplicate code.
72607         Port to (probably hypothetical) environments were mode_t is
72608         wider than int.
72609         (openat_permissive): Require mode arg, so that we can check
72610         types better.  Put it just after flags.  Change cwd failure
72611         indicator from pointer-to-bool to pointer-to-errno-value.
72612         All callers changed.
72613         Invoke openat_save_fail and/or openat_restore_fail if
72614         cwd_errno is null, so that openat can call us.
72615         (openat_permissive, fdopendir, fstatat, unlinkat):
72616         Simplify errno handling to avoid some duplicate code,
72617         as it's OK to set errno on success.
72618         * lib/openat.h: Revamp code so that function macros depend on
72619         __OPENAT_PREFIX only, not also on AT_FDCWD.
72620         (openat_ro): Remove.  Caller changed to use openat_permissive.
72621         (openat_permissive): Now a macro, if not a function.
72622         (openat_restore_fail, openat_save_fail): Now always functions,
72623         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72624
72625         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72626         and openat.c.
72627         * lib/mkdirat.c: Include openat-priv.h.
72628         Remove definitions of macros defined therein.
72629         * lib/openat.c: Likewise.
72630
72631         * lib/mkdirat.c (mkdirat): New file and function.
72632         * lib/openat.h (mkdirat): Declare.
72633
72634         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72635
72636         * lib/openat.h (openat_permissive): Declare.
72637         (openat_ro): Define.
72638
72639         * lib/openat.c (EXPECTED_ERRNO): New macro.
72640         (openat_permissive): New function -- used in remove.c rewrite.
72641         (all functions): Set errno just before returning, only if there
72642         was an actual failure.
72643         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72644
72645         Emulate openat-family functions using Linux's procfs, if possible.
72646         Idea and some code based on Ulrich Drepper's glibc changes.
72647
72648         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72649         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72650         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72651         before falling back on save_cwd and restore_cwd.
72652         (fdopendir, fstatat, unlinkat): Likewise.
72653
72654         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72655         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72656
72657         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72658         as second argument to va_arg.  Otherwise, some versions of gcc
72659         warn that `if this code is reached, the program will abort'.
72660
72661 2006-01-09  Jim Meyering  <jim@meyering.net>
72662
72663         Sync from coreutils.
72664         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72665         Require openat-priv.h.
72666
72667 2006-01-09  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/strnlen (Include): Use strnlen.h.
72670
72671 2006-01-09  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72674
72675 2006-01-09  Bruno Haible  <bruno@clisp.org>
72676
72677         * lib/sysexit_.h (EX_OK): New macro.
72678         Suggested by Martin Lambers <marlam@marlam.de>.
72679
72680 2006-01-09  Bruno Haible  <bruno@clisp.org>
72681
72682         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72683         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72684
72685 2006-01-09  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72688         numbers.
72689
72690 2006-01-09  Bruno Haible  <bruno@clisp.org>
72691
72692         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72693         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72694         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72695         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72696
72697 2006-01-09  Bruno Haible  <bruno@clisp.org>
72698
72699         * build-aux/javacomp.sh.in: New file, moved from lib/.
72700         * modules/javacomp-script (Files): Update.
72701         (configure.ac): Add AC_CONFIG_FILES invocation.
72702         (EXTRA_DIST): Remove variable.
72703
72704         * build-aux/javaexec.sh.in: New file, moved from lib/.
72705         * modules/javaexec (Files): Update.
72706         (configure.ac): Add AC_CONFIG_FILES invocation.
72707         (EXTRA_DIST): Remove javaexec.sh.in.
72708
72709         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72710         * modules/csharpcomp-script (Files): Update.
72711         (configure.ac): Add AC_CONFIG_FILES invocation.
72712         (EXTRA_DIST): Remove variable.
72713
72714         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72715         * modules/csharpexec (Files): Update.
72716         (configure.ac): Add AC_CONFIG_FILES invocation.
72717         (EXTRA_DIST): Remove csharpexec.sh.in.
72718
72719 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72720
72721         Sync from coreutils.
72722
72723         Add POSIX ACL support
72724         * lib/acl.h (copy_acl, set_acl): Add declarations.
72725         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72726         systems other than Linux.
72727         (chmod_or_fchmod): New function: use fchmod when possible,
72728         and chmod otherwise.
72729         (file_has_acl): Add a POSIX ACL implementation, with a
72730         Linux-specific subcase.
72731         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72732         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72733         acls are unsupported.
72734         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72735         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72736         are unsupported.
72737
72738 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72739
72740         Sync from coreutils.
72741         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72742
72743 2006-01-07  Bruno Haible  <bruno@clisp.org>
72744
72745         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72746         gl_EARLY.
72747
72748 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72751         Problem reported for Mingw by Mark Junker.
72752
72753 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         * README: Gnulib normally doesn't generate a tarball.
72756
72757 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72760         long int, not int, for nanosecond counts, so that people who are
72761         used to POSIX struct timespec won't be surprised.  Reported by Jim
72762         Meyering.
72763
72764 2005-12-28  Bruno Haible  <bruno@clisp.org>
72765
72766         * build-aux/config.rpath: Update from GNU gettext.
72767
72768 2005-12-16  Jim Meyering  <jim@meyering.net>
72769
72770         * modules/fprintftime: New module.
72771         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72772
72773 2005-12-16  Jim Meyering  <jim@meyering.net>
72774
72775         * m4/fprintftime.m4: New file.
72776
72777 2005-12-16  Jim Meyering  <jim@meyering.net>
72778
72779         * lib/fprintftime.c, lib/fprintftime.h: New files.
72780
72781 2005-12-15  Simon Josefsson  <jas@extundo.com>
72782
72783         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72784         new m4/socklen.m4.
72785
72786 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72787
72788         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72789         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72790
72791 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72792
72793         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72794         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72795         struct uparams is valid. Fall back to the default values if it is
72796         not.
72797
72798 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72799
72800         * modules/argp (Files): Add argp-pin.c
72801         (Depends-on): dirname
72802         (lib_SOURCES): Add argp-pin.c
72803
72804 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72805
72806         * m4/argp.m4:  Check if program_invocation_name and
72807         program_invocation_short_name are declared and define appropriate
72808         macros if they are not.
72809
72810 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72811
72812         * lib/argp-help.c (__argp_base_name): New function
72813         (__argp_short_program_name): Rewrite using __argp_base_name
72814         * lib/argp-namefrob.h: Define program_invocation_name and
72815         program_invocation_short_name if requested
72816         (__argp_base_name): Add prototype
72817         * lib/argp-parse.c (argp_def): Use gettext wrappers
72818         (argp_default_parser): Use __argp_base_name
72819         * lib/argp-pin.c: New file. Defines program_invocation_name and
72820         program_invocation_short_name on systems that lack them.
72821
72822 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72825         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72826         porting problem reported by Georg Schwarz in
72827         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72828
72829 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72830
72831         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72832         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72833         porting problem reported by Georg Schwarz in
72834         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72835
72836 2005-12-05  Bruno Haible  <bruno@clisp.org>
72837
72838         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72839         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72840         Reported by Mark Junker <mjscod@gmx.de>.
72841
72842 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72845         Use implementation from Albert Chin, with some
72846         comments/corrections by Stepan Kasal and myself.
72847
72848 2005-12-02  Bruno Haible  <bruno@clisp.org>
72849
72850         * gnulib-tool (func_import): Accept GPLed build tool modules when
72851         --lgpl is given.
72852         * modules/csharpcomp-script: New file.
72853         * modules/csharpcomp: Depend on it.
72854         * modules/javacomp-script: New file.
72855         * modules/javacomp: Depend on it.
72856         Suggested by Simon Josefsson.
72857
72858 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72861         statement, to work around an HP-UX 10.20 compiler bug reported by
72862         Peter O'Gorman.
72863
72864 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * modules/savedir (Depends-on): Add openat.
72867
72868 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72871         (uintmax_t) [defined uintmax_t]: Do not declare.
72872         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72873         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72874         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72875         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72876         sake of portability to weird hosts that C allows (though we don't
72877         know of any practical examples).
72878
72879         * lib/savedir.h (fdsavedir): New decl.
72880         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72881         contains most of the former guts of savedir.
72882         (savedir): Use savedirstream.
72883         Include "openat.h".
72884
72885 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72886
72887         * modules/obstack (Files): Add m4/ulonglong.m4.
72888         Problem reported by Davide Angelocola.
72889
72890 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72893         coreutils no longer futzes with rounding modes.
72894
72895 2005-11-14  Jim Meyering  <jim@meyering.net>
72896
72897         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72898         replacement of mkstemp.
72899
72900 2005-11-10  Simon Josefsson  <jas@extundo.com>
72901
72902         * lib/readline.c: Remove EOL.
72903
72904 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * modules/gethrxtime (Depends-on): Add gettime.
72907
72908 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72911         or gettimeofday; no longer needed.
72912
72913 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72914
72915         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72916         time business.
72917         (gethrxtime) [! (HAVE_NANOUPTIME
72918         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72919         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72920         our own approximation.
72921
72922 2005-11-08  Eric Blake  <ebb9@byu.net>
72923
72924         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72925
72926 2005-11-08  Eric Blake  <ebb9@byu.net>
72927
72928         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72929
72930 2005-11-04  Bruno Haible  <bruno@clisp.org>
72931
72932         * gnulib-tool: Implement --update mode.
72933
72934 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72935
72936         Fix porting problem reported by Theodoros V. Kalamatianos.
72937         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72938         Don't assume that futimes failing means we must fail.
72939
72940 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72943         variables to suggest the intended function of the PATH_MAX check.
72944
72945 2005-10-30  Kean Johnston  <jkj@sco.com>
72946
72947         Trivial changes to support SCO systems.
72948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72949         as PATH_MAX.
72950         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72951         where __ptr is null when no I/O is pending.
72952
72953 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72956         leave errno alone.  Problem reported by Dmitry V. Levin.
72957
72958 2005-10-28  Simon Josefsson  <jas@extundo.com>
72959
72960         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72961         Test more.
72962
72963         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72964
72965         * modules/md2, modules/md2-tests: New files.
72966
72967 2005-10-28  Simon Josefsson  <jas@extundo.com>
72968
72969         * m4/inet_ntop.m4: More tests.
72970
72971         * m4/gc-md2.m4, md2.m4: New file.
72972
72973 2005-10-28  Simon Josefsson  <jas@extundo.com>
72974
72975         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72976         "restrict" keywords, as per POSIX.  Protect the function
72977         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72978         Don't use K&R prototypes.  Check the sprintf return values.
72979         Re-define EAFNOSUPPORT if not present.  Indent.
72980
72981         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72982         suggested by Bruno Haible <bruno@clisp.org>.
72983
72984         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72985
72986         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72987
72988         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72989         libgcrypt).
72990
72991         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72992
72993         * lib/md2.h, lib/md2.c: New files.
72994
72995 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72998         errno alone.  Problem reported by Frederic Jolliton.
72999
73000 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * modules/verify (License): Change from GPL to LGPL.  This is a
73003         tiny module and there are apparently near-equivalents that are
73004         under the BSD license.
73005
73006 2005-10-24  Simon Josefsson  <jas@extundo.com>
73007
73008         * modules/sha1: Relicense to LGPL.
73009
73010 2005-10-24  Simon Josefsson  <jas@extundo.com>
73011
73012         * lib/md4.h: Shrink buffer size, now that we changed the type.
73013
73014 2005-10-23  Simon Josefsson  <jas@extundo.com>
73015
73016         * gnulib-tool (func_import): Fix --tests-base.
73017
73018 2005-10-22  Simon Josefsson  <jas@extundo.com>
73019
73020         * modules/arcfour (Depends-on): Need stdint.
73021
73022 2005-10-22  Simon Josefsson  <jas@extundo.com>
73023
73024         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73025         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73026
73027 2005-10-22  Simon Josefsson  <jas@extundo.com>
73028
73029         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73030         suggested by Bruno Haible <bruno@clisp.org>.
73031
73032 2005-10-22  Simon Josefsson  <jas@extundo.com>
73033
73034         * lib/crc.h: Include stddef.h, for size_t.
73035
73036 2005-10-22  Simon Josefsson  <jas@extundo.com>
73037
73038         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73039         arcfour_context struct (simplify test vector testing in GNU
73040         Shishi).
73041
73042 2005-10-21  Simon Josefsson  <jas@extundo.com>
73043
73044         * modules/des, modules/des-tests: New files.
73045
73046         * modules/gc-des, modules/gc-des-tests: New files.
73047
73048         * tests/test-des.c, tests/test-gc-des.c: New file.
73049
73050 2005-10-21  Simon Josefsson  <jas@extundo.com>
73051
73052         * modules/arctwo, modules/arctwo-tests: New files.
73053
73054         * tests/test-arctwo.c: New file.
73055
73056         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73057
73058         * tests/test-gc-arctwo.c: New file.
73059
73060 2005-10-21  Simon Josefsson  <jas@extundo.com>
73061
73062         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73063         Bruno Haible <bruno@clisp.org>.
73064
73065         * m4/gc-des.m4: New file.
73066
73067 2005-10-21  Simon Josefsson  <jas@extundo.com>
73068
73069         * m4/arctwo.m4: New file.
73070
73071         * m4/gc-arctwo.m4: New file.
73072
73073 2005-10-21  Simon Josefsson  <jas@extundo.com>
73074
73075         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73076         block.
73077
73078 2005-10-21  Simon Josefsson  <jas@extundo.com>
73079
73080         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73081         <bruno@clisp.org>.
73082
73083         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73084
73085         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73086         Bruno Haible <bruno@clisp.org>.
73087
73088         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73089         <bruno@clisp.org>.
73090
73091 2005-10-21  Simon Josefsson  <jas@extundo.com>
73092
73093         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73094
73095 2005-10-21  Simon Josefsson  <jas@extundo.com>
73096
73097         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73098
73099 2005-10-21  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/des.h, lib/des.c: New files.
73102
73103         * lib/gc-gnulib.c: Support DES.c
73104
73105 2005-10-21  Simon Josefsson  <jas@extundo.com>
73106
73107         * lib/arctwo.h, lib/arctwo.c: New files.
73108
73109         * lib/gc-gnulib.c: Support ARCTWO.
73110
73111 2005-10-21  Simon Josefsson  <jas@extundo.com>
73112
73113         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73114         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73115
73116 2005-10-21  Simon Josefsson  <jas@extundo.com>
73117
73118         * gnulib-tool (func_import, func_create_testdir): Define automake
73119         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73120         Makefile.am snippet),
73121         suggested by Bruno Haible <bruno@clisp.org>.
73122
73123         * modules/gc (Makefile.am): Use it.
73124
73125 2005-10-21  Bruno Haible  <bruno@clisp.org>
73126
73127         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73128         patch.
73129
73130 2005-10-19  Simon Josefsson  <jas@extundo.com>
73131
73132         * tests/test-gc-rijndael.c: New file.
73133
73134         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73135
73136 2005-10-19  Simon Josefsson  <jas@extundo.com>
73137
73138         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73139         interface too.
73140
73141 2005-10-19  Simon Josefsson  <jas@extundo.com>
73142
73143         * tests/test-gc-arcfour.c: New file.
73144
73145         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73146
73147 2005-10-19  Simon Josefsson  <jas@extundo.com>
73148
73149         * modules/gc-md4, modules/gc-md4-tests: New file.
73150
73151         * tests/test-gc-md4.c: New file.
73152
73153 2005-10-19  Simon Josefsson  <jas@extundo.com>
73154
73155         * m4/gc-md4.m4: New file.
73156
73157 2005-10-19  Simon Josefsson  <jas@extundo.com>
73158
73159         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73160         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73161         <kasal@ucw.cz>.
73162
73163 2005-10-19  Simon Josefsson  <jas@extundo.com>
73164
73165         * m4/gc-arcfour.m4: New file.
73166
73167         * m4/gc-rijndael.m4: New file.
73168
73169 2005-10-19  Simon Josefsson  <jas@extundo.com>
73170
73171         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73172
73173 2005-10-19  Simon Josefsson  <jas@extundo.com>
73174
73175         * lib/gc-gnulib.c: Support ARCFOUR.
73176
73177 2005-10-19  Simon Josefsson  <jas@extundo.com>
73178
73179         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73180         support.
73181
73182         * lib/gc.h: Add ECB enum type.
73183
73184         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73185
73186 2005-10-18  Simon Josefsson  <jas@extundo.com>
73187
73188         * tests/test-md5.c: New file.
73189
73190         * modules/md5-tests: New file.
73191
73192 2005-10-18  Simon Josefsson  <jas@extundo.com>
73193
73194         * tests/test-md4.c: New file.
73195
73196         * modules/md4, modules/md4-tests: New files.
73197
73198 2005-10-18  Simon Josefsson  <jas@extundo.com>
73199
73200         * m4/md4.m4: New file.
73201
73202 2005-10-18  Simon Josefsson  <jas@extundo.com>
73203
73204         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73205
73206 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73207
73208         * gnulib-tool (func_create_testdir): Omit the second check whether
73209         BUILT_SOURCES in nonempty.
73210
73211 2005-10-17  Simon Josefsson  <jas@extundo.com>
73212
73213         * tests/test-rijndael.c: New file.
73214
73215 2005-10-17  Simon Josefsson  <jas@extundo.com>
73216
73217         * modules/sha1: Depend on stdint instead of md5.
73218
73219         * modules/md5: Depend on stdint, remove uint32_t.
73220
73221 2005-10-17  Simon Josefsson  <jas@extundo.com>
73222
73223         * modules/gc-sha1-tests: New file.
73224
73225         * tests/test-gc-sha1.c: New file.
73226
73227 2005-10-17  Simon Josefsson  <jas@extundo.com>
73228
73229         * m4/md5.m4: Remove call to uint32_t.m4.
73230
73231 2005-10-17  Simon Josefsson  <jas@extundo.com>
73232
73233         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73234
73235         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73236         md5.h.
73237
73238         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73239
73240         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73241
73242 2005-10-17  Simon Josefsson  <jas@extundo.com>
73243
73244         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73245
73246 2005-10-17  Simon Josefsson  <jas@extundo.com>
73247
73248         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73249
73250 2005-10-17  Simon Josefsson  <jas@extundo.com>
73251
73252         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73253
73254         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73255
73256 2005-10-17  Bruno Haible  <bruno@clisp.org>
73257
73258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73259         that it can also be used in a test.
73260
73261 2005-10-16  Bruno Haible  <bruno@clisp.org>
73262
73263         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73264         TESTS_ENVIRONMENT, so that individual tests can augment it.
73265
73266         * gnulib-tool (func_create_testdir): Use an intermediate target for
73267         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73268         macros, like $(ALLOCA_H), which cannot be passed through the command
73269         line.
73270
73271 2005-10-15  Simon Josefsson  <jas@extundo.com>
73272
73273         * modules/rijndael-tests: New file.
73274
73275         * modules/rijndael: New file.
73276
73277 2005-10-15  Simon Josefsson  <jas@extundo.com>
73278
73279         * m4/rijndael.m4: New file.
73280
73281 2005-10-15  Simon Josefsson  <jas@extundo.com>
73282
73283         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73284
73285         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73286
73287 2005-10-14  Simon Josefsson  <jas@extundo.com>
73288
73289         * tests/test-arcfour.c: New file.
73290
73291         * modules/arcfour, modules/arcfour-tests: New files.
73292
73293 2005-10-14  Simon Josefsson  <jas@extundo.com>
73294
73295         * m4/arcfour.m4: New file.
73296
73297 2005-10-14  Simon Josefsson  <jas@extundo.com>
73298
73299         * lib/arcfour.h, lib/arcfour.c: New files.
73300
73301 2005-10-14  Roland McGrath  <roland@redhat.com>
73302
73303         Import from libc.  [BZ #1331]
73304         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73305         macro argument.
73306         Reported by Matej Vela <vela@debian.org>.
73307
73308 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73309
73310         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73311         include <wchar.h>; no longer needed.
73312
73313 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73316
73317 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73318         and  Ulrich Drepper  <drepper@redhat.com>
73319
73320         Import from libc.
73321         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73322         instead of inline stream orientation test and two separate
73323         function calls.  Pay no attention to USE_IN_LIBIO.
73324
73325 2005-10-13  Simon Josefsson  <jas@extundo.com>
73326
73327         * modules/gc-hmac-md5-tests: New file.
73328
73329         * tests/test-gc-hmac-sha1.c: New file.
73330
73331         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73332
73333         * modules/gc-hmac-md5-tests: New file.
73334
73335         * tests/test-gc-md5.c: New file.
73336
73337         * modules/gc-md5-tests: New file.
73338
73339 2005-10-13  Simon Josefsson  <jas@extundo.com>
73340
73341         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73342         Move memory allocation outside of loop.
73343
73344 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73347         intermediate directory is in a read-only file system.  Problem
73348         reported by Eric Blake.
73349
73350 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73351
73352         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73353
73354 2005-10-12  Simon Josefsson  <jas@extundo.com>
73355
73356         * tests/test-hmac-sha1.c: New file.
73357
73358         * modules/hmac-sha1-tests: New file.
73359
73360         * modules/hmac-sha1: New file.
73361
73362 2005-10-12  Simon Josefsson  <jas@extundo.com>
73363
73364         * modules/gc-sha1: New file.
73365
73366 2005-10-12  Simon Josefsson  <jas@extundo.com>
73367
73368         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73369
73370         * tests/test-gc-pbkdf2-sha1.c: New file.
73371
73372 2005-10-12  Simon Josefsson  <jas@extundo.com>
73373
73374         * modules/gc-md5, modules/gc-hmac-md5: New files.
73375
73376         * modules/gc (Files): Remove md5, memxor and hmac files.
73377
73378 2005-10-12  Simon Josefsson  <jas@extundo.com>
73379
73380         * m4/gc-pbkdf2-sha1.m4: New file.
73381
73382         * m4/gc-hmac-sha1.m4: New file.
73383
73384         * m4/gc-sha1: New file.
73385
73386         * m4/hmac-sha1.m4: New file.
73387
73388 2005-10-12  Simon Josefsson  <jas@extundo.com>
73389
73390         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73391
73392         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73393
73394 2005-10-12  Simon Josefsson  <jas@extundo.com>
73395
73396         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73397         suggested by Bruno Haible <bruno@clisp.org>.
73398
73399 2005-10-12  Simon Josefsson  <jas@extundo.com>
73400
73401         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73402
73403 2005-10-12  Simon Josefsson  <jas@extundo.com>
73404
73405         * lib/gc-pbkdf2-sha1.c: New file.
73406
73407         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73408
73409 2005-10-12  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73412
73413         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73414
73415 2005-10-12  Simon Josefsson  <jas@extundo.com>
73416
73417         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73418         GC_USE_HMAC_MD5, respectively.
73419
73420         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73421         (gc_md5): Fix typo.
73422
73423         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73424
73425         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73426
73427         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73428
73429 2005-10-12  Bruno Haible  <bruno@clisp.org>
73430
73431         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73432         Reported by Stepan Kasal <kasal@ucw.cz>.
73433
73434 2005-10-11  Simon Josefsson  <jas@extundo.com>
73435
73436         * tests/test-crc.c: New file.
73437
73438         * modules/crc, modules/crc-tests: New files.
73439
73440 2005-10-11  Simon Josefsson  <jas@extundo.com>
73441
73442         * m4/crc.m4: New file.
73443
73444 2005-10-11  Simon Josefsson  <jas@extundo.com>
73445
73446         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73447
73448         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73449
73450         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73451
73452 2005-10-11  Simon Josefsson  <jas@extundo.com>
73453
73454         * lib/crc.h, lib/crc.c: New files.
73455
73456         * lib/gc.h (gc_hash_buffer): Add doc.
73457
73458 2005-10-11  Bruno Haible  <bruno@clisp.org>
73459
73460         * modules/c-strcasestr: New file.
73461         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73462
73463 2005-10-11  Bruno Haible  <bruno@clisp.org>
73464
73465         * modules/c-strcase: New file.
73466         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73467
73468 2005-10-11  Bruno Haible  <bruno@clisp.org>
73469
73470         * lib/strcasecmp.c: Include limits.h.
73471         (strcasecmp): Avoid integer overflow on exotic platforms.
73472         * lib/strncasecmp.c: Include limits.h.
73473         (strncasecmp): Avoid integer overflow on exotic platforms.
73474         Reported by Paul Eggert.
73475
73476 2005-10-11  Bruno Haible  <bruno@clisp.org>
73477
73478         * lib/c-strcasestr.h: New file, from GNU gettext.
73479         * lib/c-strcasestr.c: New file, from GNU gettext.
73480
73481 2005-10-11  Bruno Haible  <bruno@clisp.org>
73482
73483         * lib/c-strcase.h: New file, from GNU gettext.
73484         * lib/c-strcasecmp.c: New file, from GNU gettext.
73485         * lib/c-strncasecmp.c: New file, from GNU gettext.
73486
73487 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73488
73489         * modules/mempcpy (License): GPL -> LGPL.
73490         * modules/strchrnul (License): Likewise.
73491         * modules/sysexits (License): Likewise.
73492
73493 2005-10-08  Simon Josefsson  <jas@extundo.com>
73494
73495         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73496
73497 2005-10-07  Simon Josefsson  <jas@extundo.com>
73498
73499         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73500
73501 2005-10-06  Simon Josefsson  <jas@extundo.com>
73502
73503         * tests/test-hmac-md5.c: New file.
73504
73505         * modules/hmac-md5-tests: New file.
73506
73507         * modules/hmac-md5: New file.
73508
73509 2005-10-06  Simon Josefsson  <jas@extundo.com>
73510
73511         * m4/hmac-md5.m4: New file.
73512
73513         * m4/memxor.m4: Require gl_C_RESTRICT.
73514
73515 2005-10-06  Simon Josefsson  <jas@extundo.com>
73516
73517         * lib/memxor.c (memxor): Avoid casts and warnings.
73518
73519 2005-10-06  Simon Josefsson  <jas@extundo.com>
73520
73521         * lib/hmac-md5.c: New file.
73522
73523         * lib/hmac.h: New file.
73524
73525 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73528         promotes to int, not unsigned int, to catch the AIX 5.3
73529         compiler bug.
73530
73531 2005-10-05  Simon Josefsson  <jas@extundo.com>
73532
73533         * modules/memxor: New file.
73534
73535         * modules/iconv (Files): Move config.rpath to havelib, it is used
73536         there.
73537
73538         * modules/havelib (Files): Add config.rpath.
73539
73540 2005-10-05  Simon Josefsson  <jas@extundo.com>
73541
73542         * m4/memxor.m4: New file.
73543
73544 2005-10-05  Simon Josefsson  <jas@extundo.com>
73545
73546         * lib/memxor.c (memxor): Fix compiler error.
73547
73548         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73549         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73550
73551         * lib/memxor.h, lib/memxor.c: New files.
73552
73553         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73554         we assume all systems have it, suggested by Jim Meyering
73555         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73556         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73557         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73558         same reasons.
73559
73560 2005-10-05  Simon Josefsson  <jas@extundo.com>
73561
73562         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73563
73564 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73567         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73568         needed, since the source code now assumes these .h files.
73569
73570 2005-10-05  Derek Price  <derek@ximbiot.com>
73571
73572         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73573
73574 2005-10-05  Bruno Haible  <bruno@clisp.org>
73575
73576         * modules/stdint (License): Change to LGPL.
73577
73578 2005-10-04  Simon Josefsson  <jas@extundo.com>
73579
73580         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73581         D. Baushke" <mdb@gnu.org>.
73582
73583 2005-10-04  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/verify.h (verify_true): Provide alternative definition for C++.
73586
73587 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73590         (SSIZE_MAX): New macro, if not already defined.
73591         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73592         than 2 GiB.
73593
73594 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         Sync from coreutils.
73597         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73598         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73599         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73600         ULLONG_MAX doesn't work with 2.7.2.1.
73601
73602 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73603
73604         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73605         From Ben Pfaff.
73606
73607         * modules/exclude (Depends-on): Depend on verify.
73608         * modules/strtoimax (Depends-on): Likewise.
73609         * modules/utimecmp (Depends-on): Likewise.
73610
73611 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73612
73613         * lib/exclude.c: Include verify.h.
73614         (verify): Remove.  All callers changed to use verify.h's version.
73615         * lib/strtoimax.c: Likewise.
73616         * lib/utimecmp.c: Likewis.e
73617
73618         Sync from coreutils.
73619         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73620         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73621         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73622         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73623         bother returning ENOSYS if settimeofday or stime fails; just let
73624         them return whatever errno they want to return.
73625         * lib/utimens.c: Include unistd.h, for dup2.
73626         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73627         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73628
73629 2005-10-02  Jim Meyering  <jim@meyering.net>
73630
73631         Sync from coreutils.
73632         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73633         from glibc-2.2.5 that fails for read-only files.
73634
73635 2005-10-02  Jim Meyering  <jim@meyering.net>
73636
73637         Sync from coreutils.
73638         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73639         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73640         `#if HAVE_CONFIG_H'.
73641         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73642         Remove AT_FDCWD test.
73643         Do not consume the fd unless successful.
73644         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73645         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73646         block, so that we don't even try to compile it if settimeofday is
73647         available.  This works around a compilation failure on OSF1 V5.1,
73648         due to stime requiring a `long int*' while tv_sec is `int'.
73649
73650 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73651
73652         Sync from coreutils.
73653         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73654         against `yes', rather than just testing for nonempty.
73655
73656 2005-10-01  Simon Josefsson  <jas@extundo.com>
73657
73658         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73659         and Darwin.
73660
73661         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73662         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73663         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73664         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73665         Check if struct addrinfo is declared.
73666
73667 2005-10-01  Simon Josefsson  <jas@extundo.com>
73668
73669         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73670         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73671         AI_* and EAI_* definitions.  Protect function declarations.
73672
73673 2005-10-01  Jim Meyering  <jim@meyering.net>
73674
73675         Sync from coreutils.
73676
73677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73678         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73679         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73681         in the inet and nsl libraries.  Required on Solaris 5.7.
73682
73683 2005-10-01  Jim Meyering  <jim@meyering.net>
73684
73685         Sync from coreutils.
73686         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73687         in the inet and nsl libraries.  Required on Solaris 5.7.
73688
73689 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73690
73691         * lib/getdelim.c (getdelim): Remove unused variables.
73692
73693 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73694
73695         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73696         so that the code works even with ancient cpp.  Portability problem
73697         with GCC 2.7.2.1 reported by Thomas M.Ott.
73698
73699 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * modules/regex (Depends-on): Add strcase.
73702
73703         * modules/gethostname (Licence): Change from GPL to LGPL, since
73704         gethostname.c is a trivial implementation of a standard library
73705         function.
73706         * modules/poll (License): Change from GPL to LGPL, since it's
73707         derived from LGPL code.
73708
73709 2005-09-27  Jim Meyering  <jim@meyering.net>
73710
73711         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73712         HAVE_CONFIG_H.
73713
73714         * lib/intprops.h (signed_type_or_expr__): Define.
73715         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73716         for unsigned types.
73717
73718 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * lib/verify.h (verify_expr): Remove, replacing with:
73721         (verify_true): New macro that returns true instead of void.
73722         (verify_type__): Remove.
73723         (verify): Use verify_true rather than verify_type__.
73724
73725 2005-09-26  Bruno Haible  <bruno@clisp.org>
73726
73727         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73728         is necessary.
73729         (lib_SOURCES): Remove mbchar.c.
73730         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73731         (Files): Add m4/mbrtowc.m4.
73732         * modules/mbiter: Likewise.
73733         * modules/mbuiter: Likewise.
73734
73735 2005-09-26  Bruno Haible  <bruno@clisp.org>
73736
73737         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73738         compile mbchar.c if they are not both present.
73739         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73740         * m4/mbiter.m4 (gl_MBITER): Likewise.
73741         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73742         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73743         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73744
73745 2005-09-25  Jim Meyering  <jim@meyering.net>
73746
73747         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73748         also uses socklen_t.
73749
73750 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * lib/utimens.c (ENOSYS): Define if not already defined.
73753         (futimens): Support having a null PATH if the file descriptor
73754         is nonnegative.
73755
73756         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73757         Remove.
73758         (__attribute): Define to empty unless GCC 3.1 or later.
73759         This works around a core dump on OpenBSD 3.4, which has GCC
73760         2.95.3, which dumps core when given __attribute__(()).  It also
73761         simplifies other tests, since we really don't want to bother with
73762         worrying about which ancient version of GCC supported what.
73763         Original problem reported by Yoann Vandoorselaere, with part of
73764         the fix suggested by Derek Price.
73765
73766 2005-09-24  Jim Meyering  <jim@meyering.net>
73767
73768         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73769         so we can once again use a positive bitfield width of 1 -- now we
73770         don't have to explain why we were using a bitfield width of 2.
73771
73772 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73775         and similarly for the other external symbols.  Problem reported
73776         by James Gallager.
73777
73778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73779         bug reported by Jim Meyering.
73780
73781         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73782         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73783         not needed, since socklen is a prerequisite module.
73784
73785 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73788         Problem reported by Eric Blake.
73789         (getaddrinfo): Initialize se so that it's not garbage.
73790         Redo internal storage allocation so that it doesn't make unportable
73791         assumptions about alignment.
73792         Fix a memory leak.
73793
73794         * lib/utimens.c (futimens): Use futimesat if available.
73795         Prefer it to futimes since it doesn't have the futimes bug.
73796
73797         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73798         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73799         Instead, declare a function that returns a pointer to an array,
73800         and use verify_type__ to declare the size of the array.
73801         Problem and germ of a solution reported by Bruno Haible.
73802         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73803         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73804
73805 2005-09-23  Jim Meyering  <jim@meyering.net>
73806
73807         Sync from coreutils.
73808         Correct build failure (socklen_t not defined) on at least
73809         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73811
73812 2005-09-23  Jim Meyering  <jim@meyering.net>
73813
73814         * modules/getaddrinfo (Depends-on): Add socklen.
73815
73816 2005-09-23  Bruno Haible  <bruno@clisp.org>
73817
73818         * tests/test-verify.c: New file.
73819
73820 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         Sync from coreutils.
73823
73824         * modules/argmatch (Depends-on): Add verify.
73825         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73826         unistd-safer.
73827         * modules/save-cwd (Depends-on): Likewise.
73828
73829         * modules/openat (Files): Add lib/openat-die.c.
73830         (Depends-on): Remove error, exitfail.
73831         Add dirname.
73832
73833         * modules/verify: New file.
73834         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73835         with "verify" module.
73836
73837 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         Sync from coreutils.
73840
73841         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73842         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73843         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73844         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73845         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73846         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73847         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73848         Don't bother checking for string.h, stdlib.h, unistd.h.
73849         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73850         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73851         module's job.
73852         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73853         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73854
73855         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73856         (gl_GETDATE): Use it.
73857
73858         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73859
73860 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         Sync from coreutils.
73863
73864         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73865         stat-time.h.
73866         * lib/argmatch.h: Include verify.h
73867         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73868         (ARGMATCH_ASSERT): Remove; unused.
73869         * lib/canonicalize.c: Assume STDC_HEADERS.
73870         * lib/exclude.c: Include "strcase.h".
73871         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73872         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73873         and stdio-safer.h.
73874         (getusershell): Call fopen, not fopen_safer.
73875         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73876         Do not include unistd-safer.h.
73877         (save_cwd): Don't call fd_safer; no longer needed
73878         now that we include fcntl--.h.
73879
73880         * lib/getdate.y (relative_time): New type.
73881         (RELATIVE_TIME_0): New constant.
73882         (parser_control): Use relative_time instead of doing it ourselves.
73883         (%union): Add new relative_time rel member.
73884         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73885         Now typeless.
73886         (relunit, relunit_snumber): Now of type rel.
73887         (zone, rel, relunit, get_date): Adjust to above changes.
73888
73889         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73890         Do not include unistd-safer.h.
73891         (getloadavg): Don't call fd_safer; no longer needed
73892         now that we include fcntl--.h.
73893
73894         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73895         (make_dir_parents): Treat ENOSYS like EEXIST.
73896
73897         Improve quality of diagnostics on restore_cwd failure.
73898         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73899         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73900         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73901         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73902         each time through the loop.  Do not diagnose restore_cwd failure;
73903         that is the caller's job (and perhaps the caller does not care).
73904
73905         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73906         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73907         If the file already exists but is not a directory, don't bother
73908         to try to make its parents.
73909         Close potential file descriptor leak if we can't chdir("/") (!).
73910         Don't always return true if chdir($PWD) fails; return true only
73911         if the requested action was done successfully (except for the
73912         chdir($PWD)).
73913         Don't log final directory unless we actually made it.
73914         Refactor to avoid duplicate code to fix up permissions.
73915         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73916
73917         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73918         to make it a bit faster and (I hope) clearer.
73919         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73920         Fix bug in formats like %2N.
73921
73922         * lib/verify.h: New file.
73923
73924 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         Sync from coreutils.
73927         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73928
73929 2005-09-22  Jim Meyering  <jim@meyering.net>
73930
73931         Sync from coreutils.
73932
73933         * m4/lstat.m4 (gl_FUNC_LSTAT):
73934         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73935         Remove obsolete comment.
73936         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73937         * m4/xstrtod.m4: Likewise.
73938
73939         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73940
73941 2005-09-22  Jim Meyering  <jim@meyering.net>
73942
73943         Sync from coreutils.
73944
73945         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73946
73947         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73948         the .tm_year member, since otherwise gcc-4.0 would now warn about
73949         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73950
73951         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73952         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73953
73954         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73955         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73956         when run in a time zone for which daylight savings time is in effect
73957         for the starting date.
73958
73959         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73960         stop us from restricting permissions of just-created absolute-named
73961         directories.
73962         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73963         to restore initial working directory.
73964         * lib/mkdir-p.c (make_dir_parents): New parameter:
73965         different_working_dir, to tell caller if/when we change the working
73966         directory and are unable to return to the initial one.
73967         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73968         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73969         `return false'.  This fixes a bug introduced on 2004-07-30.
73970
73971         * lib/openat.c (fdopendir): Be sure to close the supplied
73972         file descriptor before returning.  This makes our replacement
73973         implementation a little closer to Solaris's, where fdopendir
73974         ties the file descriptor to the returned DIR* pointer.
73975         * lib/openat.c (unlinkat): New function.
73976         * lib/openat.h (unlinkat): Add prototype.
73977         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73978         (openat_restore_fail): Rename from openat_restore_die.
73979         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73980
73981         Provide an alternative to exiting immediately upon save_cwd or
73982         restore_cwd failure.  Now, an application can arrange e.g.,
73983         to perform a longjump in that case.
73984         * lib/openat.c: Include dirname.h.
73985         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73986         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73987         and openat_restore_die rather than calling error directly.
73988         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73989
73990         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73991         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73992         define.
73993
73994         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73995         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73996                             int utc, int nanoseconds);
73997         Background:
73998         date should not have to allocate a megabyte of virtual memory to
73999         handle a format argument like +%1048575T.  When implemented with
74000         strftime, it must allocate such a buffer, use strftime to fill it
74001         in, print it, then free it.
74002         With fprintftime, it simply prints everything and exits.
74003         With no need for memory allocation, that's one fewer way to fail.
74004         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74005         optional field width, not before, so we accept %9:z, not %:9z.
74006         (my_strftime): Be sure to use L_('x') for literals.
74007
74008         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74009         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74010         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74011         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74012         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74013         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74014         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74015         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74016         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74017         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74018         * lib/xgethostname.c, lib/xreadlink.c:
74019         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74020
74021         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74022         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74023         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74024         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74025         and don't include <sys/file.h>).
74026
74027 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74028
74029         Sync from coreutils.
74030
74031         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74032         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74033         [!LDAV_DONE]: Avoid unused variable warning.
74034
74035 2005-09-21  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/unicodeio.h (unicode_to_mb): New declaration.
74038
74039 2005-09-20  Derek Price  <derek@ximbiot.com>
74040
74041         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74042         getaddrinfo.h.
74043
74044 2005-09-20  Bruno Haible  <bruno@clisp.org>
74045
74046         * gnulib-tool: Remove trailing slashes from the values specified for
74047         --source-base, --m4-base, --tests-base, --aux-dir.
74048         Suggested by Simon Josefsson <jas@extundo.com>.
74049
74050 2005-09-20  Bruno Haible  <bruno@clisp.org>
74051
74052         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74053         func_modules_to_filelist, func_import, func_create_testdir): Make all
74054         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74055         change when gnulib-tool is invoked in a different locale.
74056
74057 2005-09-19  Simon Josefsson  <jas@extundo.com>
74058
74059         * m4/socklen.m4: Fix typo.
74060
74061 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74062
74063         Use a consistent style for including <config.h>.
74064         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74065         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74066         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74067         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74068         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74069         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74070         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74071         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74072         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74073         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74074         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74075         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74076         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74077         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74078         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74079         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74080         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74081         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74082         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74083         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74084         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74085         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74086         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74087         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74088         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74089         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74090         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74091         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74092         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74093         lib/xstrtoumax.c, lib/yesno.c:
74094         Standardize inclusion of config.h.
74095         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74096         lib/inttostr.h:  Removed inclusion of config.h from header files.
74097         * lib/inttostr.c:  Adjusted in-tree users.
74098         * lib/timespec.h: Remove superfluous warning to include config.h.
74099         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74100         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74101         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74102         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74103         config.h with HAVE_CONFIG_H.
74104
74105 2005-09-19  Jim Meyering  <jim@meyering.net>
74106
74107         * modules/pathmax (License): Change to LGPL.
74108
74109 2005-09-19  Derek Price  <derek@ximbiot.com>
74110
74111         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74112
74113 2005-09-19  Bruno Haible  <bruno@clisp.org>
74114
74115         * gnulib-tool (import): Provide default for --tests-base.
74116
74117 2005-09-19  Bruno Haible  <bruno@clisp.org>
74118
74119         * doc/quote.texi: New file, extracted from gnulib.texi.
74120         * doc/ctime.texi: New file, extracted from gnulib.texi.
74121         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74122         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74123         * doc/gnulib.texi: Include them.
74124
74125 2005-09-18  Bruno Haible  <bruno@clisp.org>
74126
74127         Portability fix.
74128         * gnulib-tool (func_readlink): New function.
74129         (func_ln_if_changed): Use it.
74130
74131 2005-09-18  Bruno Haible  <bruno@clisp.org>
74132
74133         * gnulib-tool: Support --with-tests also with --import.
74134         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74135         (func_import): Use variables $testsbase and $inctests. Emit a
74136         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74137         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74138         SUBDIRS += $testsdir.
74139         (func_create_testdir): Update.
74140
74141 2005-09-18  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74144         instead of $dry_run.
74145         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74146         (func_ln_if_changed): Don't handle dry-run here.
74147         (func_import): In dry-run mode, detect more precisely which actions
74148         would be performed, and don't use "...ing" verbs.
74149
74150 2005-09-18  Bruno Haible  <bruno@clisp.org>
74151
74152         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74153         (func_import): Use join on two temporary files instead of three nested
74154         loops, in order to determine which files are new or old.
74155
74156 2005-09-18  Bruno Haible  <bruno@clisp.org>
74157
74158         * gnulib-tool (func_import): Comment out code that spits out the
74159         new files with --dry-run.
74160
74161 2005-09-18  Bruno Haible  <bruno@clisp.org>
74162
74163         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74164
74165 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74166
74167         * lib/stat-time.h: New file.
74168         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74169         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74170         in a different way.
74171         (timespec_cmp): New function.
74172         * lib/utimecmp.c: Include stat-time.h.
74173         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74174         members exist, not on the obsolescent ST_MTIM_NSEC.
74175         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74176
74177 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74180
74181 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74182
74183         * MODULES.html.sh (File system functions): Add stat-time.
74184         * modules/stat-time: New file.
74185         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74186         is now done in a different way, by the stat-time module.
74187         * modules/utimecmp (Depends-on): Add stat-time.
74188
74189 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * m4/st_mtim.m4: Remove.  Superseded by...
74192         * m4/stat-time.m4: New file.
74193         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74194         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74195
74196 2005-09-15  Derek Price  <derek@ximbiot.com>
74197
74198         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74199
74200 2005-09-15  Derek Price  <derek@ximbiot.com>
74201
74202         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74203         * lib/regex_internal.c: Ditto, using this...
74204         (__GNUC_PREREQ): ...new macro.
74205         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74206         using...
74207         (__GNUC_PREREQ): ...this new macro.
74208
74209         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74210
74211 2005-09-15  Derek Price  <derek@ximbiot.com>
74212             Paul Eggert  <eggert@cs.ucla.edu>
74213
74214         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74215         changes, consolidating in...
74216         * lib/regex_internal.h: ...this file.
74217
74218 2005-09-13  Jim Meyering  <jim@meyering.net>
74219
74220         * lib/canon-host.c: Filter through gnu indent and reword comments
74221         slightly.
74222         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74223
74224 2005-09-13  Derek Price  <derek@ximbiot.com>
74225
74226         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74227         failure.
74228         Reported by Jim Meyering  <jim@meyering.net>.
74229
74230 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74231
74232         * lib/base64.c: Typo.
74233         (base64_encode): Put b64str in initialized data section.
74234
74235 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         Merge glibc and coreutils changes into gnulib, plus a few
74238         extra fixes.
74239         * lib/md5.c: Use #error rather than a string.
74240         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74241         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74242         (__attribute__): Define to empty for non recent-GCC.
74243         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74244         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74245         Renamed from their non-__ counterparts, with new macros replacing
74246         them if not _LIBC.  Add __THROW attribute.
74247         (rol): Remove.
74248         (struct md5_ctx): Align buffer if using GCC.
74249         * lib/sha1.h (struct sha1_ctx): Likewise.
74250         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74251         The old name was backwards.
74252         (NOTSWAP): Remove; not used.
74253         (rol): New macro, moved here from md5.h.
74254         (sha1_process_block): Remove a FIXME that doesn't make sense.
74255
74256 2005-09-12  Derek Price  <derek@ximbiot.com>
74257
74258         Return usable errors from canon-host.
74259         * lib/canon-host.h: New file.
74260         * lib/canon-host.c (canon_host): Wrap...
74261         (canon_host_r): ...this new function, which now relies exclusively on
74262         getaddrinfo.
74263         (ch_strerror): New function.
74264         (last_cherror): New global.
74265         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74266         interface.
74267         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74268         void *.
74269         (freeaddrinfo): Free ai->ai_canonname when set.
74270
74271 2005-09-12  Derek Price  <derek@ximbiot.com>
74272
74273         Make canon-host require getaddrinfo.
74274         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74275         AC_LIBSOURCE canon-host.h.  Call...
74276         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74277         gl_GETADDRINFO.
74278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74279
74280 2005-09-12  Derek Price  <derek@ximbiot.com>
74281
74282         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74283         LGPL.
74284         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74285
74286 2005-09-12  Derek Price  <derek@ximbiot.com>
74287
74288         * lib/gai_strerror.c: Include config.h when available.  Include
74289         getaddrinfo.h before other headers to test interface.
74290         Reported by Larry Jones <lawrence.jones@ugs.com>.
74291
74292 2005-09-12  Derek Price  <derek@ximbiot.com>
74293             Paul Eggert  <eggert@cs.ucla.edu>
74294
74295         * modules/glob (Files): Add glob-libc.h.
74296
74297 2005-09-12  Derek Price  <derek@ximbiot.com>
74298             Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74301         glob_.h, glob-libc.h.
74302         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74303
74304 2005-09-12  Derek Price  <derek@ximbiot.com>
74305             Paul Eggert  <eggert@cs.ucla.edu>
74306
74307         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74308         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74309         protecting things that should be done only in gnulib contexts.
74310         * lib/glob_.h: New file, containing only the glob things needed for
74311         gnulib.
74312         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74313         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74314         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74315         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74316         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74317         and to respect the namespace rules better.
74318
74319 2005-09-08  Simon Josefsson  <jas@extundo.com>
74320
74321         * modules/socklen: New file.
74322
74323 2005-09-08  Simon Josefsson  <jas@extundo.com>
74324
74325         * m4/socklen.m4: New file.
74326
74327 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         * modules/utimens (Files): Add m4/utimbuf.m4, since
74330         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74331         Reported by Sergey Poznyakoff.
74332
74333 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74334
74335         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74336         definitions, since that's the preferred style in glibc.
74337         Fix a minor spacing issue, and update copyright notice to match
74338         glibc's.
74339
74340 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74341
74342         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74343
74344 2005-09-06  Simon Josefsson  <jas@extundo.com>
74345
74346         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74347         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74348
74349 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74352         warning.
74353
74354 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * config/srclist.txt: Add glibc bug 1302.
74357
74358 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         Change bitset word type from unsigned int to unsigned long int,
74361         as this has better performance on typical 64-bit hosts.
74362         Port bitset code to hosts with unusual word sizes.
74363         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74364         (build_collating_symbol):
74365         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74366         argument is a bitset.  This is merely a style issue, but it makes
74367         it clearer that an entire array is expected.
74368         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74369         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74370         Port to the case where bitset_word is not the same as unsigned int.
74371         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74372         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74373         Likewise.
74374         * lib/regexec.c (check_dst_limits_calc_pos_1,
74375         check_subexp_matching_top):
74376         (build_trtable, group_nodes_into_DFAstates):
74377         Likewise.
74378         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74379         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74380         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74381         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74382         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74383         * lib/regcomp.c (optimize_subexps, lower_subexp):
74384         Work even if bitset_word has holes in its bitwise representation.
74385         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74386         * lib/regexec.c (check_dst_limits_calc_pos_1,
74387         check_subexp_matching_top):
74388         Likewise.
74389         * lib/regex_internal.c (re_string_reconstruct):
74390         Don't assume UCHAR_MAX == 255.
74391         * lib/regex_internal.h (bitset_set_all): Likewise.
74392         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74393         All uses changed.
74394         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74395         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74396         All uses changed.
74397         (BITSET_WORD_MAX): New macro.
74398         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74399         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74400         (bitset_empty, bitset_copy):
74401         Prefer sizeof (bitset) to multiplying it out ourselves.
74402         (bitset_not_merge): Remove; unused.
74403         (bitset_contain): Return bool, not unsigned int with one bit on.
74404         All callers changed.
74405         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74406         alignment than re_node_set; do this by defining a new internal
74407         type struct dests_alloc and using it to allocate memory.
74408
74409 2005-09-05  Bruno Haible  <bruno@clisp.org>
74410
74411         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74412         links.
74413
74414 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74415
74416         * modules/size_max (Makefile.am): Add size_max.h
74417
74418 2005-09-04  Derek Price  <derek@ximbiot.com>
74419
74420         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74421
74422 2005-09-03  Simon Josefsson  <jas@extundo.com>
74423
74424         * gnulib-tool: Fix typo.
74425
74426 2005-09-03  Simon Josefsson  <jas@extundo.com>
74427
74428         * config/srclist.txt: Add glibc bug 1293.
74429
74430 2005-09-03  Derek Price  <derek@ximbiot.com>
74431
74432         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74433         From Larry Jones <lawrence.jones@ugs.com>.
74434
74435 2005-09-02  Simon Josefsson  <jas@extundo.com>
74436
74437         * modules/socklen: New file.
74438
74439 2005-09-02  Simon Josefsson  <jas@extundo.com>
74440
74441         * modules/havelib: New module.
74442
74443         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74444         Use havelib.
74445
74446 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         Check for arithmetic overflow when calculating sizes, to prevent
74449         some buffer-overflow issues.  These patches are conservative, in the
74450         sense that when I couldn't determine whether an overflow was possible,
74451         I inserted a run-time check.
74452         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74453         macros.
74454         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74455         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74456         (re_xnrealloc, re_x2nrealloc): New inline functions.
74457         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74458         parse_bracket_exp):
74459         (build_equiv_class, build_charclass): Check for arithmetic overflow
74460         in size expression calculations.
74461         * lib/regex_internal.c (re_string_realloc_buffers):
74462         (build_wcs_upper_buffer, re_node_set_add_intersect):
74463         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74464         (re_dfa_add_node, register_state): Likewise.
74465         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74466         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74467         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74468         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74469
74470 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74473         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74474
74475 2005-09-02  Bruno Haible  <bruno@clisp.org>
74476
74477         Support for lib vs. lib64 distinction on biarch platforms.
74478         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74479         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74481
74482 2005-09-02  Bruno Haible  <bruno@clisp.org>
74483
74484         * gnulib-tool (import): In the other first-use case, provide defaults
74485         as well.
74486
74487 2005-09-02  Bruno Haible  <bruno@clisp.org>
74488
74489         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74490         patches not yet found in the latest gettext release.
74491
74492 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74495         to avoid a collision with bits/local_lim.h in glibc.
74496         All uses changed.  Problem reported by Dmitry V. Levin in
74497         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74498
74499         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74500         bugs in int versus size_t comparisons.
74501         (re_string_context_at): Fix bug where the code assumed that
74502         Idx is signed.
74503
74504         Use bool where appropriate.
74505         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74506         All callers changed.
74507         (calc_eclosure_iter): Likewise, for ROOT arg.
74508         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74509         (build_charclass_op): Likewise, for NON_MATCH arg.
74510         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74511         (re_string_construct_common): Likewise, for ICASE arg.
74512         * lib/regexec.c (re_search_2_stub, re_search_stub):
74513         Likewise, for RET_LEN arg.
74514         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74515         (set_regs): Likewise, for FL_BACKTRACK arg.
74516         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74517         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74518         (calc_eclosure_iter, parse_bracket_exp):
74519         Use bool for internal variables that are booleans.
74520         * lib/regexec.c (re_search_internal, check_matching,
74521         proceed_next_node):
74522         (set_regs, build_sifted_states, sift_states_bkref):
74523         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74524         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74525         (find_collation_sequence_value):
74526         Likewise.
74527         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74528         (re_node_set_compare):
74529         Return bool, not int. All callers changed.
74530         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74531         (build_trtable, check_node_accept): Likewise.
74532         * lib/regex_internal.h: Include stdbool.h.
74533
74534         Fix bugs uncovered when converting to bool.
74535         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74536         failure instead of charging ahead blindly.
74537         * lib/regex_internal.c (register_state): Likewise.
74538         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74539         for freeing internal storage.
74540         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74541         bitset pieces used as boolean, to avoid undefined behavior
74542         on hosts that do int overflow checking.
74543
74544 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * config/srclist.txt: Add glibc bugs 1285-1287.
74547
74548 2005-09-01  Jim Meyering  <jim@meyering.net>
74549
74550         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74551         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74552         Require gl_STAT_MACROS, too.
74553
74554 2005-09-01  Bruno Haible  <bruno@clisp.org>
74555
74556         * gnulib-tool (import): In the first-use case, provide defaults.
74557
74558 2005-09-01  Bruno Haible  <bruno@clisp.org>
74559
74560         * gnulib-tool (func_import): Remove the .tmp files.
74561
74562 2005-09-01  Bruno Haible  <bruno@clisp.org>
74563
74564         * gnulib-tool (func_import): Fix handling of symbolic links.
74565
74566 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74569         old glibc regex code mishandles strings longer than 2**31 bytes.
74570         This patch fixes this when the regex code is used in gnulib
74571         (i.e., outside glibc).
74572
74573         This patch should not affect the use of the regex code inside
74574         glibc.  No doubt this problem also needs to be handled for glibc
74575         as well, but the result will be an incompatible change to the
74576         glibc ABI, and the old ABI will have to be supported too.  That
74577         can be the the subject for another patch.
74578
74579         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74580         governing whether the rest of this patch is active.  By default,
74581         the macro is disabled and the patch has no effect.
74582         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74583         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74584         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74585         (re_match_2, re_set_registers): Use the new types.
74586         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74587         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74588         New macros.
74589         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74590         (re_string_context_at, bin_tree_t, re_dfastate_t):
74591         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74592         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74593         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74594         (re_string_char_size_at, re_string_wchar_at):
74595         (re_string_elem_size_at):
74596         Use the new types and macros to port to 64-bit hosts.
74597         Use unsigned types for internal values, so that the code
74598         mostly works even for arrays larger than SSIZE_MAX.
74599         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74600         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74601         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74602         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74603         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74604         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74605         (calc_inveclosure, parse_dup_op, build_range_exp):
74606         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74607         (fetch_number, create_token_tree, mark_opt_subexp):
74608         Likewise.
74609         * lib/regex_internal.c (re_string_construct_common,
74610         create_ci_newstate):
74611         (create_cd_newstate, re_string_allocate, re_string_construct):
74612         (re_string_realloc_buffers, build_wcs_upper_buffer):
74613         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74614         (re_string_reconstruct, re_string_peek_byte_case):
74615         (re_string_fetch_byte_case, re_string_context_at):
74616         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74617         (re_node_set_init_copy, re_node_set_add_intersect):
74618         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74619         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74620         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74621         (re_acquire_state, re_acquire_state_context, register_state):
74622         Likewise.
74623         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74624         search_cur_bkref_entry):
74625         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74626         (re_search_internal, re_search_2_stub, re_search_stub)
74627         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74628         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74629         (update_cur_sifted_state, check_dst_limits):
74630         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74631         (check_subexp_limits, sift_states_bkref, merge_state_array):
74632         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74633         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74634         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74635         (expand_bkref_cache, check_node_accept_bytes):
74636         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74637         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74638         (acquire_init_state_context, check_halt_node_context):
74639         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74640         (sift_states_backward, clean_state_log_if_needed):
74641         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74642         (find_recover_state, transit_state_sb, transit_state_mb):
74643         (transit_state_bkref, build_trtable, match_ctx_clean):
74644         Likewise.
74645         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74646         to work around an assumption that REG_MISSING is negative.
74647
74648         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74649         (seek_collating_symbol_entry) [defined _LIBC]:
74650         (lookup_collation_sequence_value) [defined _LIBC]:
74651         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74652         Use prototypes rather than old-style function definitions.
74653         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74654         (transit_state_sb) [0]:
74655         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74656
74657         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74658         rm_eo.
74659
74660         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74661         (optimize_subexps, lower_subexp):
74662         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74663         since the signed shift might overflow.  Use 1u<<31 instead.
74664         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74665         Likewise.
74666         * lib/regexec.c (check_dst_limits_calc_pos_1,
74667         check_subexp_matching_top): Likewise.
74668
74669         * lib/regcomp.c (optimize_subexps, lower_subexp):
74670         Use CHAR_BIT rather than 8, for clarity.
74671         * lib/regexec.c (check_dst_limits_calc_pos_1):
74672         (check_subexp_matching_top): Likewise.
74673         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74674         have to worry about portability issues when shifting it left.
74675         Remove no-longer-needed test for table_size > 0.
74676         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74677         in a word, as the resulting behavior is undefined.
74678         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74679         in one case, a <= should have been an <, and in another case the
74680         whole test was missing.
74681         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74682         the standard name CHAR_BIT.
74683         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74684         this is not true on one's complement and signed-magnitude hosts.
74685
74686         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74687         next_last_offset.
74688         (struct re_dfa_t): Remove unused member states_alloc.
74689         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74690
74691 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74694         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74695         and large-file glibc and in 32-bit large-file Solaris.
74696
74697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74700         lengths fit in regoff_t; this isn't true if regoff_t is the same
74701         width as size_t.
74702         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74703         (= START + RANGE) instead of RANGE.  This avoids overflow
74704         problems when regoff_t is the same width as size_t.
74705         All callers changed.
74706         (re_search_2_stub): Check for overflow when adding the
74707         sizes of the two strings.
74708         (re_search_stub): Check for overflow when adding START
74709         to RANGE; if it occurs, substitute the extreme value.
74710
74711 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74714
74715 2005-08-31  Jim Meyering  <jim@meyering.net>
74716
74717         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74718         a pointer-to-const.
74719         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74720         (register_state): Likewise.
74721         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74722         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74723         (group_nodes_into_DFAstates): Likewise.
74724
74725 2005-08-31  Jim Meyering  <jim@meyering.net>
74726
74727         * check-module: Add a FIXME comment.
74728
74729 2005-08-31  Eric Blake  <ebb9@byu.net>
74730
74731         * modules/unistd-safer (Files): Add unistd--.h.
74732         * modules/stdio-safer (Files): Add stdio--.h.
74733
74734 2005-08-31  Derek Price  <derek@ximbiot.com>
74735
74736         * lib/getdelim.c (getdelim): Return EOF on EOF.
74737         Reported by Larry Jones <lawrence.jones@ugs.com>.
74738
74739 2005-08-31  Bruno Haible  <bruno@clisp.org>
74740
74741         Avoid unnecessary diffs in the generated lib/Makefile.am.
74742         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74743         the generated files.
74744         (func_import): Don't set cmd.
74745
74746 2005-08-31  Bruno Haible  <bruno@clisp.org>
74747
74748         * lib/strstr.c: Include <stddef.h>, for NULL.
74749         * lib/strcasestr.c: Likewise.
74750         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74751
74752 2005-08-31  Bruno Haible  <bruno@clisp.org>
74753
74754         * gnulib-tool: New option --macro-prefix.
74755         (func_import): Use macro_prefix.
74756         (import): Handle option --macro-prefix.
74757
74758 2005-08-31  Bruno Haible  <bruno@clisp.org>
74759
74760         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74761         Also use new variables cached_lgpl, cached_libtool.
74762
74763 2005-08-31  Bruno Haible  <bruno@clisp.org>
74764
74765         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74766         always instantiating them.
74767
74768 2005-08-31  Bruno Haible  <bruno@clisp.org>
74769
74770         * gnulib-tool (func_import): Read the previous cached settings
74771         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74772         earlier added by gnulib but are now dropped. Warn when a gnulib file
74773         overwrites a non-gnulib file.
74774
74775 2005-08-31  Bruno Haible  <bruno@clisp.org>
74776
74777         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74778         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74779         projects that don't keep autogenerated files in CVS. Put into
74780         actioncmd only the specified modules, not the transitive closure.
74781
74782 2005-08-31  Bruno Haible  <bruno@clisp.org>
74783
74784         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74785         Create directories that shall be filled.
74786         (import): Don't look for gl_* macros in configure.ac. Recurse across
74787         all directories containing a gnulib-cache.m4 files, if meaningful.
74788
74789 2005-08-31  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74792         (import): Set seen_libtool when we see gl_LIBTOOL.
74793
74794 2005-08-31  Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74797         declaration macro definitions from generated gnulib.m4.
74798
74799 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74800
74801         * lib/iconvme.h: Add prototype for iconv_alloc.
74802
74803 2005-08-29  Simon Josefsson  <jas@extundo.com>
74804
74805         * lib/iconvme.c: Fix errno.
74806
74807 2005-08-29  Bruno Haible  <bruno@clisp.org>
74808
74809         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74810         that it works when the directory contains spaces.
74811
74812 2005-08-29  Bruno Haible  <bruno@clisp.org>
74813
74814         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74815
74816 2005-08-29  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74819         Emit more advice.
74820
74821 2005-08-29  Bruno Haible  <bruno@clisp.org>
74822         and Stepan Kasal  <kasal@ucw.cz>
74823
74824         * check-module: If more parameters are given, check each of them
74825         separately; add more exceptions, as noted by Jim Meyering.
74826         (check_module): New procedure.
74827         (%exempt_header): Now contains all exceptions.
74828
74829 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74830
74831         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74832
74833 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74834
74835         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74836
74837 2005-08-28  Bruno Haible  <bruno@clisp.org>
74838
74839         * m4/gnulib-tool.m4: New file.
74840
74841 2005-08-27  Jim Meyering  <jim@meyering.net>
74842
74843         * modules/unistd-safer (Files): Add pipe-safer.c.
74844         * modules/fcntl-safer (Files): Add creat-safer.c.
74845
74846 2005-08-27  Jim Meyering  <jim@meyering.net>
74847
74848         * m4/stdlib-safer.m4: New file.  From coreutils.
74849         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74850         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74851         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74852         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74853         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74854
74855 2005-08-27  Jim Meyering  <jim@meyering.net>
74856
74857         * lib/fopen-safer.c: Merge minor changes from coreutils.
74858         * lib/dup-safer.c: Likewise.
74859         * lib/fd-safer.c: Likewise.
74860
74861         Merge from coreutils.
74862         * lib/stdio--.h: New file.
74863         * lib/stdlib--.h: New file.
74864         * lib/mkstemp-safer.c: New file.
74865
74866         GNU tar needs these.
74867         * lib/pipe-safer.c: New file.
74868         * lib/creat-safer.c: New file.
74869         * lib/fcntl--.h (creat): Define to creat_safer.
74870         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74871         * lib/unistd--.h (pipe): Define to pipe_safer.
74872         * lib/unistd-safer.h: Declare pipe_safer.
74873
74874 2005-08-26  Simon Josefsson  <jas@extundo.com>
74875
74876         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74877         Haible <bruno@clisp.org>.
74878
74879 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         * lib/regex_internal.h: Remove all references to
74882         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74883         or better.
74884         (bitset_not, bitset_merge, bitset_not_merge):
74885         (bitset_mask, re_string_allocate, re_string_construct):
74886         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74887         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74888         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74889         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74890         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74891         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74892         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74893         (re_acquire_state_context):
74894         Remove unnecessary forward decls.
74895         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74896         Put __attribute at function definition,
74897         now that the function decl has been removed.
74898         * lib/regex_internal.c (re_string_peek_byte_case):
74899         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74900         Likewise.
74901
74902 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74903
74904         * m4/regex.m4: Add AC_PREREQ(2.50).
74905         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74906
74907 2005-08-25  Simon Josefsson  <jas@extundo.com>
74908
74909         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74910         __fsetlocking.
74911
74912 2005-08-25  Simon Josefsson  <jas@extundo.com>
74913
74914         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74915         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74916         GLIBC specific code.
74917
74918 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74919
74920         Make regex safe for g++.  This fixes one real bug (an "err"
74921         that should have been "*err").  g++ problem reported by
74922         Sam Steingold.
74923         * lib/regex_internal.h (re_calloc): New macro, consistent with
74924         re_malloc etc.  All callers of calloc changed to use re_calloc.
74925         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74926         not int.  All callers changed.
74927         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74928         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74929         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74930         (find_recover_state): Change "err" to "*err"; this fixes what
74931         appears to be a real bug.
74932         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74933         versus int.
74934
74935 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * modules/regex (Depends-on): Add malloc, since the code
74938         assumes that !malloc(0) means failure.
74939
74940 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74941
74942         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74943
74944         alloca modernization/simplification for regex.
74945         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74946         needs to be at the start of the file, and can be moved into
74947         regex_internal.h and simplified.
74948         * lib/regex_internal.h: Include <alloca.h>.
74949         (__libc_use_alloca) [!defined _LIBC]: New macro.
74950         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74951         now works outside glibc.
74952
74953 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * config/srclist.txt: Add glibc bugs 1241, 1245.
74956
74957 2005-08-25  Jim Meyering  <jim@meyering.net>
74958
74959         * lib/open-safer.c: Include <config.h>.
74960         Otherwise, we'd lose LARGEFILE support in any file using
74961         e.g. "fcntl--.h"
74962
74963 2005-08-25  Bruno Haible  <bruno@clisp.org>
74964
74965         * m4/minmax.m4: Require autoconf 2.52.
74966         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74967         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74968         alternatives of translit over the alphabet.
74969         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74970
74971 2005-08-24  Simon Josefsson  <jas@extundo.com>
74972
74973         * tests/test-getpass.c: New file.
74974
74975 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74978         for GNU regex features.
74979
74980 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74983         * lib/regex.h (regerror): Likewise.
74984
74985         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74986         requires this.  (The code never needed it.)
74987
74988         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74989         All uses of recently-renamed identifiers changed to use the new,
74990         POSIX-compliant names.  The code will build and run just fine
74991         without these changes, but it's better to eat our own dog food
74992         and use the standard-conforming names.
74993
74994         * lib/regex.h: Fix a multitude of POSIX name space violations.
74995         These changes have an effect only for programs that define
74996         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74997         do not change anything for programs compiled in the normal way.
74998         Also, there is no effect on the ABI.
74999
75000         (_REGEX_SOURCE): New macro.
75001         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75002         defined and _GNU_SOURCE is not; this fixes a name space violation.
75003
75004         Rename the following macros to obey POSIX requirements.
75005         The old names are still visible as macros if _REGEX_SOURCE is defined.
75006         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75007         RE_BACKSLASH_ESCAPE_IN_LISTS.
75008         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75009         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75010         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75011         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75012         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75013         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75014         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75015         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75016         (REG_INTERVALS): renamed from RE_INTERVALS.
75017         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75018         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75019         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75020         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75021         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75022         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75023         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75024         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75025         RE_UNMATCHED_RIGHT_PAREN_ORD.
75026         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75027         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75028         (REG_DEBUG): renamed from RE_DEBUG.
75029         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75030         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75031         unusual, since we can't clash with the POSIX REG_ICASE.
75032         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75033         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75034         (REG_NO_SUB): renamed from RE_NO_SUB.
75035         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75036         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75037         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75038         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75039         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75040         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75041         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75042         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75043         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75044         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75045         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75046         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75047         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75048         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75049         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75050         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75051         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75052         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75053         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75054         (REG_FIXED): Renamed from REGS_FIXED.
75055         (REG_NREGS): Renamed from RE_NREGS.
75056
75057         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75058         of other REG_* macros, since POSIX says the user is allowed to
75059         #undef these macros selectively.
75060
75061         (reg_errcode_t): Update comment stating what other tables need
75062         to be consistent.
75063
75064         Rename the following enum values to obey POSIX requirements.
75065         The old names are still visible as macros.
75066         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75067         is not defined, since GNU is supposed to be a superset of POSIX as
75068         much as possible, and since we want reg_errcode_t to be a signed
75069         type for implementation consistency.
75070         (_REG_NOERROR): Renamed from REG_NOERROR.
75071         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75072         (_REG_BADPAT): Renamed from REG_BADPAT.
75073         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75074         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75075         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75076         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75077         (_REG_EBRACK): Renamed from REG_EBRACK.
75078         (_REG_EPAREN): Renamed from REG_EPAREN.
75079         (_REG_EBRACE): Renamed from REG_EBRACE.
75080         (_REG_BADBR): Renamed from REG_BADBR.
75081         (_REG_ERANGE): Renamed from REG_ERANGE.
75082         (_REG_ESPACE): Renamed from REG_ESPACE.
75083         (_REG_BADRPT): Renamed from REG_BADRPT.
75084         (_REG_EEND): Renamed from REG_EEND.
75085         (_REG_ESIZE): Renamed from REG_ESIZE.
75086         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75087         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75088         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75089         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75090         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75091
75092         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75093         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75094         changed.  But support the old name if the new one is not defined
75095         and if _REGEX_SOURCE.
75096
75097         Change the following member names in struct re_pattern_buffer.
75098         The old names are still supported if !_REGEX_SOURCE.
75099         The new names are always supported, regardless of _REGEX_SOURCE.
75100         (re_buffer): Renamed from buffer.
75101         (re_allocated): Renamed from allocated.
75102         (re_used): Renamed from used.
75103         (re_syntax): Renamed from syntax.
75104         (re_fastmap): Renamed from fastmap.
75105         (re_translate): Renamed from translate.
75106         (re_can_be_null): Renamed from can_be_null.
75107         (re_regs_allocated): Renamed from regs_allocated.
75108         (re_fastmap_accurate): Renamed from fastmap_accurate.
75109         (re_no_sub): Renamed from no_sub.
75110         (re_not_bol): Renamed from not_bol.
75111         (re_not_eol): Renamed from not_eol.
75112         (re_newline_anchor): Renamed from newline_anchor.
75113
75114         Change the following member names in struct re_registers.
75115         The old names are still supported if !_REGEX_SOURCE.
75116         The new names are always supported, regardless of _REGEX_SOURCE.
75117         (rm_num_regs): Renamed from num_regs.
75118         (rm_start): Renamed from start.
75119         (rm_end): Renamed from end.
75120
75121         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75122         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75123         Prepend __ to parameter names.
75124
75125         Undo yesterday's changes.
75126
75127 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75130         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75131         lib/regex.c.
75132
75133 2005-08-24  Jim Meyering  <jim@meyering.net>
75134
75135         Sync from coreutils.
75136         * m4/fcntl-safer.m4: New file.
75137
75138         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75139         and object files for this module.
75140
75141 2005-08-24  Jim Meyering  <jim@meyering.net>
75142
75143         Sync from coreutils.
75144         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75145
75146 2005-08-24  Jim Meyering  <jim@meyering.net>
75147
75148         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75149         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75150
75151 2005-08-24  Jim Meyering  <jim@meyering.net>
75152
75153         * modules/fcntl-safer: New module.
75154         * modules/fts (Depends-on): Add fcntl-safer.
75155         * MODULES.html.sh (File descriptor based Input/Output):
75156         Add fcntl-safer.
75157
75158 2005-08-24  Bruno Haible  <bruno@clisp.org>
75159
75160         Support for unit test modules.
75161         * modules/README: Mention tests modules.
75162         * modules/TEMPLATE-TESTS: New file.
75163         * gnulib-tool: New options --extract-tests-module, --with-tests and
75164         --tests-base (unused for the moment).
75165         (testsbase, inctests): New variables.
75166         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75167         (func_verify_module): Exclude TEMPLATE-TESTS.
75168         (func_verify_nontests_module, func_verify_tests_module): New functions.
75169         (func_get_dependencies): Add implicit dependency for tests modules.
75170         (func_get_tests_module): New function.
75171         (func_modules_transitive_closure): When --with-tests was specified,
75172         include the unit tests as well, unless explicitly avoided.
75173         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75174         (func_emit_tests_Makefile_am): New function.
75175         (func_create_testdir): When --with-tests was specified, emit a
75176         tests/ directory.
75177         * MODULES.html.sh (Future developments): Update.
75178
75179 2005-08-24  Bruno Haible  <bruno@clisp.org>
75180
75181         * modules/tls-tests: New file.
75182         * tests/test-tls.c: New file, from GNU gettext.
75183
75184 2005-08-24  Bruno Haible  <bruno@clisp.org>
75185
75186         * modules/lock-tests: New file.
75187         * tests/test-lock.c: New file, from GNU gettext.
75188
75189 2005-08-24  Bruno Haible  <bruno@clisp.org>
75190
75191         * lib/lock.h: Add multiple inclusion guard.
75192         * lib/tls.h: Add multiple inclusion guard.
75193
75194 2005-08-24  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool: Add support for the --aux-dir option to
75197         --create-testdir, --create-megatestdir, --test, --megatest.
75198         (func_create_testdir, func_create_megatestdir): Optionally emit a
75199         AC_CONFIG_AUX_DIR directive.
75200         (create-testdir, create-megatestdir, test, megatest): Provide a
75201         default value for $auxdir.
75202
75203 2005-08-24  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool (import): Use compound statement instead of subshell
75206         where possible.
75207
75208 2005-08-24  Bruno Haible  <bruno@clisp.org>
75209
75210         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75211
75212 2005-08-24  Bruno Haible  <bruno@clisp.org>
75213
75214         * gnulib-tool (func_version): Update.
75215
75216 2005-08-24  Bruno Haible  <bruno@clisp.org>
75217
75218         * gnulib-tool (func_import, func_create_testdir,
75219         func_create_megatestdir): Quote all autoconf macro arguments.
75220
75221 2005-08-24  Bruno Haible  <bruno@clisp.org>
75222
75223         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75224         option --force, because --force causes the aclocal.m4 of each
75225         subdirectory to be newer than the corresponding config.h.in.
75226
75227 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75230         All contents moved to gl_REGEX.
75231         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75232         assume that it does.
75233
75234 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * lib/regex.h (REG_NOSYS)
75237         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75238         Define, since POSIX requires it as of 2001.
75239         (_REG_ENOSYS)
75240         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75241         New private symbol, used to keep the enum signed in all cases.
75242         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75243         Youngman in
75244         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75245
75246         * lib/regex_internal.c (re_string_skip_chars, register_state):
75247         (calc_state_hash):
75248         Remove forward decls; no longer needed now that we use prototypes.
75249         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75250         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75251         (clean_state_log_if_needed): Likewise.
75252
75253 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * config/srclist.txt: Add glibc bugs 1231-1233.
75256
75257 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         Fix problems reported by Sam Steingold in
75260         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75261         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75262         assumed that reg_errcode_t is a signed type, which is not
75263         necessarily true if _XOPEN_SOURCE is not defined.
75264         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75265         since some compilers warn about it otherwise.
75266
75267 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75270         (init_word_char, create_initial_state, duplicate_node_closure):
75271         (fetch_token, peek_token_bracket, build_range_exp):
75272         (build_collating_symbol): Remove forward decls; no longer needed
75273         now that we use prototypes.
75274
75275         * lib/regcomp.c:
75276         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75277         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75278         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75279         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75280         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75281         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75282         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75283         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75284         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75285         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75286         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75287         (build_charclass, build_charclass_op, fetch_number, create_tree):
75288         (create_token_tree, mark_opt_subexp, duplicate_tree):
75289         Use prototypes rather than old-style definitions.
75290
75291         * lib/regex_internal.c:
75292         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75293         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75294         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75295         (re_string_reconstruct, re_string_peek_byte_case):
75296         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75297         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75298         (re_node_set_init_copy, re_node_set_add_intersect):
75299         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75300         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75301         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75302         (re_acquire_state, re_acquire_state_context, register_state):
75303         (create_ci_newstate, create_cd_newstate, free_state):
75304         Likewise.
75305         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75306         re_search_2):
75307         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75308         (re_search_internal, prune_impossible_nodes):
75309         (acquire_init_state_context, check_matching, static):
75310         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75311         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75312         (update_regs, sift_states_backward, build_sifted_states):
75313         (clean_state_log_if_needed, merge_state_array):
75314         (update_cur_sifted_state, add_epsilon_src_nodes):
75315         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75316         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75317         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75318         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75319         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75320         (check_arrival, check_arrival_add_next_nodes):
75321         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75322         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75323         (check_node_accept_bytes, check_node_accept, extend_buffers):
75324         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75325         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75326         (sift_ctx_init):
75327         Likewise.
75328
75329         * lib/regex_internal.h:
75330         (re_string_allocate, re_string_construct, re_string_reconstruct):
75331         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75332         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75333         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75334         (re_string_context_at, re_string_peek_byte_case):
75335         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75336         is defined, since we now use prototypes always.
75337
75338         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75339         C89 or better.  All uses removed.
75340
75341 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * config/srclist.txt: Add glibc bugs 1220-1227.
75344
75345 2005-08-20  Jim Meyering  <jim@meyering.net>
75346
75347         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75348         of unused local, dfa.
75349
75350 2005-08-20  Bruno Haible  <bruno@clisp.org>
75351
75352         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75353
75354 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75357         (re_node_set_insert_last, re_dfa_add_node):
75358         Rename local variables to avoid GCC shadowing warnings.
75359
75360 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75363         [defined lint]: Suppress bogus uninitialized-variable warnings.
75364
75365         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75366         and let the caller return REG_ESPACE if out of space.  This
75367         removes an uninitialied-variable warning with GCC 4.0.1, and also
75368         avoids taking the address of a local variable.  All callers
75369         changed.
75370
75371 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75374         $LIBCSRC/posix/regexec.c.
75375         Add glibc bug 1217 for regcomp.c.
75376
75377 2005-08-19  Jim Meyering  <jim@meyering.net>
75378
75379         * lib/regexec.c (proceed_next_node): Redo local variables to
75380         avoid GCC shadowing warnings.
75381
75382 2005-08-18  Bruno Haible  <bruno@clisp.org>
75383
75384         * lib/strstr.c (strstr): Fix return value in multibyte case.
75385         * lib/strcasestr.c (strcasestr): Likewise.
75386
75387 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75390
75391 2005-08-17  Jim Meyering  <jim@meyering.net>
75392
75393         Make the %s format (seconds since the epoch) work for a negative
75394         number and when used with a zero-padded field width, e.g. %015s.
75395
75396         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75397         label so that it precedes the code to set `digits'.  Otherwise,
75398         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75399         print `00-22'.  Now, it prints `-0022', as it should.
75400
75401 2005-08-17  Bruno Haible  <bruno@clisp.org>
75402
75403         * modules/strstr (Files): Add m4/mbrtowc.m4.
75404         (Depends-on): Add mbuiter.
75405
75406 2005-08-17  Bruno Haible  <bruno@clisp.org>
75407
75408         * modules/strcasestr: New file.
75409         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75410         strcasestr.
75411
75412 2005-08-17  Bruno Haible  <bruno@clisp.org>
75413
75414         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75415
75416 2005-08-17  Bruno Haible  <bruno@clisp.org>
75417
75418         * modules/mbuiter: New file.
75419         * MODULES.html.sh (Extended multibyte and wide character utilities):
75420         Add mbuiter.
75421
75422 2005-08-17  Bruno Haible  <bruno@clisp.org>
75423
75424         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75425         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75426
75427 2005-08-17  Bruno Haible  <bruno@clisp.org>
75428
75429         * m4/strcasestr.m4: New file.
75430
75431 2005-08-17  Bruno Haible  <bruno@clisp.org>
75432
75433         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75434         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75435
75436 2005-08-17  Bruno Haible  <bruno@clisp.org>
75437
75438         * lib/strcasestr.h: New file.
75439         * lib/strcasestr.c: New file.
75440
75441 2005-08-17  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/strcasecmp.c: Use mbuiter.h.
75444
75445 2005-08-17  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/mbuiter.h: New file.
75448
75449 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75452         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75453         and gl_GETOPT are both invoked via different paths (as happens
75454         with GNU tar CVS because it uses both argp and getopt), the former
75455         wins.
75456
75457 2005-08-16  Bruno Haible  <bruno@clisp.org>
75458
75459         * modules/tls: New file.
75460         * MODULES.html.sh (Multithreading): Add tls.
75461
75462 2005-08-16  Bruno Haible  <bruno@clisp.org>
75463
75464         * modules/strnlen1: New file.
75465         * MODULES.html.sh (String handling): Add strnlen1.
75466
75467 2005-08-16  Bruno Haible  <bruno@clisp.org>
75468
75469         * modules/strcase (Files): Add m4/mbrtowc.m4.
75470         (Depends-on): Add strnlen1, mbchar.
75471
75472 2005-08-16  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/mbiter: New file.
75475         * MODULES.html.sh (Extended multibyte and wide character utilities):
75476         Add mbiter.
75477
75478 2005-08-16  Bruno Haible  <bruno@clisp.org>
75479
75480         * modules/mbfile: New file.
75481         * MODULES.html.sh (Extended multibyte and wide character utilities):
75482         Add mbfile.
75483
75484 2005-08-16  Bruno Haible  <bruno@clisp.org>
75485
75486         * modules/mbchar: New file.
75487         * MODULES.html.sh (Extended multibyte and wide character utilities):
75488         New section.
75489
75490 2005-08-16  Bruno Haible  <bruno@clisp.org>
75491
75492         * m4/tls.m4: New file, from GNU gettext.
75493
75494 2005-08-16  Bruno Haible  <bruno@clisp.org>
75495
75496         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75497         always.
75498         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75499
75500 2005-08-16  Bruno Haible  <bruno@clisp.org>
75501
75502         * m4/mbiter.m4: New file.
75503
75504 2005-08-16  Bruno Haible  <bruno@clisp.org>
75505
75506         * m4/mbfile.m4: New file.
75507
75508 2005-08-16  Bruno Haible  <bruno@clisp.org>
75509
75510         * m4/mbchar.m4: New file.
75511
75512 2005-08-16  Bruno Haible  <bruno@clisp.org>
75513
75514         * lib/tls.h: New file, from GNU gettext.
75515         * lib/tls.c: New file, from GNU gettext.
75516
75517 2005-08-16  Bruno Haible  <bruno@clisp.org>
75518
75519         * lib/strnlen1.h: New file.
75520         * lib/strnlen1.c: New file.
75521
75522 2005-08-16  Bruno Haible  <bruno@clisp.org>
75523
75524         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75525         (mbi_init): Update.
75526         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75527         NUL byte, not after it.
75528
75529 2005-08-16  Bruno Haible  <bruno@clisp.org>
75530
75531         * lib/strcase.h (strcasecmp): Add note in comments.
75532         * lib/strncasecmp.c: Use code from strcasecmp.c.
75533         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75534         (strcasecmp): Work correctly in multibyte locales.
75535
75536 2005-08-16  Bruno Haible  <bruno@clisp.org>
75537
75538         * lib/mbiter.h: New file.
75539
75540 2005-08-16  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/mbfile.h: New file.
75543
75544 2005-08-16  Bruno Haible  <bruno@clisp.org>
75545
75546         * lib/mbchar.h: New file.
75547         * lib/mbchar.c: New file.
75548
75549 2005-08-16  Bruno Haible  <bruno@clisp.org>
75550
75551         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75552         the valid ones. Makes the comparison operations transitive:
75553         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75554         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75555
75556 2005-08-15  Simon Josefsson  <jas@extundo.com>
75557
75558         * modules/ssize_t (License): Change to 'unlimited'.
75559
75560         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75561
75562 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75565         Add comments for each pending glibc patch.
75566
75567 2005-08-15  Bruno Haible  <bruno@clisp.org>
75568
75569         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75570         __cplusplus is defined.
75571
75572 2005-08-14  Jim Meyering  <jim@meyering.net>
75573
75574         Sync from coreutils.
75575
75576         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75577         Use the hash-table-based cycle-detection code not just when
75578         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75579         Reported by James Youngman in
75580         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75581         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75582         FTS_TIGHT_CYCLE_CHECK.
75583         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75584         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75585         once again.
75586         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75587         * lib/fts.c (fd_safer): Remove decl.
75588         Include fcntl--.h rather than unistd-safer.h
75589         (fts_safe_changedir): Don't call fd_safer; no longer needed
75590         now that we include fcntl--.h.
75591
75592 2005-08-12  Simon Josefsson  <jas@extundo.com>
75593
75594         * modules/getndelim2: Use ssize_t module.
75595         * modules/getnline: Likewise.
75596         * modules/safe-read: Likewise.
75597         * modules/xreadlink: Likewise.
75598
75599         * modules/ssize_t: New file.
75600
75601 2005-08-12  Simon Josefsson  <jas@extundo.com>
75602
75603         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75604
75605 2005-08-12  Simon Josefsson  <jas@extundo.com>
75606
75607         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75608         ssize_t.
75609
75610 2005-08-12  Simon Josefsson  <jas@extundo.com>
75611
75612         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75613         readline, getdelim and check_version.
75614         (Support for systems lacking ISO C 99: Sizes of integer types):
75615         Add size_max.
75616
75617 2005-08-12  Bruno Haible  <bruno@clisp.org>
75618
75619         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75620
75621 2005-08-11  Simon Josefsson  <jas@extundo.com>
75622
75623         * modules/readline: New file.
75624
75625         * modules/strnlen (Files): Add strnlen.h.
75626
75627 2005-08-11  Simon Josefsson  <jas@extundo.com>
75628
75629         * m4/readline.m4: New file.
75630
75631 2005-08-11  Simon Josefsson  <jas@extundo.com>
75632
75633         * lib/readline.h, readline.c: New file.
75634
75635 2005-08-11  Simon Josefsson  <jas@extundo.com>
75636
75637         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75638         gl_AVOID.
75639
75640 2005-08-11  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75643
75644 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75645
75646         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75647
75648 2005-08-10  Simon Josefsson  <jas@extundo.com>
75649
75650         * tests/test-iconvme.c: New file.
75651
75652 2005-08-10  Simon Josefsson  <jas@extundo.com>
75653
75654         * m4/strnlen.m4: New file.
75655
75656         * m4/strndup.m4: Don't check for strnlen declaration, done in
75657         strnlen.m4.
75658
75659 2005-08-10  Simon Josefsson  <jas@extundo.com>
75660
75661         * lib/strndup.c: Use strnlen.h.
75662
75663         * lib/strnlen.h: New file.
75664
75665 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75666
75667         * README: Typos.
75668
75669 2005-08-02  Simon Josefsson  <jas@extundo.com>
75670
75671         * modules/readline: New file.
75672
75673 2005-08-02  Simon Josefsson  <jas@extundo.com>
75674
75675         * modules/getdelim: New file.
75676
75677         * modules/getline: Rewrite, don't use getndelim2.
75678
75679 2005-08-02  Simon Josefsson  <jas@extundo.com>
75680
75681         * m4/getline.m4: Separate out getdelim stuff into separate module.
75682
75683         * m4/getdelim.m4: New file.
75684
75685 2005-08-02  Simon Josefsson  <jas@extundo.com>
75686
75687         * lib/getline.h, getline.c: Rewrite.
75688
75689         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75690
75691 2005-07-31  Bruno Haible  <bruno@clisp.org>
75692
75693         * lib/lock.h (gl_lock_initializer): New macro.
75694         (gl_lock_define_initialized): Use it.
75695         (gl_rwlock_initializer): New macro.
75696         (gl_rwlock_define_initialized): Use it.
75697         (gl_recursive_lock_initializer): New macro.
75698         (gl_recursive_lock_define_initialized): Use it.
75699
75700 2005-07-30  Karl Berry  <karl@gnu.org>
75701
75702         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75703         Report from Ben Pfaff, regarding getopt.
75704
75705 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75708         normal way.
75709         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75710         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75711         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75712         (gl_GETOPT): Use the new macros.  Most of the implementation
75713         is moved to the new macros.  This is for programs like Emacs
75714         that don't want all the functionality of gl_GETOPT.
75715
75716 2005-07-26  Bruno Haible  <bruno@clisp.org>
75717
75718         * m4/lock.m4: Update from GNU gettext.
75719
75720 2005-07-26  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/lock.h: Update from GNU gettext.
75723         * lib/lock.c: Update from GNU gettext.
75724
75725 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75728         obsolescent AC_TRY_RUN.  Include the default includes files, for
75729         'exit'.
75730
75731 2005-07-24  Bruno Haible  <bruno@clisp.org>
75732
75733         * modules/visibility: New file.
75734         * MODULES.html.sh (Misc): Add visibility.
75735
75736 2005-07-24  Bruno Haible  <bruno@clisp.org>
75737
75738         * m4/visibility.m4: New file.
75739
75740 2005-07-24  Bruno Haible  <bruno@clisp.org>
75741
75742         * doc/visibility.texi: New file.
75743
75744 2005-07-22  Bruno Haible  <bruno@clisp.org>
75745
75746         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75747         $(ALLOCA_H), redundant through BUILT_SOURCES.
75748         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75749         redundant through BUILT_SOURCES.
75750         * modules/byteswap (Makefile.am): Remove explicit dependency on
75751         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75752         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75753         $(FNMATCH_H), redundant through BUILT_SOURCES.
75754         * modules/getopt (Makefile.am): Remove explicit dependency on
75755         $(GETOPT_H), redundant through BUILT_SOURCES.
75756         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75757         redundant through BUILT_SOURCES.
75758         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75759         redundant through BUILT_SOURCES.
75760         * modules/stdbool (Makefile.am): Remove explicit dependency on
75761         $(STDBOOL_H), redundant through BUILT_SOURCES.
75762         * modules/stdint (Makefile.am): Remove explicit dependency on
75763         $(STDINT_H), redundant through BUILT_SOURCES.
75764         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75765         Remove explicit dependency on $(SYSEXITS_H).
75766         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75767
75768 2005-07-18  Simon Josefsson  <jas@extundo.com>
75769
75770         * lib/check-version.c (check_version): Accept identical versions too.
75771
75772 2005-07-18  Bruno Haible  <bruno@clisp.org>
75773
75774         * modules/lock: New file.
75775         * MODULES.html.sh (Multithreading): New section.
75776
75777 2005-07-18  Bruno Haible  <bruno@clisp.org>
75778
75779         * m4/lock.m4: New file, from GNU gettext.
75780
75781 2005-07-18  Bruno Haible  <bruno@clisp.org>
75782
75783         * lib/lock.h: New file, from GNU gettext.
75784         * lib/lock.c: New file, from GNU gettext.
75785
75786 2005-07-18  Bruno Haible  <bruno@clisp.org>
75787
75788         * lib/lock.h (gl_once_t): New type.
75789         (gl_once_define, gl_once): New macros.
75790         * lib/lock.c (fresh_once): New variable.
75791         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75792         functions.
75793
75794 2005-07-16  Simon Josefsson  <jas@extundo.com>
75795
75796         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75797         workaround, suggested by Bruno.
75798
75799 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75800
75801         * modules/xalloc (Depends-on): Add xalloc-die.
75802         * modules/xvasprintf (Depends-on): Add xalloc-die.
75803
75804 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75807         with a minor change.
75808
75809 2005-07-15  Bruno Haible  <bruno@clisp.org>
75810
75811         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75812         When using lib/poll.c, define poll as rpl_poll.
75813
75814 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         * modules/argp (Depends-on): Remove unlocked-io.
75817
75818 2005-07-14  Derek Price  <derek@ximbiot.com>
75819
75820         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75821         for glob symlink bug.
75822
75823 2005-07-14  Bruno Haible  <bruno@clisp.org>
75824
75825         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75826         Instead, test for *_unlocked function declarations directly.
75827
75828 2005-07-11  Simon Josefsson  <jas@extundo.com>
75829
75830         * modules/size_max: New file.
75831
75832         * modules/xsize: Depend on size_max module for size_max.m4.
75833
75834 2005-07-11  Simon Josefsson  <jas@extundo.com>
75835
75836         * lib/size_max.h: New file.
75837
75838 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75839
75840         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75841         copyright symbol and the year.
75842         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75843         (version_etc_va): Use parameterized copyright notice.
75844         Reword to conform to the current GNU coding standards.
75845
75846 2005-07-11  Karl Berry  <karl@gnu.org>
75847
75848         * doc/gnulib.texi (Quoting): new node.
75849         (Initial import): more info, from Patrice.
75850
75851 2005-07-11  Bruno Haible  <bruno@clisp.org>
75852
75853         * gnulib-tool (func_usage): Document option --avoid.
75854         (Command line options): Handle --avoid.
75855         (func_acceptable): New function.
75856         (func_modules_transitive_closure): Use it.
75857
75858 2005-07-11  Bruno Haible  <bruno@clisp.org>
75859
75860         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75861         Reported by Jim Meyering.
75862
75863 2005-07-10  Bruno Haible  <bruno@clisp.org>
75864
75865         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75866         Needed when size_t is smaller than 'unsigned int'.
75867         Reported by Paul Eggert.
75868
75869 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75870
75871         * modules/argp (Depends-on): Add unlocked-io
75872
75873 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75874
75875         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75876         block of defines.
75877
75878 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75881         fix now.
75882
75883 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75884         and Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75887         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75888
75889 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * modules/regex (Files): Add lib/regex_internal.c,
75892         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75893         (Depends-on): Add extensions.
75894         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75895
75896 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75899         pathconf.
75900         * m4/same.m4 (gl_SAME): Likewise.
75901         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75902
75903         * m4/regex.m4: Adjust to new libc regex implementation.
75904         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75905         all the .c and .h parts of (the new) regex.
75906         Quote the m4 stuff better.
75907         Check for RE_ICASE bug of old gnulib.
75908         Check for REG_STARTEND of recent libc.
75909         Rename local variables from jm_* to gl_*.
75910         Quote operand of "test -f".
75911         Say "recent enough" version of libc, not "version 2".
75912         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75913         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75914         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75915         Remove check for btowc, isascii.
75916         Require AM_LANGINFO_CODESET.
75917
75918 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/regex.c, regex.h: Sync from libc.
75921         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75922         * lib/regexec.c:
75923         New files, synced from libc, except that regex_internal.h
75924         currently has a small porting fix.
75925
75926 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75929         regex_internal.c, regexec.c.
75930         Add regex_internal.h too, but as a comment, since the libc version
75931         is currently broken in gnulib mode.
75932
75933 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         Support programs like Emacs that use gnulib but not gettext.
75936         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75937         * modules/gettext-h: New file.
75938         * modules/gettext (Files): Remove lib/gettext.h.
75939         (Depends-on): Add gettext-h.
75940         (Makefile.am): Remove lib_SOURCES.
75941         * modules/argmatch, modules/c-stack, modules/closeout:
75942         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75943         * modules/execute, modules/file-type, modules/getaddrinfo:
75944         * modules/getopt, modules/human, modules/javacomp:
75945         * modules/javaexec, modules/mkdir-p, modules/obstack:
75946         * modules/openat, modules/pagealign_alloc, modules/pipe:
75947         * modules/quotearg, modules/regex, modules/rpmatch:
75948         * modules/unicodeio, modules/userspec, modules/version-etc:
75949         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75950         * modules/xsetenv:
75951         Depend on gettext-h, not gettext.
75952
75953 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * gnulib-tool (func_import): Add support for 'public domain' license.
75956         * modules/alloca, modules/atexit, modules/memmove:
75957         Now public domain, not GPL.
75958         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75959         * modules/realloc, modules/strerror, modules/strtod:
75960         Now LGPL, not GPL.
75961
75962 2005-07-05  Bruno Haible  <bruno@clisp.org>
75963
75964         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75965         autoconf CVS. Needed for mingw.
75966
75967 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         Remove the dependency of the strftime module on the tzset module.
75970         * modules/strftime (Depends-on): Remove dependency on tzset.
75971
75972 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         Remove the dependency of the strftime module on the tzset module.
75975         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75976         gl_FUNC_TZSET_CLOBBER.
75977
75978 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         Remove the dependency of the strftime module on the tzset module.
75981         * lib/strftime.c (my_strftime)
75982         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75983         Copy the input structure, to work around some of the bug with
75984         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75985         Solaris releases, you should also use the tzset module, but we won't
75986         require it as a dependency any more since we don't want LGPLed code
75987         to depend on GPLed code.
75988
75989 2005-07-02  Jim Meyering  <jim@meyering.net>
75990
75991         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75992         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75993         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75994         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75995
75996 2005-07-02  Jim Meyering  <jim@meyering.net>
75997
75998         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75999
76000 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76003         declares only 'struct timespec;' (!).
76004
76005 2005-07-01  Jim Meyering  <jim@meyering.net>
76006
76007         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76008         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76009         * lib/save-cwd.c, tempname.c:
76010         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76011         and don't include <sys/file.h>).
76012
76013 2005-06-29  Jim Meyering  <jim@meyering.net>
76014
76015         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76016         type name.  Use the variable name instead.
76017         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76018         Likewise.
76019
76020 2005-06-28  Simon Josefsson  <jas@extundo.com>
76021
76022         * modules/check-version (Files): Add check-version.m4.
76023
76024 2005-06-28  Simon Josefsson  <jas@extundo.com>
76025
76026         * m4/check-version.m4: New file, suggested by Jim Meyering
76027         <jim@meyering.net>.
76028
76029 2005-06-28  Simon Josefsson  <jas@extundo.com>
76030
76031         * lib/check-version.h, lib/check-version.c: New files.
76032
76033 2005-06-28  Simon Josefsson  <jas@extundo.com>
76034
76035         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76036         collision with global variable.  Better indentation.  Don't
76037         increment buffer pointer beyond buffer end.  Based on comments
76038         from Paul Eggert <eggert@cs.ucla.edu>.
76039
76040         * lib/base64.h: Indent.
76041
76042 2005-06-28  Simon Josefsson  <jas@extundo.com>
76043
76044         * doc/gnulib.texi (Library version handling): New section.
76045
76046 2005-06-28  Jim Meyering  <jim@meyering.net>
76047
76048         * check-module (find_included_lib_files): Hard-code another
76049         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76050         but modules/fts-lgpl (correctly) does not list those files.
76051
76052         * modules/canonicalize (Files): Add lib/pathmax.h.
76053
76054 2005-06-25  Simon Josefsson  <jas@extundo.com>
76055
76056         * modules/check-version: New file.
76057
76058 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76061         initializer of struct addrinfo, as an indication that we don't
76062         care how many members the structure has.
76063
76064 2005-06-24  Derek Price  <derek@ximbiot.com>
76065         and Bruno Haible  <bruno@clisp.org>
76066
76067         Remove stat module & update lstat.
76068         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76069         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76070         * m4/stat.m4: Remove this file.
76071
76072 2005-06-24  Derek Price  <derek@ximbiot.com>
76073         and Bruno Haible  <bruno@clisp.org>
76074
76075         Remove stat module & update lstat.
76076         * lib/stat.c: Remove this file...
76077         (slash_aware_lstat): ...moving this content and its support...
76078         * lib/lstat.c (rpl_lstat): ...into here.
76079         * lib/lstat.h: New file.
76080
76081 2005-06-24  Derek Price  <derek@ximbiot.com>
76082         and Bruno Haible  <bruno@clisp.org>
76083
76084         Remove stat module & update lstat.
76085         * config/srclist.txt (libc sources): Remove stat.
76086
76087 2005-06-24  Derek Price  <derek@ximbiot.com>
76088         and Bruno Haible  <bruno@clisp.org>
76089
76090         Remove stat module & update lstat.
76091         * MODULES.html.sh (stat): Remove.
76092         * MODULES.html: Regenerated.
76093         * modules/lstat (Description): Correct function name.
76094         (Files): Add "lstat.h".
76095         (Depends-on): Remove stat, add xalloc, stat-macros.
76096         * modules/stat: Remove this file.
76097         (Include): Add "lstat.h", remove <sys/stat.h>.
76098
76099 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76102         (ranged_convert): Don't save conversion in a temporary struct.
76103         This causes a warning with GCC 4.0.0, and anyway in the typical
76104         case it's not worth the extra 100 bytes or so of code.
76105         (ranged_convert, __mktime_internal): When calling a function via a
76106         pointer P, use P () rather than (*P) (), as we now assume C89 or
76107         better.
76108
76109 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76110
76111         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76112         "who -r" failed to give output.  Problem reported by Tim Waugh.
76113
76114         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76115         (xcalloc): Use it to avoid needless tests.
76116         Problem reported by Jim Meyering.
76117
76118 2005-06-20  Derek Price  <derek@ximbiot.com>
76119
76120         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76121         unnecessary for Autoconfs > 2.59c.
76122
76123 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76124
76125         * lib/argp.h (__option_is_short): Check upper limit of
76126         __key. Isprint() requires its argument to have the value
76127         of an unsigned char or EOF.
76128
76129 2005-06-16  Jim Meyering  <jim@meyering.net>
76130
76131         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76132         when either N or S is zero.
76133
76134 2005-06-16  Derek Price  <derek@ximbiot.com>
76135
76136         * m4/bison.m4: Declare YACC & YFLAGS precious.
76137
76138 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76139
76140         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76141         multibyte string or pattern, fall back on unibyte matching.
76142         Problem reported by James Youngman.
76143
76144 2005-06-08  Bruno Haible  <bruno@clisp.org>
76145
76146         * modules/csharpcomp: New file.
76147         * MODULES.html.sh (C#): Add csharpcomp.
76148
76149 2005-06-08  Bruno Haible  <bruno@clisp.org>
76150
76151         * m4/csharpcomp.m4: New file, from GNU gettext.
76152
76153 2005-06-08  Bruno Haible  <bruno@clisp.org>
76154
76155         * lib/csharpcomp.h: New file, from GNU gettext.
76156         * lib/csharpcomp.c: New file, from GNU gettext.
76157         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76158
76159 2005-06-08  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76162         warning on mingw.
76163
76164 2005-06-07  Derek Price  <derek@ximbiot.com>
76165
76166         Sync from CVS.
76167         * lib/glob_.h: Indent nested #ifdef.
76168
76169 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         Sync from coreutils.
76172         Use "file name" when talking about file names, instead of "filename"
76173         or "path", as per the GNU coding standards.
76174         * lib/mkdir-p.c: Renamed from makepath.c.
76175         (make_dir_parents): Renamed from make_path.  All callers changed.
76176         * lib/mkdir-p.h: Likewise.  All includers changed.
76177         * lib/filenamecat.c: Renamed from path-concat.c.
76178         (file_name_concat): Renamed from path_concat.  All callers changed.
76179         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76180         * lib/filenamecat.h: Likewise.  All includers changed.
76181         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76182         in comments or local variable names.
76183         * lib/basename.c: Likewise.
76184         * lib/canonicalize.c, canonicalize.h: Likewise.
76185         * lib/dirname.c, dirname.h: Likewise.
76186         * lib/euidaccess.c: Likewise.
76187         * lib/exclude.c: Likewise
76188         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76189         * lib/fsusage.c, fsuage.h: Likewise.
76190         * lib/fts.c, fts_.h: Likewise.
76191         * lib/getcwd.c: Likewise.
76192         * lib/getloadavg.c: Likewise.
76193         * lib/mkstemp.c: Likewise.
76194         * lib/mountlist.c, mountlist.h: Likewise.
76195         * lib/openat.c, openat.h: Likewise.
76196         * lib/readlink-stub.c: Likewise.
76197         * lib/readutmp.c, readutmp.h: Likewise.
76198         * lib/rename.c: Likewise.
76199         * lib/rmdir.c: Likewise.
76200         * lib/same.c: Likewise.
76201         * lib/savedir.c: Likewise.
76202         * lib/stripslash.c: Likewise.
76203         * lib/tempname.c: Likewise.
76204         * lib/xreadlink.c: Likewise.
76205         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76206         All uses changed.
76207         * lib/exclude.h: Likewise.
76208
76209         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76210         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76211         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76212         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76213         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76214         files have been getting away with it for years (MORE/BSD 4.3
76215         is extinct now).
76216         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76217         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76218
76219         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76220         Define to 256, not 255, as per modern POSIX.
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         * MODULES.html.sh: mkdir-p renamed from makepath.
76228         filenamecat renamed from path-concat.
76229         * modules/filenamecat: Renamed from modules/path-concat.
76230         (Files): filenamecat.h and filenamecat.c renamed from
76231         path-concat.h and path-concat.c.
76232         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76233         (Include): filenamecat.h, not path-concat.h.
76234         * modules/mkdir-p: Renamed from modules/makepath.
76235         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76236         makepath.c.
76237         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76238         (Include): mkdir-p.h, not makepath.h.
76239
76240 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76241
76242         Sync from coreutils.
76243         * m4/mkdir-p.m4: Renamed from makepath.m4.
76244         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76245         Rename files from makepath.c to mkdir-p.c, and from
76246         makepath.h to mkdir-p.h.
76247         * m4/filenamecat.m4: Renamed from path-concat.m4.
76248         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76249         Rename files from path-concat.c to filenamecat.c,
76250         and from path-concat.h to filenamecat.h.
76251         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76252         "file name" in local variables or comments.
76253         * m4/rename.m4: Likewise.
76254
76255 2005-06-01  Bruno Haible  <bruno@clisp.org>
76256
76257         * modules/csharpexec: New file.
76258         * MODULES.html.sh (C#): New section.
76259
76260 2005-06-01  Bruno Haible  <bruno@clisp.org>
76261
76262         * m4/csharp.m4: New file, from GNU gettext.
76263         * m4/csharpexec.m4: New file, from GNU gettext.
76264
76265 2005-06-01  Bruno Haible  <bruno@clisp.org>
76266
76267         * lib/csharpexec.h: New file, from GNU gettext.
76268         * lib/csharpexec.c: New file, from GNU gettext.
76269         * lib/csharpexec.sh.in: New file, from GNU gettext.
76270
76271 2005-05-31  Derek Price  <derek@ximbiot.com>
76272             Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         Sync from cvs.
76275         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76276
76277 2005-05-31  Derek Price  <derek@ximbiot.com>
76278             Paul Eggert  <eggert@cs.ucla.edu>
76279
76280         Sync from cvs.
76281         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76282
76283 2005-05-29  Derek Price  <derek@ximbiot.com>
76284
76285         * config/srclist.txt (glob_.h, glob.c): Add these files.
76286
76287 2005-05-29  Derek Price  <derek@ximbiot.com>
76288
76289         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76290         * modules/glob: New file.
76291         * modules/getlogin_r: Add link to POSIX spec in description.
76292
76293 2005-05-29  Derek Price  <derek@ximbiot.com>
76294             Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * m4/glob.m4: New file.
76297
76298 2005-05-29  Derek Price  <derek@ximbiot.com>
76299             Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * lib/glob_.h, lib/glob.c: New files.
76302
76303 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76306         * modules/fts-lgpl (Depends-on): Remove gettext.
76307
76308 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76311         and don't require gt_INTTYPES_PRI.
76312
76313 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76316
76317         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76318         the configuration hassle isn't worth it.
76319         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76320         (LONGEST_MODIFIER, PRIuMAX): Remove.
76321
76322 2005-05-27  Bruno Haible  <bruno@clisp.org>
76323
76324         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76325
76326 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76329         _POSIX_PTHREAD_SEMANTICS for Solaris.
76330
76331 2005-05-25  Derek Price  <derek@ximbiot.com>
76332
76333         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76334
76335 2005-05-25  Derek Price  <derek@ximbiot.com>
76336             Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76339         * lib/getlogin_r.c, getlogin_r.h: New files.
76340
76341 2005-05-25  Bruno Haible  <bruno@clisp.org>
76342             Derek Price  <derek@ximbiot.com>
76343
76344         * lib/getlogin_r.h: Simplify API documentation.
76345
76346 2005-05-23  Derek Price  <derek@ximbiot.com>
76347
76348         * modules/minmax (Files): Add m4/minmax.m4.
76349         (configure.ac): Add gl_MINMAX.
76350
76351 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76354         so that unistd-safer.h (GPL'ed code) need not be included.
76355
76356 2005-05-22  Bruno Haible  <bruno@clisp.org>
76357
76358         * m4/minmax.m4: New file.
76359         Based on a patch by Derek Price <derek@ximbiot.com>.
76360
76361 2005-05-22  Bruno Haible  <bruno@clisp.org>
76362
76363         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76364         (INT64_MIN): Fix definition.
76365         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76366
76367         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76368         NEED_SIGNED_INT_TYPES.
76369
76370         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76371         HAVE_SYSTEM_INTTYPES.
76372
76373 2005-05-22  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76376         Also include <sys/param.h> if it defines MIN, MAX.
76377         Based on a patch by Derek Price <derek@ximbiot.com>.
76378
76379 2005-05-21  Jim Meyering  <jim@meyering.net>
76380
76381         * modules/fts (Files): Add m4/inttypes-pri.m4.
76382         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76383
76384 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76385
76386         New fts module.
76387         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76388         (setup_dir, free_dir): New functions.
76389         (enter_dir, leave_dir): Define trivial
76390         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76391         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76392         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76393         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76394         Move to fts-cycle.c.
76395         (fts_open): Use setup_dir.
76396         (fts_close): Use free_dir.
76397         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76398         This adds a label and some gotos, but the alternatives were messier.
76399         Check for memory allocation failure when entering a dir.
76400         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76401         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76402         (FTS): New member fts_cycle, that is a union that contains the
76403         old active_dir_ht and cycle_state.  All uses changed to mention
76404         fts_cycle.ht and fts_cycle.state.
76405         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76406         fts.c, with the following changes:
76407         (setup_dir, free_dir): New functions.
76408         (enter_dir): Now returns bool.  Return true if successful, false
76409         if memory exhausted.  All callers changed.
76410         Do not bother partly cleaning up on
76411         memory allocation failure; that is free_dir's job.
76412         However, free ad if hash_insert fails, to avoid memory leak.
76413         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76414         fts->fts_options to see which union member to use.
76415
76416 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76419         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76420
76421 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76424
76425 2005-05-20  Jim Meyering  <jim@meyering.net>
76426
76427         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76428         Now a macro, to pacify GCC.
76429
76430 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76431
76432         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76433         of -1.
76434
76435 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76436
76437         * lib/chown.c (rpl_chown): Return -1 on failure.
76438
76439 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76442         Don't check for stddef.h.
76443         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76444         don't use its results.
76445         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76446         since we include them unconditionally.  Don't require
76447         AM_STDBOOL_H, since stdbool is a prerequisite.
76448         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76449         since we assume C89 or better.
76450         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76451         as we don't use their results.
76452         Don't check for fchdir, memmove, memset, strrchr, as we use
76453         them unconditionally.
76454         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76455         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76456
76457 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76460         Include <stddef.h> unconditionally, since we assume C89 now.
76461         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76462         * lib/fts.c: Include fts_.h first, to check interface.
76463         Do not include intprops.h; no longer needed.
76464         Include cycle-check.h and hash.h, since fts_.h no longer does.
76465         Remove unnecessary casts of closedir to void.
76466         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76467         decide whether to decrement nlinks.
76468         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76469         (FTS): Use struct hash_table * instead of Hash_table, so that
76470         we no longer need to include hash.h here.
76471
76472 2005-05-18  Jim Meyering  <jim@meyering.net>
76473
76474         * modules/dirfd (License): Change to LGPL.  Most of the code
76475         is already in the public domain.
76476
76477 2005-05-18  Jim Meyering  <jim@meyering.net>
76478
76479         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76480         Reported by Yoann Vandoorselaere.
76481
76482 2005-05-17  Jim Meyering  <jim@meyering.net>
76483
76484         * m4/fts.m4: New file, from coreutils.
76485
76486 2005-05-17  Jim Meyering  <jim@meyering.net>
76487
76488         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76489
76490 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         Sync from coreutils.
76493         * m4/unlinkdir.m4: New file.
76494
76495 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76496
76497         Sync from coreutils.
76498         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76499         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76500         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76501         White space changes only.
76502         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76503         special.
76504         * lib/yesno.c: Include getline.h, not ctype.h.
76505         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76506         Use getline to remove arbitrary restriction on response length.
76507
76508 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * config/srclist-update: Spell out "Street" in FSF postal
76511         mail address; this is the style the FSF seems to prefer.
76512
76513         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76514         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76515         this updates FSF postal mail address.
76516
76517         Sync from coreutils.
76518         * modules/unlinkdir: New file.
76519         * modules/yesno (Depends-on): Add getline.
76520         * MODULES.html.sh (File system functions): Add unlinkdir.
76521
76522 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76525         lib/strsep.h:
76526         Change the initial comment to refer to GPL, not LGPL.
76527         gnulib-tool will change it to LGPL as needed.
76528
76529         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76530         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76531         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76532         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76533         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76534         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76535         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76536         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76537         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76538         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76539         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76540         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76541         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76542         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76543         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76544         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76545         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76546         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76547         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76548         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76549         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76550         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76551         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76552         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76553         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76554         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76555         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76556         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76557         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76558         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76559         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76560         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76561         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76562         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76563         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76564         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76565         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76566         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76567         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76568         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76569         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76570         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76571         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76572         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76573         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76574         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76575         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76576         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76577         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76578         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76579         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76580         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76581         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76582         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76583         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76584         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76585         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76586         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76587         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76588         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76589         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76590         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76591         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76592         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76593         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76594         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76595         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76596         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76597         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76598         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76599         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76600         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76601         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76602         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76603         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76604         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76605         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76606         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76607         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76608         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76609         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76610         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76611         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76612         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76613         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76614         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76615         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76616         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76617         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76618         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76619         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76620         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76621         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76622         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76623         lib/yesno.c, lib/yesno.h:
76624         Update FSF postal mail address.
76625
76626 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76629         tests/test-memmem.c, tests/test-stpncpy.c:
76630         Update FSF postal mail address.
76631
76632 2005-05-13  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76635         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76636         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76637         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76638         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76639         Add support for 64-bit integers in the MSVC compiler.
76640
76641 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76642
76643         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76644
76645 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76646
76647         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76648
76649 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         * doc/getdate.texi (General date syntax): Don't say that date
76652         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76653         Problem reported by Nic Ferrier.
76654
76655 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76656
76657         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76658         specified in ai_socktype. Fix invalid ai_protocol
76659         check. ai_protocol is usually set to 0 or depending on
76660         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76661         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76662         ai_socktype / ai_protocol in the returned addrinfo structure.
76663
76664 2005-05-10  Simon Josefsson  <jas@extundo.com>
76665
76666         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76667         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76668
76669 2005-05-10  Karl Berry  <karl@gnu.org>
76670
76671         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76672         (from http://www.gnu.org/licenses).
76673         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76674         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76675         fdl.texi suffices.
76676
76677 2005-05-10  Karl Berry  <karl@gnu.org>
76678
76679         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76680         (COPYING.DOC): remove.
76681
76682         * config/srclist-update: new FSF address.
76683
76684 2005-05-10  Derek Price  <derek@ximbiot.com>
76685
76686         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76687         possible.
76688
76689 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76690             Bruno Haible  <bruno@clisp.org>
76691
76692         * modules/inet_ntop: New file.
76693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76694         inet_ntop.
76695
76696 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76697             Bruno Haible  <bruno@clisp.org>
76698
76699         * m4/inet_ntop.m4: New file.
76700
76701 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76702             Bruno Haible  <bruno@clisp.org>
76703
76704         * lib/inet_ntop.h: New file.
76705         * lib/inet_ntop.c: New file, from glibc with modifications.
76706
76707 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * modules/time_r (License): Change to LGPL.
76710         * modules/extensions (License): Change to LGPL.  Actually,
76711         the license is more permissive than that, but currently gnulib-tool
76712         doesn't know how to handle more-permissive licenses.
76713
76714         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76715         Problem reported by Dave Love.
76716
76717 2005-05-08  Jim Meyering  <jim@meyering.net>
76718
76719         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76720         blank.
76721
76722 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * modules/argmatch (Depends-on): Add stdbool.
76725         * modules/backupfile (Depends-on): Likewise.
76726         * modules/chdir-long (Depends-on): Likewise.
76727         * modules/closeout (Depends-on): Likewise.
76728         * modules/cycle-check (Depends-on): Likewise.
76729         * modules/dirname (Depends-on): Likewise.
76730         * modules/fnmatch (Depends-on): Likewise.
76731         * modules/fsusage (Depends-on): Likewise.
76732         * modules/fwriteerror (Depends-on): Likewise.
76733         * modules/getcwd (Depends-on): Likewise.
76734         * modules/getloadavg (Depends-on): Likewise.
76735         * modules/hard-locale (Depends-on): Likewise.
76736         * modules/makepath (Depends-on): Likewise.
76737         * modules/mountlist (Depends-on): Likewise.
76738         * modules/nanosleep (Depends-on): Likewise.
76739         * modules/posixtm (Depends-on): Likewise.
76740         * modules/quotearg (Depends-on): Likewise.
76741         * modules/readtokens (Depends-on): Likewise.
76742         * modules/readtokens0 (Depends-on): Likewise.
76743         * modules/readutmp (Depends-on): Likewise.
76744         * modules/save-cwd (Depends-on): Likewise.
76745         * modules/strftime (Depends-on): Likewise.
76746         * modules/userspec (Depends-on): Likewise.
76747         * modules/utimecmp (Depends-on): Likewise.
76748         * modules/xgetcwd (Depends-on): Likewise.
76749         * modules/xnanosleep (Depends-on): Likewise.
76750         * modules/xstrtod (Depends-on): Likewise.
76751         * modules/yesno (Depends-on): Likewise.
76752
76753 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76756         needless checks.
76757
76758 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         Merge from coreutils.  Among other things,
76761         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76762         * lib/fd-safer.c: New file.
76763         * lib/fcntl-safer.h, open-safer.c: Remove.
76764         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76765         * lib/dup-safer.c: Include unistd-safer.h first.
76766         Don't include errno.h.
76767         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76768         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76769         * lib/file-type.c: Rely on file-type.h change.
76770         * lib/getloadavg.c: Include unistd-safer.h.
76771         (getloadavg): Use safer open.
76772         * lib/getusershell.c: Include "stdio-safer.h".
76773         (getusershell): Use safer fopen.
76774         * lib/long-options.c (long_options): Use NULL rather than 0.
76775         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76776         'free'.
76777         * lib/modechange.c: Likewise.
76778         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76779         (MODE_DONE): New constant.
76780         (struct mode_change): Remove 'next' member.
76781         (make_node_op_equals): New function; like the old one of the
76782         same name, except it allocates an array.
76783         (mode_compile, mode_create_from_ref): Use it.
76784         (mode_compile): Allocate result as an array, not a linked list.
76785         Parse octal string ourself, so that we catch mistakes like "+0".
76786         (mode_adjust): Arg is an array, not a linked list.
76787         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76788         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76789         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76790         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76791         Remove.  This is now stat-macros.h's job.
76792         (talloc): Remove.  All callers replaced by xalloc, so that
76793         our invokers don't have to worry about reporting memory failures.
76794         (make_node_op_equals): Remove.
76795         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76796         New constants.
76797         (struct mode_change): Moved here from modechange.h.
76798         (mode_append_entry): Remove.
76799         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76800         apps to have incorrect behavior.  Use simpler algorithm for head
76801         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76802         Detect more invalid usages rather than having somewhat-random behavior.
76803         Don't insert an "a=" action, as that leads to incorrect behavior.
76804         (mode_compile, mode_create_from_ref): Return NULL on error instead
76805         of an enum, since now there's only one way to have an error.  All
76806         callers changed.
76807         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76808         at the correct time.  Simplify calculation of "+u" and its ilk.
76809         Don't mishandle "+X".
76810         (mode_free): Remove "register" and localize decls.
76811         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76812         (struct mode_change): Move to modechange.c; callers don't
76813         need to see this stuff.
76814         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76815         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76816         (mode_change, mode_adjust): Reflect the new signatures noted above.
76817         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76818         that might redefine system include files.
76819         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76820         (my_usleep): Use NULL rather than (void *) 0.
76821         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76822         Use siginterrupt to specify that system calls should be interrupted.
76823         (rpl_nanosleep): Move initialization of suspended closer to call of
76824         my_usleep.
76825         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76826         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76827         (desirable_utmp_entry): New function.
76828         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76829         using x2nrealloc, to simplify logic.
76830         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76831         size calculation.  Do not assume utmp file is a regular file.
76832         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76833         (READ_UTMP_CHECK_PIDS): New constant.
76834         * lib/save-cwd.c: Include unistd-safer.h.
76835         (save_cwd): Use fd_safer.
76836         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76837         [!_LIBC] Include "stat-macros.h" instead.
76838         * lib/unistd-safer.h (fd_safer): New decl.
76839
76840 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * modules/getloadavg (Depends-on): Add unistd-safer.
76843         * modules/getusershell (Depends-on): Add stdio-safer.
76844         * modules/lstat (Depends-on): Remove xalloc.
76845         * modules/mkstemp (Depends-on): Add stat-macros.
76846         * modules/modechange (Depends-on): Remove xstrtol.
76847         Add stat-macros, xalloc.
76848         * modules/save-cwd (Depends-on): Add unistd-safer.
76849         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76850         * modules/unistd-safer (Files): Add lib/fd-safer.c
76851         (Makefile.am): Remove lib_SOURCES.
76852
76853         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76854         Remove fcntl-safer; unistd-safer supersedes it.
76855
76856 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76859         AC_HEADER_STAT.
76860         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76861         (gl_PREREQ_CHOWN): Remove.
76862         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76863         it.  Don't require AC_HEADER_STAT.
76864         (gl_PREREQ_LSTAT): Remove.
76865         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76866         Don't require AC_HEADER_STAT.
76867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76868         (gl_PREREQ_RMDIR): Remove.
76869         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76870         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76871         the stat-macros module a prerequisite.
76872         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76873         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76874         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76875         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76876         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76877         variable names.
76878         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76879         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76880         variable prefixes.
76881         * m4/fcntl-safer.m4: Remove.
76882         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76883         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76884         Invoke gl_PREREQ_FD_SAFER.
76885         (gl_PREREQ_FD_SAFER): New macro.
76886         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76887         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76888         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76889         Remove duplicate call to AC_LIBOBJ(readutmp).
76890         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76891
76892         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76893         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76894
76895 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * MODULES.html.sh (Misc): Add byteswap.
76898
76899 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76900
76901         * modules/getcwd (Depends-on): Add extensions.
76902         * modules/openat (Depends-on): Likewise.
76903
76904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76905
76906         * modules/byteswap: New file.
76907
76908 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76909
76910         * m4/byteswap.m4: New file.
76911
76912 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76913
76914         * lib/byteswap_.h: New file.
76915
76916 2005-04-25  Karl Berry  <karl@gnu.org>
76917
76918         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76919
76920 2005-04-25  Albert Chin  <china@thewrittenword.com>
76921
76922         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76923         Toolkit C bug.
76924
76925 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76926
76927         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76928         (func_ln_if_changed): Remove forcibly for no error message
76929         in case file does not exist.
76930
76931 2005-04-19  Simon Josefsson  <jas@extundo.com>
76932
76933         * gnulib-tool (Options): Make --symlink mean --symbolic.
76934
76935 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76936
76937         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76938
76939 2005-04-16  Simon Josefsson  <jas@extundo.com>
76940
76941         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76942
76943 2005-04-15  Simon Josefsson  <jas@extundo.com>
76944
76945         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76946
76947 2005-04-15  Simon Josefsson  <jas@extundo.com>
76948
76949         * gnulib-tool: Rename --symlink to --symbolic.
76950
76951 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76952
76953         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76954         symbolic links to files instead of copying/moving.  Add --aux-dir,
76955         specifying directory relative --dir where auxiliary build tools
76956         are placed.
76957
76958 2005-04-14  Bruno Haible  <bruno@clisp.org>
76959
76960         * modules/allocsa (License): Change to LGPL.
76961         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76962
76963 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76964
76965         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76966         that "UTC +1 second" continues to work.  Problem reported
76967         by Dmitry V. Levin.
76968         (relunit_snumber): New rule.
76969         (relunit): Use it.
76970
76971 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * lib/getdate.y (universal_time_zone_table): New constant.
76974         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76975         universal_time_zone_table.
76976         (lookup_zone): Prefer universal_time_zone_table to
76977         local_time_zone_table, so that "GMT" time stamps are allowed in
76978         London during the summer.  Problem reported by Ian Abbott.
76979
76980 2005-04-12  Jim Meyering  <jim@meyering.net>
76981
76982         * lib/human.c (humblock): Set *options even when returning due to
76983         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76984         warning from gcc-4.
76985
76986 2005-04-09  Jim Meyering  <jim@meyering.net>
76987
76988         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76989         -Wuninitialized: initialize tm0.tm_year.
76990
76991 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76992
76993         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76994         count, since there's no maximum.  All uses changed.
76995         Add member dsts_seen.
76996         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76997         not being INT_MAX.
76998         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76999         Use pc_rels_seen to decide whther a date is absolute.
77000
77001         * lib/getdate.y (number): Don't overwrite year.
77002         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77003         check.
77004
77005 2005-04-02  Simon Josefsson  <jas@extundo.com>
77006
77007         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77008         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77009
77010 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77011
77012         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77013         where no absolute path name can be longer than PATH_MAX.
77014
77015 2005-03-27  Jim Meyering  <jim@meyering.net>
77016
77017         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77018
77019 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77020
77021         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77022         "one's complement" -> "ones' complement" in comment, as per Knuth.
77023         "value of type" -> "type or expression" in comment.
77024         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77025
77026 2005-03-26  Jim Meyering  <jim@meyering.net>
77027
77028         Comment nits.
77029         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77030         Correct typos: s/or/of/.
77031
77032 2005-03-26  Jim Meyering  <jim@meyering.net>
77033
77034         * modules/check-include-files: Move to ../ and rename to...
77035         * check-module: ...this.
77036
77037 2005-03-25  Jim Meyering  <jim@meyering.net>
77038
77039         * modules/xvasprintf (Files): Add xalloc.h.
77040
77041 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77042
77043         * modules/gettext (Files): config/config.rpath ->
77044         build-aux/config.rpath
77045         * modules/iconv (Files): Likewise.
77046         Problem reported by Oskar Liljeblad.
77047
77048 2005-03-23  Jim Meyering  <jim@meyering.net>
77049
77050         * modules/check-include-files: New script to check for
77051         missing dependencies, multiple includes, etc.
77052
77053         * modules/c-strtold (Depends-on): Add xalloc.
77054         * modules/c-strtod (Depends-on): Add xalloc.
77055         * modules/hash (Depends-on): Add xalloc.
77056         (Files): Remove lib/xalloc.h.
77057
77058         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77059         * modules/userspec (Files): Add lib/inttostr.h.
77060
77061 2005-03-23  Jim Meyering  <jim@meyering.net>
77062
77063         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77064
77065 2005-03-22  Jim Meyering  <jim@meyering.net>
77066
77067         * modules/stat-macros: New module.
77068         * modules/canonicalize, modules/euidaccess, modules/file-type,
77069         * modules/filemode, modules/lchown, modules/makepath,
77070         * modules/rmdir, modules/stat: Depend on new stat-macros module
77071         rather than listing lib/stat-macros.h manually.
77072         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77073
77074 2005-03-22  Jim Meyering  <jim@meyering.net>
77075
77076         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77077
77078 2005-03-22  Bruno Haible  <bruno@clisp.org>
77079
77080         * config/srclist.txt: Replace target directory 'config' with
77081         'build-aux'.
77082         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77083         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77084         ../build-aux/.
77085
77086 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * modules/chdir-long (Depends-on): Add mempcpy.
77089
77090         * modules/acl, modules/backupfile, modules/c-strtod,
77091         modules/c-strtold, modules/canon-host, modules/canonicalize,
77092         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77093         modules/exclude, modules/exitfail, modules/file-type,
77094         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77095         modules/getdate, modules/getline, modules/getpagesize,
77096         modules/getpass, modules/getugroups, modules/group-member,
77097         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77098         modules/inttostr, modules/long-options, modules/makepath,
77099         modules/md5, modules/memcasecmp, modules/memcoll,
77100         modules/modechange, modules/mountlist, modules/path-concat,
77101         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77102         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77103         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77104         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77105         modules/strftime, modules/strndup, modules/strverscmp,
77106         modules/timespec, modules/unlocked-io, modules/userspec,
77107         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77108         modules/yesno:
77109         Remove lib_SOURCES line from Makefile.am section, as this is now
77110         done automatically by the corresponding Autoconf macro.
77111
77112 2005-03-21  Jim Meyering  <jim@meyering.net>
77113
77114         Changes imported from coreutils.
77115
77116         * lib/cycle-check.c: Don't include xalloc.h.
77117
77118         * lib/path-concat.c: Don't include assert.h.
77119         (path_concat): Remove assertion that would have triggered
77120         for ABASE starting with more than one slash.
77121         Reported by Andreas Schwab.
77122
77123         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77124         properly when ABASE is an absolute file name.
77125         Correct the description of this function.
77126         Include <assert.h>.
77127         Add an assertion and a test driver.
77128         This fixes a bug introduced on 2004-07-02.
77129         Andreas Schwab reported the resulting failure of cp --parents:
77130         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77131
77132 2005-03-21  Jim Meyering  <jim@meyering.net>
77133
77134         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77135         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77136
77137 2005-03-21  Jim Meyering  <jim@meyering.net>
77138         and  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77141         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77142         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77143         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77144         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77145         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77146         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77147         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77148         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77149         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77150         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77151         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77152         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77153         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77154         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77155         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77156         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77157         for these modules.
77158
77159 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77162         (which shouldn't happen), generate nothing instead of returning 0
77163         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77164
77165 2005-03-16  Bruno Haible  <bruno@clisp.org>
77166
77167         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77168         HAVE_LONGLONG_64BIT.
77169
77170 2005-03-16  Bruno Haible  <bruno@clisp.org>
77171
77172         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77173         HAVE_LONGLONG_64BIT.
77174
77175 2005-03-16  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77178         HAVE_LONGLONG_64BIT.
77179
77180 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77181
77182         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77183         reliably distinguish strftime failure from empty output on POSIX
77184         hosts.
77185
77186 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77189         (iconv_string): Don't guess a size-zero buffer, as that might cause
77190         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77191         result would be 'too large', where 'too large' is (heuristically)
77192         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77193         overflow concerns.  This will prevent some unwanted malloc failures
77194         when the inputs are very large.
77195
77196 2005-03-15  Karl Berry  <karl@gnu.org>
77197
77198         * config/srclist.txt (config.rpath): from gettext.
77199         * config/config.rpath: update.
77200
77201 2005-03-15  Bruno Haible  <bruno@clisp.org>
77202
77203         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77204         to 'negate'.
77205
77206         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77207         variable.
77208
77209         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77210         results.
77211
77212 2005-03-14  Simon Josefsson  <jas@extundo.com>
77213
77214         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77215         <fx@gnu.org>.
77216
77217 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77218
77219         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77220         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77221         intprops.h.
77222         * lib/strtol.c: Likewise.
77223
77224 2005-03-14  Jim Meyering  <jim@meyering.net>
77225
77226         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77227         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77228         to be nonzero so that we (and caller) can detect the difference
77229         between a valid zero-length expansion and an error return, even
77230         when the underlying strftime fails before writing anything into
77231         that location.
77232
77233 2005-03-14  Bruno Haible  <bruno@clisp.org>
77234
77235         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77236         Update from GNU gettext 0.14.3.
77237
77238 2005-03-10  Jim Meyering  <jim@meyering.net>
77239
77240         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77241
77242 2005-03-10  Jim Meyering  <jim@meyering.net>
77243
77244         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77245         so that this module works on systems without fchdir.
77246
77247 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         Factor int-properties macros into a single file, except for
77250         glibc-related files.
77251         * lib/intprops.h: New file.
77252         * lib/getloadavg.c: Include it instead of limits.h.
77253         (INT_STRLEN_BOUND): Remove.
77254         * lib/human.c: Include intprops.h.
77255         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77256         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77257         302/1000.
77258         * lib/inttostr.h: Include intprops.h instead of limits.h.
77259         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77260         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77261         for consistency with intprops.h.
77262         (time_t_is_integer, twos_complement_arithmetic): Use them.
77263         * lib/sig2str.h: Include <signal.h>, intprops.h.
77264         (INT_STRLEN_BOUND): Remove.
77265         * lib/strftime.c (TYPE_SIGNED): Remove.
77266         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77267         * lib/strtol.c: Adjust comments to match intprops.h.
77268         * lib/userspec.c: Include intprops.h.
77269         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77270         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77271         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77272         instead of rolling our own expressions.
77273         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77274
77275         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77276         instead of int.
77277         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77278         the right thing even if adding 1900 would overflow.  Similarly
77279         for tm_mon + 1 and tm_yday + 1.
77280         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77281         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77282         (DO_SIGNED_NUMBER): New macro.
77283         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77284
77285 2005-03-07  Bruno Haible  <bruno@clisp.org>
77286
77287         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77288
77289 2005-03-07  Bruno Haible  <bruno@clisp.org>
77290
77291         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77292
77293 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77294
77295         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77296         (func_import): Only replace files via --import when they have actually
77297         changed.
77298
77299 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77300
77301         * m4/mmap-anon.m4: New file.
77302         * m4/pagealign_alloc.m4: New file.
77303
77304 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77305             Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/pagealign_alloc: New file.
77308         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77309
77310 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77311             Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/pagealign_alloc.h: New file.
77314         * lib/pagealign_alloc.c: New file.
77315
77316 2005-03-03  Bruno Haible  <bruno@clisp.org>
77317
77318         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77319         Use an all-permissive copyright notice, recommended by RMS.
77320
77321 2005-03-02  Bruno Haible  <bruno@clisp.org>
77322
77323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77324         of AIX, the replacement has to be done only after <string.h> is
77325         included, therefore not in config.h. stpncpy.h does the replacement,
77326         and stpncpy.c uses it.
77327
77328 2005-03-02  Bruno Haible  <bruno@clisp.org>
77329
77330         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77331         stpncpy.c uses it.
77332
77333 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77336         The workaround isn't strictly needed for POSIX conformance, and
77337         it's too much of a pain to configure and maintain.  We'll ask
77338         people to fix their kernels instead.
77339         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77340         (NANOSLEEP_BUG_WORKAROUND): Remove.
77341         (xnanosleep): Remove the workaround.
77342
77343 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77346         Reported by Derek Price.
77347         (Include): Add "timespec.h".
77348
77349         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77350
77351 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77354         to detect nanosleep bug.
77355
77356 2005-03-01  Bruno Haible  <bruno@clisp.org>
77357
77358         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77359
77360 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * modules/gethrxtime: New file.
77363         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77364         (Depends-on): Add gethrxtime.
77365         (configure.ac): Add gl_XNANOSLEEP.
77366         (Makefile.am): Remove lib_SOURCES line.
77367
77368 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77371         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77372
77373 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77374
77375         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77376         * lib/timespec.h (gettime): Return void, since it always
77377         succeeds now.  All uses changed.
77378         * lib/gettime.c (gettime): Likewise.
77379         [HAVE_NANOTIME]: Prefer nanotime.
77380         Assume gettimeofday succeeds, as POSIX requires.
77381         Assime time () succeeds, since other code already does.
77382         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77383         (timespec_subtract): Remove.
77384         (NANOSLEEP_BUG_WORKAROUND): New constant.
77385         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77386         things considerably.  Use it only on GNU/Linux hosts, since the
77387         workaround shouldn't be needed elsewhere.
77388
77389 2005-02-24  Bruno Haible  <bruno@clisp.org>
77390
77391         * modules/gettext (Files): Add m4/glibc2.m4.
77392
77393 2005-02-24  Bruno Haible  <bruno@clisp.org>
77394
77395         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77396         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77397         * m4/progtest.m4:
77398         Update from GNU gettext 0.14.2.
77399         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77400
77401 2005-02-24  Bruno Haible  <bruno@clisp.org>
77402
77403         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77404         * lib/config.charset: Update from GNU gettext 0.14.2.
77405
77406 2005-02-24  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/gettext.h: Update from GNU gettext 0.14.2.
77409
77410 2005-02-23  Simon Josefsson  <jas@extundo.com>
77411
77412         * m4/iconvme.m4: New file.
77413
77414 2005-02-23  Jim Meyering  <jim@meyering.net>
77415
77416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77417         change.
77418         Thanks to Bruno Haible for catching it.
77419
77420 2005-02-22  Simon Josefsson  <jas@extundo.com>
77421
77422         * modules/iconvme: New file.
77423
77424         * MODULES.html.sh: Add iconvme.
77425
77426 2005-02-22  Simon Josefsson  <jas@extundo.com>
77427
77428         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77429
77430 2005-02-22  Simon Josefsson  <jas@extundo.com>
77431
77432         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77433
77434 2005-02-22  Jim Meyering  <jim@meyering.net>
77435
77436         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77437         s/ifndef/ifdef/.
77438
77439 2005-02-20  Neil Conway  <neilc@samurai.com>
77440
77441         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77442         returned by OSX/Darwin if the specified buffer is not large
77443         enough for the hostname.
77444
77445 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77446
77447         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77448         pass it to _help, otherwise the latter coredumps trying to
77449         dereference state.root_argp.
77450
77451 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         * modules/chdir-long (Depends-on): Add memrchr.
77454         * modules/memrchr (Files): Add lib/memrchr.h.
77455         (Include): "memrchr.h".
77456
77457 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77460
77461 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * lib/memrchr.h: New file.
77464         * lib/chdir-long.c: Include it.
77465         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77466         Don't bother including stddef.h.
77467
77468 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77469
77470         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77471         inclusion.
77472         Include <sys/types.h>, for dev_t.
77473         (ME_DUMMY, ME_REMOTE): Move from here....
77474         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77475         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77476         Dmitry V. Levin.
77477         Include mountlist.h first, to test the interface.
77478
77479 2005-01-29  Bruno Haible  <bruno@clisp.org>
77480
77481         * lib/progname.c (program_name): Initialize.
77482         Needed when linking statically on MacOS X.
77483
77484 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         Sync from coreutils.
77487         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77488         (Depends-on): Add c-strtod.
77489         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77490
77491 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         Sync from coreutils.
77494         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77495
77496         Remove files that are specific to coreutils.
77497         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77498
77499 2005-01-28  Bruno Haible  <bruno@clisp.org>
77500
77501         * modules/javacomp: New file.
77502         * MODULES.html.sh (Java): Add javacomp.
77503
77504 2005-01-28  Bruno Haible  <bruno@clisp.org>
77505
77506         * m4/javacomp.m4: New file, from GNU gettext.
77507
77508 2005-01-28  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/javacomp.sh.in: New file, from GNU gettext.
77511         * lib/javacomp.h: New file, from GNU gettext.
77512         * lib/javacomp.c: New file, from GNU gettext.
77513
77514 2005-01-26  Simon Josefsson  <jas@extundo.com>
77515
77516         * lib/gai_strerror.c: Use GPL in header.
77517
77518 2005-01-26  Bruno Haible  <bruno@clisp.org>
77519
77520         * modules/javaexec: New file.
77521         * MODULES.html.sh (Java): Add javaexec.
77522
77523 2005-01-26  Bruno Haible  <bruno@clisp.org>
77524
77525         * m4/javaexec.m4: New file, from GNU gettext.
77526
77527 2005-01-26  Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/javaexec.sh.in: New file, from GNU gettext.
77530         * lib/javaexec.h: New file, from GNU gettext.
77531         * lib/javaexec.c: New file, from GNU gettext.
77532
77533 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77534
77535         * modules/lchown (Depends-on): Remove lchown.h
77536
77537 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77538
77539         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77540         must be defined if the header file was not found, in order
77541         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77542
77543 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77544
77545         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77546         initializers for struct pentry_state.
77547         (__argp_error): Check return value of __asprintf
77548         (__argp_failure): Translate error message
77549
77550         * lib/argp-parse.c: Removed braces around the expansion of N_()
77551
77552 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77555         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77556         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77557         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77558         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77559         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77560         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77561         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77562         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77563         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77564         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77565         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77566         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77567         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77568         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77569         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77570         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77571         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77572         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77573         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77574         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77575         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77576         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77577         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77578         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77579         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77580         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77581         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77582         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77583         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77584         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77585         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77586         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77587         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77588         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77589         Use an all-permissive copyright notice, recommended by RMS.
77590
77591 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77592
77593         * modules/chdir-long (Depends-on): Remove mempcpy.
77594
77595 2005-01-21  Jim Meyering  <jim@meyering.net>
77596
77597         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77598         same value as for Solaris 9.
77599
77600         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77601         component length.  This included changing the parameter to be
77602         of type `char *' rather than `char const *'.
77603         * lib/chdir-long.h (chdir_long): Update prototype.
77604
77605         * lib/openat.c (fdopendir, fstatat): New functions.
77606         * lib/openat.h: Include headers required for use of DIR and struct
77607         stat.
77608         [AT_SYMLINK_NOFOLLOW]: Define.
77609         (fdopendir, fstatat): Add prototypes.
77610
77611 2005-01-21  Bruno Haible  <bruno@clisp.org>
77612
77613         * modules/classpath: New file.
77614         * MODULES.html.sh (Java): Add classpath.
77615
77616 2005-01-21  Bruno Haible  <bruno@clisp.org>
77617
77618         * lib/classpath.h: New file, from GNU gettext.
77619         * lib/classpath.c: New file, from GNU gettext.
77620
77621 2005-01-20  Simon Josefsson  <jas@extundo.com>
77622
77623         * modules/version-etc-fsf: New file.
77624
77625 2005-01-20  Simon Josefsson  <jas@extundo.com>
77626
77627         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77628         * lib/version-etc.c: Remove version_etc_copyright.
77629         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77630         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77631
77632 2005-01-20  Simon Josefsson  <jas@extundo.com>
77633
77634         * lib/base64.h (isbase64): Add.
77635
77636         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77637         using a unsigned prototype, don't inline.
77638         (base64_decode): Use it.
77639
77640 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77643         it.
77644
77645 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * lib/save-cwd.c (save_cwd): Remove code to support the case
77648         where fchdir is missing or flaky.
77649
77650 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77653
77654 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77657         AC_LIBSOURCES now does this.
77658         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77659         with new ullong_max module.
77660
77661 2005-01-19  Bruno Haible  <bruno@clisp.org>
77662
77663         * modules/sh-quote: New file.
77664         * MODULES.html.sh (Executing programs): Add sh-quote.
77665
77666 2005-01-19  Bruno Haible  <bruno@clisp.org>
77667
77668         * lib/sh-quote.h: New file, from GNU gettext.
77669         * lib/sh-quote.c: New file, from GNU gettext.
77670
77671 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         Merge from coreutils.
77674         * m4/ullong_max.m4: New file.
77675         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77676         (gl_MACROS): Assume localeconv exists.
77677
77678 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         Merge changes from coreutils, as described below in several
77681         changelogs dated today.
77682
77683         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77684         (O_DIRECTORY): Remove; not needed here, since "." must be
77685         a directory.  All uses removed.
77686         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77687         universal on Suns, and we also need to test for IRIX.
77688         Revamp code to use 'if' rather than '#if'.
77689         Avoid unnecessary comparison of cwd->desc to 0.
77690
77691         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77692         for known valid error numbers rather than observed invalid ones.
77693
77694 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77695
77696         * modules/ullong_max: New file.
77697
77698         * modules/chdir-long, modules/openat: New files.
77699         * modules/save-cwd (Depends-on): Depend on chdir-long.
77700         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77701
77702 2005-01-18  Jim Meyering  <jim@meyering.net>
77703
77704         Merge from coreutils.
77705         * m4/chdir-long.m4, m4/openat.m4: New files.
77706         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77707         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77708         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77709         is sane and DOES follow symlinks.  Besides, testing 20 different
77710         systems found no broken chown implementations.
77711         Prompted by a change in rsync's copy of this macro.
77712         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77713
77714         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77715
77716         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77717         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77718         NULL-means-set-to-current-time semantics.
77719         Remove temporary file immediately, rather than waiting
77720         for configure's at-exit trap code to do it.
77721
77722 2005-01-18  Jim Meyering  <jim@meyering.net>
77723
77724         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77725
77726         * lib/utimens.c (futimens): Account for the fact that futimes
77727         can also fail with errno == ENOSYS or errno == ENOENT.
77728         Patch from Dmitry V. Levin.
77729
77730         Change the name of the robust chdir function from chdir to chdir_long.
77731         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77732         (restore_cwd): Use chdir_long, not chdir.
77733         * lib/chdir-long.c: Renamed from chdir.c.
77734         * lib/chdir-long.h: Renamed from chdir.h.
77735         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77736         Hurd.
77737
77738 2005-01-18  Bruno Haible  <bruno@clisp.org>
77739
77740         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77741         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77742         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77743         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77744         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77745         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77746         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77747         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77748         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77749         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77750         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77751         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77752         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77753         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77754         Use an all-permissive copyright notice, recommended by RMS.
77755
77756 2005-01-18  Bob Proulx  <bob@proulx.com>
77757
77758         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77759         simplify offsetof() macro construct to avoid compile failure with
77760         native HP-UX 11.0 ANSI C compiler.
77761
77762 2005-01-17  Bruno Haible  <bruno@clisp.org>
77763
77764         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77765         redundant because stpncpy.m4 takes care of it.
77766
77767 2005-01-17  Bruno Haible  <bruno@clisp.org>
77768
77769         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77770
77771 2005-01-17  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77774         used.
77775
77776 2005-01-17  Bruno Haible  <bruno@clisp.org>
77777
77778         * lib/fwriteerror.h (fwriteerror): Change specification to include
77779         fclose.
77780         * lib/fwriteerror.c: Include <stdbool.h>.
77781         (fwriteerror): At the end, close the file stream. Record whether
77782         stdout was already closed.
77783
77784 2005-01-17  Bruno Haible  <bruno@clisp.org>
77785
77786         * lib/execute.c (environ): Declare if needed.
77787         * lib/pipe.c (environ): Likewise.
77788         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77789
77790 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77791
77792         * modules/argp: Depend on vsnprintf
77793
77794 2005-01-10  Jim Meyering  <jim@meyering.net>
77795
77796         * modules/closeout (Depends-on): Add atexit.
77797
77798 2005-01-06  Bruno Haible  <bruno@clisp.org>
77799
77800         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77801
77802 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77805         definitions to be after all include files, to avoid collisions.
77806         Problem reported by Bob Proulx.
77807
77808 2005-01-04  Jim Meyering  <jim@meyering.net>
77809
77810         Changes imported from coreutils.
77811         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77812         as the mkstemp template, use a temporary directory and an
77813         8.3-friendly template to avoid trouble on systems like DJGPP.
77814         Reported by Juan M. Guerrero via Stepan Kasal.
77815         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77816         close. Remove the temporary directory right away, rather than waiting
77817         for configure's at-exit trap code to do it.
77818         Suggestion from Stepan Kasal.
77819
77820 2005-01-01  Simon Josefsson  <jas@extundo.com>
77821
77822         * gnulib-tool: Print #include directives when --import'ing.
77823
77824 2004-12-28  Simon Josefsson  <jas@extundo.com>
77825
77826         * tests/test-base64.c: Include required header files.  Remove
77827         unused variables.
77828
77829 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * modules/error (Depends-on): Remove gettext.
77832
77833 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77836         not needed.  This removes a dependency on the gettext module.
77837         [defined _LIBC]: Do not include <libintl.h>; not needed.
77838
77839 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77842         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77843
77844 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77847         HAVE_DECL_STRTOLD.
77848
77849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * modules/getdate (Depends-on): Remove alloca-opt.
77852
77853 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77856
77857 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         * lib/argp-parse.c: Include <stddef.h>.
77860         (alignof, alignto): New macros.
77861         (parser_init): Don't assume that void * is aligned sufficiently
77862         for struct option.
77863
77864         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77865         need to extend the stack.
77866         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77867         large.
77868
77869 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77870
77871         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77872
77873 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77876         (2004-10-24) change.  Apparently this was a false alarm.
77877
77878         * modules/getdate: Depend on alloca-opt, not alloca.
77879
77880 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77883         Remove now-obsolete comment about AIX.
77884         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77885         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77886         (YYMAXDEPTH): New macro.
77887
77888 2004-12-18  Simon Josefsson  <jas@extundo.com>
77889
77890         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77891
77892 2004-12-18  Bruno Haible  <bruno@clisp.org>
77893
77894         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77895
77896 2004-12-18  Bruno Haible  <bruno@clisp.org>
77897
77898         * lib/fatal-signal.c (fatal_signals): Make non-const.
77899         (init_fatal_signals): New function.
77900         (uninstall_handlers, install_handlers): Ignore signals that were set to
77901         SIG_IGN.
77902         (at_fatal_signal): Call init_fatal_signals.
77903         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77904         SIG_IGN.
77905         Reported by Paul Eggert.
77906
77907 2004-12-18  Bruno Haible  <bruno@clisp.org>
77908
77909         * doc/alloca.texi: New file.
77910         * doc/alloca-opt.texi: New file.
77911
77912 2004-12-17  Jim Meyering  <jim@meyering.net>
77913
77914         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77915         Otherwise, install-sh could exit with improper exit status when
77916         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77917
77918 2004-12-16  Simon Josefsson  <jas@extundo.com>
77919
77920         * tests/test-base64.c: Add license.
77921
77922 2004-12-15  Stepan Kasal  <address@hidden>
77923
77924         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77925
77926 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * modules/getcwd (Files): Add m4/d-ino.m4.
77929         Suggested by Mark D. Baushke.
77930
77931 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77932
77933         * lib/getdate.y (textint): New member "negative".
77934         (time_zone_hhmm): New function.
77935         Expect 14 shift-reduce conflicts, not 13.
77936         (o_colon_minutes): New rule.
77937         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77938         (yylex): Set the "negative" member of signed numbers.
77939
77940 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * doc/getdate.texi (Time of day items, Time zone items):
77943         Describe new formats +00:00, UTC+00:00.
77944
77945 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77948         spurious "-l"s.  Problem reported by Stepan Kasal.
77949
77950 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77953         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77954
77955 2004-12-04  Simon Josefsson  <jas@extundo.com>
77956
77957         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77958         Vandoorselaere <yoann@prelude-ids.org>.
77959
77960 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         Changes imported from coreutils.
77963         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77964         exist.
77965         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77966
77967 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         Changes imported from coreutils.
77970         * lib/hard-locale.c: Assume <locale.h> exists.
77971         Include "strdup.h".
77972         (GLIBC_VERSION): New macro.
77973         (hard_locale): Assume setlocale exists.
77974         Rewrite to avoid #ifdef.
77975         Use strdup rather than malloc + strcpy.
77976         * lib/human.c: Assume <locale.h> exists.
77977         (human_readable): Assume localeconv exists.
77978
77979 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * modules/hard-locale (Depends-on): Add strdup.
77982
77983 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77984
77985         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77986         convert T2, not T.  (Imported from libc.)
77987
77988 2004-11-30  Simon Josefsson  <jas@extundo.com>
77989
77990         * modules/restrict (License): Change to LGPL.
77991
77992 2004-11-30  Simon Josefsson  <jas@extundo.com>
77993
77994         * m4/restrict.m4: Add copyright and copying conditions.
77995
77996 2004-11-30  Simon Josefsson  <jas@extundo.com>
77997
77998         * m4/base64.m4: New file.
77999
78000 2004-11-30  Simon Josefsson  <jas@extundo.com>
78001
78002         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78003         base64.
78004
78005         * tests/test-base64.c: New file.
78006
78007         * modules/base64: New file.
78008
78009 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78012         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78013
78014         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78015
78016 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78019         (__getcwd.c): Don't restore errno; glibc doesn't.
78020         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78021         first, falling back to our code only if its results look suspicious.
78022         Ensure that the resulting buffer is only as large as necessary.
78023
78024         * lib/readutmp.c: Include readutmp.h first.
78025         Include <errno.h>, since readutmp.h no longer does that.
78026         * lib/readutmp.h: Don't include <errno.h>,
78027         <sys/param.h>, <time.h>; not needed to establish interface.
78028         (errno): Remove decl.
78029         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78030         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78031         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78032
78033 2004-11-28  Simon Josefsson  <jas@extundo.com>
78034
78035         * lib/base64.h, base64.c: New file.
78036
78037 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78038
78039         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78040
78041 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78044         (Depends-on): Remove pathmax, same.  Add mempcpy.
78045         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78046         (Makefile.am): Append getcwd.h to lib_SOURCES.
78047         (Include): Add getcwd.h.
78048         (Maintainer): Change from Jim Meyering to "all, glibc",
78049         since getdate now uses intended-for-glibc code.
78050         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78051         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78052
78053 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78056         HP's ANSI C compiler.
78057         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78058         Declaring int functions causes warnings on some modern systems and
78059         shouldn't be needed to compile on ancient ones.
78060         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78061         defined.
78062
78063         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78064         with the following changes.
78065         (__set_errno): Parenthesize properly.
78066         Include <stdbool.h>.
78067         (MIN, MAX, MATCHING_INO): New macros.
78068         (__getcwd): Define with prototype, not K&R form.
78069         Use heuristics to allocate default buffer on stack if possible.
78070         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78071         behavior, and to avoid the PATH_MAX limit when computing
78072         ../../../../...
78073         Use MATCHING_INO to compare inode number to file.
78074         Check for arithmetic overflow in size calculations.
78075         Fix bug in reallocation of dot array that caused getcwd to fail
78076         on directories nested deeper than 75.
78077         Be more careful about saving errno on error.
78078         Do not use realloc; use only free+malloc, as this is a bit
78079         more flexible and avoids a needless copy operation.
78080         Do not inspect st_dev and st_ino for symbolic links; POSIX
78081         doesn't specify the latter.
78082         Check for closedir errors.
78083         Avoid needless casts.
78084         Use "#ifdef weak_alias" around weak_alias, to be like other
78085         glibc code.
78086         The following changes to getcwd.c have effect only when used in
78087         gnulib; they have no effect inside glibc proper.
78088         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78089         as alloca isn't used.
78090         (alloca, __alloca): Likewise.
78091         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78092         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78093         unconditionally, as gnulib assumes C89 or better.
78094         Do not include <sys/param.h>.
78095         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78096         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78097         better.
78098         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78099         Include <dirent.h> in a way that is compatible with modern Autoconf.
78100         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78101         New macros, if not already defined.
78102         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78103         Use "_LIBC", not "defined _LIBC", for consistency.
78104         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78105         a mempcpy module.
78106         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78107         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78108         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78109         credit only to Jim Meyering and adjust the copyright dates.
78110         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78111         <stdlib.h>, <unistd.h>, "pathmax.h".
78112         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78113         (INITIAL_BUFFER_SIZE): Remove.
78114         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78115
78116 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78119         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78120         Use the _ONCE methods, for efficiency.
78121         Check for fcntl.h.  In test program, include <errno.h>
78122         and <fcntl.h> if available.  Remove old K&R cruft from
78123         test program.  Check for common errors in GNU/Linux,
78124         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78125         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78126         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78127         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78128         name accordingly.
78129         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78130         accommodate new getcwd.c.
78131         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78132         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78133         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78134         that's all we need now.
78135
78136 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78137
78138         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78139         argp-parse.c depends on getopt internals, that means we should
78140         always use our getopt, to be on the safe side.
78141         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78142         order not to spoil the result of an eventual previous invocation
78143         of gl_GETOPT_SUBSTITUTE.
78144
78145 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78146
78147         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78148         redefinition warnings. To avoid them, include the defines
78149         in `#if !defined __need_getopt ... #endif'. The only place
78150         where __getopt_argv_const is used is in definitions
78151         of getopt_long and getopt_long_only below, which are as well
78152         protected by `#ifndef __need_getopt'.
78153         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78154         __need_getopt after including <stdio.h> and <unistd.h> These
78155         headers might have defined it.
78156
78157 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78158
78159         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78160
78161 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78164         (futimens): New function, which uses futimes if available.
78165         (futimens, utimens): Support timespec==NULL, with same semantics
78166         as utime and utimens.
78167         * lib/utimens.h (futimens): New decl.
78168
78169 2004-11-23  Jim Meyering  <jim@meyering.net>
78170
78171         * lib/getopt_.h: Remove trailing blanks.
78172
78173 2004-11-23  Jim Meyering  <jim@meyering.net>
78174
78175         * lib/__fpending.c: Add comment.
78176
78177 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * modules/canonicalize (Depends-on): Add xreadlink.
78180         Problem reported by James Youngman.
78181
78182 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78185         New macros.
78186         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78187         optopt): Use them instead of invoking ## directly; otherwise, the
78188         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78189
78190 2004-11-19  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/strtok_r.c: Move comments from here...
78193         * lib/strtok_r.h: ... to here.
78194
78195 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78198         implementations that mishandle size_t overflow.
78199
78200 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78203         might fail.  Problem reported by Yoann Vandoorselaere.
78204         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78205         implementations that mishandle size_t overflow.
78206
78207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * modules/canon-host (Depends-on): Add strdup.
78210
78211 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78214
78215 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78216
78217         * lib/canon-host.c: Include "strdup.h".
78218         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78219         Use strdup instead of malloc/strcpy to duplicate strings.
78220
78221         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78222         (human_space_before_unit): New constant.
78223         * lib/human.c (human_readable): Support it.
78224
78225         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78226         (xgetcwd): Set errno correctly when failing.
78227         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78228         the failure is actually due to a PATH_MAX problem.
78229
78230         Further getopt changes to make it more likely that glibc will
78231         buy the changes back.
78232         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78233         (getopt): Use it, so to preserve glibc semantic
78234         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78235         when compiling for libc.
78236         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78237         (getopt_long, getopt_long_only): Use it.
78238
78239         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78240         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78241         (getopt): Argv is now char * const *, as per standard.
78242         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78243         not char *__getopt_argv_const *.
78244         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78245         _getopt_long_only_r): Likewise.
78246         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78247         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78248         _getopt_long_r, _getopt_long_only_r): Likewise.
78249         * lib/getopt_.h (__getopt_argv_const): Remove.
78250         (getopt): Argv is now char * const *, as per standard.
78251
78252         * lib/getdate.y (tORDINAL): New token.
78253         (day, relunit): Allow it for relative times.
78254         (relative_time_table): Use tORDINAL for ordinals.
78255
78256 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78259         Document that "second" isn't allowed as an ordinal number.
78260
78261 2004-11-16  Jim Meyering  <jim@meyering.net>
78262
78263         * modules/closeout (Depends-on): Add fpending.
78264
78265 2004-11-15  Jim Meyering  <jim@meyering.net>
78266
78267         * lib/closeout.c: Include "__fpending.h" once again.
78268         Include <stdbool.h>.
78269         (close_stdout): Don't fail just because stdout was closed initially,
78270         since some programs don't write to stdout in the normal course of
78271         operation (other than --version and --help), and we don't want this
78272         function to make e.g. `touch file >&-' fail.
78273         But do fail if it was closed and someone has tried to write to it.
78274         E.g., `printf foo >&-' must fail.
78275
78276 2004-11-13  Jim Meyering  <jim@meyering.net>
78277
78278         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78279
78280 2004-11-12  Simon Josefsson  <jas@extundo.com>
78281
78282         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78283         small doc fix is still pending.
78284
78285 2004-11-11  Simon Josefsson  <jas@extundo.com>
78286
78287         * modules/strtok_r: New file.
78288
78289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78290         strtok_r.
78291
78292 2004-11-11  Simon Josefsson  <jas@extundo.com>
78293
78294         * m4/strtok_r.m4: New file.
78295
78296         * m4/getopt.m4: Replace opterr.
78297
78298 2004-11-11  Simon Josefsson  <jas@extundo.com>
78299
78300         * lib/strtok_r.h, strtok_r.c: New file.
78301
78302 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78305         of replacing opterr, getopt, etc.  This should handle the
78306         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78307
78308 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78311         we can stop lying to compilers about the constness of argv when we
78312         are compiled outside glibc.
78313         (getopt, getopt_long, getopt_long_only): Use it.
78314         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78315         _getopt_internal, getopt): Likewise.
78316         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78317         _getopt_long_only_r): Likewise.
78318         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78319         _getopt_long_r, _getopt_long_only_r): Likewise.
78320
78321         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78322         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78323         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78324         the other external symbols.
78325         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78326         declaration, since the above renaming now works around collisions.
78327
78328 2004-11-11  Jim Meyering  <jim@meyering.net>
78329
78330         * lib/linebreak.c: Remove trailing blanks.
78331         * lib/alloca_.h: Likewise.
78332         * lib/acosl.c: Likewise.
78333         * lib/euidaccess.c: Likewise.
78334         * lib/allocsa.h: Likewise.
78335
78336 2004-11-10  Simon Josefsson  <jas@extundo.com>
78337
78338         * m4/getaddrinfo.m4: New file.
78339
78340 2004-11-10  Simon Josefsson  <jas@extundo.com>
78341
78342         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78343
78344 2004-11-10  Simon Josefsson  <jas@extundo.com>
78345
78346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78347         getaddrinfo.
78348
78349         * modules/getaddrinfo: New file.
78350
78351 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78354
78355 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * lib/mktime.c (SHR): New macro, which is a portable
78358         substitute for >> that should work even on Crays.
78359         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78360         Problem reported by Mark D. Baushke in
78361         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78362         * lib/getdate.y (SHR): Likewise.
78363         (tm_diff): Use it.
78364         * lib/strftime.c (SHR): Likewise.
78365         (tm_diff): Use it.
78366         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78367         quote_these_too, so that right shifts are well defined.  All uses
78368         changed.
78369
78370 2004-11-10  Jim Meyering  <jim@meyering.net>
78371
78372         Ensure that no close failure goes unreported.
78373         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78374         return early when it seems there's nothing to flush.
78375         Don't include __fpending.h.
78376
78377 2004-11-10  Jim Meyering  <jim@meyering.net>
78378
78379         * modules/closeout (Depends-on): Remove fpending.
78380
78381 2004-11-10  Jim Meyering  <jim@meyering.net>
78382
78383         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78384
78385 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78388         gl_FUNC_STRFTIME.
78389         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78390         and AC_REQUIRE when possible, to avoid duplicate checks.
78391         Check for <wchar.h>.
78392
78393 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78396
78397 2004-11-09  Bruno Haible  <bruno@clisp.org>
78398
78399         * m4/sockpfaf.m4: New file.
78400
78401 2004-11-05  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78404         Reported by Mark D. Baushke <mdb@cvshome.org>.
78405
78406 2004-11-04  Bruno Haible  <bruno@clisp.org>
78407
78408         2004-09-11  Bruno Haible  <bruno@clisp.org>
78409                 * allocsa.valgrind: New file.
78410         2004-02-06  Bruno Haible  <bruno@clisp.org>
78411                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78412                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78413                 Reported by Christopher Seip <chris.seip@hp.com>.
78414
78415 2004-11-04  Bruno Haible  <bruno@clisp.org>
78416
78417         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78418         (Makefile.am): Distribute it.
78419
78420 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78423         with errno == ERANGE if the buffer is too small.
78424         Problem reported by Mark D. Baushke.
78425
78426 2004-11-03  Albert Chin  <china@thewrittenword.com>
78427             Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78430         equivalent, substitute $ac_type for equivalent type rather than
78431         blindly using uint32_t *always* which won't work if uint32_t is not
78432         available.  Define _UINT32_T to work around typedef of uint32_t if
78433         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78434         2.5.1.
78435
78436 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78437
78438         * m4/jm-macros.m4: Sync from coreutils.
78439         (gl_MACROS): Check for mbrlen, for pathchk.
78440         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78441
78442 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78443
78444         * lib/xreadlink.c (MAXSIZE): New macro.
78445         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78446         size does not exceed MAXSIZE.  Avoid cast.
78447         As suggested by Mark D. Baushke in
78448         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78449         if readlink fails with buffer size just under MAXSIZE, try again
78450         with MAXSIZE.
78451
78452 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78455
78456 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78457         and  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78460         (get_date): Overparenthesize to avoid GCC warning.
78461
78462 2004-11-02  Bruno Haible  <bruno@clisp.org>
78463
78464         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78465         returns void.
78466
78467 2004-11-02  Bruno Haible  <bruno@clisp.org>
78468
78469         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78470         function returns void.
78471
78472 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78473
78474         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78475         fflush_unlocked, flockfile, funlockfile, funlockfile,
78476         fputs_unlocked, putc_unlocked.
78477
78478 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78481         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78482         already declared.
78483
78484 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * modules/getdate (Files): Add doc/getdate.texi.
78487         (Depends-on): Add setenv, xalloc.
78488
78489 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * lib/getdate.y: Add support for TZ="foo" within a date string.
78492         Fix some bugs near time_t boundaries.  Reject dates with
78493         out-of-range components, e.g., "Sept 31".
78494         Include <stdlib.h>, "setenv.h", "xalloc.h".
78495         (ISDIGIT_LOCALE): Remove; unused.
78496         Note that the TZ and time functions used here are not reentrant.
78497         (mktime_ok, get_tz): New functions.
78498         (TZBUFSIZE): New constant.
78499         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78500         This requires that we sometimes generate our own TZ="XXX..." setting.
78501
78502 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         * doc/getdate.texi: New file, from coreutils with modifications for
78505         the new TZ parsing.
78506
78507 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78508
78509         * lib/mktime.c (not_equal_tm): Remove redundant check.
78510
78511 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * modules/regex (lib_SOURCES): Add regex.c.
78514         Reported by James Youngman in
78515         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78516
78517 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * lib/getdate.y: Use Bison 1.875 features, and some minor
78520         code cleanups.  This change does not affect semantics.
78521         Don't include <stdlib.h>; no longer needed.
78522         Don't include unlocked-io.h; only the "#if TEST" code uses
78523         stdio, and performance isn't crucial there.
78524         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78525         Bison 1.875 features as described below.
78526         All uses of "PC." replaced by "pc->".
78527         (YYSTYPE): Add a forward declaration.
78528         (yylex, yyerror): Use full prototypes in forward decls.
78529         Use "%pure-parser" rather than obsolescent "%pure_parser".
78530         Use %parse-param and %lex-param instead of obsolescent
78531         YYPARSE_PARAM and YYLEX_PARAM.
78532         (meridian_table, month_and_day_table, time_units_table,
78533         relative_time_table, time_zone_table, military_table,
78534         lookup_zone, lookup_word, get_date):
78535         Use NULL instead of 0 where appropriate.
78536         (to_hour): Avoid abort (), to avoid a dependency on
78537         stdlib.h.
78538         (yyerror, yylex): Now accepts parser_control * arg.
78539         (main) [TEST]: Use '\0' rather than 0 for char.
78540
78541 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78544
78545 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78548         It's now the caller's responsibility to handle the case where
78549         !HAVE_GETPAGESIZE && !defined getpagesize.
78550
78551         * lib/mktime.c (leapyear): Arg is long int, not int.
78552
78553 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78556
78557 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78560         missing.  Problem reported by James Youngman.
78561
78562 2004-10-16  Simon Josefsson  <jas@extundo.com>
78563
78564         * gnulib-tool: Fix comments.  Fix parse problem.
78565         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78566
78567 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78570         implementation of getopt_long.  Problem reported by Alexander Taler in:
78571         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78572
78573 2004-10-15  Bruno Haible  <bruno@clisp.org>
78574
78575         * gnulib-tool: Untabify. Initialize supplied_libname.
78576         (func_usage): More homogenous output.
78577         (func_modules_transitive_closure, func_modules_to_filelist,
78578         func_emit_lib_Makefile_am): New functions.
78579         (func_import): New function, extracted from big case statement. Use
78580         func_get_license, func_modules_transitive_closure,
78581         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78582         opt_lgpl. Don't use test -a, as it's not portable.
78583         (func_create_testdir): Use func_modules_transitive_closure,
78584         func_modules_to_filelist, func_emit_lib_Makefile_am.
78585
78586 2004-10-15  Bruno Haible  <bruno@clisp.org>
78587
78588         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78589
78590 2004-10-15  Bruno Haible  <bruno@clisp.org>
78591
78592         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78593         the portions belonging to each module.
78594         Suggested by Derek Robert Price <derek@ximbiot.com>.
78595
78596 2004-10-12  Simon Josefsson  <jas@extundo.com>
78597
78598         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78599         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78600         to real functions.
78601
78602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78603
78604         * modules/vsnprintf: New file.
78605
78606 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78607
78608         * m4/vsnprintf.m4: New file.
78609
78610 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78611
78612         * lib/vsnprintf.h: New file.
78613         * lib/vsnprintf.c: New file.
78614
78615 2004-10-11  Bruno Haible  <bruno@clisp.org>
78616
78617         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78618         vsnprintf.
78619
78620 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78623
78624 2004-10-07  Bruno Haible  <bruno@clisp.org>
78625
78626         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78627         fits into the provided buffer.
78628
78629 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * lib/diacrit.c, diacrit.h: Add GPL notice.
78632
78633         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78634         notice.
78635         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78636         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78637         This avoids a potential constant-folding bug.
78638
78639 2004-10-05  Bruno Haible  <bruno@clisp.org>
78640
78641         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78642         for the declaration of strsep.
78643
78644 2004-10-05  Bruno Haible  <bruno@clisp.org>
78645
78646         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78647
78648 2004-10-04  Simon Josefsson  <jas@extundo.com>
78649
78650         * modules/memmem: New file.
78651         * tests/test-memmem.c: New file.
78652         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78653
78654 2004-10-04  Simon Josefsson  <jas@extundo.com>
78655
78656         * m4/memmem.m4: New file.
78657
78658 2004-10-04  Simon Josefsson  <jas@extundo.com>
78659
78660         * lib/memmem.h: New file.
78661         * lib/memmem.c: New file, taken from glibc.
78662
78663 2004-10-04  Simon Josefsson  <jas@extundo.com>
78664
78665         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78666         '#ifdef USE_UNLOCKED_IO'.
78667
78668 2004-10-04  Simon Josefsson  <jas@extundo.com>
78669
78670         * config/srclist.txt: Add memmem from glibc.
78671
78672 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78673
78674         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78675
78676         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78677         modules/exclude, modules/getdate, modules/getline,
78678         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78679         modules/getusershell, modules/linebuffer, modules/md5,
78680         modules/mountlist, modules/posixtm, modules/readtokens,
78681         modules/readutmp, modules/regex, modules/sha1,
78682         modules/version-etc, modules/yesno:
78683         Remove dependency on unlocked-io.
78684
78685 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78688
78689         * m4/unlocked-io.m4: Add copyright notice.
78690         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78691
78692 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78695         * lib/xmalloc.c (xmemdup): Likewise.
78696         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78697         XFREE): Remove these long-obsolescent macros.
78698         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78699         * lib/xstrdup.c: Remove.
78700
78701         * lib/regex.c (re_comp): Cast gettext return value to char *,
78702         Problem reported by Martin Neitzel via Mark D. Baushke.
78703
78704 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78707         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78708         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78709         regex.c, sha1.c, version-etc.c, yesno.c:
78710         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78711         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78712         the includer's responsibility.
78713
78714         Sync from coreutils.
78715
78716         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78717         points to the start of a string, as the C Standard says the
78718         resulting behavior is undefined.
78719
78720         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78721         simple -> simple_backups, numbered_existing ->
78722         numbered_existing_backups, numbered -> numbered_backups
78723         to avoid shadowing problems.  All uses changed.
78724         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78725         * lib/backupfile.c (check_extension, numbered_backup):
78726         Rename locals to avoid shadowing 'basename'.
78727         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78728         once.
78729
78730         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78731         * lib/.cvsignore: Add getopt.h.
78732
78733 2004-10-04  Bruno Haible  <bruno@clisp.org>
78734
78735         * modules/README: New file.
78736         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78737         not a module.
78738
78739 2004-10-02  Jim Meyering  <jim@meyering.net>
78740
78741         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78742
78743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78744
78745         * modules/strsep: New file.
78746
78747 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78748
78749         * m4/strsep.m4: New file.
78750
78751 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78752
78753         * lib/strsep.h: New file.
78754         * lib/strsep.c: New file.
78755
78756 2004-10-01  Simon Josefsson  <jas@extundo.com>
78757
78758         * lib/snprintf.c (snprintf): Handle size==0.
78759
78760 2004-10-01  Simon Josefsson  <jas@extundo.com>
78761             Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78764         (snprintf): Declare 'args'.
78765
78766 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * lib/snprintf.c: Remove comments as to why each header is needed.
78769
78770 2004-10-01  Bruno Haible  <bruno@clisp.org>
78771
78772         * MODULES.html.sh: Add strsep.
78773
78774 2004-09-30  Simon Josefsson  <jas@extundo.com>
78775
78776         * modules/snprintf: New file.
78777
78778 2004-09-30  Simon Josefsson  <jas@extundo.com>
78779
78780         * m4/snprintf.m4: New file.
78781
78782 2004-09-30  Simon Josefsson  <jas@extundo.com>
78783
78784         * lib/snprintf.h, lib/snprintf.c: New files.
78785
78786 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78787
78788         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78789         (hol_entry_help): Never translate an empty string.
78790         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78791         * lib/argp.h (OPTION_NO_TRANS): New option.
78792
78793 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * modules/argp (Maintainer): Replace Simon Josefsson
78796         by Sergey Poznyakoff.
78797
78798 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78799
78800         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78801         changes merged back into glibc.
78802
78803 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78804
78805         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78806
78807 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78808
78809         * lib/xvasprintf.c: Include xalloc.h.
78810         (xvasprintf): Use xalloc_die, not xmalloc_die.
78811
78812 2004-09-29  Bruno Haible  <bruno@clisp.org>
78813
78814         * modules/alloca-opt: New file, derived from modules/alloca.
78815         * modules/allocsa: Depend on alloca-opt instead of alloca.
78816         * modules/setenv: Likewise.
78817         * modules/vasnprintf: Likewise.
78818         * MODULES.html.sh: Add alloca-opt.
78819
78820 2004-09-28  Simon Josefsson  <jas@extundo.com>
78821
78822         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78823         LGPL, and to replace license template from GPL to LGPL.
78824
78825 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * modules/dummy: Change license to LGPL.
78828
78829 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78832
78833 2004-09-24  Simon Josefsson  <jas@extundo.com>
78834
78835         * modules/minmax (License): Change from GPL to LGPL.
78836
78837 2004-09-23  Simon Josefsson  <jas@extundo.com>
78838
78839         * gnulib-tool (--import): Typo.
78840
78841 2004-09-23  Simon Josefsson  <jas@extundo.com>
78842
78843         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78844
78845 2004-09-22  Bruno Haible  <bruno@clisp.org>
78846
78847         * modules/*: Add 'License' field.
78848         * gnulib-tool: Accept --extract-license option.
78849         (func_get_license): New function.
78850
78851 2004-09-21  Bruno Haible  <bruno@clisp.org>
78852
78853         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78854         Reported by Simon Josefsson.
78855
78856 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78859         gl_AC_TYPE_LONG_LONG.
78860
78861 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78864
78865 2004-09-18  Simon Josefsson  <jas@extundo.com>
78866         and  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78869         calls with autoreconf.  Define GL_LIB.
78870
78871 2004-09-14  Karl Berry  <karl@gnu.org>
78872
78873         * config/srclist.txt: unsync setenv.c, sigh.
78874
78875 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78878         Problem reported by Bruno Haible in:
78879         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78880
78881 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78882
78883         * config/srclist.txt: Comment out argp-pvh.c.
78884
78885 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78888         in case some system header has #define'd it.  Problem reported by
78889         Soeren D. Schulze in
78890         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78891
78892 2004-09-09  Karl Berry  <karl@gnu.org>
78893
78894         * regex.[ch]: delete from the root.  These were supposed to be
78895                 synced with emacs cvs, but this has not happened for about
78896                 a year, and anyway nothing else uses emacs regex.[ch].
78897                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78898                 lib/regex[.ch] is untouched.
78899
78900 2004-09-09  Bruno Haible  <bruno@clisp.org>
78901
78902         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78903
78904 2004-09-09  Bruno Haible  <bruno@clisp.org>
78905
78906         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78907         modifications.
78908         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78909
78910 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78911
78912         * modules/xvasprintf: New file.
78913         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78914
78915 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78916
78917         * lib/xvasprintf.h: New file.
78918         * lib/xvasprintf.c: New file.
78919         * lib/xasprintf.c: New file.
78920
78921 2004-09-08  Bruno Haible  <bruno@clisp.org>
78922
78923         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78924
78925 2004-09-08  Bruno Haible  <bruno@clisp.org>
78926
78927         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78928         length is > INT_MAX.
78929         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78930         more.
78931
78932 2004-09-08  Bruno Haible  <bruno@clisp.org>
78933
78934         * lib/stdint_.h: New file, taken from GNU clisp.
78935
78936 2004-09-08  Bruno Haible  <bruno@clisp.org>
78937             Oskar Liljeblad  <oskar@osk.mine.nu>
78938
78939         * modules/stdint: New file.
78940         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78941
78942 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         Import from coreutils.
78945         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78946         strings on unbounded length.  alloca's performance benefits aren't
78947         that important here.
78948         (V_STRDUP): Remove.
78949         (parse_with_separator): New function, with most of the internals
78950         of the old parse_user_spec.  Allow user to omit both user and group,
78951         for compatibility with FreeBSD.
78952         Clone only the user name, not the entire spec.
78953         Do not set *uid, *gid unless entirely successful.
78954         Avoid memory leak in some failing cases.
78955         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78956         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78957         (parse_user_spec): Rewrite to use parse_with_separator.
78958
78959 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * modules/userspec: Don't depend on alloca.
78962
78963 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78966
78967 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78970         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78971         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78972
78973 2004-08-16  Simon Josefsson  <jas@extundo.com>
78974
78975         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78976         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78977         Add --dry-run for --import.
78978         Let user provided command line parameters override configure.ac
78979         settings.
78980
78981 2004-08-12  Simon Josefsson  <jas@extundo.com>
78982
78983         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78984         as discussed with Paul Eggert in threads rooted at
78985         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78986         and
78987         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78988         Before, the test was empty, and relied on ELIDE_CODE in source
78989         code.)
78990         (gl_PREREQ_GETOPT): New macro.
78991         (gl_GETOPT): Use them.
78992
78993 2004-08-12  Simon Josefsson  <jas@extundo.com>
78994
78995         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78996         * lib/getopt_.h: Renamed from getopt.h.
78997
78998 2004-08-12  Simon Josefsson  <jas@extundo.com>
78999
79000         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79001         Change default library name from libfoo to libgnu.
79002         Now, if you have a configure.ac that says:
79003                 gl_SOURCE_BASE(gl)
79004                 gl_M4_BASE(gl/m4)
79005                 gl_MODULES(error getopt etcetera)
79006                 gl_INIT
79007         you can import all you need by running:
79008                 ../gnulib/gnulib-tool --import
79009
79010         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79011         (Makefile.am): Rewrite, use logic from argz.
79012         (Include): Use <getopt.h> instead of "getopt.h".
79013
79014 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79015
79016         * modules/argp (Files): Add m4/unlocked-io.m4.
79017         (Depends-on): Add extensions.
79018
79019 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79022         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79023         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79024         Check for program_invocation_name, program_invocation_short_name,
79025         flockfile, funlockfile, features.h, _getopt_long_only_r.
79026
79027 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79028
79029         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79030         its complicated substitute.
79031         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79032         and program_invocation_name.
79033         (__argp_basename) [!_LIBC]: Remove; the only use was
79034         replaced by its body.
79035         (__argp_short_program_name): Change condition from
79036         !defined __argp_short_program_name to
79037         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79038         to match argp-namefrob.h.
79039         (__argp_failure): Don't assume strerror_r returns char *.
79040         * lib/argp-parse.c (N_): Define unconditionally.
79041         (argp_default_options): Fill out initializers with 0 to avoid
79042         gcc warnings.
79043
79044 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79047         getopt1.c.
79048
79049 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79050
79051         Merge from coreutils.
79052
79053         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79054
79055         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79056         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79057
79058 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         Merge from coreutils.
79061
79062         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79063         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79064         for Reliant Unix 5.43.
79065
79066         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79067         (union fooround): Use uintmax_t, not long int.
79068         The rest is a merge from libc:
79069         [defined _LIBC]: Include <shlib-compat.h>.
79070         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79071
79072         * lib/settime.c (settime): Recode to avoid warning with
79073         Sun Forte C 6U2.
79074
79075         * lib/strverscmp.c: Convert to UTF-8.
79076
79077 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79080         m4/uintmax_t.m4.
79081
79082 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * modules/xalloc-die: New file.
79085         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79086
79087         * modules/md5 (Files): Add m4/uint32_t.m4.
79088         * modules/sha1: Renamed from modules/sha.
79089         (Files):
79090         Rename lib/sha.h to lib/sha1.h.
79091         Rename lib/sha.c to lib/sha1.c.
79092         Rename m4/sha.m4 to m4/sha1.m4.
79093         (lib_SOURCES): Likewise.
79094         (configure.ac): Rename gl_SHA to gl_SHA1.
79095         (Include): sha.h -> sha1.h.
79096
79097 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79098
79099         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79100         * m4/sha1.m4: Renamed from sha.m4.
79101         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79102
79103 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * lib/obstack.h (obstack_empty_p):
79106         Don't assume that chunk->contents is suitably aligned.
79107         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79108         Likewise. Problem reported by Benno in
79109         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79110
79111         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79112         readable.  This could be improved further but it'd take some work.
79113
79114 2004-08-08  Simon Josefsson  <jas@extundo.com>
79115
79116         * modules/xgethostname (Depends-on): Remove exit and error (not
79117         used).
79118
79119         * modules/getpass-gnu: Add getpass.h.
79120         (Depends-on): Add stdbool.
79121         * modules/getpass: Add getpass.h.
79122
79123 2004-08-08  Simon Josefsson  <jas@extundo.com>
79124
79125         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79126         Check getpass declaration.
79127
79128 2004-08-08  Simon Josefsson  <jas@extundo.com>
79129
79130         * lib/xgethostname.c: Don't include error.h (not used).
79131
79132         * lib/getpass.h: Add.
79133         * lib/getpass.c: Include getpass.h first.
79134
79135 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * lib/xalloc-die.c: New file.
79138         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79139         All uses removed.
79140         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79141         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79142         xalloc-die.c.
79143         (_, N_, xalloc_die): Move to xalloc-die.c.
79144         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79145         so that we needn't mess with xalloc_msg_memory_exhausted.
79146
79147         * lib/sha1.h: Renamed from sha.h.
79148         (SHA1_H): Renamed from _SHA_H.
79149         (sha1_ctx): Renamed from sha_ctx.
79150         (sha1_init_ctx): Renamed from sha_init_ctx.
79151         (sha1_process_block): Renamed from sha_process_block.
79152         (sha1_process_bytes): Renamed from sha_process_bytes.
79153         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79154         (sha1_read_ctx): Renamed from sha_read_ctx.
79155         (sha1_stream): Renamed from sha_stream.
79156         (sha1_buffer): Renamed from sha_buffer.
79157         * lib/sha1.c: Likewise; renamed from sha.c.
79158         Do not include <sys/types.h>.
79159         Include <stddef.h> rather than <stdlib.h>.
79160
79161 2004-08-08  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79164         FILESYSTEM_PREFIX_LEN.
79165         * lib/progreloc.c: Likewise.
79166         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79167
79168 2004-08-06  Simon Josefsson  <jas@extundo.com>
79169
79170         * modules/progname (Depends-on): Don't depend on stdbool.
79171
79172 2004-08-06  Simon Josefsson  <jas@extundo.com>
79173
79174         * modules/getsubopt: New file.
79175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79176         getsubopt.
79177
79178 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79179
79180         More merge from coreutils.
79181
79182         * m4/utimens.m4, m4/utimecmp.m4: New files.
79183         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79184         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79185         prereq.m4, sha.m4: Import changes from coreutils.
79186
79187 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         More merge from coreutils.
79190         * modules/raise, modules/readtokens0, modules/utimens:
79191         * modules/utimecmp, module/xnanosleep: New files.
79192         * modules/strftime: Add lib/strftime.h.
79193         Change include from <time.h> to "strftime.h".
79194         * modules/yesno: Add lib/yesno.h.
79195         * modules/backupfile: Remove lib/addext.c.
79196         * modules/euidaccess: Add stat-macros.h.
79197         * modules/canonicalize, modules/euidaccess,
79198         modules/filemode, modules/lchown, modules/makepath,
79199         modules/rmdir, modules/stat: Likewise.
79200
79201 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         Merge from tar.
79204         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79205         SIZE_MAX is a valid preprocessor constant.
79206         (__argp_basename): Change from "#ifndef _LIBC"
79207         to "#ifndef __argp_short_program_name", so that
79208         we don't compile these functions for tar.
79209
79210         More merges from coreutils.
79211         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79212         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79213         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79214         * lib/addext.c: Remove; no longer needed.
79215         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79216         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79217         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79218         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79219         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79220         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79221         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79222         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79223         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79224         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79225         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79226         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79227         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79228         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79229         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79230         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79231         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79232         Import changes from coreutils.
79233
79234 2004-08-05  Simon Josefsson  <jas@extundo.com>
79235
79236         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79237
79238 2004-08-05  Simon Josefsson  <jas@extundo.com>
79239
79240         * m4/getsubopt.m4: New file.
79241
79242 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         Merge from coreutils.
79245
79246         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79247         * m4/getcwd-path-max.m4: New files.
79248
79249         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79250         FILESYSTEM_PREFIX_LEN ->
79251         FILE_SYSTEM_PREFIX_LEN.
79252         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79253         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79254         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79255         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79256
79257         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79258         prerequisite modules now handle the DOS stuff.
79259         Don't check for unistd.h.
79260
79261 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79262
79263         Merge from coreutils.
79264
79265         * lib/.gdb-history: Remove; this doesn't belong here.
79266
79267         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79268         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79269         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79270         * lib/getcwd.c: New files.
79271
79272         * lib/dirname.h: Include <stdbool.h>.
79273         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79274         for consistency with POSIX terminology.  All uses changed.
79275         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79276         (strip_trailing_slashes): Use bool for booleans.
79277         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79278
79279         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79280         sometimes returns a positive errno value even when it succeeds.
79281         (print_errno_message) [!LIBC]: Fall back on strerror if
79282         __strerror_r fails.
79283
79284         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79285         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79286         (longest_relative_suffix): New function.
79287         (path_concat): Use it.  Assume first argument is not NULL.
79288         Port to DOS.  Omit redundant separators.
79289         Report an error instead of returning NULL.
79290         Use mempcpy instead of memcpy.
79291         (xpath_concat): Remove: not declared or used.
79292
79293         * lib/same.h: Include <stdbool.h>
79294         (same_name): Return bool, not int.
79295         * lib/same.c (same_name): Likewise.
79296         (errno): Don't declare; we assume C89 or better now.
79297
79298         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79299         if not already defined.
79300
79301         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79302         * lib/dup-safer.c (errno): Likewise.
79303
79304 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         Merge from coreutils.
79307         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79308         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79309         * modules/path-concat: Don't depend on strdup.
79310
79311 2004-08-03  Simon Josefsson  <jas@extundo.com>
79312
79313         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79314         * lib/progname.h: Don't include stdbool.h.
79315
79316 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79319         * MODULES.html.sh (func_all_modules): Remove fatal.
79320
79321 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79324
79325 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79328         working.
79329
79330 2004-08-02  Simon Josefsson  <jas@extundo.com>
79331
79332         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79333         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79334         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79335
79336 2004-08-01  Simon Josefsson  <jas@extundo.com>
79337
79338         * lib/xgetdomainname.c: Include stdlib.h, for free().
79339
79340 2004-07-19  Bruno Haible  <bruno@clisp.org>
79341
79342         * MODULES.html.sh (func_all_modules): Add dummy.
79343
79344 2004-07-16  Simon Josefsson  <jas@extundo.com>
79345
79346         * modules/dummy: New file.
79347
79348 2004-07-16  Simon Josefsson  <jas@extundo.com>
79349
79350         * lib/dummy.c: New file.
79351
79352 2004-07-16  Bruno Haible  <bruno@clisp.org>
79353
79354         * lib/backupfile.h: Add extern "C" for C++.
79355         * lib/closeout.h: Likewise.
79356         * lib/copy-file.h: Likewise.
79357         * lib/findprog.h: Likewise.
79358         * lib/full-write.h: Likewise.
79359         * lib/pathname.h: Likewise.
79360         * lib/progname.h: Likewise.
79361         * lib/stpcpy.h: Likewise.
79362         * lib/stpncpy.h: Likewise.
79363         * lib/strcase.h: Likewise.
79364         * lib/strstr.h: Likewise.
79365         * lib/xalloc.h: Likewise.
79366
79367         * lib/mbswidth.h: Add extern "C" for C++.
79368         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79369
79370 2004-07-13  Robert Millan  <robertmh@gnu.org>
79371
79372         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79373
79374 2004-07-09  Simon Josefsson  <jas@extundo.com>
79375
79376         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79377         failed without this.)
79378
79379 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * modules/chown (Files): Add lib/fchown-stub.c, since
79382         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79383
79384 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79385
79386         * lib/fchown-stub.c: New file.
79387
79388 2004-06-24  Jim Meyering  <jim@meyering.net>
79389
79390         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79391
79392 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * modules/argz: Omit "#include".
79395
79396         * MODULES.html.sh (func_all_modules): Add calloc, to match
79397         2004-06-01 addition of calloc module.
79398
79399 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79400
79401         * m4/argz.m4: New file, which is autoupdated from libtool.
79402
79403 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79406         libtool.
79407
79408 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * config/srclist-update: Don't insist on "USA." before the
79411         close-comment, as libtool omits the period and puts the */ on a
79412         separate line.
79413         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79414         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79415
79416 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79417
79418         * modules/argz: New file.
79419         * MODULES.html.sh (func_all_modules): Add argz.
79420
79421 2004-06-12  Jim Meyering  <jim@meyering.net>
79422         and  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * modules/hash (Files): Add lib/xalloc.h.
79425         * modules/pipe (Depends-on): Add wait-process.
79426         * modules/stat (Depends-on): Add xalloc.
79427         * modules/userspec (Files): Add lib/userspec.h.
79428         * modules/xstrto
79429
79430         Upgrade from gettext-0.13.
79431         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79432         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79433         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79434
79435 2004-06-10  Jim Meyering  <jim@meyering.net>
79436
79437         * lib/calloc.c: New file.
79438
79439 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         * lib/getdate.y (yylex): Allow space between sign and number.
79442         Problem reported by Dan Jacobson.
79443
79444 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         Merge from coreutils CVS.
79447
79448         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79449         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79450         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79451         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79452         xstrtol.m4: Fix copyright date and/or serial number.
79453
79454         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79455         See if we need an fchown replacement.
79456         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79457         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79458         and use the replacement function if we detect either defect.
79459
79460         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79461         gl_UTIMECMP.
79462
79463 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79464         and  Jim Meyering  <jim@meyering.net>
79465
79466         Merge from coreutils CVS.
79467
79468         * lib/stat-macros.h: New file, with contents from file-type.h
79469         and coreutils' system.h.
79470         * lib/file-type.c: Include "stat-macros.h".
79471         * lib/file-type.h (file_type): Move all macro definitions to new file,
79472         stat-macros.h.
79473
79474         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79475         Wrap old code with this conditional.
79476         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79477         function that does not dereference symlinks.
79478         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79479
79480         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79481         dependency problems.
79482         (xreadlink): Accept new arg SIZE, for efficiency.
79483         All decls and uses changed.
79484         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79485
79486         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79487         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79488
79489         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79490         sysexits.h.
79491
79492 2004-06-01  Jim Meyering  <jim@meyering.net>
79493
79494         * m4/calloc.m4: New file.
79495
79496 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79499         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79500         Also, fix a typo in a diagnostic.
79501
79502 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79505         or AC_FUNC_REALLOC.
79506
79507 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79510         macros to be defined.
79511         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79512         the allocator returns NULL because the requested size is zero.
79513
79514 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79517         var.  Add comment explaining why libc still defines it.  This
79518         merges the following patch from glibc:
79519         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79520
79521 2004-05-20  Andreas Schwab  <schwab@suse.de>
79522
79523         * m4/free.m4: Replace free if it not known to work, not the other
79524         way round.
79525
79526 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79529         present in glibc since revision 1.1 of this file.
79530         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79531         obstack_alignment_mask, obstack_alloc, obstack_base,
79532         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79533         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79534         obstack_grow0, obstack_init, obstack_int_grow,
79535         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79536         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79537         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79538         nonexistent functions.
79539
79540 2004-05-18  Karl Berry  <karl@gnu.org>
79541
79542         * config/srclist.txt: break link for vasnprintf.c.
79543
79544 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79545
79546         Port obstack to the AS/400, where pointers are 16 bytes wide and
79547         you cannot cast an integer to a valid pointer.  This patch is
79548         currently waiting to be integrated into glibc; see
79549         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79550
79551         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79552         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79553         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79554         (struct obstack): temp member is now a union of a pointer and
79555         an integer, instead of an integer.  All integer uses changed.
79556         This does not affect the physical layout of struct obstack,
79557         except on hosts (like the AS/400) where the size or alignment of
79558         void * is greater than that of ptrdiff_t.
79559         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79560         __STDC__)]: Store temporary in pointer member of union, not
79561         integer member.
79562         * lib/obstack.c: Include <stddef.h>, for offsetof.
79563         (struct fooalign): Remove; it doesn't need a name.
79564         (union fooround): Change double to long double, and add void *.
79565         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79566         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79567         not a macro.  Hence the values are always int; so remove all
79568         casts-to-int in uses.
79569
79570 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79573         we can get this patch merged into glibc.
79574
79575 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79576             Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * m4/argp: Depend on alloca.
79579
79580 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79581             Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79584         freecoding.
79585
79586 2004-05-17  Bruno Haible  <bruno@clisp.org>
79587
79588         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79589         precision that consists of a '.' followed by an empty digit string.
79590         Patch by Tor Lillqvist <tml@iki.fi>.
79591
79592 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79593
79594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79595         for backward compatibility with older code.  We need our own
79596         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79597         it under some other name, and our alloca.h will define it.
79598
79599 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79600             Derek Price  <derek@ximbiot.com>
79601
79602         * lib/alloca.c: Include <alloca.h>, to get our interface.
79603         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79604         include <alloca.h> first.  Use C89 prototype for alloca; this
79605         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79606         Use #elif for simplicity, since we can assume C89 now.
79607         Don't try to source the system alloca.h since it will not be found
79608         and to prevent recursively including its replacement.
79609         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79610         * lib/regex.c: Likewise.
79611
79612 2004-05-16  Derek Price  <derek@ximbiot.com>
79613             Paul Eggert  <eggert@cs.ucla.edu>
79614
79615         getline cleanup.  This changes the getndelim2 API: both order of
79616         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79617         no delimiter).
79618
79619         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79620         interface does that.
79621         (getline): Always use getdelim, so that we don't have two
79622         copies of this code.
79623         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79624         if available.
79625         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79626         (GETNDELIM2_MAXIMUM): New macro.
79627         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79628         instead of the old practice of delim2==0.  All callers changed.
79629         Return -1 on overflow, instead of returning junk.
79630         Do not set *linesize unless allocation succeeds.
79631         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79632         that we include sys/types.h.
79633         * lib/getnline.h: Likewise.
79634         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79635         (getndelim2): Reorder arguments.
79636         * lib/getnline.c (getnline, getndelim):
79637         Don't discard the NMAX argument.
79638         (getnline): Invoke getndelim, to avoid code duplication.
79639         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79640         of (size_t) -1 by callers of the getnline family.
79641
79642 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79645         Check for gettimeofday.
79646         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79647         Check for settimeofday, stime.
79648
79649 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79650
79651         * lib/nanosleep.c (suspended): Change its type from int to
79652         sig_atomic_t volatile.
79653         (first_call): Make it private to rpl_nanosleep, and have it
79654         be zero initially as that's a bit faster.
79655         (my_usleep): Round up fractional times instead of truncating them,
79656         as this is the usual meaning for 'sleep'.
79657
79658         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79659         doesn't work.
79660         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79661         (ENOSYS): Define if not defined.
79662         (settime): Fall back on stime if it exists and settimeofday fails.
79663         But don't bother with fallbacks if a method fails with errno == EPERM.
79664
79665 2004-05-11  Jim Meyering  <jim@meyering.net>
79666
79667         Prior to this change, the save_cwd caller required read access to the
79668         current directory on most systems (ones with the fchdir function).
79669
79670         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79671         fails, try write-only, and finally, resort to using xgetcwd.
79672
79673 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * lib/obstack.c, obstack.h: Import changes from libc.
79676
79677 2004-04-28  Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79680         also implicitly appends .exe to executables.
79681         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79682         accepts Windows pathnames.
79683         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79684         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79685         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79686         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79687         Reported by Derek Robert Price <derek@ximbiot.com>.
79688
79689 2004-04-21  Karl Berry  <karl@gnu.org>
79690
79691         * config/srclist.txt (localcharset.c): break sync.
79692
79693 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79694
79695         * m4/host-os.m4: Add a copyright notice.
79696
79697 2004-04-20  Jim Meyering  <jim@meyering.net>
79698
79699         Change UTILS_ to gl_ in AC_DEFINE'd names.
79700         Change utils_- and jm_-prefixed variables, too.
79701         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79702         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79703         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79704
79705         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79706         Don't emit trailing blanks.
79707         Also rename jm_-prefixed variables to have gl_ prefix.
79708
79709         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79710         Also rename jm_-prefixed variables to have gl_ prefix.
79711
79712         * m4/jm-macros.m4: Reflect the renamings.
79713         * m4/prereq.m4: Likewise.
79714
79715 2004-04-20  Jim Meyering  <jim@meyering.net>
79716
79717         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79718         memory.
79719
79720 2004-04-20  Jim Meyering  <jim@meyering.net>
79721             Bruno Haible  <bruno@clisp.org>
79722
79723         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79724         memory when realloc fails.
79725
79726 2004-04-19  Jim Meyering  <jim@meyering.net>
79727
79728         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79729         now that readutmp.c may call `free (0)'.
79730
79731 2004-04-19  Bruno Haible  <bruno@clisp.org>
79732
79733         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79734         * m4/inttypes_h.m4: Likewise.
79735         * m4/stdint_h.m4: Likewise.
79736         * m4/intmax_t.m4: Likewise.
79737         * m4/uintmax_t.m4: Likewise.
79738
79739 2004-04-18  Jim Meyering  <jim@meyering.net>
79740
79741         * m4/prereq.m4: Don't forbid jm_ prefix.
79742
79743         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79744         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79745         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79746         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79747         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79748         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79749         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79750         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79751         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79752         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79753         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79754         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79755         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79756         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79757         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79758         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79759         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79760         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79761         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79762
79763 2004-04-18  Jim Meyering  <jim@meyering.net>
79764
79765         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79766         failure, don't leak memory and do call END_UTMP_ENT.
79767
79768 2004-04-16  Jim Meyering  <jim@meyering.net>
79769
79770         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79771         coreutils' stat program.
79772         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79773
79774 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79775
79776         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79777         C89.
79778         (CHAR_BIT): Remove, since we assume C89.
79779         Include <stdint.h> if available, as per current Autoconf CVS advice.
79780
79781 2004-03-31  Jim Meyering  <jim@meyering.net>
79782
79783         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79784         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79785         * m4/xalloc.m4: Likewise.
79786
79787 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79788
79789         Merge from coreutils.
79790
79791         * m4/inttostr.m4: New file.
79792         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79793         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79794         Require gl_CLOCK_TIME.
79795         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79796
79797 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79798
79799         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79800         not bool, to be more consistent with Unix conventions.
79801         Suggested by Bruno Haible.
79802
79803         Merge from coreutils.
79804
79805         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79806         * lib/umaxtostr.c: New files.
79807
79808         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79809         the usual <time.h> dance.
79810         (get_date): Change signature to support fractional time stamps.
79811         All callers changed.
79812         * lib/getdate.y: Include "getdate.h" first, as we can now
79813         assume C89 and don't need to worry about 'const'.
79814         Similarly, include "unlocked-io.h" near start, not in middle.
79815         Include <limits.h>.
79816         (textint.value): Use long int rather than int.
79817         (textint.digits): Use size_t rather than int.
79818         (BILLION, LOG10_BILLION): New constants.
79819         (parser_control): New member rel_ns.  Members day_ordinal,
79820         time_zone, month, day, hour, minutes, rel_year, rel_month,
79821         rel_day, rel_hour, rel_minutes, rel_seconds
79822         are now long int, not int.  Member seconds is now struct timespec,
79823         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79824         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79825         not int.
79826         (%union.intval): Now long int, not int.
79827         New member timespec.
79828         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79829         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79830         (spec): Now is a timespec or an item list.
79831         (timespec, items): New nonterminals.
79832         (time, rel, relunit, number, get_date):
79833         Add support for fractional seconds.
79834         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79835         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79836         (to_hour): First arg is now long int, not int.
79837         (to_year): Returns long int, not int.
79838         Don't treat year -70 like 70.
79839         (tm_diff): Returns long int, not int.
79840         (lookup_word): Use bool instead of int when appropriate.
79841         (yylex): Use size_t for count, not int.
79842         Detect overflow when parsing large integer constants.
79843         Add support for fractions.
79844         (get_date): Make pointers 'const' if possible.
79845         Use more-portable code to detect integer overflow.
79846         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79847         Don't use ctime; it's not reliable if the year has >4 digits.
79848
79849         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79850         This is for compatibility with BSD.
79851
79852         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79853         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79854         From coreutils' system.h.
79855
79856         * lib/userspec.c: Don't include "posixver.h".
79857         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79858         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79859         compatible extension.  Simplify code by removing a boolean int
79860         that was always nonzero if a string was nonnull.
79861
79862 2004-03-30  Jim Meyering  <jim@meyering.net>
79863
79864         Merge from coreutils.
79865
79866         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79867         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79868         on some systems one must include <grp.h> before it.
79869         Reported by Christian Krackowizer.
79870
79871 2004-03-30  Jim Meyering  <jim@meyering.net>
79872
79873         Merge from coreutils.
79874
79875         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79876
79877         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79878         an empty input stream.
79879
79880         * lib/readtokens.c: Include <stdbool.h>.
79881         (readtoken): Use `size_t' rather than int/long.
79882         All callers adjusted.
79883         Use `bool' rather than `int' where appropriate.
79884         Use memset rather than an explicit loop.
79885         Use x2nrealloc rather than xrealloc.
79886         Allow the use of `\0' as a delimiter.
79887         (readtokens): Likewise.
79888         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79889
79890 2004-03-30  Jim Meyering  <jim@meyering.net>
79891
79892         * m4/realloc.m4: Remove file, since now it does no more than
79893         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79894         the `configure.ac' section of module/realloc.
79895         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79896
79897 2004-03-30  Bruno Haible  <bruno@clisp.org>
79898
79899         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79900         nonnull.
79901
79902 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79903
79904         Merge changes to getloadavg.c from coreutils and Emacs.
79905
79906         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79907         Define to an expression, not to the empty string.
79908         Include cloexec.h and xalloc.h.
79909         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79910         Use set_cloexec_flag rather than rolling our own.
79911         * lib/cloexec.c, lib/cloexec.h: New files.
79912
79913 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79914
79915         * m4/cloexec.m4: New file.
79916
79917 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79918
79919         * lib/getopt.h: Sync with libc CVS.
79920
79921 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79922             Bruno Haible  <bruno@clisp.org>
79923
79924         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79925         mbswidth.
79926
79927 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79928             Bruno Haible  <bruno@clisp.org>
79929
79930         * lib/mbswidth.h: Include <wchar.h> only if
79931         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79932         <wchar.h>.
79933         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79934
79935 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79936
79937         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79938         Sync with libc CVS.
79939         * lib/getopt_int.h: New file, also synced from libc.
79940
79941 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79942
79943         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79944         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79945         Bring back getopt.c, getopt.h, getopt1.c.
79946
79947 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79948
79949         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79950         All uses changed.  Check for sa_sigaction member; this fixes
79951         a bug first reported by Jason Andrade in
79952         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79953
79954 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79955
79956         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79957         '#if' expressions.  Unlike the code it replaces, it does not
79958         depend on (defined _SC_PAGESIZE).  However, it does depend on
79959         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79960         first reported by Jason Andrade in
79961         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79962
79963 2004-02-25  Simon Josefsson  <jas@extundo.com>
79964
79965         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79966
79967 2004-02-25  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/strdup.h: New file.
79970         * lib/strdup.c: Include it.
79971         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79972         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79973
79974 2004-02-23  Karl Berry  <karl@gnu.org>
79975
79976         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79977         (from fencepost.gnu.org:/gd/gnuorg).
79978
79979 2004-02-23  Karl Berry  <karl@gnu.org>
79980
79981         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79982         * config/srclist.txt: add maintain/standards documents.
79983
79984 2004-02-18  Bruno Haible  <bruno@clisp.org>
79985
79986         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79987         Reported by Derek Robert Price <derek@ximbiot.com>.
79988
79989 2004-02-16  Karl Berry  <karl@gnu.org>
79990
79991         * config/mkinstalldirs, install-sh: update from automake.
79992
79993 2004-02-06  Karl Berry  <karl@gnu.org>
79994
79995         * m4/po.m4: update from gettext 0.14.1.
79996
79997 2004-02-06  Karl Berry  <karl@gnu.org>
79998
79999         * lib/config.charset: update from gettext 0.14.1.
80000
80001 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80002
80003         Add comments and code, prompted by suggestions from Bruno Haible
80004         for sh-quote.
80005         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80006         describing the enum quoting_style values.
80007         * lib/quotearg.c (quotearg_alloc): New function.
80008         (quotearg_buffer_restyled): Treat lone { and } as special.
80009         Treat = as special.  Work around bug with older shells
80010         that "see" a '\' that is really the 2nd byte of a multibyte char.
80011         Quote empty string with shell_quoting_style.
80012
80013 2004-02-03  Bruno Haible  <bruno@clisp.org>
80014
80015         * m4/pipe.m4: New file, from GNU gettext.
80016
80017 2004-02-03  Bruno Haible  <bruno@clisp.org>
80018
80019         * lib/pipe.h: New file, from GNU gettext.
80020         * lib/pipe.c: New file, from GNU gettext.
80021
80022 2004-01-27  Bruno Haible  <bruno@clisp.org>
80023
80024         * m4/execute.m4: New file, from GNU gettext.
80025
80026 2004-01-27  Bruno Haible  <bruno@clisp.org>
80027
80028         * lib/execute.h: New file, from GNU gettext.
80029         * lib/execute.c: New file, from GNU gettext.
80030         * lib/w32spawn.h: New file, from GNU gettext.
80031
80032 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80033
80034         Merge from diffutils.
80035
80036         * lib/file-type.c (file_type): Add typed memory objects.
80037         * lib/file-type.h (S_TYPEISTMO): New macro.
80038
80039         * lib/c-stack.h (c_stack_action): Remove argv argument.
80040         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80041         (die): Don't calculate message unless segv_action returns.
80042         (get_stack_location, min_address_from_argv, max_address_from_argv,
80043         volatile stack_base, volatile_stack_size): Remove.
80044         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80045         that every segmentation violation is a stack overflow.  (Ouch!)
80046         See Debian bug 136249 (still outstanding) for more info about why
80047         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80048
80049 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80050
80051         Exit-status fix from coreutils.
80052
80053         Use exit_failure consistently in place of EXIT_FAILURE,
80054         so that program exit statuses are consistent on failure.
80055
80056         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80057         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80058         * lib/argmatch.h: Comment fix to match the above.
80059         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80060         Now a macro referring to exit_failure, instead of a separate
80061         variable.  Include "exitfail.h" to get it.
80062         * lib/xstrtol.h: Include "exitfail.h".
80063         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80064
80065         * lib/long-options.c (parse_long_options): Use prototype
80066         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80067         for clarity.
80068
80069 2004-01-21  Jim Meyering  <jim@meyering.net>
80070
80071         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80072         so as not to conflict with a different-sized __mktime_internal
80073         function in GNU libc.
80074         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80075         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80076
80077 2004-01-20  Karl Berry  <karl@gnu.org>
80078
80079         * config/config.guess: update from config.
80080
80081         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80082
80083 2004-01-20  Bruno Haible  <bruno@clisp.org>
80084
80085         Safer stack allocation.
80086         * lib/setenv.c: Include allocsa.h.
80087         (alloca): Remove fallback definition.
80088         (freea): Remove macro.
80089         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80090         instead of freea.
80091
80092 2004-01-20  Bruno Haible  <bruno@clisp.org>
80093
80094         * m4/eealloc.m4: New file, from GNU gettext.
80095
80096 2004-01-20  Bruno Haible  <bruno@clisp.org>
80097
80098         * m4/allocsa.m4: New file, from GNU gettext.
80099
80100 2004-01-20  Bruno Haible  <bruno@clisp.org>
80101
80102         * lib/xallocsa.h: New file, from GNU gettext.
80103         * lib/xallocsa.c: New file, from GNU gettext.
80104
80105 2004-01-20  Bruno Haible  <bruno@clisp.org>
80106
80107         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80108
80109 2004-01-20  Bruno Haible  <bruno@clisp.org>
80110
80111         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80112         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80113         specially.
80114
80115 2004-01-20  Bruno Haible  <bruno@clisp.org>
80116
80117         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80118         patch.
80119
80120 2004-01-20  Bruno Haible  <bruno@clisp.org>
80121
80122         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80123
80124 2004-01-20  Bruno Haible  <bruno@clisp.org>
80125
80126         * lib/eealloc.h: New file.
80127
80128 2004-01-20  Bruno Haible  <bruno@clisp.org>
80129
80130         * lib/binary-io.h: Avoid warnings on Cygwin.
80131
80132 2004-01-20  Bruno Haible  <bruno@clisp.org>
80133
80134         * lib/allocsa.h: New file, from GNU gettext.
80135         * lib/allocsa.c: New file, from GNU gettext.
80136
80137 2004-01-18  Karl Berry  <karl@gnu.org>
80138
80139         * doc/gpl.texi, doc/lgpl.texi: new files.
80140
80141 2004-01-18  Karl Berry  <karl@gnu.org>
80142
80143         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80144         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80145
80146 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80147
80148         Merge from coreutils.
80149
80150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80151         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80152         (gl_DEFAULT_POSIX2_VERSION): Move
80153         the documentation from 'configure' into 'config.hin',
80154         so that 'configure --help' isn't burdened by it and
80155         we don't have to worry about its formatting there.
80156         Reword the documentation so that it's more succinct
80157         and can be run together into a single paragraph.
80158         * m4/same.m4 (gl_SAME): Check for pathconf.
80159
80160 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80161
80162         Merge from coreutils.
80163
80164         * lib/posixver.c: Include posixver.h.
80165
80166         * lib/same.c: Include <stdbool.h>, <limits.h>.
80167         (_POSIX_NAME_MAX): Define if not defined.
80168         (MIN): New macro.
80169         (same_name): If file names are silently truncated, report
80170         that the file names are the same if they are the same after
80171         the silent truncation.
80172
80173         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80174         conversion function.
80175         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80176         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80177         longer needed.
80178
80179 2004-01-15  Jim Meyering  <jim@meyering.net>
80180
80181         Merge from coreutils.
80182
80183         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80184         if no library is required.
80185         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80186         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80187         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80188         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80189         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80190         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80191         value, $ac_cv_search_crypt, if it's "none required".
80192         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80193         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80194         not gl_FUNC_GETLOADAVG.
80195         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80196         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80197
80198 2004-01-15  Jim Meyering  <jim@meyering.net>
80199
80200         Merge from coreutils.
80201
80202         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80203         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80204         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80205
80206         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80207         optional configure-time default.
80208
80209         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80210
80211         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80212
80213 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80214
80215         Merge from coreutils.
80216
80217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80218         value, $ac_cv_search_nanosleep, if it's "none required".
80219
80220 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80221
80222         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80223         with like-named macro in fnmatch.c.
80224         (EXT): Use an internal constant instead.
80225
80226         Merge fnmatch patches from glibc.
80227         * lib/fnmatch.c (mbsinit): Remove define.
80228         Add libc_hidden_ver (__fnmatch, fnmatch).
80229         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80230         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80231
80232 2004-01-14  Karl Berry  <karl@gnu.org>
80233
80234         * config/install-sh: update from automake.
80235
80236 2004-01-13  Karl Berry  <karl@gnu.org>
80237
80238         * config/install-sh: update from automake.
80239
80240 2004-01-09  Karl Berry  <karl@gnu.org>
80241
80242         * config/install-sh: update from automake.
80243
80244 2004-01-05  Karl Berry  <karl@gnu.org>
80245
80246         * config/config.{sub,guess}: update from config.
80247
80248 2003-12-31  Karl Berry  <karl@gnu.org>
80249
80250         * config/depcomp: update from automake.
80251
80252 2003-12-14  Karl Berry  <karl@gnu.org>
80253
80254         * lib/config.charset: update from gettext-runtime.
80255
80256 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80257
80258         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80259         Bug reported by Alfred M. Szmidt.
80260
80261 2003-12-03  Bruno Haible  <bruno@clisp.org>
80262
80263         * m4/gettext.m4: Upgrade from gettext-0.13.
80264         * m4/po.m4: Upgrade from gettext-0.13.
80265         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80266         * m4/intmax.m4: New file, from gettext-0.13.
80267         * m4/printf-posix.m4: New file, from gettext-0.13.
80268
80269 2003-11-29  Karl Berry  <karl@gnu.org>
80270
80271         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80272
80273 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80274             Bruno Haible  <bruno@clisp.org>
80275
80276         * lib/printf-parse.h: Don't include sys/types.h.
80277         (ARG_NONE): New macro.
80278         (char_directive): Change type of *arg_index fields to size_t.
80279         * lib/printf-parse.c: Don't include sys/types.h.
80280         (SSIZE_MAX): Remove macro.
80281         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80282         Remove unnecessary overflow check.
80283         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80284         fields.
80285
80286 2003-11-25  Bruno Haible  <bruno@clisp.org>
80287
80288         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80289
80290 2003-11-25  Bruno Haible  <bruno@clisp.org>
80291
80292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80293         gt_TYPE_SSIZE_T.
80294
80295 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80296
80297         * modules/alloca: Remove dependency on xalloc.
80298
80299 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80300
80301         * lib/alloca.c: Remove dependency on xalloc module.
80302         (xalloc_die): Remove.
80303         (memory_full) [!defined emacs]: New macro.
80304         [!defined emacs]: Don't include xalloc.h.
80305         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80306         address arithmetic overflows.  Change datatypes a bit to avoid
80307         unnecessary casts.
80308
80309 2003-11-22  Jim Meyering  <jim@meyering.net>
80310
80311         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80312         s/size/size_t/.
80313
80314 2003-11-21  Karl Berry  <karl@gnu.org>
80315
80316         * config/config.{sub,guess}: update from config.
80317
80318 2003-11-18  Karl Berry  <karl@gnu.org>
80319
80320         * config/config.{sub,guess}: update from config.
80321
80322         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80323
80324 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80325
80326         * README: Mention that S+T cannot overflow if S is the size of
80327         an existing object and T is sufficiently small.
80328
80329 2003-11-17  Jim Meyering  <jim@meyering.net>
80330
80331         On systems without utime and without a utimes function capable of
80332         dealing with a NULL struct utimbuf* argument, this utime replacement
80333         could -- in unusual circumstances -- leak a file descriptor.
80334         * lib/utime.c: Include <unistd.h> and <errno.h>.
80335         (utime_null): Be sure to close `fd' and to preserve errno.
80336         Reported by Geoff Collyer via Arnold Robbins.
80337
80338 2003-11-17  Bruno Haible  <bruno@clisp.org>
80339
80340         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80341         (Depends-on): Add xsize.
80342
80343 2003-11-17  Bruno Haible  <bruno@clisp.org>
80344
80345         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80346
80347 2003-11-17  Bruno Haible  <bruno@clisp.org>
80348
80349         * lib/vasnprintf.c (alloca): Remove fallback definition.
80350         (freea): Remove definition.
80351         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80352         Reported by Paul Eggert.
80353
80354 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80355             Bruno Haible  <bruno@clisp.org>
80356
80357         Protect against address arithmetic overflow.
80358         * lib/printf-args.h: Include stddef.h.
80359         (arguments): Change type of field 'count' to size_t.
80360         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80361         'unsigned int' where appropriate.
80362         * lib/printf-parse.h: Include sys/types.h.
80363         (char_directive): Change type of *arg_index fields to ssize_t.
80364         (char_directives): Change type of fields 'count', max_*_length to
80365         size_t.
80366         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80367         (SSIZE_MAX): Define fallback value.
80368         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80369         instead of 'int' where appropriate. Check a_allocated, d_allocated
80370         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80371         * lib/vasnprintf.c: Include xsize.h.
80372         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80373         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80374         overflow. Avoid wraparound when converting a width or precision from
80375         decimal to binary.
80376
80377 2003-11-16  Bruno Haible  <bruno@clisp.org>
80378
80379         Update from GNU gettext.
80380         * lib/printf-parse.c: Generalize to it can be compiled for wide
80381         strings.
80382         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80383         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80384         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80385         SNPRINTF): New macros.
80386         Don't include <alloca.h> if the file is used inside libintl.
80387         (local_wcslen): New function, for Solaris 2.5.1.
80388         (VASNPRINTF): Use it instead of wcslen.
80389
80390 2003-11-16  Bruno Haible  <bruno@clisp.org>
80391
80392         * lib/xsize.h (xmax): New function.
80393         (xsum, xsum3, xsum4): Declare as "pure" functions.
80394
80395 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80396
80397         * modules/xalloc (Files): Undo latest change, since xalloc.h
80398         no longer needs SIZE_MAX or PTRDIFF_MAX.
80399
80400 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80401
80402         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80403         gl_PTRDIFF_MAX.
80404
80405 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80406
80407         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80408         "return", to pacify some unknown compiler.  Problem reported
80409         by Joerg Schilling.
80410
80411 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80412
80413         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80414         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80415         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80416         heuristic is just as accurate as far as we know, and it removes a
80417         dependency on size_max.m4 and ptrdiff_max.m4.
80418
80419 2003-11-11  Bruno Haible  <bruno@clisp.org>
80420
80421         * modules/xsize (Files): Add m4/size_max.m4.
80422         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80423
80424 2003-11-11  Bruno Haible  <bruno@clisp.org>
80425
80426         * m4/size_max.m4: New file.
80427         * m4/ptrdiff_max.m4: New file.
80428         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80429         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80430         (gl_XALLOC): Invoke it.
80431
80432 2003-11-11  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80435         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80436         defined.
80437
80438 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80439
80440         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80441         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80442         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80443         From Bruno Haible.
80444         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80445         not (size_t) -1, since it's defined here.
80446
80447 2003-11-09  Karl Berry  <karl@gnu.org>
80448
80449         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80450
80451 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80452
80453         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80454         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80455         Reject sizes of exactly SIZE_MAX bytes.
80456         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80457         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80458
80459 2003-11-05  Bruno Haible  <bruno@clisp.org>
80460
80461         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80462         SIZE_MAX defined in <limits.h> on Solaris.
80463
80464 2003-11-04  Jim Meyering  <jim@meyering.net>
80465
80466         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80467         variable names, rather than @VAR@.
80468         * modules/poll: Likewise.
80469
80470 2003-11-04  Bruno Haible  <bruno@clisp.org>
80471
80472         * modules/xsize: New file.
80473         * modules/linebreak: Depend on xsize.
80474         * MODULES.html.sh (func_all_modules): Add xsize.
80475
80476 2003-11-04  Bruno Haible  <bruno@clisp.org>
80477
80478         * m4/xsize.m4: New file.
80479
80480 2003-11-04  Bruno Haible  <bruno@clisp.org>
80481
80482         * lib/xsize.h: New file.
80483         * lib/linebreak.c: Include xsize.h.
80484         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80485         argument for overflow.
80486         Suggested by Paul Eggert.
80487
80488 2003-11-03  Karl Berry  <karl@gnu.org>
80489
80490         * config/config.{guess,sub}: update from config.
80491
80492 2003-11-03  Jim Meyering  <jim@meyering.net>
80493
80494         * modules/userspec (lib_SOURCES): Add userspec.h.
80495         (Include): Add "userspec.h".
80496         Improve description.
80497
80498 2003-11-03  Jim Meyering  <jim@meyering.net>
80499
80500         * lib/userspec.c: Include "userspec.h".
80501         * lib/userspec.h: New file.
80502
80503 2003-11-03  Bruno Haible  <bruno@clisp.org>
80504
80505         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80506
80507 2003-11-03  Bruno Haible  <bruno@clisp.org>
80508
80509         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80510         available, to avoid (extremely rare) race condition.
80511         Suggested by Paul Eggert.
80512
80513 2003-11-02  Karl Berry  <karl@gnu.org>
80514
80515         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80516
80517 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80518
80519         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80520         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80521         (read_filesystem_list): Set and use me_type_malloced.
80522         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80523         whatever the type happens to be), for brevity and consistency.
80524         Check for size calculation overflow on Alphas running OSF/1.
80525
80526 2003-10-31  Jim Meyering  <jim@meyering.net>
80527
80528         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80529
80530         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80531
80532 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80533             Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80536         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80537
80538 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80539
80540         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80541         netbsd*-gnu*.  Suggested by Robert Millan.
80542
80543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80544
80545         * modules/group-member: Depend on stdbool.
80546
80547 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80548
80549         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80550
80551 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80552
80553         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80554         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80555         after the 'gnu' in these cases.  This fixes some bugs in the
80556         previous change, and is based on suggestions by Robert Millan.
80557
80558 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80559
80560         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80561         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80562         no longer needed.
80563         * lib/quotearg.c (quotearg_n_options): Use it.
80564         * lib/group-member.c: Include <stdbool.h>.
80565         (free_group_info): Arg is now const *; don't free arg.
80566         (get_group_info): Now returns bool and accepts struct group_info *,
80567         rather than returning a malloc'ed struct group_info *.
80568         All uses changed.  Check for overflow in internal size calculation.
80569
80570         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80571         rather than xmalloc/xrealloc.
80572         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80573         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80574         conformance bug: the old code used a pointer after freeing the
80575         storage that it addressed.
80576         * lib/hash.c (hash_initialize): Simplify the code by using
80577         xalloc_oversized rather than doing it by hand.
80578         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80579         the buffer preserved.  Use free and xmalloc instead.
80580         * lib/quotearg.c (quotearg_n_options): Likewise.
80581         Use a simpler test for size overflow.  Don't use xalloc_oversized
80582         because unsigned int might be wider than size_t (!); this suggests
80583         that we should switch from unsigned int to size_t for slot numbers.
80584
80585 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80586
80587         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80588         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80589         NetBSD kernels.  Requested by Richard Stallman.
80590
80591 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80594         to allocate the returned structure.  Do not allocate a subarray,
80595         as x2nrealloc will do that.
80596         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80597         instead of xnrealloc.
80598         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80599
80600 2003-10-27  Bruno Haible  <bruno@clisp.org>
80601
80602         * lib/stdbool_.h: Better support for BeOS.
80603
80604 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80605
80606         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80607         now uses inline.
80608
80609 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80610
80611         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80612         callers that want to do their own size-overflow checking.  Include
80613         <stdbool.h>, since xalloc_oversized returns bool.
80614         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80615         to use xalloc_oversized.
80616
80617         Add two functions x2realloc, x2nrealloc, for programs that grow
80618         arrays dynamically by doubling their sizes.
80619         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80620         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80621         New functions.
80622
80623         Port to C99 semantics for 'inline' of external functions.
80624         Bug reported by Bruno Haible.
80625         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80626         with the old contents of xnmalloc.
80627         (xnmalloc, xmalloc): Use it.
80628         (xnrealloc_inline): New static inline function,
80629         with the old contents of xnrealloc.
80630         (xnrealloc, xrealloc): Use it.
80631
80632         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80633         that.
80634
80635 2003-10-26  Karl Berry  <karl@gnu.org>
80636
80637         * config/srclist.txt (COPYING.DOC): no longer available from
80638         /gd/gnuorg; don't know where the ultimate source is.
80639
80640 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80641
80642         Fix several address-calculation bugs in the hash modules,
80643         plus some minor code cleanup.
80644
80645         * lib/hash.h: Include <stdbool.h>, for bool.
80646         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80647         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80648         hash_get_n_entries, hash_get_max_bucket_length,
80649         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80650         hash_rehash): Use size_t rather than unsigned.
80651         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80652         hash_get_n_buckets_used, hash_get_n_entries,
80653         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80654         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80655         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80656         Likewise.
80657         (SIZE_MAX): Define if not defined.
80658         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80659         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80660         hash_print):
80661         Use const * when possible.
80662         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80663         (check_tuning): Fix bug: if tuning parameters were very close to
80664         0 or 1, rounding errors could have caused subscript violations.
80665         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80666         (hash_initialize): Add 'fail:' label
80667         to free table and return NULL, and use it to simplify code.
80668         Use calloc rather than clearing the storage ourself.
80669         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80670         buffer size calculations.
80671         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80672         Include <stddef.h>, for size_t.
80673         * lib/hash-pjw.c (hash_pjw): Likewise.
80674         Switch to method described by Bruno Haible.
80675         Include <limits.h>, for CHAR_BIT.
80676         (SIZE_BITS): New macro.
80677
80678 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80679
80680         * m4/getline.m4 (AM_FUNC_GETLINE):
80681         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80682         hosts.  Problem reported by Derek Robert Price in
80683         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80684         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80685         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80686
80687 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80688
80689         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80690         ceiling the allocation at NMAX bytes rather than silently
80691         discarding input bytes before NMAX is reached.  This makes
80692         a difference only if NMAX exceeds SIZE_MAX / 2.
80693
80694         * lib/obstack.c: Merge from glibc.
80695         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80696         Add libc_hidden_def (_obstack_newchunk).
80697         (_obstack_free) [! defined _LIBC]: Remove.
80698         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80699         a clone of the function body.
80700         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80701         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80702
80703         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80704         glibc.
80705         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80706         arg to memcpy.
80707
80708         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80709         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80710         Don't use lvalue casts, as GCC plans to remove support for them
80711         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80712         was also present in the non-GCC version, indicating that this
80713         code had always been buggy and had never been widely used.
80714         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80715         Use the fast variant of each macro, rather than copying the
80716         definiens of the fast variant; that way, we'll be more likely to
80717         catch future bugs in the fast variants.
80718
80719 2003-10-20  Bruno Haible  <bruno@clisp.org>
80720
80721         * modules/wait-process: New file.
80722         * MODULES.html.sh (func_all_modules): Add wait-process.
80723
80724 2003-10-20  Bruno Haible  <bruno@clisp.org>
80725
80726         * m4/wait-process.m4: New file.
80727
80728 2003-10-20  Bruno Haible  <bruno@clisp.org>
80729
80730         * lib/wait-process.h: New file, from GNU gettext.
80731         * lib/wait-process.c: New file, from GNU gettext.
80732
80733 2003-10-19  Jim Meyering  <jim@meyering.net>
80734
80735         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80736         HPUX 10.20.
80737
80738 2003-10-18  Karl Berry  <karl@gnu.org>
80739
80740         * config/config.guess: update from config.
80741
80742 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80743
80744         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80745         (getgroups): First arg is int, not size_t.
80746         Don't let 'free' mangle errno.
80747
80748 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80749
80750         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80751
80752 2003-10-16  Karl Berry  <karl@gnu.org>
80753
80754         * config/config.{guess,sub}: update from config.
80755
80756 2003-10-16  Jim Meyering  <jim@meyering.net>
80757
80758         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80759         memcpy.
80760
80761 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80762
80763         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80764         (SIZE_MAX): Remove.
80765         (new_exclude, add_exclude_file): Initial size no longer needs to
80766         be a power of 2.
80767         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80768         our own address arithmetic overflow checking.
80769
80770         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80771         (fnmatch): Do not alloca more than 2000 wide characters;
80772         instead, use malloc for large buffers.
80773         Check for address arithmetic overflow, and return -1
80774         with errno set to ENOMEM in that case.
80775         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80776         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80777         instead, return -1.  Check for address arithmetic overflow.
80778
80779 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80780
80781         Handle invalid suffixes and overflow independently, so that
80782         callers can treat them independently as needed.  Fix some bugs in
80783         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80784         suffix for a human-readable blocksize.  The major caller-visible
80785         change is the addition of a new
80786         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80787         that both overflow and suffix chars were found.
80788
80789         * lib/human.c (humblock): Don't check separately for invalid suffix
80790         char; that is xstrtoumax's job (now that its bug is fixed).
80791         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80792         INTMAX_MAX]: New macros.
80793         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80794         TYPE_MAXIMUM): New macros.
80795         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80796         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80797         if overflow occurs, as it's what __strtol does and it's more useful
80798         in practice.
80799         (__xstrtol): If __strtol reports some error other than ERANGE,
80800         reflect it to the caller as LONGINT_INVALID.  If it reports
80801         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80802         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80803         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80804         value.
80805         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80806         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80807         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80808         [defined UINTMAX_MAX]: New macros.
80809
80810 2003-10-14  Bruno Haible  <bruno@clisp.org>
80811
80812         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80813
80814 2003-10-14  Bruno Haible  <bruno@clisp.org>
80815
80816         * m4/sig_atomic_t: New file, from GNU gettext.
80817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80818
80819 2003-10-14  Bruno Haible  <bruno@clisp.org>
80820
80821         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80822         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80823         Also use volatile where needed.
80824
80825 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80826
80827         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80828         Change maintainer from Bruno Haible to 'all'.
80829
80830 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80831
80832         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80833
80834 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80835
80836         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80837         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80838         and define in terms of the other primitives.
80839         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80840         (SIZE_MAX): Define if not already defined.
80841         (array_size_overflow): New function.
80842         (xalloc_die): Abort instead of exiting if 'error' returns.
80843         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80844         (xmalloc, xrealloc): Use them.
80845         (xcalloc): Check for address arithmetic overflow.
80846         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80847         a bit faster than strcpy.
80848
80849 2003-10-10  Simon Josefsson  <jas@extundo.com>
80850
80851         * modules/argp (Depends-on): Add restrict and strcase.
80852
80853 2003-10-10  Simon Josefsson  <jas@extundo.com>
80854
80855         * m4/argp.m4: Add AC_C_INLINE.
80856
80857 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80858
80859         Merge getpass from libc, plus a few fixes.
80860
80861         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80862         Include <stdbool.h>.
80863         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80864         __fsetlocking to empty.
80865         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80866         do include <bits/libc-lock.h>.
80867         Do not include <fcntl.h>; not needed.
80868         [_LIBC]: Include <wchar.h>.
80869         (NOTCANCEL_MODE): New macro.
80870         (flockfile, funlockfile) [_LIBC]: New macros.
80871         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80872         [!_LIBC]: New macros.
80873         (call_fclose): New function.
80874         (getpass): Use it.  Save tty stream separately; this simplifies the
80875         code and makes it more reliable if stdin happens to equal stdout.
80876         Invoke __fsetlocking on tty.
80877         Handle thread cancellation if needed.
80878         Namespace cleanup (use __tcgetattr, __getline).
80879         Use bool for Booleans.
80880         [USE_IN_LIBIO]: Handle wide streams.
80881         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80882         stream might go where.
80883
80884         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80885         doesn't have to include <stdio.h> before us.
80886         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80887         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80888         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80889         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80890         if not declared, so that we can use getpass.c code from libc without
80891         rewriting it.
80892         (flockfile, ftrylockfile, funlockfile): New macros.
80893
80894 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80895
80896         * modules/getpass: Depend on stdbool.
80897
80898 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80899
80900         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80901
80902 2003-10-07  Karl Berry  <karl@gnu.org>
80903
80904         * config/config.{guess,sub}: update from config.
80905
80906 2003-10-06  Jim Meyering  <jim@meyering.net>
80907             Bruno Haible  <bruno@clisp.org>
80908
80909         This lets translators provide better translations for the
80910         "Written by ..." part of --version output.
80911         * lib/version-etc.h: Include stdarg.h.
80912         (version_etc_copyright): Declare as readonly.
80913         (version_etc): Make this function variadic with a NULL-terminated list
80914         of author name strings.
80915         (version_etc_va): New declaration.
80916         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80917         (version_etc_copyright): Declare as readonly.
80918         (version_etc_va): New function. Provide a different translatable string
80919         for each possible number of authors < 10. Abbreviate when there are 10
80920         authors or more.
80921         (version_etc): Make this function variadic. Call version_etc_va.
80922         Suggestion from Gary V. Vaughan.
80923
80924         * lib/long-options.h (parse_long_options): Change prototype: the
80925         authors string is moved to the end and becomes variadic.
80926         * lib/long-options.c: Include stdarg.h.
80927         (parse_long_options): Make this function variadic, too.
80928         Call version_etc_va, not version_etc.
80929
80930 2003-10-06  Bruno Haible  <bruno@clisp.org>
80931
80932         * modules/version-etc-2: Remove file.
80933         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80934
80935 2003-10-06  Bruno Haible  <bruno@clisp.org>
80936
80937         * modules/fatal-signal: New file.
80938         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80939
80940 2003-10-06  Bruno Haible  <bruno@clisp.org>
80941
80942         * m4/fatal-signal.m4: New file.
80943         * m4/signalblocking.m4: New file, from GNU gettext.
80944
80945 2003-10-06  Bruno Haible  <bruno@clisp.org>
80946
80947         * lib/version-etc-2.h: Remove file.
80948         * lib/version-etc-2.c: Remove file.
80949
80950 2003-10-06  Bruno Haible  <bruno@clisp.org>
80951
80952         * lib/fatal-signal.h: New file, from GNU gettext.
80953         * lib/fatal-signal.c: New file, from GNU gettext.
80954
80955 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80956
80957         * README: Rework advice for preventing empty .o files.
80958         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80959         not <sys/types.h>.
80960
80961 2003-10-04  Karl Berry  <karl@gnu.org>
80962
80963         * lib/argp*: update from libc.
80964
80965 2003-10-04  Karl Berry  <karl@gnu.org>
80966
80967         * config/config.{guess,sub}: update from config.
80968
80969 2003-10-02  Bruno Haible  <bruno@clisp.org>
80970
80971         * modules/lchown (Include): Add lchown.h.
80972         * modules/time_r (Include): Use "..." syntax.
80973         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80974
80975 2003-10-01  Simon Josefsson  <jas@extundo.com>
80976
80977         * MODULES.html.sh (func_all_modules): Move gethostname from section
80978         'based on' to section 'lacking' POSIX:2001.
80979
80980 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80981
80982         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80983         to output mode on the same stream.
80984
80985 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80986
80987         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80988         Fix arg typo in previous patch.
80989
80990 2003-09-28  Jim Meyering  <jim@meyering.net>
80991
80992         * lib/error.c: Correct cpp indentation.
80993
80994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80995
80996         * modules/free: New file.
80997
80998 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80999
81000         * m4/free.m4: New file.
81001
81002 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81003
81004         * lib/minmax.h (MIN, MAX)
81005         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81006         Omit the special code that used __typeof__, since we worry that
81007         it could be more trouble than it's worth.  See:
81008         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81009         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81010
81011         * lib/free.c: New file.
81012
81013 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81014
81015         Trivial fixes to Makefile.am parts of module listings.
81016         * modules/strstr: Append strstr.h to lib_SOURCES.
81017         * modules/strcase: Likewise, for strcase.h.
81018
81019 2003-09-27  Karl Berry  <karl@gnu.org>
81020
81021         * config/mkinstalldirs: update from automake.
81022
81023 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81024
81025         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81026         (error_tail): Do not loop, reallocating temporary buffer, since
81027         the output cannot contain more wide characters than the input
81028         contains bytes, the size must be big enough already.  This avoids
81029         one potential size overflow calculation.  Check for size overflow
81030         when calculating temporary buffer size.  Free temporary buffer
81031         when done, if it was allocated with malloc; this plugs a memory
81032         leak.  Remove casts from void * to pointers, that are no longer
81033         needed now that we're assuming C89 or better.
81034
81035         Merge error changes from glibc.
81036
81037         * lib/error.c, error.h: Update copyright notice header to match glibc.
81038         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81039         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81040         Disable cancellation while printing error.
81041         * lib/error.h: Prepend __ to parameter names.
81042
81043 2003-09-26  Jim Meyering  <jim@meyering.net>
81044
81045         * lib/error.c (error_tail): Move some declarations
81046         into inner scope where the local variables are used.
81047
81048 2003-09-26  Bruno Haible  <bruno@clisp.org>
81049
81050         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81051         stpncpy().
81052         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81053
81054 2003-09-26  Bruno Haible  <bruno@clisp.org>
81055
81056         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81057         (stpncpy): Define as alias for gnu_stpncpy.
81058         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81059
81060 2003-09-25  Simon Josefsson  <jas@extundo.com>
81061
81062         * lib/xgetdomainname.h: New file.
81063         * lib/xgetdomainname.c: New file.
81064
81065 2003-09-25  Simon Josefsson  <jas@extundo.com>
81066             Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/getdomainname: New file.
81069         * modules/xgetdomainname: New file.
81070         * MODULES.html.sh (func_all_modules): Add getdomainname,
81071         xgetdomainname.
81072
81073 2003-09-25  Simon Josefsson  <jas@extundo.com>
81074             Bruno Haible  <bruno@clisp.org>
81075
81076         * m4/getdomainname.m4: New file.
81077
81078 2003-09-25  Simon Josefsson  <jas@extundo.com>
81079             Bruno Haible  <bruno@clisp.org>
81080
81081         * lib/getdomainname.h: New file.
81082         * lib/getdomainname.c: New file.
81083
81084 2003-09-25  Karl Berry  <karl@gnu.org>
81085
81086         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81087
81088 2003-09-25  Karl Berry  <karl@gnu.org>
81089
81090         * config/install-sh: update from automake.
81091
81092 2003-09-25  Bruno Haible  <bruno@clisp.org>
81093
81094         * modules/version-etc-2: New file, from modules/version-etc with
81095         modifications.
81096         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81097
81098 2003-09-25  Bruno Haible  <bruno@clisp.org>
81099
81100         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81101         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81102
81103 2003-09-24  Simon Josefsson  <jas@extundo.com>
81104
81105         * modules/xgethostname: Add xgethostname.h.
81106
81107 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81108
81109         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81110         the buffer associated with the argument.  Bug reported by
81111         Simon Josefsson.
81112
81113 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81114
81115         * README: Document assumptions that 'int' is at least 32 bits
81116         wide, that integer arithmetic is 2's complement without overflow,
81117         that there are no holes in integer values, that adding sizes of
81118         two nonoverlapping objects can't overflow, and that all-bits-zero
81119         yields scalar zero.  Fix spelling and capitalization typos.
81120
81121 2003-09-19  Karl Berry  <karl@gnu.org>
81122
81123         * lib/argp.h: update from libc.
81124
81125 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81126
81127         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81128         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81129         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81130
81131 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81132
81133         * gnulib-tool: Use "test -h", not "test -L", for portability
81134         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81135         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81136         (sed_extract_prog): Issue s commands one-by-one, rather than
81137         using \| in one s command.
81138
81139 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81140
81141         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81142         input error, instead of returning NULL the next time we are called
81143         (and therefore losing track of errno).
81144
81145 2003-09-16  Bruno Haible  <bruno@clisp.org>
81146
81147         * gnulib-tool (func_create_testdir): Warn about duplicated
81148         dependencies.
81149
81150 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81151
81152         * modules/argmatch, modules/fatal, modules/obstack,
81153         modules/xalloc, modules/xgethostname: Sort dependencies by
81154         importance, not alphabetically.
81155
81156 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81157
81158         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81159         fails, so that the caller gets the proper errno.
81160
81161         * lib/readutmp.c (read_utmp): Likewise.
81162         Check for fstat error.  Close stream and free storage
81163         when failing.
81164
81165 2003-09-14  Karl Berry  <karl@gnu.org>
81166
81167         * config/srclist.txt (strdup.c): disable for c89 changes.
81168
81169 2003-09-14  Jim Meyering  <jim@meyering.net>
81170
81171         * lib/getloadavg.c: Correct cpp indentation.
81172         * lib/strdup.c: Likewise.
81173         * lib/vasnprintf.c: Likewise.
81174
81175 2003-09-14  Bruno Haible  <bruno@clisp.org>
81176
81177         * modules/fwriteerror: New file.
81178         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81179
81180 2003-09-14  Bruno Haible  <bruno@clisp.org>
81181
81182         * lib/fwriteerror.h: New file.
81183         * lib/fwriteerror.c: New file.
81184
81185 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81186
81187         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81188         modules/xgethostname, modules/xalloc: Depend on exit.
81189
81190 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81191
81192         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81193
81194         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81195         and AC_MINIX, too, so that their extensions are available.
81196
81197         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81198         This macro has been superseded by gl_BACKUPFILE.
81199
81200         More patches to assume C89 or better.
81201
81202         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81203
81204         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81205         unconditionally.
81206         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81207         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81208         Include <string.h>, <stdlib.h> unconditionally.
81209         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81210         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81211         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81212         headers or for string.h.
81213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81214         or strtoul.
81215
81216         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81217         headers.
81218         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81219         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81220         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81221         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81222         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81223         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81224         memcpy, memset.
81225         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81226         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81227         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81228         strtol.
81229         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81230         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81231         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81232         strtoul.
81233
81234 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81235
81236         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81237         * lib/obstack.c [!defined _LIBC]: Likewise.
81238         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81239         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81240         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81241
81242         More changes to assume C89 or better.
81243
81244         * lib/error.c (error_tail): Assume vprintf.
81245
81246         * lib/argmatch.c (getenv): Remove decl.
81247         * lib/progreloc.c (get_full_program_name): Define via prototype.
81248         * lib/setenv.c (clearenv): Likewise.
81249         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81250         needed.
81251         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81252         (malloc, memcpy): Remove decls.
81253         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81254         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81255         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81256         (memcpy): Remove macro.
81257         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81258         (__P): Remove.  All uses removed.
81259         (PTR): Remove.  All uses changed to void *.
81260         (CHAR_BIT, NULL): Remove.
81261         (spaces, zeros, memset_space, memset_zero)
81262         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81263         Remove.
81264         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81265         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81266         Define with prototype.
81267         Remove now-unnecessary prototype decl.
81268         (extra_args_spec): Assume ANSI C.  All uses changed.
81269         (extra_args_spec_iso): Remove.
81270         (my_strftime, emacs_strftimeu): Define via prototype.
81271         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81272         unconditionally.
81273         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81274         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81275         (strtoul, strtol): Remove decls.
81276         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81277         LONG_MAX): Remove.
81278         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81279         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81280         (LOCALE_PARAM_PROTO): New macro.
81281         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81282         (INTERNAL (strtol), strtol): Define with a prototype.
81283         (PARAMS): Remove.  All uses removed.
81284         * lib/tempname.c: Include <string.h> unconditionally.
81285         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81286         * lib/xgethostname.c (main): Define with a prototype.
81287         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81288         Include <stdlib.h> unconditionally.
81289         (calloc, malloc, realloc, free): Remove decls.
81290         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81291         Include <stdlib.h> unconditionally.  Sort include file names.
81292         (strtod): Remove.
81293         (xstrtod): Define with a prototype.
81294         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81295         (strtol, strtoul): Remove decls.
81296
81297 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81298
81299         More patches to assume C89 or better.
81300         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81301         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81302         string.h, memchr, STDC_HEADERS.
81303
81304 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81305
81306         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81307         Include <stdlib.h>, <string.h> unconditionally.
81308         Remove now-unnecessary cast to char *.
81309         * lib/strnlen.c: Include <string.h> unconditionally.
81310         * lib/yesno.c (yesno): Define with a prototype.
81311
81312 2003-09-11  Bruno Haible  <bruno@clisp.org>
81313
81314         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81315
81316 2003-09-10  Jim Meyering  <jim@meyering.net>
81317
81318         * lib/error.c: Correct indentation of cpp directives.
81319
81320 2003-09-10  Bruno Haible  <bruno@clisp.org>
81321
81322         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81323         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81324         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81325         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81326         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81327         <stdlib.h> and <string.h> checks.
81328         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81329         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81330
81331 2003-09-10  Bruno Haible  <bruno@clisp.org>
81332
81333         * lib/strcspn.c: Include <string.h> unconditionally.
81334         * lib/strpbrk.c: Include <string.h> unconditionally.
81335         * lib/strstr.c: Include <string.h> unconditionally.
81336         * lib/unicodeio.c: Include <string.h> unconditionally.
81337         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81338         * lib/unsetenv.c: Likewise.
81339         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81340         * lib/yesno.c: Include <stdlib.h> unconditionally.
81341         (rpmatch): Add prototype.
81342
81343 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81344
81345         More patches to assume C89 or better.
81346         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81347         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81348         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81349         or for string.h.
81350         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81351         stdlib.h.
81352         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81353         C headers.
81354         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81355         string.h.
81356         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81357         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81358         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81359         or for string.h.
81360         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81361         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81362         C headers.
81363         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81364         memcpy.
81365         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81366         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81367         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81368         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81369         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81370         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81371         string.h, free.
81372         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81373         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81374         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81375         C headers, or for string.h.
81376         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81377         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81378         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81379         headers, memory.h, stdlib.h, string.h, strings.h.
81380         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81381         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81382         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81383         strchr.
81384         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81385         headers, memory.h, string.h.
81386         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81387         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81388         free.
81389         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81390         headers.
81391         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81392         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81393         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81394         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81395         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81396
81397 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81398
81399         More K&R removal.
81400
81401         * lib/acosl.c (main): Use a prototype.
81402         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81403         tanl.c: Likewise.
81404
81405         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81406
81407         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81408         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81409         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81410         with a prototype.
81411         * lib/getopt.c (const): Remove macro.
81412         Include <string.h> unconditionally.
81413         (my_index): Remove; all uses changed to strchr.
81414         (strlen): Remove decl.
81415         (exchange): Remove forward decl; no longer needed.
81416         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81417         Define with prototype.
81418         * lib/getopt1.c (const): Remove macro.
81419         (getopt_long, getopt_long_only, main): Define with prototype.
81420
81421         * lib/getugroups.c: Include <string.h> unconditionally.
81422
81423         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81424         (getusershell, setusershell, endusershell, readname, main):
81425         Define with prototypes.
81426
81427         * lib/group-member.c: Include group-member.h first.
81428         Include <stdlib.h> unconditionally.
81429
81430         * lib/hard-locale.c: Include hard-locale.h first.
81431         Include <stdlib.h>, <string.h> unconditionally.
81432
81433         * lib/hash.c (free, malloc): Remove decls.
81434         Include <stdlib.h> unconditionally.
81435
81436         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81437         (getenv): Do not declare.
81438
81439         * lib/idcache.c: Include <string.h> unconditionally.
81440
81441         * lib/long-options.c: Include long-options.h first, to test interface.
81442         Include <stdlib.h> unconditionally.
81443
81444         * lib/makepath.c: Include makepath.h first, to test interface.
81445         Include <stdlib.h> and <string.h> unconditionally.
81446
81447         * lib/linebuffer.c: Include <stdlib.h>.
81448         (free): Remove decl.
81449
81450         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81451         stddef.h. rpl_malloc returns void *, not char *.
81452         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81453         prototype.
81454
81455         * lib/md5.h: Include <limits.h> unconditionally.
81456         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81457         (__P): Remove; all uses removed.
81458         * lib/md5.c: Include "md5.h" first.
81459         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81460         md5_buffer, md5_process_bytes, md5_process_block):
81461         Define with prototypes.
81462         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81463         * lib/sha.c: Include "sha.h" first.
81464         Include <stdlib.h>, <string.h> unconditionally.
81465
81466         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81467         * lib/memcmp.c (__ptr_t): Likewise.
81468         * lib/memrchr.c (__ptr_t): Likewise.
81469         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81470         Include <string.h> unconditionally.
81471         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81472         * lib/memchr.c: Include <stdlib.h> unconditionally.
81473         * lib/memchr.c (LONG_MAX): Remove.
81474         * lib/memrchr.c (LONG_MAX): Likewise.
81475         * lib/memchr.c (__memchr): Define via a prototype.
81476         * lib/memrchr.c (__memrchr): Likewise.
81477         * lib/memcmp.c (__P): Remove, and remove all uses.
81478         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81479         Remove forward decls; no longer needed.
81480         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81481         Use types required by C89 in prototype.
81482
81483         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81484         * lib/savedir.c: Likewise.
81485         * lib/mkdir.c (free): Remove decl.
81486         * lib/rmdir.c (rmdir): Define with a prototype.
81487         * lib/savedir.c: Include savedir.h first, to test interface.
81488
81489         * lib/mktime.c (STDC_HEADERS): Remove.
81490         Include <stdlib.h>, <string.h> unconditionally.
81491
81492         * lib/modechange.c: Include <stdlib.h> unconditionally.
81493         (malloc): Remove decl.
81494
81495         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81496         (free): Remove decl.
81497
81498         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81499         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81500         (This type really should be intptr_t, but that's a C99ism.)
81501         (_obstack_memcpy): Remove: all uses changed to memcpy.
81502         Include <string.h> unconditionally.
81503         (struct obstack): Assume __STDC__ for types of members
81504         chunkfun, freefun, extra_arg.
81505         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81506         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81507         obstack_begin, obstack_specify_allocation,
81508         obstack_specify_allocation_with_arg, obstack_chunkfun,
81509         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81510         Remove unprototyped decls and the macros that use them.
81511         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81512         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81513         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81514         (defined __STDC__ && __STDC__)]:
81515         Remove nonprototyped code.
81516         Include <stdlib.h> unconditionally.
81517         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81518         _obstack_allocated_p, _obstack_free, obstack_free,
81519         _obstack_memory_used, print_and_abort):
81520         Define using prototypes.
81521         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81522         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81523         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81524         obstack_next_free, obstack_object_size, obstack_room) [0]:
81525         Remove unused, unprototyped code.
81526
81527         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81528
81529         * lib/physmem.c (physmem_total, physmem_available, main): Define
81530         with prototypes.
81531
81532         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81533         (main): Define with a prototype.
81534
81535         * lib/posixver.c (getenv): Remove decl.
81536
81537         * lib/putenv.c (malloc): Returns void *, not char *.
81538         Include <string.h> unconditionally.
81539         (strchr, memcpy, NULL): Do not define.
81540
81541         * lib/readtokens.c: Include readtokens.h first, to test interface.
81542         Include <stdlib.h>, <string.h> unconditionally.
81543         (init_tokenbuffer): Define with a prototype.
81544
81545         * lib/regex.c (PARAMS): Remove.  All uses removed.
81546         All uses of _RE_ARGS removed, too.
81547         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81548         unconditionally.
81549         (bzero): Assume memset exists.
81550         (memcmp, memcpy, NULL): Remove.
81551         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81552         char, or assignments to local vars of type signed char.
81553         (init_syntax_once, PREFIX(extract_number_and_incr),
81554         PREFIX(print_partial_compiled_pattern),
81555         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81556         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81557         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81558         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81559         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81560         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81561         wcs_compile_range, byte_compile_range, truncate_wchar,
81562         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81563         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81564         count_mbs_length, wcs_re_match_2_internal,
81565         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81566         PREFIX(alt_match_null_string_p),
81567         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81568         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81569         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81570         now-unnecessary declaration, if any.
81571         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81572         regcomp, regexec):
81573         Remove now-unnecessary casts among pointer types.
81574         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81575
81576         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81577         (free): Remove decl.
81578
81579         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81580
81581         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81582         (free): Remove decl.
81583
81584         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81585         * lib/xgetcwd.c: Likewise.
81586
81587         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81588         (free): Remove decl.
81589
81590         * lib/strchrnul.c (strchrnul): Define with a prototype.
81591         Fix bug: c_in was not converted to char before searching.
81592
81593         The following changes are not K&R related:
81594
81595         * lib/group-member.h: Include <sys/types.h>, so that this file is
81596         self-contained.
81597         * lib/makepath.h: Likewise.
81598
81599         * lib/getusershell.c (readname, default_index, line_size, readname):
81600         Use size_t, not int, for sizes.
81601         (readname): If the size overflows, report an error instead of
81602         looping forever.
81603
81604 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81605
81606         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81607         libc.
81608
81609 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81610
81611         * README: New section: portability guidelines.
81612
81613 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81614
81615         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81616         C89 spec.
81617
81618 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81619
81620         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81621
81622 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81623
81624         Assume C89 or better; remove K&R cruft.
81625         A few of these changes were first proposed by Derek Robert Price
81626         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81627
81628         * lib/addext.c: Include <string.h> unconditionally.
81629         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81630         Don't declare getenv or malloc.
81631
81632         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81633         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81634         (NULL): Remove.
81635         (find_stack_direction, alloca): Use prototypes.
81636
81637         * lib/atexit.c (atexit): Define using a prototype.
81638
81639         * lib/basename.c, dirname.c, stripslash.c:
81640         Include <string.h> unconditionally.
81641
81642         * lib/bcopy.c: Include <stddef.h>.
81643         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81644
81645         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81646
81647         * lib/error.h (error, error_at_line, error_print_progname)
81648         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81649         * lib/error.c: Include error.h first, to check interface.
81650         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81651         (VA_START): Remove; all uses changeed to va_start.
81652         (exit, strerror): Remove decls.
81653         (error_print_progname): Prototype uncondionally.
81654         Don't include <errno.h>; no longer needed.
81655         (private_strerror): Remove.
81656         (error_tail): Always define.
81657         (error, error_at_line): Assume C89 or better; always use prototypes.
81658         * lib/fatal.c: Include "fatal.h" first, to test interface.
81659         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81660         (VA_START): Remove; all uses changed to va_start.
81661         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81662         this case.
81663         (exit): Remove decl.
81664         (fatal): Prototype unconditionally.  Assume va_start works.
81665         Abort at end, to pacify gcc.
81666
81667         * lib/euidaccess.c (main): Define with a prototype.
81668
81669         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81670
81671         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81672
81673         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81674         prototypes.
81675         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81676         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81677         (getenv): Remove decl.
81678         (fnmatch): Define using a prototype.
81679         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81680         (FCT): Define using a prototype.
81681
81682         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81683
81684         * lib/gethostname.c: Include <stddef.h>.
81685         (gethostname): Define with prototype.  Length is size_t, not int.
81686
81687 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81688
81689         Assume C89 or better; remove K&R cruft.
81690         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81691         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81692         string.h, getenv, malloc.
81693         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81694         headers.
81695         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81696         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81697         do not check for strerror.
81698         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81699         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81700         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81701         do not check for doprnt or vprintf.
81702         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81703         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81704
81705 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81706
81707         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81708         getversion.c should have been removed then, but was accidentally
81709         preserved.
81710
81711         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81712         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81713
81714 2003-09-08  Karl Berry  <karl@gnu.org>
81715
81716         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81717                 config, forget about prep.
81718
81719         * config/depcomp, missing: update from automake.
81720
81721 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81722
81723         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81724         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81725
81726 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81727
81728         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81729         copy_tm_result.  Bug reported by Simon Josefsson in
81730         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81731
81732 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81733
81734         * m4/time_r.m4: New file.
81735         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81736         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81737         is. Check for timegm declaration.
81738         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81739         Do not check for gmtime_r.
81740         Replace mktime if __mktime_internal does not exist and if mktime
81741         hasn't been replaced already.
81742
81743 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81744
81745         * lib/time_r.c, lib/time_r.h: New files.
81746
81747         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81748         __localtime_r.
81749         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81750         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81751
81752         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81753         __gmtime_r.
81754         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81755         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81756         Include <time_r.h>.
81757
81758         * lib/timegm.c: Switch to glibc implementation, with the following
81759         changes:
81760         [defined HAVE_CONFIG_H]: Include <config.h>.
81761         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81762         (__mktime_internal) [!defined _LIBC]: New decl.
81763         (__gmtime_r) [!defined _LIBC]: New macro and function.
81764         (timegm): Use a prototype, since gnulib assumes C89.
81765         Do not bother declaring tmp to be const, as it's not really usefu.
81766         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81767         (timegm): Declare only if HAVE_DECL_TIMEGM.
81768
81769 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81770
81771         * MODULES.html.sh (func_all_modules): Add time_r.
81772         * modules/time_r: New file.
81773         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81774         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81775
81776 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81777
81778         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81779         Bug reported by Lute Kamstra in
81780         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81781
81782         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81783         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81784         course with correspondingly smaller numbers for tomorrow and
81785         yesterday.  From Tadayoshi Funaba.  Originally installed into
81786         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81787         coreutils merge?).
81788
81789 2003-08-31  Simon Josefsson  <jas@extundo.com>
81790
81791         * modules/timegm: New file.
81792         * MODULES.html.sh (func_all_modules): Add timegm.
81793
81794 2003-08-31  Simon Josefsson  <jas@extundo.com>
81795
81796         * m4/timegm.m4: New file.
81797
81798 2003-08-31  Simon Josefsson  <jas@extundo.com>
81799
81800         * lib/timegm.h: New file.
81801         * lib/timegm.c: New file.  Based on
81802         wget-1.8.2/src/http.c:mktime_from_utc.
81803
81804 2003-08-31  Karl Berry  <karl@gnu.org>
81805
81806         * lib/argp.h: update from libc.
81807
81808 2003-08-28  Bruno Haible  <bruno@clisp.org>
81809
81810         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81811         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81812         followed by '#define fnmatch fnmatch_posix' gives an error.
81813
81814 2003-08-28  Bruno Haible  <bruno@clisp.org>
81815
81816         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81817         warning on QNX, which defines O_BINARY to 000000.
81818
81819 2003-08-27  Jim Meyering  <jim@meyering.net>
81820
81821         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81822         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81823         would fail after 32.  Reported by Danny Levinson.  Details here:
81824         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81825
81826 2003-08-24  Bruno Haible  <bruno@clisp.org>
81827
81828         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81829         MSVC7 <stdio.h> is included later.
81830
81831 2003-08-22  Simon Josefsson  <jas@extundo.com>
81832
81833         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81834
81835 2003-08-20  Karl Berry  <karl@gnu.org>
81836
81837         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81838
81839 2003-08-20  Bruno Haible  <bruno@clisp.org>
81840
81841         * modules/progname: New file.
81842         * MODULES.html.sh (func_all_modules): Add progname.
81843
81844 2003-08-20  Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/progname.h: New file, from GNU gettext.
81847         * lib/progname.c: New file, from GNU gettext.
81848         * lib/progreloc.c: New file, from GNU gettext.
81849
81850 2003-08-19  Jim Meyering  <jim@meyering.net>
81851
81852         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81853         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81854
81855 2003-08-19  Bruno Haible  <bruno@clisp.org>
81856
81857         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81858         more.
81859
81860 2003-08-19  Bruno Haible  <bruno@clisp.org>
81861
81862         * lib/xstrdup.c: Assume <string.h> exists.
81863
81864 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81865
81866         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81867         in makefile rules.
81868
81869 2003-08-18  Jim Meyering  <jim@meyering.net>
81870
81871         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81872         * m4/lib-ld.m4: Likewise.
81873
81874 2003-08-18  Jim Meyering  <jim@meyering.net>
81875
81876         * lib/setenv.h: Indent nested cpp directive.
81877         * lib/vasnprintf.c: Remove trailing blanks.
81878
81879 2003-08-17  Simon Josefsson  <jas@extundo.com>
81880
81881         * modules/xstrndup: New file.
81882         * MODULES.html.sh (func_all_modules): Add xstrndup.
81883
81884 2003-08-17  Simon Josefsson  <jas@extundo.com>
81885
81886         * modules/argp: Fix autoconf macro name. Add more dependencies.
81887
81888 2003-08-17  Simon Josefsson  <jas@extundo.com>
81889
81890         * m4/xstrndup.m4: New file.
81891
81892 2003-08-17  Simon Josefsson  <jas@extundo.com>
81893
81894         * m4/argp.m4: New file.
81895
81896 2003-08-17  Simon Josefsson  <jas@extundo.com>
81897             Bruno Haible  <bruno@clisp.org>
81898
81899         * lib/xstrndup.h: New file.
81900         * lib/xstrndup.c: New file.
81901
81902 2003-08-17  Bruno Haible  <bruno@clisp.org>
81903
81904         * modules/strndup (Files, Include): Add lib/strndup.h.
81905
81906 2003-08-17  Bruno Haible  <bruno@clisp.org>
81907
81908         * modules/euidaccess (Files): Add lib/euidaccess.h.
81909
81910 2003-08-17  Bruno Haible  <bruno@clisp.org>
81911
81912         * lib/strndup.h: New file.
81913
81914 2003-08-17  Bruno Haible  <bruno@clisp.org>
81915
81916         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81917         like AC_GNU_SOURCE.
81918         * modules/extensions (configure.ac): Comment out the invocation of
81919         gl_USE_SYSTEM_EXTENSIONS.
81920
81921 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81922
81923         Merges from coreutils, etc.
81924         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81925         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81926         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81927         fixing a typo.
81928         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81929         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81930
81931 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81932
81933         Document merge from coreutils.
81934         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81935         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81936         * modules/utime: Add m4/utimes-null.m4.
81937
81938 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81939
81940         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81941         space, undoing this 2003-08-12 change:
81942         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81943
81944 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81945
81946         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81947         strtoul.c from libc, undoing this 2003-08-12 change:
81948         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81949
81950 2003-08-16  Jim Meyering  <jim@meyering.net>
81951
81952         Merges from coreutils.
81953         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81954         prefix.  Adjust cache variables similarly.  Create 500 rather than
81955         just 300 files, to exercise bug on Darwin6.5, too.
81956         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81957         $missing_dir.
81958         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81959         AM_SYS_POSIX_TERMIOS.
81960         Reported by mkc@mathdogs.com.
81961         Also change use of $am_cv_sys_posix_termios
81962         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81963         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81964         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81965         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81966         in /proc/mounts until it finds one with matching device number.  This
81967         is unnecessary when the FILE argument *is* a mount point.  No stat call
81968         is necessary in that case.  So, disable the statvfs-testing code on
81969         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81970         as RedHat bug# 84846.
81971         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81972         to 1MB, so as not to render systems with no stack size limit (e.g.,
81973         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81974         Include <unistd.h>.  On some systems,
81975         it is required for the definition of _SC_PAGESIZE.
81976
81977 2003-08-16  Jim Meyering  <jim@meyering.net>
81978
81979         Merge from coreutils.
81980         * lib/xstrtoimax.c: #else #if -> #elif.
81981         * lib/xstrtoumax.c: Likewise.
81982
81983 2003-08-16  Jim Meyering  <jim@meyering.net>
81984
81985         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81986         * m4/utimes.m4: Removed.
81987         * m4/utimes-null.m4: Renamed from utimes.m4.
81988
81989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81990         to 1MB, so as not to render systems with no stack size limit (e.g.,
81991         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81992         Include <unistd.h>.  On some systems,
81993         it is required for the definition of _SC_PAGESIZE.
81994
81995 2003-08-16  Jim Meyering  <jim@meyering.net>
81996         and Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         Merges from coreutils, etc.
81999
82000         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82001         using the latest version from cvs.  This avoids problems with #line
82002         directives using a vendor (Sun) compiler.
82003         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82004         Don't set GETGROUPS_LIB here; now it's
82005         done via getgroups.m4's wrapper function.
82006         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82007         rather than just in sh-util/configure.in, so that the
82008         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82009         same.
82010         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82011         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82012         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82013         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82014         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82015         Remove code that is now done by the newly-required macros.
82016         Append $(EXEEXT) to DF_PROG.
82017         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82018         Do not invoke or require the following here,
82019         since prereq.m4 or some gnulib .m4 now does this for us:
82020         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82021         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82022         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82023         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82024         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82025         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82026         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82027         AC_FUNC_OBSTACK.
82028         Do not replace the following functions, as this is now the job
82029         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82030         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82031         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82032         atexit getpass, strdup, getpagesize.
82033         Replace 'raise'.
82034         Do not check for the following functions, as this is now the job
82035         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82036         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82037         setregid.
82038         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82039         Check for sys/sysctl.h.
82040         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82041         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82042         of checking for ssize_t ourselves.
82043
82044         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82045         Require every macro that gnulib/modules/* suggests for us.
82046         (jm_PREREQ_ADDEXT): New macro.
82047         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82048         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82049
82050         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82051         (gl_PHYSMEM): Use it.
82052         Also check for `table' function.
82053         Check for new headers and functions.
82054         Add check for sys/sysmp.h.
82055         With suggestions from Kaveh Ghazi.
82056         Ignore headers that are present but cannot be compiled.  This
82057         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82058         C 5.4.
82059
82060 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82061
82062         Document merge from coreutils.
82063         * modules/userspec: Depend on posixver.
82064         * modules/strftime: Depend on tzset.
82065
82066 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82067
82068         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82069         rather than tab, after '#' in shell-script copyright notices.
82070         Suggested by Bruno Haible.
82071
82072 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82073
82074         * config/srclist-update: Use three spaces, rather than tab, after '#'
82075         in shell-script copyright notices.  Suggested by Bruno Haible.
82076         Remove unnecessary parenthesization in regular expression.
82077
82078 2003-08-15  Jim Meyering  <jim@meyering.net>
82079
82080         Merge from coreutils.
82081         * lib/xgethostname.c: Include <stdlib.h>.
82082         (xghostname): Don't exit for anything other than memory-related
82083         failure; just return NULL.
82084         * lib/userspec.c: Include "posixver.h".
82085         (parse_user_spec): Accept `.' as a separator only
82086         in pre-POSIX-200112 mode.
82087         * lib/strtoimax.c: Use #elif rather than #else #if.
82088         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82089         Remove function, now that we can rely on a working tzset function.
82090         [!_LIBC]: Ensure that the required autoconf test has been run.
82091         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82092         Use underlying_strftime for %r.
82093         * lib/sha.c: Merge in some clean-up and optimization changes from
82094         glibc.
82095         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82096         Ensure that it is a multiple of 64.
82097         Rearrange loop exit tests so as to avoid performing an
82098         additional fread after encountering an error or EOF.
82099         * lib/realloc.c: Update copyright date.
82100
82101 2003-08-15  Jim Meyering  <jim@meyering.net>
82102         and Paul Eggert  <eggert@twinsun.com>
82103
82104         Merge from coreutils.
82105         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82106         member but strut utmpx does not.  Needed for AIX 4.3.3.
82107         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82108
82109 2003-08-15  Jim Meyering  <jim@meyering.net>
82110         and Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         Merges from coreutils, etc.
82113         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82114         Require gl_FUNC_TZSET_CLOBBER.
82115         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82116         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82117         members.
82118
82119 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82120
82121         Help the merge from coreutils.
82122         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82123         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82124         * m4/tzset.m4: Use it too.
82125
82126 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82127
82128         * modules/tzset: New file.
82129
82130 2003-08-14  Jim Meyering  <jim@meyering.net>
82131
82132         Merges from coreutils.
82133         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82134         variable names, rather than @FNMATCH_H@.
82135         * modules/alloca: Likewise for $(ALLOCA_H).
82136
82137         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82138         the three copies of the literal target, `fnmatch.h'.
82139         * modules/alloca (alloca.h): Likewise.
82140
82141 2003-08-14  Jim Meyering  <jim@meyering.net>
82142
82143         Merge from coreutils.
82144         * m4/tzset.m4: New file.
82145         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82146         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82147         otherwise, AIX 5.1 systems would end up using the latter.
82148         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82149         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82150         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82151         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82152
82153 2003-08-14  Jim Meyering  <jim@meyering.net>
82154
82155         Merge from coreutils.
82156         * lib/obstack.h: Whitespace changes.
82157         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82158         and xcalloc return values.
82159         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82160         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82161         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82162         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82163         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82164         error from mntctl.
82165         Use mntctl's return value to drive the entry-processing loop, since
82166         we can't rely on the value of the vmt_length member in the last
82167         entry.  On some systems doing so could result in exhausting
82168         virtual memory.  Based in part on a patch from Mike Jetzer.
82169
82170 2003-08-14  Jim Meyering  <jim@meyering.net>
82171         and Paul Eggert  <eggert@twinsun.com>
82172
82173         Merges from coreutils, plus other fixes.
82174         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82175         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82176         for credits and details.  Thanks to Kaveh Ghazi for helping
82177         to keep these files in sync.
82178         (ARRAY_SIZE): Define it.
82179         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82180         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82181         (memcasecmp): Don't assume size_t fits in unsigned int.
82182         Remove casts and duplicate code.
82183         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82184         (memcpy): Remove definition.
82185         Merge in some clean-up and optimization changes from glibc.
82186         [BLOCKSIZE]: Move definition to top of file.
82187         Ensure that it is a multiple of 64.
82188         Rearrange loop exit tests so as to avoid performing an
82189         additional fread after encountering an error or EOF.
82190         * lib/md5.h (md5_uintptr): Define.
82191         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82192         return to the initial working directory.  Preserve errno
82193         for caller.
82194         * lib/idcache.c: Include "xalloc.h".
82195         (xmalloc, xrealloc): Remove decls.
82196         (getuser): Remove casts no longer required in C89.
82197         * lib/human.c: Include stdio.h, for sprintf.
82198         * lib/group-member.c: Include "xalloc.h".
82199         (xmalloc, xrealloc): Remove decls.
82200         (get_group_info): Remove casts no longer required in C89.
82201         * lib/getusershell.c (readname): Remove casts no longer required in
82202         C89.
82203         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82204         * lib/getline.c: Whitespace fix, from coreutils.
82205
82206 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82207
82208         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82209         Check for isascii.
82210
82211         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82212         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82213         Undo previous (whitespace-only) change.
82214
82215 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82216
82217         * lib/exclude.c: Include <ctype.h>
82218         (IN_CTYPE_DOMAIN): New macro.
82219         (is_space): New fn.
82220         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82221         and empty lines.
82222
82223         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82224         Undo previous (whitespace-only) change.
82225
82226 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82227
82228         * config/srclist-update: Change update back to the old behavior,
82229         leaving whitespace alone.  Use one 'sed' command rather than a
82230         pipeline.
82231         (fixlicense): Now a variable, not a function.
82232         (remove_trailing_blanks): Remove.
82233         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82234         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82235         Undo previous (whitespace-only) change.
82236
82237 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82238
82239         Merge from coreutils.
82240         * modules/euidaccess: Add lib_SOURCES, include for new
82241         file euidaccess.h
82242
82243 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82244
82245         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82246         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82247         Normalize leading white space and remove trailing white space.
82248
82249         Merge from coreutils
82250         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82251
82252         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82253         0.12.1.  These files are now being upgraded automatically by
82254         ../config/srclist-update.
82255
82256 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82257
82258         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82259         Normalize leading white space and remove trailing white space.
82260         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82261         notice, as per ../config/srclist-update.
82262
82263         Merge from coreutils.
82264         * lib/euidaccess.h: New file.
82265         * lib/euidaccess.c: Include it.
82266         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82267         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82268         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82269
82270 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82271
82272         * config/srclist-update: Add copyright notice.
82273         (remove_id_lines, remove_trailing_blanks): New constants.
82274         (fixfile): Use them to normalize spacing a bit in copied files.
82275         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82276         Normalize leading white space and remove trailing white space.
82277
82278         * config/texinfo.tex: Sync with texinfo.
82279
82280         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82281         strtoul.c from libc, to merge coreutils whitespace changes.
82282
82283         * config/srclist.txt: Get the following m4 files from gettext:
82284         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82285         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82286         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82287         wint_t.m4.
82288
82289 2003-08-12  Karl Berry  <karl@gnu.org>
82290
82291         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82292         been made.
82293
82294 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82295
82296         * modules/gnu-source, m4/gnu-source.m4:
82297         Remove; we're assuming Autoconf 2.54 or later now.
82298         Suggested by Bruno Haible.
82299         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82300
82301 2003-08-11  Bruno Haible  <bruno@clisp.org>
82302
82303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82304
82305 2003-08-11  Bruno Haible  <bruno@clisp.org>
82306
82307         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82308         (vasnprintf): Use it instead of wcslen.
82309
82310 2003-08-11  Bruno Haible  <bruno@clisp.org>
82311
82312         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82313         value to ensure that _Bool promotes to int. Use #define for _Bool when
82314         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82315
82316 2003-08-10  Karl Berry  <karl@gnu.org>
82317
82318         * lib/regex.h: update from libc (whitespace fix).
82319
82320 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82321
82322         Merge some files from coreutils.  These changes were
82323         originally made by Jim Meyering.
82324         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82325         many older Unixes require this.
82326         * lib/alloca.c (alloca): Remove cast to argument of free;
82327         no longer needed in C89.
82328         * lib/alloca_.h, regex.h: Fix white space to match
82329         what GNU indent does.
82330
82331 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82332
82333         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82334         apparently Emacs's Unicode mode got confused before my 2003-08-05
82335         checkin.
82336
82337 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82338
82339         * m4/extensions.m4: New file.
82340         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82341         Require gl_USE_SYSTEM_EXTENSIONS.
82342         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82343         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82344
82345 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82346
82347         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82348         * modules/extensions, modules/gnu-source: New files.
82349         * modules/timespec, modules/unlocked-io: Depend on extensions.
82350
82351 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82352
82353         * modules/restrict: New file.
82354         * MODULES.html.sh (func_all_modules): Add restrict.
82355         * modules/regex: Depend on restrict.
82356
82357 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82358
82359         * m4/restrict.m4: New file.
82360         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82361
82362 2003-08-07  Bruno Haible  <bruno@clisp.org>
82363
82364         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82365         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82366
82367 2003-08-07  Bruno Haible  <bruno@clisp.org>
82368
82369         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82370         makes the module 'getndelim2' compatible with the module 'getline'.
82371
82372 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82373
82374         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82375         byte with "\201" to avoid glitches when editing that source file
82376         with multi-gnome-terminal.
82377
82378 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82379
82380         * lib/bumpalloc.h: Remove.
82381
82382 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82383
82384         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82385         * modules/bumpalloc: Remove.
82386
82387 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82390         GNU coding style.
82391
82392         Merge from coreutils.
82393         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82394         1. From glibc.
82395         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82396         from Karl Berry, implemented by Jim Meyering.
82397         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82398         from Dmitry V. Levin.
82399         Remove anachronistic cast of xrealloc.
82400         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82401         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82402         type. Otherwise, it wouldn't compile with at least /bin/cc on
82403         ymp-cray-unicos9.0.2.X.
82404         Combine two mostly-identical uses of alloca into one.
82405         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82406
82407 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82408
82409         [From Emacs.]
82410
82411         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82412         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82413         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82414         obsolete NLIST_NAME_UNION.
82415         [__GNU__]: Undef BSD and FSCALE.
82416         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82417
82418 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82419
82420         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82421         an enum type, so that it's guaranteed to promote to int.  See:
82422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82423
82424 2003-08-03  Karl Berry  <karl@gnu.org>
82425
82426         * config/depcomp: update from automake.
82427
82428 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82429
82430         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82431         (strerror): Don't assume that a printable int fits in 14 bytes.
82432
82433 2003-07-31  Bruno Haible  <bruno@clisp.org>
82434
82435         * modules/getpass-gnu: New file.
82436         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82437
82438 2003-07-31  Bruno Haible  <bruno@clisp.org>
82439
82440         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82441
82442 2003-07-24  Karl Berry  <karl@gnu.org>
82443
82444         * config/missing: update from automake.
82445
82446 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82447             Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82450         * lib/getline.c (getline, getdelim): Likewise.
82451         Remove _GNU_SOURCE define; now it's defined in config.h through
82452         m4/getline.m4.
82453
82454 2003-07-23  Karl Berry  <karl@gnu.org>
82455
82456         * config/config.sub: update from prep.
82457
82458 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82459
82460         * modules/xalloc (Depends-on): Add exitfail.
82461         * modules/xmemcoll: Likewise.
82462
82463 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82464
82465         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82466         over-parenthesization in macros.
82467
82468         Sync with coreutils.
82469
82470         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82471         required by C99.
82472
82473         Use `exit_failure' for xalloc and xmemcoll instead of their own
82474         private exit-failure variables.
82475         * lib/xalloc.h (xalloc_exit_failure): Remove.
82476         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82477         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82478         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82479         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82480         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82481
82482 2003-07-20  Jim Meyering  <jim@meyering.net>
82483
82484         * modules/closeout (Depends-on): Add exitfail.
82485         Suggestion from Bruno Haible.
82486
82487 2003-07-19  Karl Berry  <karl@gnu.org>
82488
82489         * config/config.sub: update from prep.
82490
82491 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82492
82493         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82494         Remove.
82495         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82496         to test that it can stand by itself.  Include "exitfail.h".
82497         Clients should set exit_failure instead.
82498         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82499
82500 2003-07-18  Bruno Haible  <bruno@clisp.org>
82501
82502         * modules/getndelim2: New file.
82503         * modules/getline: Share files with module getndelim2.
82504         * modules/getnline: Depend on getndelim2 instead of sharing files with
82505         it. Add getnline.c to lib_SOURCES.
82506         * MODULES.html.sh (func_all_modules): Add getndelim2.
82507
82508 2003-07-18  Bruno Haible  <bruno@clisp.org>
82509
82510         * m4/getndelim2.m4: New file.
82511         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82512         invoke gl_PREREQ_GETNDELIM2.
82513         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82514         gl_PREREQ_GETNDELIM2.
82515         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82516         gl_GETNDELIM2.
82517
82518 2003-07-18  Bruno Haible  <bruno@clisp.org>
82519
82520         * lib/getndelim2.h: New file.
82521         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82522         getndelim2.h.
82523         (getndelim2): Make non-static. Change return type to ssize_t.
82524         * lib/getline.h: Change argument names.
82525         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82526         * lib/getnline.c: Include getndelim2.h.
82527
82528 2003-07-18  Andreas Schwab  <schwab@suse.de>
82529
82530         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82531
82532 2003-07-17  Karl Berry  <karl@gnu.org>
82533
82534         * config/config.sub: update from prep.
82535
82536 2003-07-17  Bruno Haible  <bruno@clisp.org>
82537
82538         * modules/getnline: New file.
82539         * modules/getline: Add lib/getndelim2.c to source file list.
82540         * MODULES.html.sh (func_all_modules): Add getnline.
82541
82542 2003-07-17  Bruno Haible  <bruno@clisp.org>
82543
82544         * m4/getnline.m4: New file.
82545
82546 2003-07-17  Bruno Haible  <bruno@clisp.org>
82547
82548         * m4/Makefile.am.in: Remove file.
82549         * m4/Makefile.am: Remove file.
82550         * m4/Makefile.in: Remove file.
82551
82552 2003-07-17  Bruno Haible  <bruno@clisp.org>
82553
82554         * lib/getnline.h: New file.
82555         * lib/getnline.c: New file.
82556         * lib/getndelim2.c: New file, extracted from getline.c.
82557         (getndelim2): Renamed from getdelim2, with added nmax argument.
82558         * lib/getline.c: Include getndelim2.c.
82559         (getdelim2): Moved out to getndelim2.c.
82560         (getline, getdelim): Update.
82561
82562 2003-07-17  Bruno Haible  <bruno@clisp.org>
82563
82564         * lib/Makefile.am: Remove file.
82565         * lib/Makefile.in: Remove file.
82566
82567 2003-07-17  Bruno Haible  <bruno@clisp.org>
82568
82569         * configure.in: Remove file.
82570         * Makefile.in: Remove file.
82571
82572 2003-07-17  Bruno Haible  <bruno@clisp.org>
82573
82574         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82575
82576 2003-07-16  Karl Berry  <karl@gnu.org>
82577
82578         * config/srclist-update: was running fixlicense twice, which caused
82579                 texinfo.tex to be nullified for some reason.  Simplify,
82580                 $gplsrc is no longer needed as far as I can see?
82581
82582 2003-07-16  Jim Meyering  <jim@meyering.net>
82583
82584         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82585
82586 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82587
82588         * config/srclist.txt: Get the following files from gettext-runtime/intl
82589         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82590         ref-del.sin.  From Bruno Haible.
82591         * config/srclist-update (fixfile): Change grep pattern again, since the
82592         previous fix didn't work (there was another trailing $).  Use
82593         '[$]' to escape the $s.
82594
82595 2003-07-15  Karl Berry  <karl@gnu.org>
82596
82597         * lib/vasnprintf.c: update from gettext.
82598
82599 2003-07-15  Karl Berry  <karl@gnu.org>
82600
82601         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82602         gets expanded when surrounded by '$'.
82603
82604 2003-07-15  Jim Meyering  <jim@meyering.net>
82605
82606         * modules/save-cwd: Don't depend on error.  From Derek Price.
82607
82608 2003-07-15  Jim Meyering  <jim@meyering.net>
82609
82610         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82611
82612 2003-07-14  Simon Josefsson  <jas@extundo.com>
82613
82614         * modules/mempcpy: New file.
82615         * MODULES.html.sh (func_all_modules): Add mempcpy.
82616
82617 2003-07-14  Simon Josefsson  <jas@extundo.com>
82618
82619         * m4/mempcpy.m4: New file.
82620
82621 2003-07-14  Simon Josefsson  <jas@extundo.com>
82622
82623         * lib/mempcpy.h: New file.
82624         * lib/mempcpy.c: New file.
82625
82626 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82627
82628         * modules/getdate, modules/posixtm: Depend on mktime.
82629
82630 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82631
82632         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82633         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82634         unicodeio.c, unicodeio.h, unlocked-io.h:
82635         Switch from LGPL to GPL.
82636
82637 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82640         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82641         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82642         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82643         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82644         updated automatically by ../config/srclist-update.  This changes
82645         their license from LPGL to GPL.
82646
82647 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82648
82649         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82650         assumed to refer to the root of the most recent stable gettext version.
82651         * config/srclistvars.sh: Add defaults for eggert.
82652         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82653         Match "This program" as well as "The program".  This is needed
82654         for gettext.
82655
82656 2003-07-14  Jim Meyering  <jim@meyering.net>
82657
82658         Don't emit diagnostics.  Let callers do that.
82659         * lib/save-cwd.c: Don't include "error.h".
82660         (save_cwd): Don't call error.  Ensure that errno is valid
82661         when returning nonzero.
82662
82663         * lib/save-cwd.h (restore_cwd): Update prototype.
82664         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82665         Simplify.  Don't call error upon failure.  Let callers do that.
82666         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82667         when auditing is enabled.  But don't bother updating the #if.
82668
82669 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82670
82671         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82672         it breaks C++ compilation.
82673         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82674
82675 2003-07-10  Simon Josefsson  <jas@extundo.com>
82676
82677         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82678
82679 2003-07-10  Jim Meyering  <jim@meyering.net>
82680
82681         * m4/clock_time.m4: Remove trailing blank.
82682         * m4/intmax_t.m4: Likewise.
82683
82684 2003-07-10  Jim Meyering  <jim@meyering.net>
82685
82686         * lib/vasnprintf.c: Remove trailing blanks.
82687         Make cpp indentation consistent.
82688
82689 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82690
82691         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82692         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82693         Switch from LGPL to GPL.
82694
82695 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82696
82697         * config/srclist.txt: Sort sublists.  Add
82698         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82699         that differ from gnulib for one reason or another; we'd like this list
82700         to be smaller but for now let's document what we have.
82701
82702 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82703
82704         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82705         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82706         and sweeter "eval x=$x".
82707         * config/srclist.txt: Get lib/argp* from glibc.
82708
82709 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82710
82711         * lib/mktime.c: Fix some boundary cases and remove need for floating
82712         point.
82713
82714         Issue a compile-time diagnostic if time_t is floating point, or if
82715         two's complement arithmetic is not in effect, or if arithmetic
82716         right shift does not propagate the sign.  These assumptions were
82717         all in the original code but they weren't checked.
82718
82719         (TIME_T_MIDPOINT, verify): New macros.
82720         (__isleap): Remove; it has integer overflow problems.
82721         (leapyear): New function, without those problems.
82722         (ydhms_tm_diff): Remove; splitting into two parts.
82723         (ydhms_diff): New function, containing the arithmetic part of
82724         the old ydhms_tm_diff function.  Issue a compile-time
82725         diagnostic if we are not using C99 integer division.
82726         Avoid casts when possible.
82727         (guess_time_tm): New function, containing the checking part of
82728         the old ydhms_tm_diff function.  Return the new value, rather than
82729         the difference between it and the old.  Accept a new argument T
82730         so that *T specifies the old value.  Check for overflow in the result.
82731
82732         (__mktime_internal): Use a time_t offset, not a long int offset.
82733         This undoes the 2003-06-04 change, which is no longer needed now
82734         that we have better overflow checking.
82735         (localtime_offset): Likewise.
82736
82737         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82738         and long are 64-bit but int is only 32-bit.
82739         (ydhms_diff): Use long int to store year1 and yday1.
82740         Issue a compile-time diagnostic if long int is not wide enough.
82741
82742         (__mktime_internal): Use long int to store adjusted year and yday.
82743         Use plain C rather than preprocessor commands, if that doesn't
82744         affect efficiency.
82745         Check for overflow (and try to repair) after each probe
82746         rather than checking only at the very end.  This avoids some bugs
82747         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82748         does not equal GMT offset at maximum time).
82749         Use integer to check for overflow rather than floating point; this
82750         is more portable to non-IEEE hosts, and is a tad faster.
82751         When we detect that we are oscillating between two values,
82752         don't check whether tm_isdst has the requested value, since
82753         we already know the answer.  When tm_isdst has the wrong value,
82754         use a different heuristic to find the right one, based on the
82755         extreme values actually observed in practice in tz2003a,
82756         rather than the (overly optimistic) "previous 3 calendar quarters".
82757
82758         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82759         "T const" to accommodate glibc style.
82760         (check_result): Use less-confusing report format.  "long" -> "long int.
82761         (main): Likewise.
82762         Don't loop if the iteration overflows time_t.
82763         Allow a negative step in the iteration.
82764
82765 2003-07-06  Karl Berry  <karl@gnu.org>
82766
82767         * config/depcomp: update from automake.
82768         * config/config.sub: update from prep.
82769
82770 2003-07-03  Karl Berry  <karl@gnu.org>
82771
82772         * config/config.guess: update from prep.
82773
82774 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82775
82776         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82777         xreadlink.c now includes it unconditionally.
82778
82779 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82780
82781         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82782         having it depend on HAVE_SYS_TYPES_H.
82783
82784 2003-07-01  Bruno Haible  <bruno@clisp.org>
82785
82786         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82787         <sys/types.h> should be sufficient.
82788         Reported by Paul Eggert.
82789
82790 2003-06-26  Karl Berry  <karl@gnu.org>
82791
82792         * config/depcomp: update from automake.
82793
82794 2003-06-26  Bruno Haible  <bruno@clisp.org>
82795
82796         * modules/human: Depend on module stdbool.
82797
82798 2003-06-25  Bruno Haible  <bruno@clisp.org>
82799
82800         * modules/readlink: New file.
82801         * modules/xreadlink: Depend on it.
82802         * MODULES.html.sh (func_all_modules): Add readlink.
82803
82804 2003-06-25  Bruno Haible  <bruno@clisp.org>
82805
82806         * m4/readlink.m4: New file.
82807
82808 2003-06-25  Bruno Haible  <bruno@clisp.org>
82809
82810         * lib/readlink.c: New file.
82811
82812 2003-06-22  Karl Berry  <karl@gnu.org>
82813
82814         * config/srclist.txt: update mkinstalldirs from automake.
82815         * config/mkinstalldirs: update.
82816
82817 2003-06-22  Bruno Haible  <bruno@clisp.org>
82818
82819         Portability to mingw32.
82820         * m4/ssize_t.m4: New file, from GNU gettext.
82821         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82822         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82823
82824 2003-06-22  Bruno Haible  <bruno@clisp.org>
82825
82826         * modules/safe-read: Add m4/ssize_t.m4.
82827         * modules/xreadlink: Add m4/ssize_t.m4.
82828
82829 2003-06-20  Bruno Haible  <bruno@clisp.org>
82830
82831         Assume C89, so PARAMS isn't needed.
82832         * lib/unicodeio.h (PARAMS): Remove.
82833         * lib/unicodeio.c: Don't use PARAMS.
82834
82835 2003-06-18  Karl Berry  <karl@gnu.org>
82836
82837         * config/config.{guess,sub}: update from prep.
82838
82839 2003-06-18  Jim Meyering  <jim@meyering.net>
82840
82841         Merge changes from coreutils.
82842         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82843         Remove explicit declarations of xmalloc and realloc.
82844         Include xalloc.h.
82845         (read_utmp): Remove anachronistic cast of xmalloc.
82846
82847 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82848
82849         Assume C89, so PARAMS isn't needed.
82850         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82851         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82852         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82853         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82854         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82855         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82856         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82857         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82858         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82859         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82860         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82861         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82862         no longer needed. Anyway, config.h should always be included before any
82863         other file.
82864
82865 2003-06-11  Simon Josefsson  <jas@extundo.com>
82866
82867         * modules/sysexits: New file.
82868         * MODULES.html.sh (func_all_modules): Add sysexits.
82869
82870 2003-06-11  Simon Josefsson  <jas@extundo.com>
82871
82872         * lib/sysexit_.h: New file.
82873
82874 2003-06-11  Derek Price  <derek@ximbiot.com>
82875
82876         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82877         necessary.
82878
82879 2003-06-11  Bruno Haible  <bruno@clisp.org>
82880
82881         * m4/sysexits.m4: New file.
82882
82883 2003-06-10  Simon Josefsson  <jas@extundo.com>
82884
82885         * lib/argp.h: New file, from glibc.
82886         * lib/argp-ba.c: New file, from glibc.
82887         * lib/argp-eexst.c: New file, from glibc.
82888         * lib/argp-fmtstream.c: New file, from glibc.
82889         * lib/argp-fmtstream.h: New file, from glibc.
82890         * lib/argp-fs-xinl.c: New file, from glibc.
82891         * lib/argp-help.c: New file, from glibc.
82892         * lib/argp-namefrob.h: New file, from glibc.
82893         * lib/argp-parse.c: New file, from glibc.
82894         * lib/argp-pv.c: New file, from glibc.
82895         * lib/argp-pvh.c: New file, from glibc.
82896         * lib/argp-xinl.c: New file, from glibc.
82897
82898 2003-06-10  Simon Josefsson  <jas@extundo.com>
82899
82900         * modules/strchrnul: New file.
82901
82902 2003-06-10  Simon Josefsson  <jas@extundo.com>
82903
82904         * modules/argp: New file.
82905
82906 2003-06-10  Simon Josefsson  <jas@extundo.com>
82907
82908         * m4/strchrnul.m4: New file.
82909
82910 2003-06-10  Simon Josefsson  <jas@extundo.com>
82911
82912         * lib/strchrnul.h: New file.
82913         * lib/strchrnul.c: New file.
82914
82915 2003-06-10  Bruno Haible  <bruno@clisp.org>
82916
82917         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82918
82919 2003-06-07  Karl Berry  <karl@gnu.org>
82920
82921         * config/config.{guess,sub}: update from prep.
82922
82923 2003-06-07  Jim Meyering  <jim@meyering.net>
82924
82925         * modules/strtod: Use $(...) notation, not @...@ for
82926         AC_REPLACE'd variables.
82927         * modules/localcharset: Likewise.
82928
82929 2003-06-07  Jim Meyering  <jim@meyering.net>
82930
82931         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82932         in place of my name in the copyright comment.
82933         Remove definition and uses of __P.
82934
82935         From coreutils.
82936         * lib/stat.c: Don't declare xmalloc explicitly.
82937         Instead, include "xalloc.h".
82938         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82939         xrealloc, and xcalloc return values.
82940         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82941         Improve comment.
82942         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82943
82944 2003-06-07  Bruno Haible  <bruno@clisp.org>
82945
82946         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82947         avoid AC_CONFIG_LINKS.
82948         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82949         fnmatch.h, to avoid AC_CONFIG_LINKS.
82950         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82951
82952 2003-06-07  Bruno Haible  <bruno@clisp.org>
82953
82954         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82955         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82956         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82957         directory.
82958         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82959         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82960         directory.
82961
82962 2003-06-06  Jim Meyering  <jim@meyering.net>
82963
82964         Merge from coreutils.
82965         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82966         Consolidate declarations and initializations of *_base* locals.
82967
82968         Merge from coreutils.
82969         This avoids a core dump on systems without GNU putenv,
82970         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82971         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82972         (unsetenv): New static function, from GNU libc.
82973         (rpl_putenv): Use it.
82974
82975         * lib/modechange.c: Remove trailing blanks.
82976
82977         Merge from coreutils.
82978         * lib/fsusage.c: Remove declaration of statfs.
82979         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82980
82981         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82982
82983 2003-06-06  Jim Meyering  <jim@meyering.net>
82984
82985         * lib/stdbool_.h: Renamed from stdbool.h.in.
82986
82987 2003-06-06  Jim Meyering  <jim@meyering.net>
82988             Bruno Haible  <bruno@clisp.org>
82989
82990         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82991         Adjust Makefile.am snippet not to redirect directly to target.
82992         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82993
82994 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82995
82996         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82997         mismatch, look in future quarters as well as past.  This fixes a
82998         bug when processing fall-backwards gaps immediately after a long
82999         period of daylight-saving time.
83000
83001         * lib/mktime.c: Assume freestanding C89 or better.
83002         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83003         (__P): Remove; not used.
83004         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83005         (mktime, not_equal_tm, print_tm, check_result,
83006         main): Use prototypes.  Use const * where appropriate.
83007         (main): Fix typo in testing code that uncovered by above changes.
83008         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83009
83010 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83011
83012         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83013         locale.h, localeconv.  This merges changes from coreutils.
83014
83015         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83016         It can be removed after the next Autoconf is released.
83017         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83018         needed.
83019
83020 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83021
83022         * lib/mktime.c: Fix Debian bug 177940
83023         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83024         (localtime_offset): Now long int, not time_t, because we want it
83025         to be guaranteed to be signed.  All uses changed.
83026         (__mktime_internal): If overflow would occur when adding offset,
83027         don't add it.
83028
83029         Merge 'human' changes from coreutils.  Rewrite to support
83030         locale-specific notations like thousands separators.
83031         * lib/human.c: Simplify authorship notice.
83032         Include human.h immediately after config.h.
83033         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83034         <limits.h>: Do not include, since human.h does.
83035         (SIZE_MAX, UINTMAX_MAX): New macros.
83036         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83037         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83038         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83039         (power_letter): Renamed from suffixes.
83040         (generate_suffix_backwards): Remove.
83041         (adjust_value): Now takes int style (because of human.h changes)
83042         and long double value (for greater precision on some platforms).
83043         (group_number): New function.
83044         (human_readable): Use it.  Use integer options, not enum.
83045         Put the options before the sizes in the arg list.
83046         Support all the new options.
83047         The old human_readable function has been removed;
83048         use inttostr.h instead.
83049         (human_readable, default_block_size, humblock):
83050         Use uintmax_t, not int, for block sizes.
83051         (human_readable_inexact, block_size_types): Remove.
83052         (block_size_opts): New constant.
83053         (human_options): Renamed from human_block_size, with new signature
83054         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83055         * lib/human.h: Add copyright and authorship notice.
83056         Include <limits.h> and <stdbool.h> unconditionally.
83057         (PARAMS): Remove.  All uses removed.
83058         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83059         (enum human_inexact_style): Remove tag; now a nameless enum.
83060         (human_floor, human_ceiling, human_round_to_even): Now have
83061         values 2, 0, 1 rather than -1, 1, 0.
83062         (human_group_digits, human_suppress_point_zero, human_autoscale,
83063         human_base_1024, human_SI, human_B): New constants.
83064         (human_readable_inexact, human_block_size): Remove.
83065         (human_readable): Size args are now uintmax_t, not int.
83066         (human_options): New decl.
83067
83068         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83069         unnecessary now that we assume C89 or better.  This change
83070         imported from coreutils.
83071
83072         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83073         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83074         in the 2003-05-30 sync from glibc.
83075
83076         .h files should stand alone, but we shouldn't include <sys/types.h>
83077         if we can get away with just <stddef.h>.
83078
83079         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83080         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83081         rather than <sys/types.h>, as we merely need size_t.
83082         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83083         to get size_t.
83084         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83085         Include <stdio.h>, to get FILE.
83086         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83087         memcasecmp.h has included <stddef.h> and all we need is size_t.
83088         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83089         our interface, instead of including <sys/types.h>
83090
83091 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83092
83093         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83094         now, as glibc mktime is buggy on non-glibc systems.
83095
83096 2003-06-03  Karl Berry  <karl@gnu.org>
83097
83098         * config/config.sub: update from prep.
83099
83100 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83101
83102         [from coreutils]
83103         Fix some minor time-related bugs with POSIX time arguments.
83104         Some valid time stamps were being rejected (notably -1, and
83105         time stamps before 1900 on 64-bit hosts).  And some invalid
83106         time stamps were being accepted, e.g. September 31.
83107
83108         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83109         that we can return (time_t) -1 successfully.
83110         * lib/posixtm.c: Likewise.
83111         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83112         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83113         (t): Remove static var.
83114         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83115         of static var.  All uses changed.
83116         (year): Do not reject years before 1900; they can occur with
83117         64-bit time_t.
83118         (posix_time_parse): Do not check for out-of-range components;
83119         that is now the caller's responsibility, since our checks were
83120         only approximations.
83121         (posixtime): Use mktime to check for out-of-range components,
83122         since it knows them exactly.
83123         If mktime returns (time_t) -1, check whether an error actually occurred
83124         by invoking localtime on -1.
83125         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83126         posixtime failures better.
83127         Improve the test data (in comments only).
83128
83129 2003-06-02  Karl Berry  <karl@gnu.org>
83130
83131         * config/mkinstalldirs (version): new variable.
83132         (--version): new option.
83133         (usage): improve message.
83134
83135 2003-05-30  Karl Berry  <karl@gnu.org>
83136
83137         * lib/mktime.c: update from libc.
83138
83139 2003-05-30  Bruno Haible  <bruno@clisp.org>
83140
83141         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83142         * config/config.rpath: Upgrade to gettext-0.12.1.
83143
83144 2003-05-30  Bruno Haible  <bruno@clisp.org>
83145
83146         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83147         * m4/nls.m4: New file, from gettext-0.12.1.
83148         * m4/po.m4: New file, from gettext-0.12.1.
83149         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83150
83151 2003-05-30  Bruno Haible  <bruno@clisp.org>
83152
83153         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83154         * lib/localcharset.h: Likewise.
83155         * lib/localcharset.c: Likewise.
83156
83157 2003-05-29  Karl Berry  <karl@gnu.org>
83158
83159         * config/config.rpath: update from gettext.
83160
83161 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83162
83163         Assume the headers required for C89 freestanding compilers.
83164         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83165         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83166         * m4/human.m4 (gl_HUMAN): Likewise.
83167         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83168         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83169         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83170         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83171         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83172         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83173
83174 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83175
83176         Assume the headers required for C89 freestanding compilers.
83177         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83178         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83179         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83180         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83181         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83182         define, since <limits.h> is guaranteed to do that.
83183         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83184         * lib/exclude.c: Include <stdbool.h> unconditionally.
83185         * lib/tempname.c: Include <stddef.h> unconditionally.
83186         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83187         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83188         <stddef.h> does that.
83189         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83190         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83191         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83192         needed.
83193         * lib/xstrtol.c: Likewise.
83194         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83195         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83196
83197         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83198         warnings on some platforms.
83199
83200         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83201         arbitrarily.
83202
83203 2003-05-26  Jim Meyering  <jim@meyering.net>
83204
83205         Merge in a change from coreutils:
83206         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83207         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83208         that condition, rather than `-1' which is slightly misleading.
83209         Change the name of the cache variable to have the gl_ prefix.
83210         Prompted by a patch from Richard Dawe for DJGPP.
83211
83212 2003-05-24  Karl Berry  <karl@gnu.org>
83213
83214         * config/config.guess: update from prep.
83215
83216 2003-05-22  Karl Berry  <karl@gnu.org>
83217
83218         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83219
83220 2003-05-20  Karl Berry  <karl@gnu.org>
83221
83222         * config/config.guess: update from prep.
83223
83224 2003-05-18  Karl Berry  <karl@gnu.org>
83225
83226         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83227         might actually be set by the user.
83228
83229         * config/depcomp, install-sh, mdate-sh: update from automake.
83230
83231 2003-05-17  Bruno Haible  <bruno@clisp.org>
83232
83233         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83234         invalid expansion for AC_EGREP_CPP.
83235         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83236         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83237         Suggested by Akim Demaille <akim@epita.fr> in
83238         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83239
83240 2003-05-12  Jim Meyering  <jim@meyering.net>
83241
83242         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83243         the space-padded-by-default conversion specifiers, %e, %k, %l.
83244
83245 2003-05-12  Bruno Haible  <bruno@clisp.org>
83246
83247         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83248         the string is longer than 4 KB.
83249
83250 2003-05-11  Karl Berry  <karl@gnu.org>
83251
83252         * config/config.{guess,sub}: update from prep.
83253
83254 2003-05-09  Bruno Haible  <bruno@clisp.org>
83255
83256         * modules/error: Add m4/strerror_r.m4 to file list.
83257
83258 2003-05-03  Bruno Haible  <bruno@clisp.org>
83259
83260         Upgrade to Unicode-4.0.
83261         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83262         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83263         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83264         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83265         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83266         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83267         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83268         Change width of U+E0100..U+E01EF from 1 to 0.
83269
83270 2003-04-25  Jim Meyering  <jim@meyering.net>
83271
83272         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83273         of type size_t, not int.
83274
83275 2003-04-25  Bruno Haible  <bruno@clisp.org>
83276
83277         * lib/copy-file.c: Include <stddef.h>, for size_t.
83278
83279 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83280
83281         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83282         code which expansion is under static control.  Patch imported from
83283         Akim Demaille's patch to Bison; see
83284         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83285
83286 2003-04-14  Bruno Haible  <bruno@clisp.org>
83287
83288         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83289
83290 2003-04-11  Jim Meyering  <jim@meyering.net>
83291
83292         Merge changes from Coreutils.
83293
83294         2003-03-22  Jim Meyering  <jim@meyering.net>
83295
83296         * lib/strftime.c (widen): Cast alloca return value to proper type.
83297
83298         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83299
83300         From GNU libc.
83301         * lib/strftime.c (my_strftime): Handle very large width
83302         specifications for numeric values correctly.  Improve checks for
83303         overflow.
83304
83305         2003-01-19  Jim Meyering  <jim@meyering.net>
83306
83307         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83308         definitions.
83309         (nl_get_alt_digit) [! defined my_strftime]: Define.
83310         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83311         _nl_get_alt_digit and _nl_get_walt_digit.
83312
83313         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83314         libc. These changes have no effect outside of _LIBC.
83315
83316 2003-04-10  Bruno Haible  <bruno@clisp.org>
83317
83318         * modules/findprog: New file.
83319         * MODULES.html.sh (func_all_modules): Add it.
83320
83321 2003-04-10  Bruno Haible  <bruno@clisp.org>
83322
83323         * m4/findprog.m4: New file.
83324         * m4/eaccess.m4: New file.
83325
83326 2003-04-10  Bruno Haible  <bruno@clisp.org>
83327
83328         * lib/findprog.h: New file, from GNU gettext.
83329         * lib/findprog.c: New file, from GNU gettext.
83330
83331 2003-04-05  Jim Meyering  <jim@meyering.net>
83332
83333         Merge changes from Coreutils.
83334
83335         * lib/exclude.h (PARAMS): Remove definition and uses.
83336         * lib/exclude.c: Remove uses of `PARAMS'.
83337
83338         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83339         Add test-cases for DOS filenames. Declare program_name.
83340         (main): Set up program_name.  Patch by Rich Dawe.
83341
83342         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83343         error from mntctl.
83344         Use mntctl's return value to drive the entry-processing loop, since
83345         we can't rely on the value of the vmt_length member in the last
83346         entry.  On some systems doing so could result in exhausting
83347         virtual memory.  Based in part on a patch from Mike Jetzer.
83348
83349 2003-04-04  Bruno Haible  <bruno@clisp.org>
83350
83351         * modules/linebreak: New file.
83352         * MODULES.html.sh (func_all_modules): Add it.
83353
83354 2003-04-04  Bruno Haible  <bruno@clisp.org>
83355
83356         * m4/linebreak.m4: New file.
83357
83358 2003-04-04  Bruno Haible  <bruno@clisp.org>
83359
83360         * lib/linebreak.h: New file, from GNU gettext.
83361         * lib/linebreak.c: New file, from GNU gettext with slight
83362         modifications.
83363         * lib/lbrkprop.h: New file, from GNU gettext.
83364
83365 2003-04-03  Bruno Haible  <bruno@clisp.org>
83366
83367         * modules/utf8-ucs4: New file.
83368         * modules/utf16-ucs4: New file.
83369         * modules/ucs4-utf8: New file.
83370         * modules/ucs4-utf16: New file.
83371         * MODULES.html.sh (func_all_modules): Add them.
83372
83373 2003-04-03  Bruno Haible  <bruno@clisp.org>
83374
83375         * m4/utf-ucs4.m4: New file.
83376         * m4/ucs4-utf.m4: New file.
83377
83378 2003-04-03  Bruno Haible  <bruno@clisp.org>
83379
83380         * lib/utf8-ucs4.h: New file, from GNU gettext.
83381         * lib/utf16-ucs4.h: New file, from GNU gettext.
83382         * lib/ucs4-utf8.h: New file, from GNU gettext.
83383         * lib/ucs4-utf16.h: New file, from GNU gettext.
83384
83385 2003-04-02  Bruno Haible  <bruno@clisp.org>
83386
83387         * modules/binary-io: New file.
83388         * MODULES.html.sh (func_all_modules): Add it.
83389
83390 2003-04-02  Bruno Haible  <bruno@clisp.org>
83391
83392         * lib/binary-io.h: New file, from GNU gettext.
83393
83394 2003-04-01  Bruno Haible  <bruno@clisp.org>
83395
83396         * modules/pathname: New file.
83397         * MODULES.html.sh (func_all_modules): Add it.
83398
83399 2003-04-01  Bruno Haible  <bruno@clisp.org>
83400
83401         * lib/pathname.h: New file, from GNU gettext.
83402         * lib/concatpath.c: New file, from GNU gettext.
83403
83404 2003-03-30  Bruno Haible  <bruno@clisp.org>
83405
83406         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83407
83408 2003-03-30  Bruno Haible  <bruno@clisp.org>
83409
83410         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83411         function chown() doesn't exist.
83412
83413 2003-03-28  Bruno Haible  <bruno@clisp.org>
83414
83415         * modules/copy-file: New file.
83416         * MODULES.html.sh (func_all_modules): Add it.
83417
83418 2003-03-28  Bruno Haible  <bruno@clisp.org>
83419
83420         * m4/copy-file.m4: New file.
83421
83422 2003-03-28  Bruno Haible  <bruno@clisp.org>
83423
83424         * lib/copy-file.h: New file, from GNU gettext.
83425         * lib/copy-file.c: New file, from GNU gettext.
83426
83427 2003-03-18  Jim Meyering  <jim@meyering.net>
83428
83429         * lib/quote.c (quote_n): Fix typo in comment.
83430
83431 2003-03-18  Bruno Haible  <bruno@clisp.org>
83432
83433         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83434         checking.
83435         * m4/onceonly_2_57.m4: Likewise.
83436
83437 2003-03-17  Bruno Haible  <bruno@clisp.org>
83438
83439         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83440         (m4_quote): Remove macro.
83441         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83442
83443 2003-03-14  Jim Meyering  <jim@meyering.net>
83444
83445         Merge changes from Coreutils.
83446         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83447         to be const, in order to avoid warnings.
83448         (obstack_room): Likewise.
83449         (obstack_empty_p): Likewise.
83450
83451 2003-03-14  Bruno Haible  <bruno@clisp.org>
83452
83453         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83454         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83455
83456 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83457
83458         Merge changes from Bison.
83459         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83460         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83461         when compiling Bison 1.875's `bitset bset = obstack_alloc
83462         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83463         * lib/hash.c: Include <stdbool.h> unconditionally.
83464
83465 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83466
83467         * m4/onceonly.m4 (m4_quote): New macro.
83468         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83469         Quote AC_FOREACH variable-expansions properly.
83470
83471 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83472
83473         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83474
83475 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83476
83477         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83478         Reported by Bruce Becker; see:
83479         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83480
83481 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83482             Bruno Haible  <bruno@clisp.org>
83483
83484         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83485         Reported by John Hughes, see
83486         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83487
83488 2003-02-20  Bruno Haible  <bruno@clisp.org>
83489
83490         * MODULES.html.sh (func_all_modules): Add poll.
83491
83492 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83493
83494         * modules/poll: New file.
83495
83496 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83497
83498         * lib/poll_.h: New file.
83499         * lib/poll.c: New file.
83500
83501 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83502
83503         * m4/poll.m4: New file.
83504
83505 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83506
83507         * modules/mathl: New file.
83508
83509 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83510
83511         * lib/mathl.h: New file.
83512         * lib/acosl.c: New file.
83513         * lib/asinl.c: New file.
83514         * lib/atanl.c: New file.
83515         * lib/ceill.c: New file.
83516         * lib/cosl.c: New file.
83517         * lib/expl.c: New file.
83518         * lib/floorl.c: New file.
83519         * lib/frexpl.c: New file.
83520         * lib/ldexpl.c: New file.
83521         * lib/logl.c: New file.
83522         * lib/sincosl.c: New file.
83523         * lib/sinl.c: New file.
83524         * lib/sqrtl.c: New file.
83525         * lib/tanl.c: New file.
83526         * lib/trigl.c: New file.
83527         * lib/trigl.h: New file.
83528
83529 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83530
83531         * m4/mathl.m4: New file.
83532
83533 2003-02-18  Bruno Haible  <bruno@clisp.org>
83534
83535         * MODULES.html.sh (func_all_modules): Add mathl.
83536
83537 2003-02-17  Bruno Haible  <bruno@clisp.org>
83538
83539         * modules/mkdtemp: New module.
83540         * MODULES.html.sh (func_all_modules): Add it.
83541
83542 2003-02-17  Bruno Haible  <bruno@clisp.org>
83543
83544         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83545
83546 2003-02-17  Bruno Haible  <bruno@clisp.org>
83547
83548         * lib/mkdtemp.h: New file, from GNU gettext.
83549         * lib/mkdtemp.c: New file, from GNU gettext.
83550
83551 2003-02-02  Jim Meyering  <jim@meyering.net>
83552
83553         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83554         e.g. glibc-2.2.93.
83555
83556 2003-01-31  Bruno Haible  <bruno@clisp.org>
83557
83558         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83559         'rpl_rename'.
83560         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83561         'rpl_strnlen'.
83562         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83563         'rpl_strtod'.
83564         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83565         'rpl_utime'.
83566
83567 2003-01-31  Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/rename.c: #undef rename before defining rpl_rename.
83570         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83571
83572 2003-01-30  Bruno Haible  <bruno@clisp.org>
83573
83574         * modules/vasnprintf, modules/vasprintf: New modules.
83575         * MODULES.html.sh (func_all_modules): Add them.
83576
83577 2003-01-30  Bruno Haible  <bruno@clisp.org>
83578
83579         * m4/signed.m4: New file, from GNU gettext.
83580         * m4/longdouble.m4: New file, from GNU gettext.
83581         * m4/wchar_t.m4: New file, from GNU gettext.
83582         * m4/wint_t.m4: New file, from GNU gettext.
83583         * m4/vasnprintf.m4: New file.
83584         * m4/vasprintf.m4: New file.
83585
83586 2003-01-30  Bruno Haible  <bruno@clisp.org>
83587
83588         * lib/printf-args.h: New file, from GNU gettext.
83589         * lib/printf-args.c: New file, from GNU gettext.
83590         * lib/printf-parse.h: New file, from GNU gettext.
83591         * lib/printf-parse.c: New file, from GNU gettext.
83592         * lib/vasnprintf.h: New file, from GNU gettext.
83593         * lib/vasnprintf.c: New file, from GNU gettext.
83594         * lib/asnprintf.c: New file, from GNU gettext.
83595         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83596         * lib/vasprintf.c: New file, from GNU gettext.
83597         * lib/asprintf.c: New file, from GNU gettext.
83598
83599 2003-01-29  Bruno Haible  <bruno@clisp.org>
83600
83601         * modules/stpncpy: New module.
83602         * MODULES.html.sh (func_all_modules): Add it.
83603
83604 2003-01-29  Bruno Haible  <bruno@clisp.org>
83605
83606         * m4/stpncpy.m4: New file.
83607
83608 2003-01-29  Bruno Haible  <bruno@clisp.org>
83609
83610         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83611         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83612
83613 2003-01-28  Bruno Haible  <bruno@clisp.org>
83614
83615         * modules/c-ctype: New module.
83616         * MODULES.html.sh (func_all_modules): Add it.
83617
83618 2003-01-28  Bruno Haible  <bruno@clisp.org>
83619
83620         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83621         Paul Eggert.
83622         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83623         Paul Eggert.
83624
83625 2003-01-27  Bruno Haible  <bruno@clisp.org>
83626
83627         * modules/xsetenv: New module.
83628         * MODULES.html.sh (func_all_modules): Add it.
83629
83630 2003-01-27  Bruno Haible  <bruno@clisp.org>
83631
83632         * lib/xsetenv.h: New file, from GNU gettext.
83633         * lib/xsetenv.c: New file, from GNU gettext.
83634
83635 2003-01-23  Jim Meyering  <jim@meyering.net>
83636
83637         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83638         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83639
83640 2003-01-23  Bruno Haible  <bruno@clisp.org>
83641
83642         * modules/minmax: New module.
83643         * MODULES.html.sh (func_all_modules): Add it.
83644
83645 2003-01-23  Bruno Haible  <bruno@clisp.org>
83646
83647         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83648         Eggert.
83649
83650 2003-01-22  Bruno Haible  <bruno@clisp.org>
83651
83652         * modules/exit: New module.
83653         * MODULES.html.sh (func_all_modules): Add it.
83654
83655 2003-01-22  Bruno Haible  <bruno@clisp.org>
83656
83657         * lib/exit.h: New file, from GNU gettext.
83658
83659 2003-01-19  Bruno Haible  <bruno@clisp.org>
83660
83661         * gnulib-tool: Recognize option --extract-maintainer.
83662         (func_get_maintainer): New function.
83663         * modules/*: Add Maintainer entry.
83664
83665 2003-01-16  Jim Meyering  <jim@meyering.net>
83666
83667         * m4/regex.m4: The `regex' struct is both input and output.
83668         Initialize it before each use.  Patch by Tim Waugh.
83669
83670 2003-01-16  Bruno Haible  <bruno@clisp.org>
83671
83672         * MODULES.html.sh: Add a table of contents. Add the module name as
83673         leftmost column. Add hyperlinks.
83674
83675 2003-01-15  Bruno Haible  <bruno@clisp.org>
83676
83677         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83678
83679 2003-01-15  Bruno Haible  <bruno@clisp.org>
83680
83681         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83682         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83683         suffix.
83684
83685 2003-01-15  Bruno Haible  <bruno@clisp.org>
83686
83687         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83688
83689 2003-01-15  Bruno Haible  <bruno@clisp.org>
83690
83691         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83692         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83693
83694 2003-01-14  Jim Meyering  <jim@meyering.net>
83695
83696         * lib/same.c (same_name): Tweak a comment.
83697
83698 2003-01-14  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83701         when a string comparison is sufficient.
83702
83703 2003-01-14  Bruno Haible  <bruno@clisp.org>
83704
83705         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83706         'unsigned int'.
83707
83708 2003-01-14  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/hash-pjw.c: Add comment about low quality of this function.
83711
83712 2003-01-13  Bruno Haible  <bruno@clisp.org>
83713
83714         * modules/stpcpy: Distribute lib/stpcpy.h.
83715         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83716
83717 2003-01-13  Bruno Haible  <bruno@clisp.org>
83718
83719         * modules/*: Add a description.
83720         * modules/strpbrk: Fix Makefile.am snippet.
83721         * modules/strtoimax: Fix dependencies.
83722         * modules/strtoumax: Likewise.
83723
83724 2003-01-13  Bruno Haible  <bruno@clisp.org>
83725
83726         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83727         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83728         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83729
83730 2003-01-13  Bruno Haible  <bruno@clisp.org>
83731
83732         * gnulib-tool (func_create_testdir): Store config/* files in the main
83733         directory.
83734         * config.rpath: Move to ...
83735         * config/config.rpath: ... here.
83736         * modules/gettext: Contains config/config.rpath, not config.rpath.
83737         * modules/iconv: Likewise.
83738
83739 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83740
83741         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83742         to avoid collisions with libcurses and libreadline.
83743
83744         * m4/getstr.m4: Remove.
83745         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83746
83747 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83748
83749         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83750         to avoid collisions with libcurses and libreadline.
83751
83752         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83753         * lib/getstr.h, getstr.c: Remove.
83754         * lib/getline.c: Include "getline.h", to check interface.
83755         Move body of old getstr.c here: this defines MIN_CHUNK and
83756         declares getdelim2, which is renamed from getstr.
83757         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83758
83759         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83760         All uses changed.
83761         * lib/linebuffer.h: Likewise.
83762         (readline): Remove backward-compatibility macro.
83763
83764 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83765
83766         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83767         to avoid collisions with libcurses and libreadline.
83768         * getstr: Remove.
83769         * MODULES.html.sh: Remove getstr.
83770         * modules/getline: Depend on unlocked-io, not getstr.
83771
83772 2003-01-12  Jim Meyering  <jim@meyering.net>
83773
83774         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83775
83776 2003-01-10  Bruno Haible  <bruno@clisp.org>
83777
83778         * modules/alloca: Change Makefile.am requirements. Simplify Include
83779         requirements. Add lib/alloca_.h to file list.
83780
83781 2003-01-10  Bruno Haible  <bruno@clisp.org>
83782
83783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83784
83785 2003-01-10  Bruno Haible  <bruno@clisp.org>
83786
83787         * lib/alloca_.h: New file.
83788         * lib/getdate.y: Unconditionally include alloca.h.
83789         * lib/makepath.c: Likewise.
83790         * lib/setenv.c: Likewise.
83791         * lib/userspec.c: Likewise.
83792
83793 2003-01-09  Karl Berry  <karl@gnu.org>
83794
83795         * MODULES.html.sh: include `dirname $0` in PATH, to find
83796         gnulib-tool.
83797
83798 2003-01-09  Bruno Haible  <bruno@clisp.org>
83799
83800         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83801         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83802
83803 2003-01-09  Bruno Haible  <bruno@clisp.org>
83804
83805         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83806
83807 2003-01-09  Bruno Haible  <bruno@clisp.org>
83808
83809         * lib/stdbool.h.in: New file.
83810
83811 2003-01-09  Bruno Haible  <bruno@clisp.org>
83812
83813         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83814         * MODULES.html.sh: Likewise.
83815
83816 2003-01-08  Jim Meyering  <jim@meyering.net>
83817
83818         * lib/full-write.c: Undefine and define-away `const' after inclusion
83819         of errno.h, not before.  Suggestion from Bruno Haible.
83820
83821 2003-01-08  Bruno Haible  <bruno@clisp.org>
83822
83823         * modules/full-read: Depend on full-write.
83824
83825 2003-01-08  Bruno Haible  <bruno@clisp.org>
83826
83827         * lib/safe-read.c: Include specification header first, to ensure its
83828         selfcontainedness.
83829         * lib/full-write.c: Likewise.
83830
83831 2003-01-07  Jim Meyering  <jim@meyering.net>
83832
83833         * lib/full-write.c: Rework so that it may serve to define full_read,
83834         too.
83835         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83836
83837 2003-01-07  Bruno Haible  <bruno@clisp.org>
83838
83839         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83840         <inttypes.h>.
83841         * lib/xstrtol.h: Likewise.
83842         * lib/xstrtoimax.c: Likewise.
83843         * lib/xstrtoumax.c: Likewise.
83844         * lib/human.h: Likewise.
83845
83846         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83847         on systems that have <inttypes.h> but not <stdint.h>.
83848
83849 2003-01-07  Bruno Haible  <bruno@clisp.org>
83850
83851         * MODULES.html.sh: Add copyright notice.
83852         (missed_files): Omit CVS directory entries.
83853         (func_module): Make it work with sed-3.02.
83854         * MODULES.txt: Remove file.
83855
83856 2003-01-06  Jim Meyering  <jim@meyering.net>
83857
83858         * lib/version-etc.c: Update year in translatable copyright string.
83859
83860 2003-01-03  Karl Berry  <karl@gnu.org>
83861
83862         * config/config.{guess,sub}: update from prep.
83863
83864 2003-01-02  Karl Berry  <karl@gnu.org>
83865
83866         * doc/COPYING.DOC: belatedly updated to 1.2.
83867
83868 2003-01-01  Karl Berry  <karl@gnu.org>
83869
83870         * gnulib-tool (func_verify_module): report module name $module in
83871         error message, not $1.
83872         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83873         be created, only if it doesn't exist.
83874         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83875
83876 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83877
83878         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83879
83880 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83881
83882         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83883         memcmp if strcoll doesn't work.
83884
83885 2002-12-31  Bruno Haible  <bruno@clisp.org>
83886
83887         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83888         nonempty.
83889
83890 2002-12-31  Bruno Haible  <bruno@clisp.org>
83891
83892         * lib/memcoll.c (STRCOLL): New macro.
83893         (memcoll): Use it.
83894
83895 2002-12-31  Bruno Haible  <bruno@clisp.org>
83896
83897         * lib/localcharset.h: New file.
83898         * lib/localcharset.c: Include it.
83899         * lib/unicodeio.c: Likewise.
83900
83901 2002-12-31  Bruno Haible  <bruno@clisp.org>
83902
83903         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83904         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83905
83906 2002-12-31  Bruno Haible  <bruno@clisp.org>
83907
83908         * lib/getline.h: Include <stddef.h>, for size_t.
83909
83910         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83911         * lib/unicodeio.c: Don't include <stddef.h>.
83912
83913 2002-12-31  Bruno Haible  <bruno@clisp.org>
83914
83915         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83916         HAVE_TM_ZONE.
83917
83918 2002-12-24  Karl Berry  <karl@gnu.org>
83919
83920         * config/config.guess: update from prep.
83921
83922 2002-12-24  Bruno Haible  <bruno@clisp.org>
83923
83924         General infrasructure.
83925         * m4/README: Rewritten.
83926         * m4/onceonly.m4: New file.
83927         * m4/onceonly_2_57.m4: New file.
83928
83929         Module atexit.
83930         * m4/atexit.m4: New file.
83931
83932         Module strtod.
83933         * m4/strtod.m4: New file.
83934
83935         Module strtol.
83936         * m4/strtol.m4: New file.
83937
83938         Module strtoul.
83939         * m4/strtoul.m4: New file.
83940
83941         Module memchr.
83942         * m4/memchr.m4: New file.
83943
83944         Module memcmp.
83945         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83946         (jm_FUNC_MEMCMP): Invoke it.
83947
83948         Module memcpy.
83949         * m4/memcpy.m4: New file.
83950
83951         Module memmove.
83952         * m4/memmove.m4: New file.
83953
83954         Module memset.
83955         * m4/memset.m4: New file.
83956
83957         Module strcspn.
83958         * m4/strcspn.m4: New file.
83959
83960         Module strpbrk.
83961         * m4/strpbrk.m4: New file.
83962
83963         Module strstr.
83964         * m4/strstr.m4: New file.
83965
83966         Module strerror.
83967         * m4/strerror.m4: New file.
83968
83969         Module mktime.
83970         * m4/mktime.m4: Renamed from jm-mktime.m4.
83971         (gl_PREREQ_MKTIME): New macro.
83972         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83973
83974         Module malloc.
83975         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83976         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83977         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83978
83979         Module realloc.
83980         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83981         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83982         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83983
83984         Module strftime.
83985         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83986         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83987         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83988         gl_TM_GMTOFF.
83989         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83990
83991         Module xalloc.
83992         * m4/xalloc.m4: New file.
83993
83994         Module alloca.
83995         * m4/alloca.m4: New file.
83996
83997         Module putenv.
83998         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83999         (jm_FUNC_PUTENV): Invoke it.
84000
84001         Module setenv.
84002         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84003         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84004         when invoked twice.
84005         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84006         gt_FUNC_SETENV.
84007
84008         Module memrchr.
84009         * m4/memrchr.m4: New file.
84010
84011         Module stpcpy.
84012         * m4/stpcpy.m4: New file.
84013
84014         Module strcase.
84015         * m4/strcase.m4: New file.
84016
84017         Module strdup.
84018         * m4/strdup.m4: New file.
84019
84020         Module strnlen.
84021         * m4/strnlen.m4: New file.
84022
84023         Module strndup.
84024         * m4/strndup.m4: New file.
84025
84026         Module xstrtod.
84027         * m4/xstrtod.m4: New file.
84028
84029         Module xstrtol.
84030         * m4/xstrtol.m4: New file.
84031
84032         Module getdate.
84033         * m4/getdate.m4: New file.
84034
84035         Module unlocked-io.
84036         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84037         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84038         * m4/jm-glibc-io.m4n: Remove file.
84039
84040         Module long-options.
84041         * m4/long-options.m4: New file.
84042
84043         Module md5.
84044         * m4/md5.m4: New file.
84045
84046         Module sha.
84047         * m4/sha.m4: New file.
84048
84049         Module getstr.
84050         * m4/getstr.m4: New file.
84051
84052         Module getline.
84053         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84054         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84055         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84056         simply getline. Infoke gl_PREREQ_GETLINE.
84057
84058         Module obstack.
84059         * m4/obstack.m4: New file.
84060
84061         Module hash.
84062         * m4/hash.m4: New file.
84063
84064         Module readtokens.
84065         * m4/readtokens.m4: New file.
84066
84067         Module strverscmp.
84068         * m4/strverscmp.m4: New file.
84069
84070         Module stdbool.
84071         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84072         OSF/1.
84073
84074         Module strtoll.
84075         * m4/strtoll.m4: New file.
84076
84077         Module strtoull.
84078         * m4/strtoull.m4: New file.
84079
84080         Module strtoimax.
84081         * m4/strtoimax.m4: New file.
84082
84083         Module strtoumax.
84084         * m4/strtoumax.m4: New file.
84085
84086         Module xstrtoimax.
84087         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84088         jm_AC_PREREQ_XSTRTOIMAX.
84089         Moved the strtol prerequisites to strtol.m4.
84090         Moved the strtoll prerequisites to strtoll.m4.
84091         Moved the strtoimax prerequisites to strtoimax.m4.
84092
84093         Module xstrtoumax.
84094         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84095         jm_AC_PREREQ_XSTRTOUMAX.
84096         Moved the strtoul prerequisites to strtoul.m4.
84097         Moved the strtoull prerequisites to strtoull.m4.
84098         Moved the strtoumax prerequisites to strtoumax.m4.
84099
84100         Module chown.
84101         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84102         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84103
84104         Module dup2.
84105         * m4/dup2.m4: New file.
84106
84107         Module ftruncate.
84108         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84109         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84110
84111         Module getgroups.
84112         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84113         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84114
84115         Module gettimeofday.
84116         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84117         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84118         gl_PREREQ_GETTIMEOFDAY.
84119
84120         Module mkdir.
84121         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84122         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84123
84124         Module mkstemp.
84125         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84126         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84127         jm_AC_TYPE_UINTMAX_T.
84128         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84129
84130         Module stat.
84131         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84132         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84133
84134         Module lstat.
84135         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84136         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84137
84138         Module timespec.
84139         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84140         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84141         * m4/st_mtim.m4: Indentation.
84142
84143         Module nanosleep.
84144         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84145         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84146         gl_PREREQ_NANOSLEEP.
84147
84148         Module regex.
84149         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84150         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84151         (gl_REGEX): New macro.
84152
84153         Module rename.
84154         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84155         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84156
84157         Module rmdir.
84158         * m4/rmdir.m4: New file.
84159
84160         Module utime.
84161         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84162         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84163         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84164
84165         Module dirname.
84166         * m4/dirname.m4: New file.
84167
84168         Module getopt.
84169         * m4/getopt.m4: New file.
84170
84171         Module unistd-safer.
84172         * m4/unistd-safer.m4: New file.
84173
84174         Module fnmatch.
84175         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84176         declaration.
84177         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84178         (gl_FUNC_FNMATCH_POSIX): New macro.
84179         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84180         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84181         simply fnmatch.
84182
84183         Module exclude.
84184         * m4/exclude.m4: New file.
84185
84186         Module human.
84187         * m4/human.m4: New file.
84188
84189         Module acl.
84190         * m4/acl.m4: Nop.
84191
84192         Module backupfile.
84193         * m4/backupfile.m4: New file.
84194         * m4/d-ino.m4: Indentation.
84195
84196         Module fsusage.
84197         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84198         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84199         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84200
84201         Module dirfd.
84202         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84203         requirements.
84204
84205         Module euidaccess.
84206         * m4/euidaccess.m4: New file.
84207
84208         Module file-type.
84209         * m4/file-type.m4: New file.
84210
84211         Module fileblocks.
84212         * m4/fileblocks.m4: New file.
84213
84214         Module filemode.
84215         * m4/filemode.m4: New file.
84216
84217         Module isdir.
84218         * m4/isdir.m4: New file.
84219
84220         Module lchown.
84221         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84222         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84223
84224         Module makepath.
84225         * m4/makepath.m4: New file.
84226
84227         Module modechange.
84228         * m4/modechange.m4: New file.
84229
84230         Module mountlist.
84231         * m4/mountlist.m4: New file.
84232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84233         Indentation.
84234
84235         Module path-concat.
84236         * m4/path-concat.m4: New file.
84237
84238         Module pathmax.
84239         * m4/pathmax.m4: New file.
84240
84241         Module same.
84242         * m4/same.m4: New file.
84243
84244         Module save-cwd.
84245         * m4/save-cwd.m4: New file.
84246
84247         Module savedir.
84248         * m4/savedir.m4: New file.
84249
84250         Module xgetcwd.
84251         * m4/xgetcwd.m4: New file.
84252         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84253
84254         Module xreadlink.
84255         * m4/xreadlink.m4: New file.
84256
84257         Module safe-read.
84258         * m4/safe-read.m4: New file.
84259
84260         Module safe-write.
84261         * m4/safe-write.m4: New file.
84262
84263         Module closeout.
84264         * m4/closeout.m4: New file.
84265
84266         Module stdio-safer.
84267         * m4/stdio-safer.m4: New file.
84268
84269         Module getpass.
84270         * m4/getpass.m4: New file.
84271
84272         Module getugroups.
84273         * m4/getugroups.m4: New file.
84274
84275         Module group-member.
84276         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84277         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84278
84279         Module idcache.
84280         * m4/idcache.m4: New file.
84281
84282         Module userspec.
84283         * m4/userspec.m4: New file.
84284
84285         Module gettime.
84286         * m4/clock_time.m4: New file.
84287         * m4/gettime.m4: New file.
84288
84289         Module settime.
84290         * m4/settime.m4: New file.
84291
84292         Module posixtm.
84293         * m4/posixtm.m4: New file.
84294
84295         Module gethostname.
84296         * m4/gethostname.m4: New file.
84297
84298         Module canon-host.
84299         * m4/canon-host.m4: New file.
84300
84301         Module gettext.
84302         * m4/codeset.m4: New file, from gettext-0.11.5.
84303         * m4/gettext.m4: New file, from gettext-0.11.5.
84304         * m4/glibc21.m4: New file, from gettext-0.11.5.
84305         * m4/iconv.m4: New file, from gettext-0.11.5.
84306         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84307         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84308         * m4/inttypes.m4: New file, from gettext-0.11.5.
84309         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84310         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84311         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84312         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84313         * m4/lib-link.m4: New file, from gettext-0.11.5.
84314         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84315         * m4/progtest.m4: New file, from gettext-0.11.5.
84316         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84317         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84318         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84319
84320         Module localcharset.
84321         * m4/localcharset.m4: New file.
84322
84323         Module hard-locale.
84324         * m4/hard-locale.m4: New file.
84325
84326         Module mbswidth.
84327         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84328         onceonly macros.
84329         * m4/mbrtowc.m4: Add comment.
84330
84331         Module memcasecmp.
84332         * m4/memcasecmp.m4: New file.
84333
84334         Module memcoll.
84335         * m4/memcoll.m4: New file.
84336
84337         Module unicodeio.
84338         * m4/unicodeio.m4: New file.
84339
84340         Module rpmatch.
84341         * m4/rpmatch.m4: New file.
84342
84343         Module yesno.
84344         * m4/yesno.m4: New file.
84345
84346         Module exitfail.
84347         * m4/exitfail.m4: New file.
84348
84349         Module c-stack.
84350         * m4/c-stack.m4 (gl_C_STACK): New macro.
84351         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84352
84353         Module error.
84354         * m4/error.m4 (gl_ERROR): New macro.
84355         (jm_PREREQ_ERROR): Use onceonly macros.
84356
84357         Module fatal.
84358         * m4/fatal.m4: New file.
84359
84360         Module getloadavg.
84361         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84362         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84363
84364         Module getpagesize.
84365         * m4/getpagesize.m4: New file.
84366
84367         Module getusershell.
84368         * m4/getusershell.m4: New file.
84369
84370         Module physmem.
84371         * m4/physmem.m4: New file.
84372
84373         Module posixver.
84374         * m4/posixver.m4: New file.
84375
84376         Module quotearg.
84377         * m4/quotearg.m4: New file.
84378
84379         Module quote.
84380         * m4/quote.m4: New file.
84381
84382         Module readutmp.
84383         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84384
84385         Module sig2str.
84386         * m4/sig2str.m4: New file.
84387
84388         Other.
84389         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84390         ulonglong.m4.
84391         * m4/intmax_t.m4: New file.
84392         * m4/d-type.m4: Indentation.
84393         * m4/jm-macros.m4: Update.
84394         * m4/prereq.m4 (jm_PREREQ): Update.
84395         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84396         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84397         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84398         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84399         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84400         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84401         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84402         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84403         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84404         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84405         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84406         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84407         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84408         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84409         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84410         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84411         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84412         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84413         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84414
84415 2002-12-24  Bruno Haible  <bruno@clisp.org>
84416
84417         * MODULES.txt: Update according to m4/ changes.
84418
84419         Module gettext.
84420         * config.rpath: New file, from gettext-0.11.5.
84421
84422         * modules/*: New module descriptions.
84423         * gnulib-tool: New file.
84424         * MODULES.html.sh: New file.
84425
84426 2002-12-21  Karl Berry  <karl@gnu.org>
84427
84428         * doc/fdl.texi: update to version 1.2.
84429
84430 2002-12-19  Karl Berry  <karl@gnu.org>
84431
84432         * config/config.guess: update from prep.
84433
84434 2002-12-18  Bruno Haible  <bruno@clisp.org>
84435
84436         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84437         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84438
84439 2002-12-17  Bruno Haible  <bruno@clisp.org>
84440
84441         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84442         stdlib.h, string.h.
84443
84444 2002-12-17  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/canon-host.c (strdup): Remove unused declaration.
84447
84448         * lib/fsusage.c: Include full_read.h.
84449         (get_fs_usage): Use full_read instead of safe_read.
84450
84451         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84452
84453 2002-12-12  Karl Berry  <karl@gnu.org>
84454
84455         * config/config.guess: update from prep.
84456
84457 2002-12-11  Bruno Haible  <bruno@clisp.org>
84458
84459         * m4/setenv.m4: New file, from gettext-0.11.5.
84460
84461 2002-12-11  Bruno Haible  <bruno@clisp.org>
84462
84463         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84464         not unsetenv().
84465         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84466         modifications:
84467
84468         2002-12-11  Bruno Haible  <bruno@clisp.org>
84469
84470                 * setenv.c (alloca): Fall back to malloc.
84471                 (freea): New macro.
84472                 (setenv): Use freea() to free memory allocated with alloca().
84473
84474         2002-11-13  Bruno Haible  <bruno@clisp.org>
84475
84476                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84477                 function declarations.
84478                 * unsetenv.c (unsetenv): Likewise.
84479
84480         2002-03-04  Bruno Haible  <bruno@clisp.org>
84481
84482                 Portability to AIX 4.3.3.
84483                 * unsetenv.c: New file, extracted from setenv.c.
84484                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84485
84486         2001-12-20  Bruno Haible  <bruno@clisp.org>
84487
84488                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84489                 use malloc instead. For SunOS 4.
84490
84491         2001-12-11  Bruno Haible  <bruno@clisp.org>
84492
84493                 * setenv.c: Declare alloca.
84494                 (compar_fn_t): New typedef.
84495                 (KNOWN_VALUE, STORE_VALUE): Use it.
84496
84497         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84498         setenv.h.
84499
84500 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84501
84502         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84503         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84504         Choose values that are less likely to collide with system fnmatch
84505         options.
84506         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84507         defined (e.g., a pure POSIX system).
84508         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84509         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84510
84511 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84512
84513         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84514         a pain in practice to deal with generated m4 files.  This change
84515         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84516
84517         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84518         and jm-glibc-io.m4, as they are no longer a special case.
84519         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84520         kludge and the auto-generation stuff.  Check only whether the
84521         functions are declared, not whether they exist, since older hosts
84522         that don't declare the functions can't use the optimization anyway.
84523
84524 2002-12-06  Jim Meyering  <jim@meyering.net>
84525
84526         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84527
84528         Merge in changes from libc's misc/error.c, in preparation
84529         for the merge of gnulib's changes back into libc.
84530
84531         * lib/error.c (_): Define only if not already defined.
84532         Move definition to follow all #include directives.
84533         Include unlocked-io.h only if !_LIBC.
84534         [_LIBC]: Include <libio/libioP.h>.
84535         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84536         (fflush): Tweak definition to use INTUSE.
84537         (putc): Define.
84538
84539 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84540
84541         * lib/alloca.c [defined emacs]: Include "lisp.h".
84542         (xalloc_die) [defined emacs]: New macro.
84543         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84544         [! defined emacs]: Include <xalloc.h>.
84545         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84546         (pointer): Typedef to POINTER_TYPE *.
84547         (malloc): Remove decl; we now always use xmalloc.
84548         (alloca): Use old-style definition, since Emacs needs this.
84549         Check for arithmetic overflow when computing combined size.
84550
84551 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84552
84553         Do not generate unlocked-io.h automatically, since it's easier to
84554         maintain it by hand.
84555
84556         * lib/unlocked-io.h: New file, from GNU diffutils,
84557         but with proper copyright notice and attribution.
84558         * lib/gen-uio: Remove.
84559         * lib/Makefile.am: Add copyright notice.
84560         (libfetish_a_SOURCES): Add unlocked-io.h.
84561         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84562         (DISTCLEANFILES, io_functions): Remove macros.
84563         (EXTRA_DIST): Remove gen_uio.
84564         (unlocked-io.h): Remove rule.
84565
84566 2002-12-04  Jim Meyering  <jim@meyering.net>
84567
84568         Reflect the fact that stat.c and lstat.c are no longer generated.
84569         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84570         (DISTCLEANFILES): Likewise.
84571         (EXTRA_DIST): Likewise.
84572         (all_local): Don't depend on stat.c or lstat.c.
84573         (stat.c, lstat.c): Remove rules.
84574         (EXTRA_DIST): Remove xstat.in.
84575
84576         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84577         * lib/stat.c: New file.  Contents mostly from xstat.in.
84578         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84579         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84580
84581         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84582         too.
84583         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84584
84585 2002-12-03  Jim Meyering  <jim@meyering.net>
84586
84587         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84588         but not semantics, to minimize the differences between these two files.
84589         (safe_read): Change comment to mention SAFE_READ_ERROR.
84590
84591         * lib/safe-read.c (IS_EINTR): Define.
84592         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84593
84594 2002-12-02  Jim Meyering  <jim@meyering.net>
84595
84596         * lib/safe-read.c (EINTR): Define.
84597         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84598         (INT_MAX): Provide fallback.
84599         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84600
84601         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84602
84603 2002-12-02  Bruno Haible  <bruno@clisp.org>
84604
84605         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84606         Define, taken from safe-read.c.
84607         (INT_MAX): Provide fallback.
84608         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84609         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84610
84611         * lib/safe-read.c (EINTR): Remove definition.
84612         (safe_read): Don't use EINTR if it is absent.
84613
84614 2002-12-01  Jim Meyering  <jim@meyering.net>
84615
84616         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84617         zero.
84618         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84619
84620 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84621
84622         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84623         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84624         with `if (! (value < limit)) abort ();', for readability.
84625
84626 2002-11-26  Karl Berry  <karl@gnu.org>
84627
84628         * lib/strdup.c: copy from libc again, with jim's ok.
84629         * lib/.cppi-disable: re-add strdup.c
84630
84631 2002-11-25  Karl Berry  <karl@gnu.org>
84632
84633         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84634         instead of "strtol.c".
84635
84636 2002-11-25  Karl Berry  <karl@gnu.org>
84637
84638         * config/install-sh: update from automake for variable quoting, $0 in
84639         error msgs, etc.
84640
84641         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84642         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84643         entry.
84644
84645 2002-11-25  Jim Meyering  <jim@meyering.net>
84646
84647         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84648
84649 2002-11-24  Karl Berry  <karl@gnu.org>
84650
84651         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84652         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84653
84654 2002-11-24  Jim Meyering  <jim@meyering.net>
84655
84656         Update from coreutils:
84657
84658         * lib/mktime.c: Merge in changes from libc.
84659
84660         Avoid a link-time failure on some Linux systems.
84661         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84662         (otherwise).
84663         (__mon_yday): Declare with the STATIC attribute.
84664         (__mktime_internal): Likewise.
84665         Based on a report from Greg Schafer.
84666
84667 2002-11-23  Jim Meyering  <jim@meyering.net>
84668
84669         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84670         Use `unsigned', not `int', as type of index.
84671
84672         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84673
84674         * lib/fsusage.c: Remove unneeded parentheses around operands of
84675         `defined'.
84676
84677 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84678
84679         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84680         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84681         so that we can be included first.
84682         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84683         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84684         No need to include stddef.h or sys/types.h any more.
84685         Surround local include files with "", not "<>".
84686         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84687         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84688         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84689         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84690         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84691         (ISPRINT): Remove; no longer needed now that we assume C89.
84692
84693         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84694         Preserve errno.
84695
84696         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84697         quotearg_char): Use SIZE_MAX rather than
84698         (size_t) -1 when we are talking about "infinity".
84699
84700         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84701
84702 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84703
84704         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84705         hint that one should use `if (! x) abort ();' rather than `assert
84706         (x);', and anyway it's one less thing to worry about configuring.
84707         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84708         hash_rehash, hash_insert): Use abort rather than assert.
84709
84710 2002-11-22  Bruno Haible  <bruno@clisp.org>
84711
84712         * lib/safe-read.h: Assume C89. Add comments.
84713         (safe_read): Change return type to size_t.
84714         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84715         byte counts > SSIZE_MAX correctly.
84716         * lib/safe-write.h: New file.
84717         * lib/safe-write.c: New file.
84718         * lib/full-read.h: New file.
84719         * lib/full-read.c: New file.
84720         * lib/full-write.h: Assume C89. Add comments.
84721         * lib/full-write.c: Include safe-write.h.
84722         (full_write): Rewritten to use safe_write.
84723         Suggested by Jim Meyering and Paul Eggert.
84724
84725 2002-11-21  Jim Meyering  <jim@meyering.net>
84726
84727         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84728
84729         Merge in changes from the coreutils.
84730
84731         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84732         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84733         <stdint.h>.
84734         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84735         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84736         int.  Work more efficiently if X is the same width as uintmax_t.
84737         Do not compare X to -1, to avoid bogus compiler warning.
84738         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84739         Don't assume that f_frsize and f_bsize are the same type.
84740
84741         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84742         warning on FreeBSD.
84743
84744         * lib/makepath.c (make_path): Restore umask *before* creating the final
84745         component.
84746         (make_path): Minor reformatting.
84747
84748         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84749         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84750         HAVE_MALLOC/HAVE_REALLOC.
84751
84752         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84753         dummy ones.  At least on GNU/Linux systems, `auto' means something
84754         else.
84755         From Michael Stone.
84756
84757 2002-11-21  Bruno Haible  <bruno@clisp.org>
84758
84759         Remove case insensitive option matching.
84760         * lib/argmatch.h (argcasematch): Remove declaration.
84761         (ARGCASEMATCH): Remove macro.
84762         (__xargmatch_internal): Remove case_sensitive argument.
84763         (XARGMATCH): Update.
84764         (XARGCASEMATCH): Remove macro.
84765         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84766         case_sensitive argument.
84767         (argcasematch): Remove function.
84768         (__xargmatch_internal): Remove case_sensitive argument.
84769         (main): Use XARGMATCH instead of XARGCASEMATCH.
84770
84771         * lib/xmalloc.c: Change compile-time error message. Add comment about
84772         required autoconf version.
84773
84774 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84775
84776         Merge argmatch cleanups from Bison.  Assume C89.
84777
84778         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84779         Include stdlib.h, for EXIT_FAILURE.
84780         Always include <string.h>, since we assume C89.
84781         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84782         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84783         Include <stddef.h> instead, since it's all we need for size_t.
84784         (PARAMS): Remove.  All uses removed.
84785         (ARRAY_CARDINALITY): Do not bother to #undef.
84786         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84787         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84788         Remove unnecessary parentheses.
84789         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84790         Insert necessary parentheses.
84791         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84792         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84793
84794 2002-11-19  Bruno Haible  <bruno@clisp.org>
84795
84796         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84797         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84798
84799         * lib/mbswidth.h (PARAMS): Remove macro.
84800         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84801         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84802
84803         * lib/gcd.h (PARAMS): Remove macro.
84804         (gcd): Use ANSI C function declarations.
84805         * lib/gcd.c (gcd): Likewise.
84806
84807 2002-11-15  Bruno Haible  <bruno@clisp.org>
84808
84809         * lib/strcspn.c: Include <stddef.h>.
84810         (strcspn): Use ANSI C function declaration. Change return type to
84811         size_t. Use NULL.
84812         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84813         (strpbrk): Use NULL.
84814         * lib/strpbrk.h (PARAMS): Remove macro.
84815         (strpbrk): Use ANSI C function declaration.
84816         * lib/strstr.c: Don't include <sys/types.h>.
84817         * lib/strstr.h (PARAMS): Remove macro.
84818         (strstr): Use ANSI C function declarations.
84819
84820 2002-11-14  Karl Berry  <karl@gnu.org>
84821
84822         * config/mkinstalldirs: `do' on separate line, instead of
84823         `for var; do'.
84824
84825 2002-11-06  Bruno Haible  <bruno@clisp.org>
84826
84827         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84828         * lib/gcd.c (gcd): Likewise.
84829
84830 2002-11-05  Bruno Haible  <bruno@clisp.org>
84831
84832         * lib/gcd.h: New file, from gettext-0.11.5.
84833         * lib/gcd.c: New file, from gettext-0.11.5.
84834
84835 2002-11-05  Bruno Haible  <bruno@clisp.org>
84836
84837         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84838         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84839         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84840         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84841
84842         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84843         <libintl.h>.
84844         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84845         <libintl.h>.
84846
84847         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84848         * lib/human.c: Include gettext.h instead of <libintl.h>.
84849         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84850         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84851         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84852         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84853         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84854         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84855         (textdomain): Remove definition.
84856         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84857
84858         * lib/long-options.c: Remove include of <libintl.h> and definition of
84859         _.
84860         * lib/same.c: Remove include of <libintl.h> and definition of _.
84861
84862 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84863
84864         * lib/config.charset: A few additions for Solaris.
84865
84866 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84867
84868         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84869         * lib/localcharset.c (locale_charset): Declare as extern "C".
84870
84871 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84872
84873         * lib/config.charset: msdos in uk_UA uses CP1125.
84874
84875 2002-11-04  Bruno Haible  <bruno@clisp.org>
84876
84877         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84878         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84879         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84880         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84881         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84882
84883 2002-11-04  Bruno Haible  <bruno@clisp.org>
84884
84885         * lib/localcharset.c (locale_charset): Don't return an empty string.
84886
84887 2002-11-04  Bruno Haible  <bruno@clisp.org>
84888
84889         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84890         aliases.
84891
84892 2002-11-04  Bruno Haible  <bruno@clisp.org>
84893
84894         * lib/config.charset: Update for newest glibc. Add canonical names
84895         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84896
84897 2002-11-04  Bruno Haible  <bruno@clisp.org>
84898
84899         * lib/config.charset: Add support for NetBSD.
84900
84901 2002-11-04  Bruno Haible  <bruno@clisp.org>
84902
84903         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84904
84905 2002-11-01  Bruno Haible  <bruno@clisp.org>
84906
84907         * configure.in: Add AC_CONFIG_AUX_DIR call.
84908         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84909         test/Makefile.
84910         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84911
84912 2002-09-28  Karl Berry  <karl@gnu.org>
84913
84914         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84915         installed automake until the next release, since changes have been
84916         made.
84917
84918 2002-09-25  Karl Berry  <karl@gnu.org>
84919
84920         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84921         * lib/getopt*: copy from libc/posix.
84922         * lib/gettext.h: copy from gettext.
84923         * lib/.cppi-disable: add strdup.c, gettext.h.
84924
84925 2002-09-25  Karl Berry  <karl@gnu.org>
84926
84927         * config/srclist.txt: enable gettext.h check.
84928         * config/config.{guess,sub}: update from prep.
84929         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84930                 from automake 1.6.3.
84931         See srclist*.
84932
84933 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84934
84935         * regex.c (PATFETCH): Remove the translating fetch.
84936         (PATFETCH_RAW): Rename to PATFETCH.
84937         (set_image_of_range): New fun.
84938         (SET_RANGE_TABLE_WORK_AREA): Use it.
84939         (regex_compile): Don't translate the pattern chars so eagerly.
84940         Only do it when inserting an `exactn' bytecode or when handling
84941         a char-range.
84942         (mutually_exclusive_p): Avoid empty statement.
84943
84944 2002-07-06  Jim Meyering  <meyering@lucent.com>
84945
84946         * m4/README: Don't mention Makefile.am.in.
84947         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84948
84949 2002-07-01  Jim Meyering  <meyering@lucent.com>
84950
84951         * lib/c-stack.c: Include sys/time.h.
84952         From Volker Borchert.
84953
84954 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84955
84956         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84957
84958 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84959
84960         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84961         New macro.  Use it uniformly instead of
84962         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84963         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84964         reported by Vin Shelton.
84965
84966 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84967
84968         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84969         Do not assume SA_SIGINFO behavior.
84970         Bug reported by Jim Meyering on NetBSD 1.5.2.
84971
84972 2002-06-22  Jim Meyering  <meyering@lucent.com>
84973
84974         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84976
84977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84978         now that configure.ac uses AC_GNU_SOURCE.
84979         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84980         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84981
84982         Update to latest tools.  Suggestions from Paul Eggert.
84983         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84984         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84985         * m4/fnmatch.m4: Likewise.
84986         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84987         to AC_HEADER_STDBOOL
84988
84989 2002-06-22  Jim Meyering  <meyering@lucent.com>
84990
84991         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84992         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84993
84994 2002-06-22  Jim Meyering  <meyering@lucent.com>
84995
84996         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84997
84998         * lib/exitfail.c, exitfail.h: Likewise.
84999         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85000
85001         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85002         of fnmatch.h.
85003         (EXTRA_DIST): Add fnmatch_loop.c.
85004         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85005
85006         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85007         * lib/fnmatch.c: Update from diffutils-2.8.2.
85008         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85009         * lib/fnmatch.h: Remove file.
85010
85011 2002-06-21  Jim Meyering  <meyering@lucent.com>
85012
85013         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85014         * m4/mbrtowc.m4: Likewise.
85015
85016         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85017         * m4/mbswidth.m4: Reflect name change:
85018         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85020
85021         * m4/lib-link.m4: Update from gettext-0.11.2.
85022         * m4/gettext.m4: Likewise.
85023
85024         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85025         From Alfred M. Szmidt.
85026
85027 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85028
85029         * lib/file-type.h: Report an error if neither S_ISREG nor
85030         S_IFREG is defined, instead of using a test specific to glibc
85031         2.2.  This should be safe, since POSIX requires S_ISREG and
85032         Unix Version 7 had S_IFREG.  We don't need to check for
85033         <sys/types.h> since we don't use any symbols that it defines.
85034
85035 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85036
85037         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85038         $@-t, so that each temporary file name is unique and valid in the first
85039         8 characters, for operation under DOS.
85040
85041 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85042
85043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85044
85045 2002-06-15  Jim Meyering  <meyering@lucent.com>
85046
85047         Work even with DJGPP 2.03, which lacks support for symlinks.
85048         From Richard Dawe.
85049         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85050         is defined.
85051         * lib/lchown.c (S_ISLNK): Likewise.
85052
85053 2002-06-15  Jim Meyering  <meyering@lucent.com>
85054
85055         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85056         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85057         have been included before this file.
85058
85059 2002-06-14  Jim Meyering  <meyering@lucent.com>
85060
85061         * lib/file-type.h: Use the version from diffutils-2.8.2.
85062         * lib/file-type.c: Likewise.
85063
85064 2002-06-07  Jim Meyering  <meyering@lucent.com>
85065
85066         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85067         They're needed at least for NetBSD 1.5.2.
85068         ($statxfs_includes): Include those same headers.
85069         ($statxfs_includes): Include sys/vfs.h if available.
85070         ($statxfs_includes): Likewise for sys/statvfs.h.
85071         Check for the following members in both structs statfs and statvfs:
85072         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85073
85074 2002-06-01  Jim Meyering  <meyering@lucent.com>
85075
85076         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85077         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85078
85079 2002-05-28  Jim Meyering  <meyering@lucent.com>
85080
85081         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85082         Reported by Volker Borchert.
85083
85084 2002-05-27  Jim Meyering  <meyering@lucent.com>
85085
85086         Fix a problem seen only on nonconforming systems whereby ls.c's
85087         use of localtime, and then of gettimeofday would cause trouble:
85088         the localtime call used to initialize rpl_gettimeofday's save
85089         mechanism would clobber ls's current local time information so
85090         that in any long listing the first file would always be listed
85091         with date 1970-01-01.  Analysis by Volker Borchert.
85092
85093         * lib/gettimeofday.c (localtime): Undefine.
85094         (rpl_localtime): New function.
85095
85096 2002-05-27  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85099         localtime.
85100
85101         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85102         use the replacement function; it wouldn't resolve at link time.
85103         Reported by Volker Borchert.
85104
85105 2002-05-22  Jim Meyering  <meyering@lucent.com>
85106
85107         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85108         file-type.h.
85109         * lib/file-type.h: New file.
85110         * lib/file-type.c (file_type): New file/function.  Extracted from
85111         diffutils.
85112
85113 2002-04-30  Jim Meyering  <meyering@lucent.com>
85114
85115         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85116
85117 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85118
85119         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85120
85121 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85122
85123         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85124         Do not check for alloca.h (no longer used) or stdbool.h (was never
85125         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85126
85127 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85128
85129         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85130
85131 2002-04-29  Jim Meyering  <meyering@lucent.com>
85132
85133         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85134         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85135         Use AC_FUNC_STRNLEN here instead.
85136
85137         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85138         With autoconf-2.53a, it's part of AC_PROG_CC.
85139
85140 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85141
85142         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85144
85145 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85146
85147         * lib/sig2str.h, lib/sig2str.c: New files.
85148         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85149
85150 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85151
85152         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85153         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85154         of 127, since 64 is the largest conceivable number for ancient
85155         nonstandard hosts.
85156         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85157
85158 2002-04-28  Jim Meyering  <meyering@lucent.com>
85159
85160         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85161
85162 2002-04-24  Jim Meyering  <meyering@lucent.com>
85163
85164         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85165         (jm_PREREQ): Use it.
85166
85167         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85168         mach/mach.h fcntl.h.
85169         Check for this function: setlocale.
85170
85171 2002-04-24  Jim Meyering  <meyering@lucent.com>
85172
85173         * lib/gettext.h: New file, from Gettext.
85174         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85175         (libfetish_a_SOURCES): Add gettext.h.
85176
85177 2002-04-16  Jim Meyering  <meyering@lucent.com>
85178
85179         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85180         ut_pid, ut_id, ut_exit.
85181
85182 2002-04-16  Jim Meyering  <meyering@lucent.com>
85183
85184         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85185         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85186         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85187
85188 2002-04-12  Jim Meyering  <meyering@lucent.com>
85189
85190         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85191         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85192         existence of the getmntinfo function.  Needed for Darwin 5.3.
85193
85194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85195         This is necessary at least on Darwin 5.3.
85196
85197         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85198         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85199         strnlen.o in the library, and that makes some versions of ranlib
85200         object.
85201
85202 2002-04-12  Jim Meyering  <meyering@lucent.com>
85203
85204         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85205
85206 2002-04-09  Jim Meyering  <meyering@lucent.com>
85207
85208         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85209         to be more precise.  Rather than saying we're checking whether the
85210         function `works', say what we're testing.
85211         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85212         Reported by Bruno Haible.
85213
85214 2002-03-10  Jim Meyering  <meyering@lucent.com>
85215
85216         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85217         Suggestion from Santiago Vila.
85218
85219 2002-03-08  Jim Meyering  <meyering@lucent.com>
85220
85221         * lib/rename.c: Mention that this wrapper is needed also on
85222         mips-dec-ultrix4.4 systems.
85223
85224 2002-03-02  Jim Meyering  <meyering@lucent.com>
85225
85226         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85227         not HAVE_CLOCK_SETTIME.
85228
85229 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85230
85231         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85232         Check for clock_settime.
85233
85234 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85235
85236         * lib/nanosleep.h: Rename to....
85237         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85238
85239         * lib/gettime.c: New file.
85240         * lib/settime.c: New file.
85241         * lib/stime.c: Remove.
85242
85243         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85244         timespec.h.  Remove nanosleep.h.
85245
85246 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85247
85248         * m4/acl.m4: New file.
85249         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85250         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85251
85252 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85253
85254         * lib/acl.c, lib/acl.h: New files.
85255         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85256
85257 2002-02-24  Jim Meyering  <meyering@lucent.com>
85258
85259         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85260         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85261         cause trouble.  Reported by Nelson Beebe.
85262
85263 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85264
85265         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85266         compilers that don't know that xalloc_die never returns.
85267
85268 2002-02-20  Jim Meyering  <meyering@lucent.com>
85269
85270         * lib/getdate.c: Regenerate using bison-1.33.
85271
85272 2002-02-17  Jim Meyering  <meyering@lucent.com>
85273
85274         * config/config.guess (main): Don't use `head -1'; it's no longer
85275         portable. Use `sed 1q' instead.
85276
85277 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85278
85279         * m4/codeset.m4: Upgrade to gettext-0.11.
85280         * m4/gettext.m4: Upgrade to gettext-0.11.
85281         * m4/glibc21.m4: Upgrade to gettext-0.11.
85282         * m4/iconv.m4: Upgrade to gettext-0.11.
85283         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85284         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85285         * m4/lib-ld.m4: New file, from gettext-0.11.
85286         * m4/lib-link.m4: New file, from gettext-0.11.
85287         * m4/lib-prefix.m4: New file, from gettext-0.11.
85288         * m4/progtest.m4: Upgrade to gettext-0.11.
85289
85290 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85291
85292         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85293         (jm_PREREQ): Use it.
85294
85295 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85296
85297         * lib/posixver.c, lib/posixver.h: New files.
85298         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85299
85300 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85301             Bruno Haible  <bruno@clisp.org>
85302
85303         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85304         (fwrite_success_callback): New declaration.
85305         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85306         print_unicode_char. Call failure callback instead of error.
85307         (fwrite_success_callback): New function.
85308         (exit_failure_callback): New function.
85309         (fallback_failure_callback): New function.
85310         (print_unicode_char): Call unicode_to_mb.
85311
85312 2002-01-26  Jim Meyering  <meyering@lucent.com>
85313
85314         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85315         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85316
85317 2002-01-26  Jim Meyering  <meyering@lucent.com>
85318
85319         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85320
85321 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85322
85323         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85324
85325 2002-01-22  Jim Meyering  <meyering@lucent.com>
85326
85327         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85328         Otherwise, some versions of automake would omit the rule that makes
85329         Makefile from Makefile.in.
85330
85331 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85332
85333         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85334         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85335         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85336         (memcoll): Set errno to zero if there is no error.
85337
85338         * lib/quotearg.c (quotearg_buffer_restyled):
85339         Fix bug with quoting buffers containing NUL when backslashing escapes.
85340         This bug was exposed by the other changes in this patch.
85341         (quotearg_n_options): New arg ARGSIZE.
85342         All callers changed.
85343         (quoting_options_from_style): New function.
85344         (quotearg_n_style): Use it.
85345         (quotearg_n_style_mem): New function.
85346
85347         * lib/quotearg.h (quotearg_n_style_mem): New function.
85348
85349 2002-01-19  Jim Meyering  <meyering@lucent.com>
85350
85351         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85352         Remove useless quotes: DF_PROG="df".
85353         * m4/strnlen.m4: New file.
85354
85355 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85356
85357         * lib/backupfile.c (ISDIGIT): Comment fix.
85358         * lib/getdate.y (ISDIGIT): Likewise.
85359         * lib/posixtm.c (ISDIGIT, year): Likewise.
85360         * lib/strverscmp.c (ISDIGIT): Likewise.
85361         * lib/userspec.c (ISDIGIT): Likewise.
85362
85363 2002-01-16  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/getdate.y: Add three semicolons, each just before a closing
85366         brace. Bison (as of version 1.31) no longer papers over that mistake.
85367
85368 2002-01-05  Jim Meyering  <meyering@lucent.com>
85369
85370         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85371
85372 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85373
85374         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85375         not silently exit merely because the output buffer happens to
85376         have nothing pending.
85377
85378 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85379
85380         See the big note in ../ChangeLog.
85381         * lib/human.c (suffixes): Prefer K to k for 1024.
85382         (generate_suffix_backwards): New function.
85383         (human_readable_inexact): Use it.
85384         * lib/xstrtol.c (__xstrtol): If there is no number but there
85385         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85386         Accept 'K' as well as 'k'.
85387
85388 2001-12-15  Jim Meyering  <meyering@lucent.com>
85389
85390         * lib/regex.h (__restrict_arr): Update from libc.
85391
85392         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85393         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85394         (STREQ): Define.
85395
85396 2001-12-14  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85399         Suggestion from Bruno Haible.
85400
85401 2001-12-10  Jim Meyering  <meyering@lucent.com>
85402
85403         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85404         xrealloc, Instead, include "xalloc.h".
85405         (initbuffer): Don't cast xmalloc return value to char*.
85406         (readline): Reword comment.
85407         Don't cast xrealloc return value to char*
85408         Return NULL, not 0.
85409
85410 2001-12-09  Jim Meyering  <meyering@lucent.com>
85411
85412         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85413         about `signed and unsigned type in conditional expression'.
85414         * lib/posixtm.c (posix_time_parse): Likewise.
85415
85416         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85417
85418         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85419         to avoid a pedantic warning.
85420
85421         * lib/getstr.c: Don't include assert.h.
85422         (getstr): Remove warning-evoking assertions.
85423         Return -1 if offset parameter is out of bounds.
85424         Change the type of a local from int to size_t.
85425
85426         * lib/strftime.c (my_strftime_localtime_r): Include this function
85427         definition in the `#if ! HAVE_TM_GMTOFF' block.
85428
85429         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85430         Include xalloc.h instead.
85431
85432 2001-12-02  Jim Meyering  <meyering@lucent.com>
85433
85434         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85435         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85436         included.
85437
85438         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85439         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85440
85441 2001-11-30  Akim Demaille  <akim@epita.fr>
85442
85443         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85444         before being defined.
85445
85446 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85447
85448         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85449         First arg is int, not unsigned.
85450         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85451         (SIZE_MAX, UINT_MAX): New macros.
85452         (quotearg_n_options): Abort if N is negative.
85453         Avoid overflow check on hosts where size_t is 64 bits and int
85454         is 32 bits, as overflow is impossible there.
85455         Fix off-by-one typo that caused unnecessary reallocation.
85456
85457 2001-11-27  Jim Meyering  <meyering@lucent.com>
85458
85459         * lib/tempname.c: Merge with version from libc.
85460         * lib/regex.c: Likewise.
85461
85462         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85463         systems for which STDC_HEADERS is 0, it was not included, resulting in
85464         a warning about an integer-to-pointer conversion problem with getenv.
85465         Reported by Volker Borchert.
85466
85467 2001-11-26  Jim Meyering  <meyering@lucent.com>
85468
85469         * lib/gtod.h: Remove file.
85470         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85471         * lib/gettimeofday.c: Don't include gtod.h.
85472         (GTOD_init): Remove function.
85473         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85474         Suggestion from Volker Borchert.
85475
85476 2001-11-23  Jim Meyering  <meyering@lucent.com>
85477
85478         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85479         it.
85480         * lib/hash.c (struct hash_table): Define it here instead.
85481
85482 2001-11-22  Jim Meyering  <meyering@lucent.com>
85483
85484         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85485
85486 2001-11-20  Jim Meyering  <meyering@lucent.com>
85487
85488         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85489         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85490
85491 2001-11-19  Jim Meyering  <meyering@lucent.com>
85492
85493         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85494         directory.  Use "conftestXXXXXX" as the template.
85495         Suggestion from Paul Eggert.
85496
85497         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85498         immediately, so the test doesn't mistakenly hit the max-open-files
85499         limit.
85500
85501 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85502
85503         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85504         (TEMPORARIES): New macro.
85505         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85506         removes an artificial limitation (e.g. HP-UX 10.20, where
85507         TMP_MAX is 17576).
85508
85509 2001-11-18  Jim Meyering  <meyering@lucent.com>
85510
85511         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85512
85513 2001-11-18  Jim Meyering  <meyering@lucent.com>
85514
85515         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85516         on SunOS 4.
85517
85518         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85519         files will be created before anything else.
85520
85521 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85522
85523         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85524         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85525
85526 2001-11-17  Jim Meyering  <meyering@lucent.com>
85527
85528         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85529         Prompted by a report from Bob Proulx.
85530
85531         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85532         Instead, require UTILS_FUNC_MKSTEMP.
85533
85534 2001-11-17  Jim Meyering  <meyering@lucent.com>
85535
85536         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85537         Now, that's done as part of AC_FUNC_STRTOD.
85538
85539 2001-11-17  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85542         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85543         rather than group writable.  Patch by Juan F. Codagnone.
85544
85545         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85546         xrealloc, Instead, include "xalloc.h".
85547
85548         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85549         Remove explicit declarations of xmalloc, xrealloc,
85550         and xstrdup.  Instead, include "xalloc.h".
85551
85552         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85553         unlocked-io.h.
85554         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85555         Likewise.
85556         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85557
85558         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85559         Reported by Padraig Brady.
85560
85561         * lib/mkstemp.c: #undef mkstemp.
85562         Include config.h.
85563         (rpl_mkstemp): Rename from mkstemp.
85564         Protoize.
85565
85566 2001-11-16  Jim Meyering  <meyering@lucent.com>
85567
85568         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85569         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85570         determine the amount of total physical memory, use pstat_getstatic.
85571         HPUX-11 doesn't define _SC_PHYS_PAGES.
85572         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85573         If sysconf couldn't be used to determine the amount of available
85574         physical memory, use both pstat_getstatic and pstat_getdynamic.
85575         Based on a patch from Bob Proulx.
85576
85577 2001-11-10  Jim Meyering  <meyering@lucent.com>
85578
85579         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85580         (jm_PREREQ): Use it.
85581
85582 2001-11-09  Jim Meyering  <meyering@lucent.com>
85583
85584         * m4/jm-macros.m4: Require autoconf-2.52f.
85585         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85586         Use these AC_-prefixed names, not the AM_-prefixed ones.
85587
85588         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85589
85590 2001-11-05  Jim Meyering  <meyering@lucent.com>
85591
85592         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85593
85594 2001-11-04  Jim Meyering  <meyering@lucent.com>
85595
85596         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85597         $DEFS.
85598
85599 2001-11-03  Jim Meyering  <meyering@lucent.com>
85600
85601         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85602         of AC_DEFUN.
85603
85604         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85605         know the name of the variable in the macro definition.
85606
85607 2001-11-03  Jim Meyering  <meyering@lucent.com>
85608
85609         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85610         in argmatch_to_argument call.
85611
85612         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85613         argument.
85614
85615         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85616         e.g., a fault due to an attempt to free a NULL pointer.
85617
85618 2001-11-01  Jim Meyering  <meyering@lucent.com>
85619
85620         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85621         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85622
85623 2001-11-01  Jim Meyering  <meyering@lucent.com>
85624
85625         * lib/dirfd.c, lib/dirfd.h: New files.
85626         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85627
85628         * lib/hash.c (hash_print) [TESTING]: Clean up.
85629
85630 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85631
85632         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85633         to avoid a warning if -Wall.
85634
85635 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85636
85637         * README: New file
85638         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85639         (per RMS's instructions, this is now the canonical source)
85640         * lgpl/, gpl/: New directories.
85641
85642 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85643
85644         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85645
85646 2001-10-21  Jim Meyering  <meyering@lucent.com>
85647
85648         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85649         this code would end up calling gettext even in packages built
85650         with --disable-nls.
85651         * lib/getopt.c (_): Likewise.
85652         * lib/regex.c (_): Likewise.
85653
85654 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85655
85656         * m4/error.m4 (jm_PREREQ_ERROR):
85657         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85658         AC_FUNC_STRERROR_R does that.
85659         Check for strerror declaration.
85660
85661         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85662         are supposed to have them these days.
85663         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85664         Merge changes from latest Autoconf CVS.
85665         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85666         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85667         POSIX decided to standardize on the int flavor of strerror_r.
85668
85669 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85670
85671         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85672         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85673         Use strerror_r that is only a macro, even if it is not a function.
85674         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85675         (private_strerror): Use prototypes, not old-style function definition.
85676         (print_errno_message): New function.
85677         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85678         char*-flavored one.
85679         (error_tail, error, error_at_line): Use it.
85680
85681 2001-10-11  Jim Meyering  <meyering@lucent.com>
85682
85683         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85684         and quote_n (1, ... to avoid clobbering a buffer.
85685
85686 2001-10-05  Jim Meyering  <meyering@lucent.com>
85687
85688         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85689         hash-pjw.h.
85690         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85691         * lib/hash-pjw.h: New file.
85692
85693 2001-09-30  Jim Meyering  <meyering@lucent.com>
85694
85695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85696         `struct fsstat' has the `f_fstypename' member.
85697         Use that to define FS_TYPE, which is now used to make
85698         the getfsstat link test tighter.
85699
85700 2001-09-30  Jim Meyering  <meyering@lucent.com>
85701
85702         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85703         Include <sys/ucred.h>, for Apple Darwin.
85704         Include sys/mount.h and sys/fs_types.h only if available.
85705         (FS_TYPE): Define.
85706         (read_filesystem_list): Use FS_TYPE.
85707
85708 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85709
85710         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85711         a boolean context.
85712
85713 2001-09-29  Jim Meyering  <meyering@lucent.com>
85714
85715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85716         [one-argument getmntent function]): Include stdio.h before mntent.h.
85717         SunOS 4.1.x needs it for the declaration of `FILE'.
85718         Patch by Volker Borchert.
85719
85720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85721         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85722         sys/fs_types.h, and make the link-test for getfsstat guard #include
85723         directives with appropriate #if HAVE_*_H tests so that we can
85724         detect getfsstat on Apple Darwin1.3.7 systems.
85725         Reported by Nelson Beebe.
85726         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85727
85728 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85729
85730         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85731         #defines strtoimax.  Also treat the other strto* functions
85732         like strtoimax.
85733
85734         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85735         Check for strtoul and strtoumax,
85736         as those declarations are made even in the signed case.
85737         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85738         Likewise, for strtol and strtoimax.
85739
85740 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85741
85742         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85743         #defines strtoimax.  Also treat the other strto* functions
85744         like strtoimax.
85745
85746         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85747         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85748         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85749
85750 2001-09-26  Jim Meyering  <meyering@lucent.com>
85751
85752         Most macros in unlocked-io.h had the wrong number of arguments.
85753         * lib/gen-uio: New script.
85754         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85755         * lib/unlocked-io.hin: Remove file.
85756         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85757         rather than trying to embed it here.
85758         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85759         Reported by Padraig Brady.
85760
85761 2001-09-25  Volker Borchert  <bt@teknon.de>
85762
85763         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85764         `result'.
85765
85766 2001-09-24  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85769
85770 2001-09-23  Jim Meyering  <meyering@lucent.com>
85771
85772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85773         instead of the mere test for existence of mntent.h.  The latter
85774         would get a false-positive on AIX 3.4 systems.
85775         In the outer getmntent if-block, don't die if neither of the getmntent
85776         tests succeeds.  Instead, just fall through and continue with the
85777         remaining tests.
85778
85779 2001-09-23  Jim Meyering  <meyering@lucent.com>
85780
85781         * lib/mountlist.c: Remove useless parentheses in #if directives.
85782         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85783         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85784
85785 2001-09-22  Jim Meyering  <meyering@lucent.com>
85786
85787         * m4/gettext.m4: New file.  From gettext.
85788         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85789         * m4/progtest.m4: Likewise
85790         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85791         * m4/glibc21.m4: Likewise.
85792
85793         * m4/libintl.m4: Remove.  No longer used.
85794
85795 2001-09-22  Jim Meyering  <meyering@lucent.com>
85796
85797         * lib/localcharset.c: Update from latest gettext.
85798         * lib/config.charset: Likewise.
85799
85800 2001-09-20  Jim Meyering  <meyering@lucent.com>
85801
85802         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85803         strtoimax.
85804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85805         strtoumax.
85806
85807 2001-09-20  Jim Meyering  <meyering@lucent.com>
85808
85809         * lib/xstrtol.c (strtoimax): Guard declaration with
85810         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85811         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85812         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85813         (strtoumax): Likewise, for completeness (it wasn't necessary).
85814
85815 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85816
85817         * lib/strtoimax.c (HAVE_LONG_LONG):
85818         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85819         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85820         to work around bug in IBM C compiler.
85821
85822 2001-09-17  Jim Meyering  <meyering@lucent.com>
85823
85824         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85825         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85826         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85827         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85828         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85829         whenever the right hand side need not be expanded by the shell.
85830
85831 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85832
85833         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85834         library.  It's not correct, as some older glibcs are buggy.
85835         fnmatch wasn't fixed until glibc 2.2.
85836
85837         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85838         special shell magic here.
85839
85840 2001-09-16  Jim Meyering  <meyering@lucent.com>
85841
85842         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85843         * m4/jm-macros.m4: Require it.
85844
85845 2001-09-16  Jim Meyering  <meyering@lucent.com>
85846
85847         * lib/mkdir.c: New file.
85848
85849 2001-09-15  Jim Meyering  <meyering@lucent.com>
85850
85851         * m4/jm-macros.m4: Check for help2man.
85852
85853 2001-09-11  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85856         The body, by Paul Eggert, was moved here from configure.in.
85857         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85858
85859 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85860
85861         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85862         (jm_PREREQ): Use it.
85863
85864 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85865
85866         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85867         Use ssize_t, not int, to store result of readlink.
85868         Check for ssize_t overflow as well as size_t overflow,
85869         as POSIX says the result of readlink is implementation-defined
85870         when ssize_t overflows.
85871         Remove unnecessary cast to char*.
85872         Use free+malloc instead of realloc, as the storage doesn't need
85873         to be preserved and it's clearer and can be more efficient that way.
85874         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85875         * lib/xreadlink.h (xreadlink): Update prototype.
85876
85877 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85878
85879         * lib/xgetcwd.c: Revert some of the previous change; intead,
85880         fix the HAVE_GETCWD_NULL code to behave more like the
85881         !HAVE_GETCWD_NULL code used to.
85882
85883         Include "xalloc.h".
85884         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85885         invoke xalloc_die.
85886
85887 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85888
85889         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85890         sys/param.h, as pathmax.h includes them.
85891
85892 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85893
85894         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85895         (jm_PREREQ_XGETCWD): New macro.
85896
85897         * m4/getcwd.m4: New file.
85898
85899 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85900
85901         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85902         like the HAVE_GETCWD_NULL code.
85903         Include pathmax.h if not HAVE_GETCWD.
85904         Do not include xalloc.h.
85905         (INITIAL_BUFFER_SIZE): New symbol.
85906         Do not use xmalloc / xrealloc, since the caller is responsible for
85907         handling errors.  Preserve errno around `free' during failure.
85908         Do not overrun buffer when using getwd.
85909
85910 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85911
85912         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85913         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85914         getcwd (NULL, 0).
85915
85916 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85917
85918         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85919         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85920         spotted by Jim Meyering.
85921
85922 2001-09-03  Jim Meyering  <meyering@lucent.com>
85923
85924         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85925         failure.
85926
85927 2001-09-02  Jim Meyering  <meyering@lucent.com>
85928
85929         * lib/error.c: Update from GNU libc.
85930
85931 2001-09-01  Jim Meyering  <meyering@lucent.com>
85932
85933         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85934         Used by df.
85935
85936 2001-09-01  Jim Meyering  <meyering@lucent.com>
85937
85938         * lib/xreadlink.c: New file.
85939         * lib/xreadlink.h: New file.
85940         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85941         xreadlink.h.
85942
85943         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85944         doesn't conflict with sparc Solaris 7's definition in
85945         /usr/include/sys/int_types.h.
85946
85947         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85948         files.
85949         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85950         and strncasecmp as r-values.  Unixware didn't have declarations.
85951
85952 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85953
85954         * lib/xstrtol.h: Add copyright notice.
85955         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85956         LONGINT_INVALID_SUFFIX_CHAR.
85957
85958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85959
85960         * lib/xstrtol.c (strtoimax): New decl.
85961
85962 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85963
85964         * lib/xgetcwd.c: Don't include pathmax.h.
85965         Include stdlib.h and unistd.h if available.
85966         Include xalloc.h.
85967         (xmalloc, xstrdup, free): Remove decls.
85968         (xgetcwd): Don't assume sizes fit in unsigned.
85969         Check for overflow when computing sizes.
85970         Simplify reallocation code.
85971
85972 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85973
85974         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85975         a directory's st_size can have an arbitrary value, so the old
85976         usage could waste an arbitrary amount of memory.  All uses
85977         changed.
85978         * lib/savedir.h: Update prototype.
85979
85980 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85981
85982         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85983
85984         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85985         old strtoimax.c.
85986
85987         Also, make the following further changes to make this file's
85988         configuration more similar to that of strtol.c:
85989         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85990         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85991         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85992         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85993         changed to signed values.
85994
85995         And make the following changes as well:
85996         Fix copyright notice, as 1999 was missing.
85997         (verify): New macro.
85998         (strtoimax): Check sizes at compile-time, not run-time.
85999         Prefer strtol to strtoll if both work.
86000         (main): Remove; it was not that useful and was a pain to maintain.
86001
86002         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86003
86004 2001-08-31  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86007         Use an initial, malloc'd, buffer of length 128 rather than
86008         a statically allocated one of length 1024.
86009
86010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86011
86012         Simplify code, partly by assuming autoconf 2.52 semantics.
86013
86014         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86015
86016         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86017         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86018         All uses removed.
86019         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86020         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86021         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86022         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86023         jm_AC_HEADER_INTTYPES_H.
86024         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86025
86026         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86027
86028         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86029         Quote first arg of AC_DEFUN.
86030         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86031         since they are needed to parse the include file even if we need
86032         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86034         but with opposite signedness.
86035
86036 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86037
86038         Merge 'exclude' changes from tar 1.13.22.
86039         This fixes one or two unlikely storage allocation overflow bugs,
86040         but doesn't change user-visible behavior otherwise.
86041
86042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86043
86044         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86045         (jm_PREREQ_EXCLUDE): New macro.
86046
86047 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86048
86049         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86050         tm to be declared.
86051
86052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86053
86054         * lib/hash.c: Remove '2001' from copyright notice.
86055
86056 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86057
86058         * lib/full-write.h: New file.
86059         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86060         * lib/full-write.c: Correct credits, as cccp.c no longer
86061         exists and anyway it was so heavily changed from the old cccp
86062         code as to be unrecognizable.  Include full-write.h.
86063         (full_write): Return size_t, with short writes meaning failure.
86064         All callers changed.  This fixes a bug with large buffers
86065         on 64-bit hosts.
86066         * lib/utime.c: Include full-write.h.
86067
86068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86069
86070         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86071         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86072         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86073         Include if available.
86074         (<xalloc.h>): Include
86075         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86076         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86077         collide with FNM macros.
86078         (struct patopts): New struct.
86079         (struct exclude): Use it, as exclude patterns now come with options.
86080         (new_exclude): Support above changes.
86081         (new_exclude, add_exclude_file):
86082         Initial size must now be a power of two to simplify overflow checking.
86083         (free_exclude, fnmatch_no_wildcards): New function.
86084         (excluded_filename): No longer requires options arg, as the options
86085         are determined by add_exclude.  Now returns bool, not int.
86086         (excluded_filename, add_exclude):
86087         Add support for the fancy new exclusion options.
86088         (add_exclude, add_exclude_file): Now takes int options arg.
86089         Check for arithmetic overflow when computing sizes.
86090         (add_exclude_file): xrealloc might modify errno, so don't
86091         realloc until after errno might be used.
86092
86093         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86094         New macros.
86095         (free_exclude): New decl.
86096         (add_exclude, add_exclude_file): Now takes int options arg.
86097         (excluded_filename): No longer requires options arg, as the options
86098         are determined by add_exclude.  Now returns bool, not int.
86099
86100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86101
86102         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86103
86104 2001-08-27  Jim Meyering  <meyering@lucent.com>
86105
86106         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86107
86108         * lib/version-etc.c (N_): Remove definition.
86109         Revert most of last change.
86110         Instead, simply don't mark the `Copyright...' string for translation.
86111         Based on advice from Paul Eggert.
86112
86113         * lib/strtoxmax.c: Tweak comment.
86114
86115 2001-08-26  Jim Meyering  <meyering@lucent.com>
86116
86117         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86118
86119         * m4/xstrtoimax.m4: New file.
86120         * m4/xstrtoumax.m4: Add comments explaining why we
86121         AC_REPLACE_FUNCS(strtol).
86122
86123 2001-08-26  Jim Meyering  <meyering@lucent.com>
86124
86125         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86126         of copyright with `%s' so translators don't get an untranslated
86127         message in 2002.
86128         (COPYRIGHT_YEAR): Define.
86129         (version_etc): Use fprintf rather than fputs.
86130         Suggestion from Ulrich Drepper.
86131
86132         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86133
86134         * lib/strtoll.c: New file, from GNU libc.
86135         * lib/xstrtoimax.c: New file.
86136
86137         * lib/xstrtol.h: Add xstrtoimax.
86138         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86139         * lib/strtoimax.c: New file.  Likewise, but first define
86140         STRTOUXMAX_SIGNED.
86141
86142         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86143         ...
86144         * lib/strtoxmax.c: ... then renamed to this.
86145
86146 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86147
86148         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86149         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86150         (jm_AC_TYPE_INTMAX_T): New macro.
86151         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86152
86153         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86154
86155         * m4/longlong.m4: Renamed from ulonglong.m4.
86156         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86157         * m4/uintmax_t.m4: Removed.
86158
86159 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86160
86161         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86162         Port to Solaris 8, where 'sed' requires a space after the 'r'
86163         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86164         Redirect output to $tmp just once.
86165
86166 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86167
86168         * lib/addext.c (<errno.h>): Include.
86169         (errno): Declare if not defined.
86170         (addext): Work correctly when pathconf returns -1 and leaves
86171         errno alone because there is no limit.  Also, work even if
86172         pathconf returns a value greater than SIZE_MAX.
86173
86174 2001-08-12  Jim Meyering  <meyering@lucent.com>
86175
86176         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86177         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86178         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86179         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86180         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86181         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86182         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86183         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86184         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86185         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86186         utime.m4, utimes.m4, xstrtoumax.m4:
86187         Quote the first argument in each use of AC_DEFUN.
86188
86189 2001-08-12  Jim Meyering  <meyering@lucent.com>
86190
86191         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86192         Simply `return getcwd (NULL, 0);'.
86193         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86194         Use 1300 as initial value for length, not PATH_MAX.
86195
86196         * lib/pathmax.h: Clean up cpp syntax.
86197
86198 2001-08-12  Jim Meyering  <meyering@lucent.com>
86199
86200         * lib/gettimeofday.c: New file.
86201         * lib/gtod.h: New file.
86202         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86203
86204 2001-08-05  Jim Meyering  <meyering@lucent.com>
86205
86206         * m4/jm-macros.m4: Require autoconf-2.52.
86207
86208 2001-08-04  Jim Meyering  <meyering@lucent.com>
86209
86210         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86211         stmt, to get in sync with glibc.
86212
86213 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86214
86215         The following changes are from gettext 0.10.39 as maintained by
86216         Bruno Haible.
86217
86218         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86219         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86220         with inverted sense.  All uses changed.
86221
86222         * lib/mbswidth.c: Don't include <limits.h>.
86223         Include <stdlib.h> and <string.h> unconditionally.
86224         (iswcntrl, mbsinit, ISCNTRL): New macros.
86225         (mbsnwidth): Use K&R style function declarations.
86226         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86227         can optimize it when MB_CUR_MAX == 1.
86228         The width of control characters is zero, not 1.
86229
86230 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86231
86232         The following changes are from gettext 0.10.39 as maintained by
86233         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86234
86235         * m4/codeset.m4: Upgrade to serial AM1.
86236         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86237         all uses changed.  Quote first arg of AC_DEFUN.
86238         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86239
86240         * m4/iconv.m4: Upgrade to serial AM2.
86241         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86242         Add --with-libconv-prefix.
86243         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86244         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86245         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86246         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86247         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86248
86249         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86250         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86251         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86252         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86253         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86254         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86255         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86256         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86257         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86258
86259         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86260         string.h any more.
86261
86262         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86263         not the default value.
86264
86265         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86266         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86267         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86268         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86269         Also check for iswcntrl, used for wcwidth fallback.
86270         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86271         to Autoconf 2.13.
86272
86273 2001-08-03  Jim Meyering  <meyering@lucent.com>
86274
86275         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86276         as it was in the original.  Reported by Paul Eggert.
86277
86278 2001-07-16  Jim Meyering  <meyering@lucent.com>
86279
86280         * m4/gettimeofday.m4: New file.
86281         Prompted by a report from Bernhard Baehr.
86282
86283 2001-07-15  Jim Meyering  <meyering@lucent.com>
86284
86285         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86286         stuff. Now it's in ../Makefile.cfg.
86287
86288 2001-07-15  Jim Meyering  <meyering@lucent.com>
86289
86290         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86291         (BUILT_SOURCES): Add unlocked-io.h.
86292         (io_functions): Define.
86293         (unlocked-io.h): New rule.
86294         (DISTCLEANFILES): Add unlocked-io.h.
86295         (all-local): Depend on unlocked-io.h, to ensure it is created.
86296
86297         * lib/unlocked-io.hin: New file
86298
86299         * lib/regex.c: Update from glibc.
86300
86301 2001-07-05  Jim Meyering  <meyering@lucent.com>
86302
86303         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86304         recommendation.
86305         (libfetish_a_SOURCES): Put all .h files here instead.
86306         Remove a thus-exposed (better checks in automake) duplicate and
86307         two unnecessary .h files.
86308
86309 2001-07-04  Jim Meyering  <meyering@lucent.com>
86310
86311         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86312         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86313         distcheck failure.
86314
86315 2001-07-02  Jim Meyering  <meyering@lucent.com>
86316
86317         The following changes were prompted by suggestions from Bruno Haible.
86318
86319         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86320         is now generated.
86321         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86322         definition of EXTRA_DIST.
86323         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86324         ensure that the generated file is created/updated whenever the list
86325         of $(unlocked_functions) is changed.
86326         (jm-glibc-io.m4): New rule.
86327         (unlocked-io.h): New rule -- currently unused.
86328
86329 2001-06-24  Jim Meyering  <meyering@lucent.com>
86330
86331         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86332         unmatched right bracket, rather than kludging it with an extra,
86333         falsely-matching quote in a comment.  Patch by Akim Demaille.
86334
86335 2001-06-11  Jim Meyering  <meyering@lucent.com>
86336
86337         * lib/regex.c: Update from GNU libc.
86338
86339 2001-05-27  Jim Meyering  <meyering@lucent.com>
86340
86341         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86342         Check for ut_type in struct utmp.
86343
86344 2001-05-27  Jim Meyering  <meyering@lucent.com>
86345
86346         * lib/readutmp.h (UT_TYPE): Define.
86347
86348 2001-05-24  Jim Meyering  <meyering@lucent.com>
86349
86350         * lib/argmatch.c: Include "quote.h".
86351         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86352         quote function.  Reported by Göran Uddeborg.
86353
86354 2001-05-22  Jim Meyering  <meyering@lucent.com>
86355
86356         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86357         now that we use the package-supplied version unconditionally.
86358         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86359
86360 2001-05-21  Jim Meyering  <meyering@lucent.com>
86361
86362         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86363         shell syntax errors.
86364
86365 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86366
86367         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86368
86369 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86370
86371         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86372         Don't bother to check library strftime, since
86373         we'll be using our own my_strftime function anyway.
86374         Define my_strftime instead of strftime.
86375
86376 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86377
86378         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86379         which is not yet declared.
86380
86381 2001-05-15  Jim Meyering  <meyering@lucent.com>
86382
86383         * m4/regex.m4: Use proper quoting so brackets appear in the test
86384         program.
86385         Reported by, and with help from, Bruno Haible.
86386
86387 2001-05-13  Jim Meyering  <meyering@lucent.com>
86388
86389         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86390         undefined.
86391
86392 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86393
86394         dirname code cleanup.  base_name now behaves more compatibly
86395         with POSIX basename when given file names that have trailing
86396         slashes, and similarly for dir_name.  Add new primitives
86397         base_len and dir_len.  Put the directory-name-related decls
86398         into dirname.h.
86399
86400         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86401         * lib/backupfile.c (base_name): Likewise.
86402         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86403         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86404         * lib/makepath.c (strip_trailing_slashes): Likewise.
86405         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86406         ISSLASH): Likewise.
86407         * lib/rename.c (strip_trailing_slashes): Likewise.
86408         * lib/same.c (base_name): Likewise.
86409         * lib/stripslash.c (ISSLASH): Likewise.
86410
86411         * lib/addext.c: Include <dirname.h> after size_t is defined.
86412         * lib/backupfile.c: Likewise.
86413
86414         * lib/addext.c (addext): Use base_len to trim redundant
86415         trailing slashes instead of doing it ourselves.
86416         But do not trim the last slash if it is not redundant.
86417
86418         * lib/backupfile.c (find_backup_file_name,
86419         max_backup_version): Use base_len instead of rolling it ourselves.
86420         Handle the case of "" and (on DOS) "C:" correctly.
86421
86422         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86423         needed. Include <string.h>, <dirname.h>.
86424         (base_name): Allow file names ending in slashes, other than names
86425         that are all slashes.  In this case, return the basename followed
86426         by the slashes.  This is more general, and can be used in places
86427         where the original base_name purposely had an assertion failure.
86428         (base_len): New function.
86429
86430         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86431         Do not include <assert.h>; no longer needed.
86432         Include xalloc.h.
86433         (memrchr): Remove decl.
86434         (dir_name_r): Remove.
86435         (dir_len): Renamed from dirlen.  All callers changed.
86436         Rewrite in terms of base_name, for simplicity and consistency.
86437         (dir_name): Never return NULL.  All callers changed.
86438         Do not include <stdlib.h> in test program; no longer needed.
86439         return 0; is fine for test program.
86440
86441         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86442         New macros.
86443         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86444
86445         * lib/path-concat.c (path_concat): Use base_len to compute
86446         base length, not strlen; this means we cannot rely on memcpy
86447         to null-terminate.
86448
86449         * lib/same.c (STREQ): Remove.
86450         (same_name): Handle the case where the basename ends in trailing '/'.
86451
86452         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86453         a slash was stripped.  Do not strip the last slash after a
86454         file system prefix.
86455
86456 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86457
86458         * lib/Makefile.am (libfetish_a_SOURCES):
86459         Add strftime.c, since we now compile it on all hosts.
86460
86461         * lib/strftime.c (my_strftime):
86462         Define to nstrftime if emacs, but only if my_strftime is not defined.
86463         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86464         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86465         Add one more extra argument: a nanoseconds value.
86466         All uses changed.
86467         (ns): New macro.
86468         (my_strftime function): Add %N format.
86469         (emacs_strftimeu): Renamed from emacs_strftime,
86470         with extra ut argument.
86471
86472 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86473
86474         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86475
86476 2001-04-21  Jim Meyering  <meyering@lucent.com>
86477
86478         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86479         doesn't interfere.
86480
86481 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86482
86483         * m4/ftruncate.m4: Check for chsize.
86484         Link with ftruncate.o unconditionally if ftruncate is missing.
86485         This was required when cross-compiling to i586-mingw32msvc.
86486
86487 2001-04-08  Jim Meyering  <meyering@lucent.com>
86488
86489         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86490         recomputed; that's necessary when the offset spans a DST transition.
86491         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86492
86493 2001-04-02  Jim Meyering  <meyering@lucent.com>
86494
86495         * lib/regex.h, regex.c: Update from GNU libc.
86496
86497 2001-03-24  Jim Meyering  <meyering@lucent.com>
86498
86499         * m4/jm-macros.m4: Require autoconf-2.49d.
86500
86501 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86502
86503         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86504
86505 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86506
86507         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86508
86509 2001-03-17  Jim Meyering  <meyering@lucent.com>
86510
86511         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86512         now that the version in autoconf is equivalent.
86513         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86514
86515         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86516         Suggestion from Akim Demaille.
86517
86518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86519         (jm_PREREQ_TEMPNAME): New function.
86520
86521 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86522
86523         * lib/tempname.c (uint64_t): Define to uintmax_t if
86524         not defined, and if UINT64_MAX is not defined.
86525         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86526         Reported by John David Anglin.
86527
86528 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86529
86530         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86531         resolve alias if codeset is empty.
86532         * lib/config.charset (BeOS): Use wildcard syntax.
86533
86534 2001-03-13  Jim Meyering  <meyering@lucent.com>
86535
86536         * lib/path-concat.c (path_concat)
86537         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86538         concatenating e.g., `C:' and `foo'.
86539         From Bruno Haible.
86540
86541 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86542
86543         * lib/localcharset.c (locale_charset): Don't use
86544         setlocale(LC_CTYPE,NULL). Don't return NULL.
86545         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86546
86547 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86548
86549         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86550         support for DOS/DJGPP.
86551
86552 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86553
86554         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86555         lacks mkstemp.  Compile our own tempname.c if we compile our own
86556         mkstemp.c, as mkstemp relies on tempname.
86557
86558 2001-03-01  Jim Meyering  <meyering@lucent.com>
86559
86560         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86561         AH_VERBATIM really does output its argument verbatim.
86562
86563 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86564
86565         * lib/Makefile.am (libfetish_a_SOURCES):
86566         Add dup-safer.c, fopen-safer.c.
86567         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86568
86569         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86570         * lib/unistd-safer.h: New files.
86571
86572 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86573
86574         The mkstemp replacement is taken from glibc 2.2.2, with some
86575         portability fixes for use outside glibc, as follows:
86576
86577         * lib/tempname.c (struct_stat64): New macro.
86578         (direxists, __gen_tempname): Use it.
86579         This avoids a portability problem with Solaris 8.
86580
86581         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86582         (<stddef.h>, <stdint.h>, <string.h>):
86583         Include only if STDC_HEADERS || _LIBC.
86584         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86585         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86586         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86587         (__set_errno): Define this macro if <errno.h> doesn't.
86588         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86589         Define these macros if <stdio.h> doesn't.
86590         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86591         Define these macros if <sys/stat.h>
86592         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86593         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86594         __xstat64): Define if not _LIBC.
86595         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86596         (__gen_tempname): Invoke gettimeofday only if
86597         HAVE_GETTIMEOFDAY || _LIBC;
86598         otherwise, fall back on plain "time".
86599         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86600
86601         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86602
86603         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86604
86605 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86606
86607         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86608
86609 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86610
86611         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86612         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86613         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86614         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86615
86616 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86617
86618         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86619         Remove workaround macros for hosts that have mbrtowc but not
86620         mbstate_t, as we now insist on proper declarations for both
86621         before using mbrtowc.
86622
86623 2001-02-17  Jim Meyering  <meyering@lucent.com>
86624
86625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86626         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86627         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86628         UnixWare 7.1.1.
86629
86630         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86631         rather than AC_CACHE_VAL.
86632
86633 2001-02-17  Jim Meyering  <meyering@lucent.com>
86634
86635         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86636         around included file name.
86637
86638         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86639
86640         * lib/strftime.c: Update from GNU libc (the only changes were to
86641         comments).
86642
86643 2001-02-17  Jim Meyering  <meyering@lucent.com>
86644
86645         * lib/regex.c: Update from libc.
86646
86647 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86648
86649         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86650         clash.
86651
86652 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86653
86654         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86655         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86656         Reported by Mark Hounschell via Paul Eggert.
86657
86658 2001-02-07  Jim Meyering  <meyering@lucent.com>
86659
86660         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86661
86662 2001-02-05  Jim Meyering  <meyering@lucent.com>
86663
86664         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86665         it includes the patch required for `large file' support with at least
86666         HP-UX's 10.20 /bin/cc.
86667
86668 2001-02-03  Jim Meyering  <meyering@lucent.com>
86669
86670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86671         AS_IF, now that it works once again (mysteriously).
86672         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86673
86674 2001-01-30  Jim Meyering  <meyering@lucent.com>
86675
86676         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86677         * m4/chown.m4: Rename conftestchown to conftest.chown.
86678         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86679         s/conftestdir2/conftest.d2/.
86680         * m4/utimes.m4: s/conftestdata/conftest.data/
86681         Inspired by Pavel Roskin's change in autoconf.
86682
86683 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86684
86685         * lib/config.charset: Update for FreeBSD 4.2.
86686
86687 2001-01-27  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86690         a use of AS_IF.
86691         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86692
86693 2001-01-26  Jim Meyering  <meyering@lucent.com>
86694
86695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86696         quotearg.c includes it.
86697
86698 2001-01-26  Jim Meyering  <meyering@lucent.com>
86699
86700         * lib/quotearg.c: Include stddef.h.
86701         * lib/quote.c: Include stddef.h.
86702         Reported by Axel Kittenberger.
86703
86704         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86705         line in double quotes so that it evokes a better diagnostic.
86706         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86707         Reported by Axel Kittenberger.
86708
86709 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86710
86711         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86712         as if it was a `charset'.
86713
86714 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86715
86716         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86717         has const.
86718
86719 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86720
86721         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86722         to avoid a warning.  Add back 'const' to inptr.
86723
86724 2001-01-20  Jim Meyering  <meyering@lucent.com>
86725
86726         Be sure that headers are checked before used in code compiled
86727         for the type checks.
86728         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86729         In place of that, invoke jm_CHECK_ALL_TYPES.
86730         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86731         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86732         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86733         The check for ssize_t was mistakenly run before the test for unistd.h.
86734
86735         The configure-time check for stdbool.h was missing.
86736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86737         (jm_PREREQ_HASH): New function.
86738
86739 2001-01-17  Jim Meyering  <meyering@lucent.com>
86740
86741         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86742         for autoconf-2.49c.
86743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86744
86745 2001-01-16  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86748         From Bruno Haible.
86749
86750 2001-01-14  Jim Meyering  <meyering@lucent.com>
86751
86752         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86753         foo and bar.  Create conftestdir/ in the script, not in the C code.
86754         Remove directories in the script, not in the C code.
86755         Remove conftestdir{,2} before trying to create the directory.
86756         Make the entire configure script fail if the mkdir fails.
86757
86758 2001-01-14  Jim Meyering  <meyering@lucent.com>
86759
86760         * lib/rename.c: New file.  From Volker Borchert.
86761         Include stdlib.h, string.h or strings.h, and xalloc.h.
86762         Use strip_trailing_slashes rather than open-coding it.
86763
86764 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86765
86766         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86767
86768 2001-01-03  Jim Meyering  <meyering@lucent.com>
86769
86770         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86771         of local `inptr' to avoid warning with some system declarations of
86772         iconv.
86773
86774 2001-01-02  Volker Borchert  <bt@teknon.de>
86775
86776         * m4/rename.m4: New file.
86777         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86778
86779 2001-01-01  Jim Meyering  <meyering@lucent.com>
86780
86781         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86782         even on systems with utmpx.h.  It's necessary for the declaration of
86783         utmp's ut_user member.  Reported by Andreas Jaeger.
86784
86785         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86786         available. They are required for the declarations of getgrgid and
86787         getpwuid resp.
86788         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86789         Reported by Andreas Jaeger.
86790
86791 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86792
86793         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86794         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86795         so `make install' also works in VPATH builds.
86796
86797 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86798
86799         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86800         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86801         can be used in subdirectories.
86802
86803 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/modechange.c: Do not assume that mode_t uses the
86806         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86807         the other-execute bit of FOO even if S_IXOTH != 1.
86808
86809         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86810         WOTH, XOTH, ALLM): New macros.
86811         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86812          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86813         Use them.
86814         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86815         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86816         (mode_compile):
86817         No need to use uintmax_t; unsigned long is long enough.
86818         Don't bother to get suffix since we don't use it.
86819
86820 2000-12-26  Jim Meyering  <meyering@lucent.com>
86821
86822         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86823         better with autoheader.
86824
86825 2000-12-24  Jim Meyering  <meyering@lucent.com>
86826
86827         * lib/hash.c (is_prime): Return explicit boolean values.
86828         (hash_get_first): Return NULL to appease Irix5.6's 89.
86829         Reported by Nelson Beebe.
86830
86831 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86832
86833         * lib/localcharset.c (locale_charset): Add support for Win32.
86834
86835 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86836
86837         * lib/physmem.h, lib/physmem.c: New files.
86838
86839         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86840         (noinst_HEADERS): Add physmem.h.
86841
86842         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86843         't' for compatibility with Solaris 8 sort.
86844
86845 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86846
86847         * lib/config.charset: Add support for BeOS.
86848
86849 2000-12-17  Jim Meyering  <meyering@lucent.com>
86850
86851         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86852         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86853
86854 2000-12-16  Jim Meyering  <meyering@lucent.com>
86855
86856         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86857         N and M) would have treated it like `chown N:N FILE'.
86858
86859         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86860
86861 2000-12-16  Jim Meyering  <meyering@lucent.com>
86862
86863         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86864         SHELLS_FILE to a file name that's useful on djgpp systems.
86865         Include stdlib.h.
86866         (ADDITIONAL_DEFAULT_SHELLS): Define.
86867         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86868         Based mostly on a patch from Prashant TR.
86869
86870 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86871
86872         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86873         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86874         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86875
86876 2000-12-08  Andreas Schwab  <schwab@suse.de>
86877
86878         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86879         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86880
86881 2000-12-07  Jim Meyering  <meyering@lucent.com>
86882
86883         * lib/stripslash.c (ISSLASH): Define.
86884         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86885         `/'.
86886         From Prashant TR.
86887
86888         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86889         (dir_name_r): Declare this function as static.
86890         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86891         manifest itself on a name containing a mix of slashes and
86892         backslashes.
86893         Make this function work with names starting with a DOS-style
86894         drive letter and colon prefix.
86895         (dir_name): Append `.' if necessary.
86896         Based mostly on patches from Prashant TR and Eli Zaretskii.
86897
86898         * lib/dirname.h (dir_name_r): Remove prototype.
86899
86900 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86901
86902         * m4/off_t-format.m4: Remove this file.
86903         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86904
86905 2000-12-06  Jim Meyering  <meyering@lucent.com>
86906
86907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86908         replacement strtoull, we may well need the replacement strtoul, too.
86909         Check for declarations of strtoul and strtoull.
86910         Check for strtol.  Mainly as a cue to cause automake to include
86911         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86912         Check for limits.h -- strtol.c needs it.
86913
86914 2000-12-05  Jim Meyering  <meyering@lucent.com>
86915
86916         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86917
86918 2000-12-04  Jim Meyering  <meyering@lucent.com>
86919
86920         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86921         Also include memory.h, stdlib.h, unistd.h if appropriate.
86922         Reported by Andreas Jaeger (conflicting declaration of malloc).
86923
86924 2000-12-02  Jim Meyering  <meyering@lucent.com>
86925
86926         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86927         * m4/jm-macros.m4 (jm_MACROS): require it.
86928
86929 2000-12-02  Jim Meyering  <meyering@lucent.com>
86930
86931         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86932
86933 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86934
86935         * lib/memrchr.c: Include <config.h> before any system include file.
86936
86937 2000-11-30  Jim Meyering  <meyering@lucent.com>
86938
86939         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86940
86941 2000-11-30  Jim Meyering  <meyering@lucent.com>
86942
86943         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86944
86945 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86946
86947         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86948
86949 2000-11-26  Jim Meyering  <meyering@lucent.com>
86950
86951         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86952
86953 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86954
86955         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86956         size of (size_t) -1; it's not portable.
86957
86958 2000-11-17  Jim Meyering  <meyering@lucent.com>
86959
86960         * lib/strstr.c: Update from GNU libc.
86961
86962 2000-11-17  Akim Demaille  <akim@epita.fr>
86963
86964         * lib/obstack.h: Formatting changes.
86965         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86966         prevent type checking.
86967         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86968         cast the value to (void *): assigning a `foo *' to a `void *'
86969         variable is valid.
86970         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86971
86972 2000-11-16  Jim Meyering  <meyering@lucent.com>
86973
86974         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86975
86976 2000-11-11  Jim Meyering  <meyering@lucent.com>
86977
86978         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86979
86980 2000-11-10  Jim Meyering  <meyering@lucent.com>
86981
86982         * lib/obstack.h: Update from GNU libc.
86983         * lib/obstack.c: Likewise.
86984
86985 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86986
86987         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86988
86989 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/getusershell.c (setusershell): Use rewind rather than
86992         fseek/fseeko, to avoid configuration hassles with fseeko.
86993         Don't bother opening SHELLS_FILE if shellstream is NULL;
86994         it's not necessary.
86995
86996 2000-11-05  Jim Meyering  <meyering@lucent.com>
86997
86998         * lib/makepath.h (make_dir): Declare.
86999         * lib/makepath.c (make_dir): Remove `static' attribute.
87000         Tweak a comment.
87001
87002 2000-11-04  Jim Meyering  <meyering@lucent.com>
87003
87004         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87005
87006 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87007
87008         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87009         last one in a bucket, advance to the next bucket.
87010
87011 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87012
87013         * lib/fnmatch.c: Do not comment out all the code if we are using
87014         the GNU C library, because in some cases we are replacing buggy
87015         code in the GNU C library itself.
87016
87017 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87018
87019         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87020         (regex_compile): Catch bogus \(\1\).
87021
87022 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87023
87024         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87025         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87026         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87027
87028 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87029
87030         * lib/error.h, getline.h, modechange.h:
87031         Remove "2000" from Copyright line, as the file hasn't been
87032         changed this year other than in the copyright notice.
87033
87034         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87035         was changed this year.
87036
87037 2000-10-29  Jim Meyering  <meyering@lucent.com>
87038
87039         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87040         renaming.
87041         * m4/ls-mntd-fs.m4: Likewise
87042
87043 2000-10-29  Jim Meyering  <meyering@lucent.com>
87044
87045         * lib/xstat.in: Fix grammar in comment.
87046
87047 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87048
87049         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87050         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87051         doesn't define __restrict_arr.
87052
87053 2000-10-28  Jim Meyering  <meyering@lucent.com>
87054
87055         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87056         (jm_PREREQ_MEMCHR): New function.
87057
87058 2000-10-28  Jim Meyering  <meyering@lucent.com>
87059
87060         * lib/memchr.c: Update from libc.
87061         Adjust for portability:
87062         [HAVE_STDLIB_H]: Include stdlib.h.
87063         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87064         Undef __memchr, too.
87065         [!weak_alias]: Define __memchr to memchr.
87066
87067         * lib/regex.c: Update from libc.
87068         * lib/regex.h: Likewise.
87069         * lib/getopt1.c: Likewise.
87070         * lib/memcmp.c: Likewise.
87071
87072         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87073         Avoid using fseek, when possible -- it's broken by design.
87074         Patch by Ulrich Drepper.
87075
87076 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87077
87078         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87079         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87080         Giving in to popular pressure to shut up the compiler with casts.
87081
87082 2000-10-26  Jim Meyering  <meyering@lucent.com>
87083
87084         * lib/strftime.c: Update from libc.
87085
87086 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87087
87088         * regex.c: More `unsigned char' -> `re_char' changes.
87089         Also change several `int' into `re_wchar_t'.
87090         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87091         (PUSH_FAILURE_POINTER): Don't cast any more.
87092         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87093         We want GCC to complain, since this piece of code makes
87094         re_match non-reentrant, which *should* be fixed.
87095         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87096         (EXTEND_BUFFER): Use RETALLOC.
87097         (SET_LIST_BIT): Don't cast.
87098         (re_wchar_t): New type.
87099         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87100         that those two functions will always properly return.
87101         (IMMEDIATE_QUIT_CHECK): Cast to void.
87102         (analyse_first): Use recursion rather than an explicit stack.
87103         (re_compile_fastmap): Can't fail anymore.
87104         (re_search_2): Don't check re_compile_fastmap for failure.
87105         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87106         Now also sets the new value (passed in a new argument).
87107         (re_match_2_internal): Use it.
87108         Also, use a new var `reg' of type size_t when looping through regs
87109         rather than reuse the inappropriate `mcnt'.
87110
87111 2000-10-25  Jim Meyering  <meyering@lucent.com>
87112
87113         * lib/obstack.c: Update from libc.
87114
87115 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87116
87117         * regex.c (regex_compile): Change the way of handling a range from
87118         a char less than 256 to a char not less than 256.
87119
87120 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87121
87122         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87123         NT-Emacs only.
87124         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87125         so that re_search functions only quit when callers expect them to.
87126
87127 2000-10-23  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87130         wrong.  That set_locale call must not have any side effects.
87131         From Paul Eggert.
87132
87133 2000-10-22  Jim Meyering  <meyering@lucent.com>
87134
87135         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87136         [CYCLIC]: Remove now-unused definition.
87137
87138         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87139         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87140         Suggestion from Ulrich Drepper.
87141
87142 2000-10-21  Jim Meyering  <meyering@lucent.com>
87143
87144         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87145         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87146         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87147
87148 2000-10-21  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/dirname.c (memrchr): Declare if necessary.
87151         (dir_name): Remove the restriction that there be no
87152         trailing slashes.  Now, this code skips past them, effectively
87153         ignoring them.
87154         [TEST_DIRNAME] (main): New unit tests.
87155
87156         * lib/memrchr.c: New file from GNU libc.
87157         Undef __memrchr, too.
87158         [!weak_alias]: Define __memrchr to memrchr.
87159         Guard weak_alias use with `#ifdef weak_alias'.
87160
87161 2000-10-21  Jim Meyering  <meyering@lucent.com>
87162
87163         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87164         (dir_name): Use dir_name_r.
87165         * lib/dirname.h (dir_name_r): Declare it.
87166
87167 2000-10-17  Jim Meyering  <meyering@lucent.com>
87168
87169         * lib/quote.h (PARAMS): Define and use.
87170         Reported by Akim Demaille.
87171
87172         * lib/getopt.c: Update from libc.
87173
87174 2000-10-16  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87177         setlocale.
87178         From Jan Fedak.
87179
87180 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87181
87182         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87183
87184 2000-09-25  Jim Meyering  <meyering@lucent.com>
87185
87186         * lib/md5.h (rol): Define (from GnuPG).
87187
87188         * lib/sha.c: Give credit (GnuPG) where due.
87189         (M): Use rol rather than open-coding it.
87190         Add a FIXME comment.
87191
87192 2000-09-21  Jim Meyering  <meyering@lucent.com>
87193
87194         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87195         Reported by Michael Stone.
87196
87197 2000-09-20  Jim Meyering  <meyering@lucent.com>
87198
87199         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87200         (noinst_HEADERS): Add sha.h.
87201         Based on code from Scott G. Miller and from GnuPG.
87202
87203 2000-09-18  Jim Meyering  <meyering@lucent.com>
87204
87205         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87206         LIBS. Otherwise, everyone ends up linking with -lelf for some
87207         configurations.
87208         Reported by Mike Stone.
87209
87210 2000-09-15  Jim Meyering  <meyering@lucent.com>
87211
87212         * lib/regex.c: Update from libc.
87213
87214 2000-09-10  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/getopt.c (_getopt_internal): Update from glibc.
87217
87218 2000-09-09  Jim Meyering  <meyering@lucent.com>
87219
87220         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87221         think it should be used as a general replacement for isascii.
87222         * lib/fnmatch.c: Likewise.
87223         * lib/mbswidth.c: Likewise
87224         * lib/regex.c: Likewise.
87225
87226         Don't use atoi.
87227         * lib/userspec.c: Include sys/param.h and limits.h.
87228         Include xstrtol.h.
87229         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87230         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87231         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87232         UID, GID.  Check range.
87233
87234 2000-09-06  Jim Meyering  <meyering@lucent.com>
87235
87236         * lib/getopt.c (_getopt_internal): Update from glibc.
87237
87238 2000-08-30  Jim Meyering  <meyering@lucent.com>
87239
87240         * lib/strftime.c: Merge in changes from GNU libc.
87241
87242 2000-08-26  Jim Meyering  <meyering@lucent.com>
87243
87244         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87245         * m4/fpending.m4: New file.
87246
87247 2000-08-26  Jim Meyering  <meyering@lucent.com>
87248
87249         * lib/closeout.c: Include "__fpending.h".
87250         (close_stdout_status): Return right away if there's nothing to flush.
87251
87252         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87253         * lib/__fpending.c: New file.
87254         * lib/__fpending.h: New file.
87255
87256 2000-08-20  Jim Meyering  <meyering@lucent.com>
87257
87258         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87259         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87260         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87261
87262 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87263
87264         Improve fileutils installation on systems where running
87265         programs (like install) can't be unlinked.
87266         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87267         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87268
87269 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87270
87271         Standardize on "memory exhausted" instead of "Memory exhausted"
87272         or "virtual memory exhausted".
87273         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87274         "virtual memory exhausted".
87275         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87276         our own message.
87277         * lib/userspec.c (parse_user_spec): Likewise.
87278         * lib/bumpalloc.h: comment fix
87279         * lib/same.c, userspec.c: Include xalloc.h.
87280
87281         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87282         not char *const and pointing to a constant array.
87283         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87284         (xrealloc): Comment fix.
87285
87286         * lib/userspec.c (parse_user_spec):
87287         Don't translate a message until just before returning,
87288         to avoid unnecessary translation.
87289
87290 2000-08-07  Jim Meyering  <meyering@lucent.com>
87291
87292         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87293         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87294         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87295         getgroups.c, gethostname.c, getopt.h, group-member.c,
87296         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87297         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87298         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87299         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87300         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87301         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87302         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87303         yesno.c: Back out Copyright date changes for each file with no change
87304         this year.  This eases coordination with other programs using the same
87305         source code modules.  From Paul Eggert.
87306
87307 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87308
87309         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87310         not char, for compatibility with glibc 2.1.3 strftime.c.
87311
87312 2000-08-03  Greg McGary  <greg@mcgary.org>
87313
87314         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87315         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87316         (EXTEND_BUFFER): Use them.
87317
87318 2000-08-01  Jim Meyering  <meyering@lucent.com>
87319
87320         * lib/dirname.c (ISSLASH): Define.
87321         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87322         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87323         both `\' and `/' may be use as path separators.
87324         Based on a patch from Prashant TR.
87325
87326 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87327
87328         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87329         slot vector a constant, since it might get modified.
87330
87331 2000-07-31  Jim Meyering  <meyering@lucent.com>
87332
87333         * lib/xmalloc.c: Use `virtual memory exhausted', not
87334         `Memory exhausted'.
87335         * lib/obstack.c (print_and_abort): Likewise.
87336
87337 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87338
87339         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87340         buffer, so that the caller can always quote one small
87341         component of a "memory exhausted" message in slot 0.
87342         From a suggestion by Jim Meyering.
87343
87344 2000-07-30  Jim Meyering  <meyering@lucent.com>
87345
87346         * lib/makepath.c (make_path): Quote the other instance, too.
87347
87348         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87349         (STATIC_BUF_SIZE): Define.
87350         (quotearg_n_options): Use only statically allocated storage when
87351         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87352         than STATIC_BUF_SIZE.
87353
87354 2000-07-29  Jim Meyering  <meyering@lucent.com>
87355
87356         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87357         * lib/dirname.c (dir_name): Likewise.
87358
87359         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87360         `/'.
87361
87362         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87363         (dir_name): Assert that there are no trailing slashes.
87364
87365 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87366
87367         * lib/mbswidth.h (mbswidth): Add a flags argument.
87368         (mbswidth): New declaration.
87369         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87370         * lib/mbswidth.c (mbswidth): Add a flags argument.
87371         (mbsnwidth): New function.
87372
87373 2000-07-24  Jim Meyering  <meyering@lucent.com>
87374
87375         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87376
87377 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87378
87379         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87380
87381 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87382
87383         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87384         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87385         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87386         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87387         invoke multibyte primitives.
87388
87389 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/quotearg.c:
87392         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87393         so that mbstate_t is always defined.
87394
87395         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87396         be 1 in at least one GCC installation, and this configuration
87397         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87398         performance on hosts that have mbrtowc but have only unibyte
87399         locales, but I assume these hosts are rare.
87400
87401 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87402
87403         * lib/mbswidth.c (_XOPEN_SOURCE):
87404         Don't define; this causes problems on Solaris 7.
87405         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87406
87407 2000-07-23  Jim Meyering  <meyering@lucent.com>
87408
87409         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87410         too: getgrgid, getpwuid, getuid.
87411
87412 2000-07-23  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/basename.c (base_name): Add an assertion.
87415
87416 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87417
87418         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87419         shadow its mbsinit function.
87420
87421 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87422
87423         * lib/mbswidth.h: New file.
87424         * lib/mbswidth.c: New file.
87425         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87426         (noinst_HEADERS): Add mbswidth.h.
87427
87428 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87429
87430         * lib/config.charset: Add support for FreeBSD. Improve support for
87431         HP-UX and IRIX 6.
87432
87433 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87434
87435         * m4/mbswidth.m4: New file.
87436         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87437
87438 2000-07-15  Jim Meyering  <meyering@lucent.com>
87439
87440         * lib/makepath.c: Include quote.h.
87441         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87442         corresponding argument in a `quote (...)' call.
87443         Give better diagnostics.
87444
87445         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87446         (noinst_HEADERS): Add quote.h.
87447
87448         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87449         from tar's src/misc.c.
87450         * lib/quote.h: New file.  Prototypes for same.
87451
87452 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87453
87454         From a suggestion by Bruno Haible.
87455         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87456         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87457         to decide whether to define the BeOS workaround macro;
87458         this adjusts to the change to AC_MBSTATE_T.
87459
87460 2000-07-14  Jim Meyering  <meyering@lucent.com>
87461
87462         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87463         jm_AC_TYPE_UINTMAX_T.
87464
87465 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87466
87467         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87468
87469         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87470         quotearg_buffer_restyled): Add support for
87471         clocale_quoting_style.  Undo previous change to
87472         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87473         and "{RIGHT QUOTATION MARK}" msgids.
87474
87475 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87476
87477         From a suggestion by Bruno Haible.
87478         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87479         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87480         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87481         and mbstate_t, to a single-part test that simply defines mbstate_t.
87482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87483         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87484
87485 2000-07-10  Jim Meyering  <meyering@lucent.com>
87486
87487         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87488
87489         * m4/gnu-source.m4: Output to confdefs.h directly.
87490         Suggestion from Akim Demaille.
87491
87492 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87493
87494         The old behavior of quoting `like this' doesn't look good with
87495         newer, ISO-style fonts.  See:
87496         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87497
87498         Instead, quote "like this" by default.  Let the translator
87499         tailor the locale-specific quoting behavior by providing
87500         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87501
87502         * lib/quotearg.c (N_): New macro.
87503         (gettext_default): New function.
87504         (quotearg_buffer_restyled): Use
87505         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87506         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87507
87508 2000-07-09  Jim Meyering  <meyering@lucent.com>
87509
87510         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87511         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87512
87513         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87514         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87515
87516 2000-07-09  Jim Meyering  <meyering@lucent.com>
87517
87518         * lib/Most files: Update copyright dates to include 2000.
87519
87520 2000-07-08  Jim Meyering  <meyering@lucent.com>
87521
87522         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87523         if not defined.
87524         (xgethostname): Remove now-unnecessary #ifdef.
87525         Move declaration of `err' into loop where it's used.
87526
87527 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87528         and Bruno Haible  <haible@clisp.cons.org>
87529
87530         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87531         only if the test for an object-type mbstate_t fails.  This
87532         prevents us from mistakenly reporting that mbstate_t is a
87533         system object type after we "#define mbstate_t int" to work
87534         around its lack.
87535
87536 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87537         and Bruno Haible  <haible@clisp.cons.org>
87538
87539         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87540
87541 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87542
87543         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87544         to strerror_r.
87545         Include <ctype.h> for use of isalpha.
87546
87547 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87548
87549         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87550         by allocating a larger buffer. Test the gethostname return value for
87551         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87552         returns an error and ENAMETOOLONG isn't defined.
87553
87554 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87555
87556         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87557         dimension.
87558
87559 2000-07-04  Jim Meyering  <meyering@lucent.com>
87560
87561         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87562         of the deprecated AC_CHECKING.
87563
87564 2000-07-04  Jim Meyering  <meyering@lucent.com>
87565
87566         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87567         Reported by Bruno Haible.
87568
87569 2000-07-04  Jim Meyering  <meyering@lucent.com>
87570
87571         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87572         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87573         lacks mbrtowc.
87574
87575 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87576
87577         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87578         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87579
87580 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87581         and Bruno Haible  <haible@clisp.cons.org>
87582
87583         * lib/quotearg.c (mbrtowc):
87584         Assign to *pwc, and return 1 only if result is nonzero.
87585         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87586
87587 2000-07-03  Jim Meyering  <meyering@lucent.com>
87588
87589         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87590
87591 2000-07-03  Jim Meyering  <meyering@lucent.com>
87592
87593         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87594         This is necessary to get a definition of e.g., UTMP_FILE on
87595         HP-UX 10.20.
87596         From Bob Proulx.
87597
87598 2000-07-02  Jim Meyering  <meyering@lucent.com>
87599
87600         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87601
87602         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87603         AC_LIBOBJ(function_name).
87604         * m4/chown.m4: Likewise.
87605         * m4/fnmatch.m4: Likewise.
87606         * m4/ftruncate.m4: Likewise.
87607         * m4/getgroups.m4: Likewise.
87608         * m4/getline.m4: Likewise.
87609         * m4/group-member.m4: Likewise.
87610         * m4/jm-macros.m4: Likewise.
87611         * m4/lstat.m4: Likewise.
87612         * m4/malloc.m4: Likewise.
87613         * m4/memcmp.m4: Likewise.
87614         * m4/nanosleep.m4: Likewise.
87615         * m4/putenv.m4: Likewise.
87616         * m4/realloc.m4: Likewise.
87617         * m4/regex.m4: Likewise.
87618         * m4/stat.m4: Likewise.
87619         * m4/strftime.m4: Likewise.
87620
87621 2000-07-02  Jim Meyering  <meyering@lucent.com>
87622
87623         * lib/quotearg.c (mbstate_t): Don't define here.
87624
87625 2000-07-02  Jim Meyering  <meyering@lucent.com>
87626
87627         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87628
87629 2000-07-01  Jim Meyering  <meyering@lucent.com>
87630
87631         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87632
87633 2000-07-01  Jim Meyering  <meyering@lucent.com>
87634
87635         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87636         problem.
87637
87638 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87639
87640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87641         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87642
87643 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87644
87645         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87646         per change in ../m4/ls-mntd-fs.m4.
87647         (read_filesystem_list): Ignore symbolic links.
87648
87649 2000-06-29  Jim Meyering  <meyering@lucent.com>
87650
87651         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87652         for declaration of strcmp.
87653
87654         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87655
87656         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87657         Avoid warning by casting result to `char *' to remove `const'.
87658
87659 2000-06-28  Jim Meyering  <meyering@lucent.com>
87660
87661         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87662         included by quotearg.c, for which we perform this test.  From
87663         Bruno Haible.
87664
87665 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87666
87667         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87668         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87669         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87670
87671 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87672
87673         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87674
87675 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87676
87677         savedir now sets errno on failure and invokes xmalloc to get memory.
87678         Fix a couple of other minor bugs while we're at it.
87679
87680         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87681         (NAMLEN): Remove macro.
87682         (malloc, realloc): Remove decls.
87683         (stpcpy): Likewise.
87684         ("xalloc.h"): Include.
87685         (NAME_SIZE_DEFAULT): New macro.
87686         (savedir): Use xmalloc / xrealloc to allocate memory.
87687         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87688         Skip "" directory entries.
87689         Use strlen to calculate directory entry length, since the old method
87690         is rarely used these days and isn't worth supporting.
87691         Don't use a pointer after freeing it.
87692         Check for integer overflow when calculating allocation size.
87693         Use memcpy to copy entries, instead of stpcpy.
87694         Set errno properly when returning NULL.
87695         Check for readdir error.
87696
87697 2000-06-26  Jim Meyering  <meyering@lucent.com>
87698
87699         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87700
87701 2000-06-25  Jim Meyering  <meyering@lucent.com>
87702
87703         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87704         Linux header bug when _XOPEN_SOURCE is defined to 500.
87705
87706 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87707
87708         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87709         deficiency.
87710
87711 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87712
87713         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87714         Include xalloc.h.
87715         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87716
87717 2000-06-24  Jim Meyering  <meyering@lucent.com>
87718
87719         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87720         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87721         for which strerror does return char*, but which lacks a conveniently
87722         accessible declaration of the function.  If the compile-test says
87723         strerror_r doesn't work, then resort to a `run'-test that works on
87724         BeOS and segfaults on DEC Unix.
87725
87726 2000-06-24  Jim Meyering  <meyering@lucent.com>
87727
87728         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87729
87730 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87731
87732         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87734
87735 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87736
87737         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87738         (mbrtowc, mbstate_t): Define substitutes if
87739         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87740         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87741         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87742
87743 2000-06-23  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/afs.m4: Add missing AC_MSG_RESULT.
87746         Reported by Bruno Haible.
87747
87748         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87749         Suggestion from Bruno Haible.
87750
87751 2000-06-23  Jim Meyering  <meyering@lucent.com>
87752
87753         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87754
87755 2000-06-21  Jim Meyering  <meyering@lucent.com>
87756
87757         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87758
87759 2000-06-21  Jim Meyering  <meyering@lucent.com>
87760
87761         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87762         (noinst_HEADERS): Add getstr.h.
87763
87764         * lib/getline.c (getstr): Move into a separate file.
87765         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87766         the following changes: new parameter, delim2; both delim[12]
87767         parameters have type `int', not `char'.  The latter would lose
87768         with 8-bit delimiters.
87769         * lib/getstr.h: New file.
87770
87771 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87772
87773         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87774         than 1024, return a memory chunk of least possible size, instead
87775         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87776         Use free/xmalloc instead of xrealloc to avoid copying for very long
87777         paths.
87778
87779 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87780
87781         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87782         the empty string.
87783
87784 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87785
87786         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87787         address, not strdup.  Include <stdlib.h> and don't declare free().
87788
87789 2000-06-19  Jim Meyering  <meyering@lucent.com>
87790
87791         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87792
87793 2000-06-18  Jim Meyering  <meyering@lucent.com>
87794
87795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87796
87797         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87798         `checking whether...' message to be consistent with that of the
87799         lstat test.
87800
87801 2000-06-18  Jim Meyering  <meyering@lucent.com>
87802
87803         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87804         Besides, these days every porting target provides a mkdir function.
87805
87806         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87807         needed. (this snippet comes from src/system.h).
87808
87809 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87810
87811         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87812
87813 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87814
87815         * lib/human.c (adjust_value): New function.
87816         (human_readable_inexact): Apply rounding style even when
87817         printing approximate values.
87818
87819 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87820
87821         * lib/human.c (human_readable_inexact): Allow an input block
87822         size that is not a multiple of the output block size, and vice versa.
87823         Reported by Piergiorgio Sartor.
87824
87825 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87826
87827         * lib/getdate.y (get_date): Apply relative times after time
87828         zone indicator, not before.  Reported by Todd A. Jacobs.
87829
87830 2000-06-13  Jim Meyering  <meyering@lucent.com>
87831
87832         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87833
87834         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87835
87836 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87837
87838         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87839
87840 2000-06-12  Jim Meyering  <meyering@lucent.com>
87841
87842         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87843         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87844         optional argument.
87845         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87846         the optional argument, `lib'.
87847
87848 2000-06-08  Jim Meyering  <meyering@lucent.com>
87849
87850         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87851
87852 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87853
87854         Rewrite largefile configuration so that we don't need to run
87855         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87856         AC_CANONICAL_HOST in configure.in -- jmm]
87857
87858         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87859         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87860         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87861         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87862         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87863         All uses changed.
87864         Instead of inspecting the output of getconf, try to compile the
87865         test program without and with the macro definition.
87866         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87867         for getconf.  Instead, check for the needed flags by compiling
87868         test programs.
87869
87870 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87871
87872         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87873
87874 2000-06-04  Jim Meyering  <meyering@lucent.com>
87875
87876         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87877         SunOS 4.1.4 for which gid_t is an unsigned type.
87878
87879 2000-06-03  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87882         now that autoconf requires that.
87883
87884         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87885         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87886         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87887
87888 2000-06-03  Jim Meyering  <meyering@lucent.com>
87889
87890         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87891
87892 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87893
87894         * m4/glibc21.m4: New file.
87895         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87896
87897 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87898
87899         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87900         newer, don't install charset.alias.
87901         * lib/config.charset: Change the Linux/glibc rules so they become empty
87902         on glibc-2.1 or newer.
87903
87904 2000-06-02  Jim Meyering  <meyering@lucent.com>
87905
87906         * lib/mountlist.c: Back out last change.  Instead, do this...
87907         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87908         me_dummy member using the same `ignore'-testing code.
87909         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87910         fs_type strings.
87911         From Mark D. Roth.
87912
87913 2000-05-29  Jim Meyering  <meyering@lucent.com>
87914
87915         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87916         mounts with the `ignore' attribute.  Based on a patch from
87917         Mark D. Roth.
87918
87919 2000-05-28  Jim Meyering  <meyering@lucent.com>
87920
87921         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87922         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87923         * m4/stat.m4: Likewise.
87924         * m4/lstat.m4: Likewise.
87925         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87926
87927         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87928         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87929
87930 2000-05-26  Jim Meyering  <meyering@lucent.com>
87931
87932         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87933
87934 2000-05-24  Jim Meyering  <meyering@lucent.com>
87935
87936         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87937         autoconf requires that.
87938         * m4/lib-check.m4: Likewise.
87939         * m4/jm-macros.m4: Likewise.
87940         * m4/strftime.m4: Likewise.
87941
87942         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87943         AC_CHECK_DECLS, now that autoconf requires that.
87944
87945 2000-05-22  Jim Meyering  <meyering@lucent.com>
87946
87947         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87948         * m4/lstat.m4: Likewise.
87949
87950 2000-05-22  Jim Meyering  <meyering@lucent.com>
87951
87952         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87953
87954 2000-05-20  Jim Meyering  <meyering@lucent.com>
87955
87956         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87957         (jm_PREREQ): Use it.
87958
87959 2000-05-18  Jim Meyering  <meyering@lucent.com>
87960
87961         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87962         back, too, since it may have been modified by allocate_entry.
87963         (hash_delete): Rewrite to use neither the assignment operator
87964         nor the comma operator in an if-expression.
87965
87966 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87967
87968         * lib/closeout.c:
87969         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87970         Remove; no longer needed.
87971         "quotearg.h": Add include.
87972         (file_name): Do not bother to explicitly initialize to NULL; it's less
87973         efficient on some hosts.
87974         (close_stdout_status): Remove test as to whether stdout was already
87975         closed; it breaks for the case "echo x | sort >&-".
87976         Quote file name colons.
87977         Do not assume that _("write error") lacks format strings.
87978
87979 2000-05-15  Jim Meyering  <meyering@lucent.com>
87980
87981         * lib/version-etc.c (version_etc_copyright): Update the copyright
87982         string used in all --version output.
87983
87984 2000-05-14  Jim Meyering  <meyering@lucent.com>
87985
87986         * lib/closeout.c (close_stdout_set_file_name): New function.
87987         (close_stdout_status): Use new file-scoped global.
87988         Return right away if fstat says the stdout file descriptor is invalid.
87989         * lib/closeout.h (close_stdout_set_file_name): Declare.
87990
87991 2000-05-10  Jim Meyering  <meyering@lucent.com>
87992
87993         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87994         (close_stdout_set_status): New function.
87995         * lib/closeout.h (close_stdout_set_status): Declare.
87996
87997 2000-05-09  Jim Meyering  <meyering@lucent.com>
87998
87999         * m4/gettext.m4: Rename this...
88000         * m4/libintl.m4: ...to this.
88001
88002 2000-05-08  Jim Meyering  <meyering@lucent.com>
88003
88004         * lib/long-options.c: Don't include closeout.h.
88005         (parse_long_options): Don't call close_stdout for --version.
88006
88007 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88008
88009         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88010         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88011         2.1.3 bug.  This avoids a clash when files like regex.c define
88012         _GNU_SOURCE.
88013
88014 2000-05-06  Jim Meyering  <meyering@lucent.com>
88015
88016         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88017         (AC_REPLACE_FUNCS): Add strnlen.
88018
88019         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88020         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88021
88022         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88023         AC_SEARCH_LIBS call for nanosleep.
88024         (LIB_NANOSLEEP): Set and AC_SUBST.
88025
88026 2000-05-06  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/strnlen.c: Undefine __strnlen and strnlen.
88029         [!weak_alias]: Define __strnlen to strnlen.
88030
88031         * lib/atexit.c: New file, from libiberty.
88032
88033 2000-05-06  Jim Meyering  <meyering@lucent.com>
88034
88035         * lib/closeout.c (close_stdout_status): Also check for errors on the
88036         stderr stream.
88037
88038 2000-05-05  Jim Meyering  <meyering@lucent.com>
88039
88040         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88041         AC_SEARCH_LIBS call for clock_gettime.
88042         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88043
88044         * m4/search-libs.m4: Update from autoconf.
88045
88046         su doesn't work on Solaris 2.6.
88047         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88048         <shadow.h>.  Reported by Dragos Harabor.
88049
88050 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88051
88052         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88053         memcpy instead of xmalloc, xrealloc, path_concat.
88054         (locale_charset): Treat empty environment variables as absent.
88055         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88056
88057 2000-05-04  Jim Meyering  <meyering@lucent.com>
88058
88059         * lib/getopt.c: Update from glibc.
88060         * lib/obstack.c: Likewise.
88061         * lib/obstack.h: Likewise.
88062         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88063         file
88064
88065         * lib/regex.h: Likewise.
88066         * lib/strndup.c: Likewise.
88067         * lib/strnlen.c: New file, from glibc.
88068
88069 2000-05-03  Jim Meyering  <meyering@lucent.com>
88070
88071         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88072
88073 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88074
88075         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88076         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88077         compile-time test, rather than inspecting host and OS, to
88078         decide whether to define _LARGEFILE_SOURCE.
88079
88080 2000-05-01  Jim Meyering  <meyering@lucent.com>
88081
88082         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88083
88084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88085         Based on a patch from Bruno Haible.
88086
88087 2000-05-01  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88090
88091 2000-04-29  Jim Meyering  <meyering@lucent.com>
88092
88093         * lib/path-concat.c: Declare strdup only if it's not defined.
88094         * lib/canon-host.c: Likewise.
88095
88096 2000-04-28  Jim Meyering  <meyering@lucent.com>
88097
88098         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88099         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88100         is included first, then limits.h is included by locale.h by libintl.h.
88101         From John David Anglin.
88102
88103 2000-04-25  Jim Meyering  <meyering@lucent.com>
88104
88105         * lib/makepath.c (S_IRWXUGO): Define.
88106         (make_path): Always perform explicit chmod if MODE specifies any
88107         of the `special' permission bits.  Prompted by a bug report against
88108         install from Mate Wierdl and Joost van Baal.
88109
88110 2000-04-18  Jim Meyering  <meyering@lucent.com>
88111
88112         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88113         (jm_PREREQ): Use it.
88114
88115 2000-04-18  Jim Meyering  <meyering@lucent.com>
88116
88117         * lib/README: New file.
88118
88119         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88120         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88121
88122 2000-04-17  Jim Meyering  <meyering@lucent.com>
88123
88124         Get it right :-)
88125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88126         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88127         Suggestion from Akim Demaille.
88128
88129 2000-04-17  Jim Meyering  <meyering@lucent.com>
88130
88131         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88132         the definition of it to rpl_strftime also defined-away the system's
88133         declaration.
88134
88135 2000-04-15  Jim Meyering  <meyering@lucent.com>
88136
88137         Use `C' to denote so-called `contiguous' files, the same way
88138         that tar does.
88139         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88140         (ftypelet): Use S_ISCTG.
88141         From Michael Deutschmann.
88142
88143 2000-04-14  Jim Meyering  <meyering@lucent.com>
88144
88145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88146         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88147         clobbered.
88148
88149 2000-04-14  Jim Meyering  <meyering@lucent.com>
88150
88151         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88152
88153 2000-04-13  Jim Meyering  <meyering@lucent.com>
88154
88155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88156         AH_VERBATIM to insert required #ifndef into config.h.in.
88157         Suggestion from Akim Demaille.
88158
88159 2000-04-12  Jim Meyering  <meyering@lucent.com>
88160
88161         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88162         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88163         Christian Krackowizer.
88164
88165         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88166         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88167         (AC_SYS_LARGEFILE): Require.
88168         (AM_C_PROTOTYPES): Require.
88169
88170 2000-04-08  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88173         names don't conflict.  Reported by Eli Zaretskii.
88174
88175 2000-04-07  Jim Meyering  <meyering@lucent.com>
88176
88177         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88178         sys/types.h, to work around system header problems on AIX 3.2.5.
88179         From Bruno Haible.
88180
88181 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88182
88183         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88184         bug.  Deal with the different error behavior of Irix iconv.
88185
88186 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88187
88188         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88189         IRIX if the installer said otherwise.
88190
88191 2000-04-05  Jim Meyering  <meyering@lucent.com>
88192
88193         Portability tweaks required for ultrix4.3.
88194         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88195         (jm_CHECK_DECLS): Add getutent to the list of functions.
88196         (_jm_DECL_HEADERS): Add utmpx.h.
88197         From John David Anglin.
88198
88199         * m4/strftime.m4: Back out the 2000-04-02 change.
88200         Instead of that change, simply undefine putenv in the test program.
88201
88202 2000-04-05  Jim Meyering  <meyering@lucent.com>
88203
88204         Portability tweaks required for ultrix4.3.
88205         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88206         getutent.
88207         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88208         * lib/canon-host.c: Declare strdup.
88209         * lib/path-concat.c: Likewise.
88210         From John David Anglin.
88211
88212 2000-04-04  Jim Meyering  <meyering@lucent.com>
88213
88214         Be more DOS 8.3-friendly.
88215         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88216         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88217         * lib/Makefile.am: Reflect renaming.
88218         Reported by Eli Zaretskii.
88219
88220         Use a temporary file name that won't clash with `charset.alias'
88221         in the DOS 8.3 name space.
88222         * lib/Makefile.am (charset_tmp): Define.
88223         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88224         (uninstall-local): Likewise.
88225         Reported by Eli Zaretskii.
88226
88227 2000-04-03  Jim Meyering  <meyering@lucent.com>
88228
88229         * m4/gettext.m4: Fix typo in comment.
88230
88231         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88232         textutils/configure.in).  Suggestion from Paul Eggert.
88233         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88234
88235 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88236
88237         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88238         variable in the shell rather than using putenv, which isn't
88239         portable.  This avoids the configure-time inter-test dependency
88240         on the potentially-renamed putenv function.
88241
88242 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88243
88244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88245         before checking struct stat.st_blksize, so that
88246         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88247
88248 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88249
88250         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88251         since strftime.c uses HAVE_STRFTIME to decide whether to use
88252         the underlying strftime.
88253
88254 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88255
88256         * lib/time/strftime.c (my_strftime): Make sure we call the system
88257         strftime, not ourselves, when invoking the underlying strftime.
88258
88259 2000-03-24  Jim Meyering  <meyering@lucent.com>
88260
88261         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88262         (charset_alias): Define.
88263         (install-exec-local): Factor out common code.
88264         (uninstall-local): Split lines longer than 80.
88265         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88266         (SUFFIXES): Define.
88267         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88268         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88269
88270 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88271
88272         * lib/config.charset: Output a line containing "Packages using this
88273         file".
88274         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88275         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88276         ref-del.sed): New rules.
88277
88278 2000-03-17  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88281         Otherwise, include <strings.h>
88282
88283 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88284
88285         * lib/unicodeio.c (utf8_wctomb): New function.
88286         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88287         format instead of in UCS-4 with platform dependent endianness.
88288
88289 2000-03-10  Jim Meyering  <meyering@lucent.com>
88290
88291         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88292         From Marco Franzen.
88293
88294 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88295
88296         * lib/savedir.c (savedir): Work even if directory size is
88297         negative; this can happen with some screwy NFS configurations.
88298
88299 2000-03-06  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88302         if it's NULL (because we ran out of memory).  From Bruno Haible.
88303
88304 2000-03-05  Jim Meyering  <meyering@lucent.com>
88305
88306         * lib/localcharset.c ("path-concat.h"): Include.
88307         (get_charset_aliases): Use path_concat instead of ANSI string
88308         concatenation.
88309
88310         * lib/unicodeio.h (PARAMS): Define.
88311         Use it to guard prototype.
88312
88313 2000-03-04  Jim Meyering  <meyering@lucent.com>
88314
88315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88316         for lib/localcharset.c.
88317
88318 2000-03-04  Jim Meyering  <meyering@lucent.com>
88319
88320         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88321         installing into it.
88322         (uninstall-local): Uncomment this rule so `make distcheck' works
88323         once again.
88324
88325         * lib/unicodeio.c (<errno.h>): Include it.
88326         (errno): Declare if not defined.
88327
88328         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88329
88330         * lib/config.charset: New version, incorporating remarks from a linux
88331         i18n mailing list.  From Bruno Haible.
88332
88333 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88334
88335         * m4/codeset.m4: New file.
88336         * m4/iconv.m4: New file.
88337         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88338
88339 2000-03-03  Jim Meyering  <meyering@lucent.com>
88340
88341         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88342
88343 2000-03-02  Jim Meyering  <meyering@lucent.com>
88344
88345         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88346         the messages come out on separate lines.
88347
88348         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88349         rather than jm_CHECK_DECLARATIONS.
88350         * m4/decl.m4: Remove now-unused file.
88351
88352         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88353         geteuid.
88354
88355 2000-03-02  Jim Meyering  <meyering@lucent.com>
88356
88357         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88358
88359 2000-03-01  Jim Meyering  <meyering@lucent.com>
88360
88361         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88362         * lib/unicodeio.c: Likewise.
88363
88364 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88365
88366         * lib/config.charset: New file.
88367         * lib/localcharset.c: New file.
88368         * lib/unicodeio.h, lib/unicodeio.c: New files.
88369         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88370         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88371         (noinst_HEADERS): Add unicodeio.h.
88372         (all-local, install-exec-local, charset.alias): New targets.
88373
88374 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88375
88376         * lib/quotearg.c (ALERT_CHAR): New macro.
88377         (quotearg_buffer_restyled): Use it.
88378
88379 2000-02-27  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/check-decl.m4: Add getenv to the list.
88382
88383 2000-02-27  Jim Meyering  <meyering@lucent.com>
88384
88385         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88386         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88387
88388         * lib/backupfile.c: Guard inclusion of stdlib.h with
88389         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88390         Declare malloc if needed.
88391
88392         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88393         `#ifndef HAVE_DECL..'
88394         now that autoconf always defines the HAVE_DECL_ symbols.
88395         * lib/human.c: Likewise.
88396         * lib/same.c: Likewise.
88397         * lib/strtoumax.c: Likewise.
88398
88399         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88400         declaration check was not run.
88401         * lib/hash.c: Likewise.
88402         * lib/human.c: Likewise.
88403         * lib/same.c: Likewise.
88404         * lib/strtoumax.c: Likewise.
88405
88406         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88407         `.', then first look up the entire `.'-containing string as a login
88408         name.
88409
88410 2000-02-23  Jim Meyering  <meyering@lucent.com>
88411
88412         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88413         in place of my hack.
88414
88415 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88416
88417         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88418         (textint): New typedef.
88419         (parser_control): Member year changed from int to textint.
88420         All uses changed.
88421         (YYSTYPE): Removed; replaced by %union with int and textint members.
88422         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88423         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88424         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88425         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88426         (date, number, to_year): Use width of number in digits, not its value,
88427         to determine whether it's a 2-digit year, or a 2-digit time.
88428         (yylex): Store number of digits of numeric tokens.
88429         Reported by John Kendall.
88430
88431         (parser_control): Changed from struct parser_control to typedef (for
88432         consistency).  All uses changed.
88433
88434         (tID): Removed; not used.
88435         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88436
88437 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88440         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88441
88442 2000-02-12  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/userspec.c (ISDIGIT): Define it.
88445         (isdigit): Remove definition.
88446         (is_number): Use ISDIGIT, not isdigit.
88447         <libintl.h>: Include.
88448         (_ and N_): Define.
88449         (parse_user_spec): Mark translatable strings.
88450
88451 2000-02-10  Jim Meyering  <meyering@lucent.com>
88452
88453         With these changes, nanosleep.[ch] are finally enough like the other
88454         lib/* replacement files to compile on a few more losing systems.
88455
88456         * lib/nanosleep.h: Don't include config.h.
88457         Remove prototype from declaration of nanosleep.
88458         (PARAMS): Remove now-unneeded definition.
88459         * lib/nanosleep.c: #undef nanosleep.
88460         (rpl_nanosleep): Rename from nanosleep.
88461
88462 2000-02-10  Jim Meyering  <meyering@lucent.com>
88463
88464         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88465         gnu_nanosleep to rpl_nanosleep.
88466
88467 2000-02-09  Jim Meyering  <meyering@lucent.com>
88468
88469         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88470         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88471
88472 2000-02-08  Akim Demaille  <akim@epita.fr>
88473
88474         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88475         `[' and `]' and remove uses of `changequote'.
88476         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88477         (AC_SYS_LARGEFILE): Likewise.
88478         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88479         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88480         of changequote.
88481         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88482         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88483         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88484         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88485
88486 2000-02-05  Jim Meyering  <meyering@lucent.com>
88487
88488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88489         Remove explicit use of AC_HEADER_TIME.  It is required by
88490         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88491         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88492         in autoconf whereby the expansion of the latter ended up preceding
88493         the expansion of its prerequisite, AC_HEADER_TIME.
88494         Reported by Volker Borchert.
88495
88496 2000-02-03  Jim Meyering  <meyering@lucent.com>
88497
88498         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88499
88500 2000-02-03  Jim Meyering  <meyering@lucent.com>
88501
88502         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88503         rather than with `#if HAVE_UTMPNAME'.
88504
88505 2000-02-02  Jim Meyering  <meyering@lucent.com>
88506
88507         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88508         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88509         Reported by Eli Zaretskii.
88510
88511 2000-02-01  Jim Meyering  <meyering@lucent.com>
88512
88513         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88514
88515 2000-01-31  Jim Meyering  <meyering@lucent.com>
88516
88517         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88518         functions.  Add the time.h and sys/time.h headers along with the
88519         AC_REQUIRE'ment of AC_HEADER_TIME.
88520
88521 2000-01-31  Jim Meyering  <meyering@lucent.com>
88522
88523         * lib/nanosleep.h (nanosleep): Guard declaration with
88524         `#if ! HAVE_DECL_NANOSLEEP'.
88525         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88526         the declaration in that vendor's sys/timers.h.
88527         Reported by Christian Krackowizer.
88528
88529         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88530         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88531         (ISPRINT): Likewise.
88532         Reported by Tom Tromey.
88533
88534 2000-01-30  Jim Meyering  <meyering@lucent.com>
88535
88536         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88537
88538         * m4/prereq.m4 (utmp_includes): Define.
88539         Check for ut_user and ut_name members in both struct utmpx
88540         and struct utmp.
88541
88542 2000-01-30  Jim Meyering  <meyering@lucent.com>
88543
88544         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88545         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88546         header files where only utmpx.ut_user is declared.
88547
88548         * lib/readutmp.h (UT_USER): Define.
88549
88550 2000-01-29  Jim Meyering  <meyering@lucent.com>
88551
88552         * m4/lib-check.m4: New file containing library-related checks from
88553         fileutils and sh-utils (textutils had none).
88554
88555 2000-01-28  Jim Meyering  <meyering@lucent.com>
88556
88557         * m4/perl.m4: Change format of warning message to look more like that
88558         from the missing script.  Suggestion from François Pinard.
88559
88560 2000-01-25  Jim Meyering  <meyering@lucent.com>
88561
88562         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88563         well as time.h in the compile check.
88564         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88565         Fix typo in cross-compiling case: s/yes/no/.
88566
88567 2000-01-23  Jim Meyering  <meyering@lucent.com>
88568
88569         * m4/jm-macros.m4: Move df-related tests here from
88570         fileutils/configure.in
88571
88572         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88573         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88574
88575         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88576         s/space/ac_fsusage_space/.
88577         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88578
88579         * m4/ftruncate.m4: New file (derived from part of
88580         fileutils/configure.in).
88581         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88582         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88583
88584         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88585         AC_SUBST these here, rather than just in sh-util/configure.in, so
88586         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88587         all the same.
88588         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88589         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88590         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88591         (AC_SUBST(POW_LIBM)): Likewise.
88592         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88593
88594 2000-01-23  Jim Meyering  <meyering@lucent.com>
88595
88596         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88597         obstack.c.
88598
88599 2000-01-22  Jim Meyering  <meyering@lucent.com>
88600
88601         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88602
88603         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88604
88605         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88606         configure.in
88607         (AC_CHECK_HEADERS): Likewise for sh-utils.
88608         (AC_CHECK_HEADERS): Likewise for textutils.
88609         Merge the three lists of headers.
88610
88611         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88612         from fileutils' configure.in.
88613
88614         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88615         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88616         check-decl.m4.
88617
88618         * m4/check-decl.m4: Use #if rather than #ifdef.
88619         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88620         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88621         (_jm_DECL_HEADERS): Define new function.
88622         (jm_CHECK_DECLARATIONS): Require it.
88623
88624 2000-01-22  Jim Meyering  <meyering@lucent.com>
88625
88626         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88627         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88628         Required for some AIX systems.  Reported by Christian Krackowizer.
88629         [TESTING] (main): New function.
88630
88631         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88632         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88633         letters.
88634
88635         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88636         iswprint.
88637
88638         * lib/strverscmp.c (ISDIGIT): Define.
88639         (strverscmp): Use ISDIGIT, not isdigit.
88640
88641 2000-01-19  Jim Meyering  <meyering@lucent.com>
88642
88643         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88644         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88645         defines `struct timespec' in <sys/time.h>
88646
88647         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88648         Thanks to Akim for explaining.
88649
88650 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88651
88652         * lib/nanosleep.c (nanosleep):
88653         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88654         POSIX.1 doesn't require SA_INTERRUPT and some systems
88655         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88656         it's been part of POSIX.1 since day 1 (in 1988).
88657
88658 2000-01-17  Jim Meyering  <meyering@lucent.com>
88659
88660         * lib/interlock: Remove unused file.  Reported by François Pinard.
88661
88662 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88663
88664         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88665         alert, backslash, formfeed, and vertical tab unnecessarily in
88666         shell quoting style.
88667
88668 2000-01-16  Jim Meyering  <meyering@lucent.com>
88669
88670         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88671         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88672         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88673         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88674
88675 2000-01-16  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88678         because the latter didn't work.
88679
88680 2000-01-15  Jim Meyering  <meyering@lucent.com>
88681
88682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88683         (AC_REPLACE_FUNCS): Add memcpy and memset.
88684         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88685         Add strpbrk.
88686         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88687
88688 2000-01-12  Jim Meyering  <meyering@lucent.com>
88689
88690         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88691         (jm_PREREQ): Use it.
88692         (jm_PREREQ_READUTMP): New macro.
88693         (jm_PREREQ): Use it.
88694
88695 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88696
88697         Quote multibyte characters correctly.
88698         * m4/c-bs-a.m4: New file.
88699         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88700         (jm_PREREQ): Use it.
88701
88702 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88703
88704         * m4/uintmax_t.m4: Port to autoconf 2.13.
88705
88706 2000-01-08  Jim Meyering  <meyering@ascend.com>
88707
88708         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88709         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88710
88711 2000-01-04  Jim Meyering  <meyering@ascend.com>
88712
88713         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88714         jm_STRUCT_DIRENT_D_TYPE.
88715         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88716         jm_STRUCT_DIRENT_D_INO.
88717         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88718         jm_STRUCT_UTIMBUF.
88719         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88720         renamings.
88721         * m4/utime.m4: Likewise.
88722
88723         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88724         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88725
88726 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88727
88728         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88729         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88730
88731 2000-01-02  Jim Meyering  <meyering@ascend.com>
88732
88733         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88734         remember if this is necessary.
88735
88736 1999-12-26  Jim Meyering  <meyering@ascend.com>
88737
88738         * m4/jm-macros.m4: Use it here.
88739         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88740
88741 1999-12-23  Jim Meyering  <meyering@ascend.com>
88742
88743         * m4/jm-macros.m4: Check for clock_gettime (moved from
88744         fileutils/configure.in)
88745         Check for gettimeofday.
88746
88747 1999-12-20  Jim Meyering  <meyering@ascend.com>
88748
88749         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88750         autoconf-2.14a-1999-12-20.
88751
88752 1999-12-19  Jim Meyering  <meyering@ascend.com>
88753
88754         * m4/lstat-slash.m4: New file.
88755         * m4/jm-macros.m4: Use the new macro:
88756         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88757
88758 1999-12-07  Jim Meyering  <meyering@ascend.com>
88759
88760         * m4/perl.m4: Require that File::Compare be available, too.
88761         Too many systems seem to lack it.
88762
88763         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88764         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88765
88766 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88767
88768         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88769         problem with the QNX 4.25 shell, which doesn't propagate exit
88770         status of failed commands inside shell assignments.
88771
88772 1999-11-17  Jim Meyering  <meyering@ascend.com>
88773
88774         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88775
88776 1999-11-07  Jim Meyering  <meyering@ascend.com>
88777
88778         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88779
88780 1999-11-06  Jim Meyering  <meyering@ascend.com>
88781
88782         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88783         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88784
88785 1999-11-05  Jim Meyering  <meyering@ascend.com>
88786
88787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88788         configure.in of textutils, fileutils, and sh-utils into this one
88789         (shared between those packages) file.
88790         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88791         AC_STRUCT_ST_BLKSIZE.
88792
88793 1999-11-03  Jim Meyering  <meyering@ascend.com>
88794
88795         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88796         of AC_CHECK_TYPE checks includes unistd.h.
88797         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88798         Suggestion from Akim Demaille.
88799
88800 1999-10-30  Jim Meyering  <meyering@ascend.com>
88801
88802         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88803         m4-quoted string.
88804         * m4/ls-mntd-fs.m4: Likewise.
88805         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88806         * m4/jm-winsz1.m4: Likewise.
88807
88808         * m4/const.m4: Remove file, since the fix made it into the experimental
88809         version of autoconf.
88810         * m4/mktime.m4: Likewise.
88811
88812         * m4/check-type.m4: Remove file, now that the latest version of
88813         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88814
88815         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88816         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88817         AC_CHECK_TYPE.
88818
88819 1999-10-04  Jim Meyering  <meyering@ascend.com>
88820
88821         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88822
88823 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88824
88825         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88826         2.95.1 bug with HP-UX 10.20.
88827
88828 1999-09-17  Jim Meyering  <meyering@ascend.com>
88829
88830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88831         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88832         due to missing strdup (against sh-utils-2.0).
88833
88834 1999-08-29  Jim Meyering  <meyering@ascend.com>
88835
88836         * m4/jm-macros.m4: Require jm_BISON.
88837         * m4/bison.m4: New file.
88838
88839 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88840
88841         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88842         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88843
88844 1999-08-05  Jim Meyering  <meyering@ascend.com>
88845
88846         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88847         to avoid conflicts with `conftest' on 8+3 filesystems.
88848         Suggestion from Eli Zaretskii.
88849
88850 1999-08-04  Jim Meyering  <meyering@ascend.com>
88851
88852         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88853         fileutils and sh-utils (textutils's getline test was inadequate).
88854         (AM_FUNC_GETLINE): Run this test.
88855         (AC_CHECK_FUNCS): Check for getdelim.
88856         Reported by Bob Proulx.
88857
88858 1999-08-02  Jim Meyering  <meyering@ascend.com>
88859
88860         * m4/jm-macros.m4: Add a comment.
88861
88862 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88863
88864         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88865         <inttypes.h> defines strtoumax as a macro (and not as a
88866         function).
88867
88868 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88869
88870         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88871         that we can shift, multiply and divide unsigned long long
88872         values; Ultrix cc can't do it.
88873
88874 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88875
88876         * m4/mktime.m4: New file, which is a preview of what should appear
88877         in the next public autoconf release.
88878
88879 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88880
88881         * m4/lfs.m4: Remove this file.
88882         * m4/largefile.m4: New file.  It contains the old contents of
88883         lfs.m4, except that all names with prefix AC_LFS have been
88884         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88885         compatible with future autoconf versions.  Also, some minor m4
88886         quoting problems have been fixed.
88887
88888 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88889
88890         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88891         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88892         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88893         and simplify the shell code.
88894
88895 1999-08-01  Jim Meyering  <meyering@ascend.com>
88896
88897         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88898         m4.
88899
88900 1999-07-20  Jim Meyering  <meyering@ascend.com>
88901
88902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88903
88904 1999-07-15  Jim Meyering  <meyering@ascend.com>
88905
88906         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88907
88908 1999-05-22  Jim Meyering  <meyering@ascend.com>
88909
88910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88911
88912 1999-05-20  Jim Meyering  <meyering@ascend.com>
88913
88914         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88915         Add a colon after each `then' in case $4 is empty.
88916
88917 1999-05-16  Jim Meyering  <meyering@ascend.com>
88918
88919         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88920
88921 1999-05-10  Jim Meyering  <meyering@ascend.com>
88922
88923         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88924
88925         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88926         AC_FUNC_MKTIME.
88927
88928 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88929
88930         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88931
88932 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88933
88934         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88935         not CPPFLAGS, so that linking works correctly in IRIX.
88936
88937 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88938
88939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88940
88941 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88942
88943         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88944         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88945         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88946         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88947         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88948
88949         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88950
88951 1999-04-20  Jim Meyering  <meyering@ascend.com>
88952
88953         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88954         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88955         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88956
88957 1999-04-18  Jim Meyering  <meyering@ascend.com>
88958
88959         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88960         * m4/jm-macros.m4: Use it.
88961
88962 1999-04-06  Jim Meyering  <meyering@ascend.com>
88963
88964         * m4/strftime.m4: Remove test for %f.
88965
88966 1999-03-29  Jim Meyering  <meyering@ascend.com>
88967
88968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88969         superset of the AC_TYPE_* checks in the textutils, fileutils,
88970         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88971         AC_TYPE_PID_T.
88972
88973 1999-03-28  Jim Meyering  <meyering@ascend.com>
88974
88975         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88976         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88977         replaced e.g., in the *.sh files of the sh-utils.
88978
88979 1999-03-20  Jim Meyering  <meyering@ascend.com>
88980
88981         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88982         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88983         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88984
88985 1999-03-19  Jim Meyering  <meyering@ascend.com>
88986
88987         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88988
88989 1999-03-12  Jim Meyering  <meyering@ascend.com>
88990
88991         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88992
88993 1999-03-07  Jim Meyering  <meyering@ascend.com>
88994
88995         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88996         declared.
88997
88998 1999-02-17  Jim Meyering  <meyering@ascend.com>
88999
89000         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89001         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89002
89003 1999-02-07  Jim Meyering  <meyering@ascend.com>
89004
89005         * m4/group-member.m4: New file -- extracted from sh-utils'
89006         configure.in.
89007
89008         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89009         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89010
89011 1999-02-06  Jim Meyering  <meyering@ascend.com>
89012
89013         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89014         * m4/fnmatch.m4: Likewise.
89015         * m4/getgroups.m4: Likewise.
89016         * m4/lstat.m4: Likewise.
89017         * m4/malloc.m4: Likewise.
89018         * m4/putenv.m4: Likewise.
89019         * m4/realloc.m4: Likewise.
89020         * m4/regex.m4: Likewise.
89021         * m4/stat.m4: Likewise.
89022         * m4/strftime.m4: Likewise.
89023         Suggestion from Alain Magloire.
89024
89025         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89026         * m4/fnmatch.m4: Likewise.
89027         * m4/getgroups.m4: Likewise.
89028         * m4/getline.m4: Likewise.
89029         * m4/lstat.m4: Likewise.
89030         * m4/malloc.m4: Likewise.
89031         * m4/memcmp.m4: Likewise.
89032         * m4/putenv.m4: Likewise.
89033         * m4/realloc.m4: Likewise.
89034         * m4/regex.m4: Likewise.
89035         * m4/stat.m4: Likewise.
89036         * m4/strftime.m4: Likewise.
89037         Suggestion from Alain Magloire.
89038
89039         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89040         an argument.
89041
89042         * m4/regex.m4: Add a run-time Test for proper operation of
89043         re_compile_pattern.
89044
89045 1999-01-31  Jim Meyering  <meyering@ascend.com>
89046
89047         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89048
89049 1999-01-30  Jim Meyering  <meyering@ascend.com>
89050
89051         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89052
89053         * m4/jm-mktime.m4: Make this a wrapper around the official
89054         AM_FUNC_MKTIME rather than my private copy, now that the official one
89055         is up to date.
89056         * m4/mktime.m4: Remove file.
89057
89058         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89059         * m4/uptime.m4: Likewise.
89060         * m4/uintmax_t.m4: Likewise.
89061
89062 1999-01-28  Jim Meyering  <meyering@ascend.com>
89063
89064         * m4/jm-macros.m4: Use jm_AFS.
89065         * m4/afs.m4: New file (from fileutils' configure.in).
89066
89067         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89068         * m4/chown.m4: Likewise.
89069         * m4/d-ino.m4: Likewise.
89070         * m4/d-type.m4: Likewise.
89071         * m4/fnmatch.m4: Likewise.
89072         * m4/getgroups.m4: Likewise.
89073         * m4/gettext.m4: Likewise.
89074         * m4/jm-mktime.m4: Likewise.
89075         * m4/jm-winsz2.m4: Likewise.
89076         * m4/lcmessage.m4: Likewise.
89077         * m4/ls-mntd-fs.m4: Likewise.
89078         * m4/malloc.m4: Likewise.
89079         * m4/memcmp.m4: Likewise.
89080         * m4/putenv.m4: Likewise.
89081         * m4/realloc.m4: Likewise.
89082         * m4/st_mtim.m4: Likewise.
89083         * m4/strftime.m4: Likewise.
89084
89085 1999-01-16  Jim Meyering  <meyering@ascend.com>
89086
89087         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89088         (ARGMATCH_DIE_DECL): Define.
89089
89090 1999-01-12  Jim Meyering  <meyering@ascend.com>
89091
89092         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89093         Reported by Lars Hecking.
89094
89095 1999-01-10  Jim Meyering  <meyering@ascend.com>
89096
89097         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89098         gross kludge.
89099         * m4/inttypes_h.m4: Likewise.
89100         * m4/lstat.m4: Likewise.
89101         * m4/malloc.m4: Likewise.
89102         * m4/readdir.m4: Likewise.
89103         * m4/realloc.m4: Likewise.
89104         * m4/st_dm_mode.m4: Likewise.
89105         * m4/stat.m4: Likewise.
89106         * m4/utimbuf.m4: Likewise.
89107         * m4/utimes.m4: Likewise.
89108
89109         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89110         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89111         comments in config.h.in are meaningful.
89112
89113         * m4/jm-macros.m4: Require autoconf-2.13 here.
89114
89115         * m4/regex.m4: By default, don't use the included regex.c on systems
89116         with glibc 2.  Suggestion from Uli Drepper.
89117
89118 1999-01-02  Jim Meyering  <meyering@ascend.com>
89119
89120         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89121
89122 1998-12-18  Jim Meyering  <meyering@ascend.com>
89123
89124         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89125         Based on a suggestion from Lars Hecking.
89126
89127 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89128
89129         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89130
89131 1998-11-16  Jim Meyering  <meyering@ascend.com>
89132
89133         * m4/lfs.m4: Double-quote the `uname...` expression.
89134
89135 1998-11-14  Jim Meyering  <meyering@ascend.com>
89136
89137         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89138         * m4/stat.m4: Likewise.
89139
89140 1998-11-03  Jim Meyering  <meyering@ascend.com>
89141
89142         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89143         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89144
89145 1998-10-18  Jim Meyering  <meyering@ascend.com>
89146
89147         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89148
89149 1998-10-17  Jim Meyering  <meyering@ascend.com>
89150
89151         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89152         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89153         calls for those previously hard-coded headers.  Instead, take a new
89154         parameter.
89155         (jm_CHECK_DECLARATIONS): Reflect interface change.
89156         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89157         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89158
89159         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89160
89161 1998-10-14  Jim Meyering  <meyering@ascend.com>
89162
89163         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89164         instead of "TZ=America/Vancouver".  From Paul Eggert.
89165
89166 1998-10-11  Jim Meyering  <meyering@ascend.com>
89167
89168         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89169         This adds a test for a recently added compatibility fix for mktime.c.
89170         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89171
89172 1998-09-27  Jim Meyering  <meyering@ascend.com>
89173
89174         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89175
89176         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89177         ../configure.in, including a change from Gordon Matzigkeit to allow
89178         cross-compiling for the Hurd.
89179
89180         * m4/glibc.m4: New file/macro to test for the GNU C Library
89181         versions 1 and 2.  From Gordon Matzigkeit.
89182         Indent.
89183
89184 1998-09-21  Jim Meyering  <meyering@ascend.com>
89185
89186         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89187
89188 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89189
89190         Port nanosecond-resolution times to UnixWare 2.1.2 and
89191         pedantic Solaris 2.6.
89192
89193         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89194         AC_STRUCT_ST_MTIM.
89195         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89196         Generate name of ns member, instead of just 1 or undef.
89197         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89198
89199 1998-08-15  Jim Meyering  <meyering@ascend.com>
89200
89201         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89202         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89203         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89204         instead of jm_TYPE_SSIZE_T.
89205
89206 1998-08-12  Jim Meyering  <meyering@ascend.com>
89207
89208         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89209
89210 1998-08-02  Jim Meyering  <meyering@ascend.com>
89211
89212         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89213         in acconfig.h manually.
89214
89215 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89216
89217         * m4/st_mtim.m4: New file.
89218
89219 1998-07-28  Jim Meyering  <meyering@ascend.com>
89220
89221         * m4/utimes.m4: Undef stat.
89222
89223 1998-07-25  Jim Meyering  <meyering@ascend.com>
89224
89225         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89226         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89227
89228 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89229
89230         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89231         uid and gid actually remain unchanged.
89232
89233 1998-07-07  Jim Meyering  <meyering@ascend.com>
89234
89235         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89236
89237 1998-07-04  Jim Meyering  <meyering@ascend.com>
89238
89239         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89240         to prove that this macro can be used in packages without regex.c.
89241
89242 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89243
89244         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89245         is to be used.
89246
89247 1998-07-03  Jim Meyering  <meyering@ascend.com>
89248
89249         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89250
89251         * m4/gettext.m4: New file -- from gettext-0.10.35.
89252         * m4/lcmessage.m4: Likewise.
89253         * m4/progtest.m4: Likewise.
89254
89255         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89256         * m4/jm-macros.m4: Require the new macro.
89257
89258 1998-06-29  Jim Meyering  <meyering@ascend.com>
89259
89260         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89261         for the definition of NGROUPS (used in a system header included
89262         by sys/mount.h).
89263
89264 1998-06-28  Jim Meyering  <meyering@ascend.com>
89265
89266         * m4/ls-mntd-fs.m4: New file.
89267         * m4/fstypename.m4: New file.
89268
89269         * m4/jm-macros.m4: Require the new macro.
89270         * m4/jm-glibc-io.m4: New file.
89271
89272 1998-05-19  Jim Meyering  <meyering@ascend.com>
89273
89274         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89275         * m4/lchown.m4: New file.
89276
89277         * m4/Makefile.am.in: New file.
89278         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89279
89280 1998-05-14  Jim Meyering  <meyering@ascend.com>
89281
89282         * m4/Makefile.am (EXTRA_DIST): Add them.
89283         * m4/jm-macros.m4: New file.
89284         * m4/utimbuf.m4: New file.
89285
89286 1998-05-12  Jim Meyering  <meyering@ascend.com>
89287
89288         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89289
89290 1998-05-11  Jim Meyering  <meyering@ascend.com>
89291
89292         * m4/isc-posix.m4: New file.
89293
89294 1998-05-10  Jim Meyering  <meyering@ascend.com>
89295
89296         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89297
89298 1998-05-09  Jim Meyering  <meyering@ascend.com>
89299
89300         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89301         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89302         with automake.
89303
89304         * m4/ssize_t.m4: New file.
89305         * m4/mktime.m4: Remove file -- the new automake has this now.
89306
89307 1998-04-26  Jim Meyering  <meyering@ascend.com>
89308
89309         * m4/assert.m4: New file.
89310         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89311
89312 1998-04-05  Jim Meyering  <meyering@ascend.com>
89313
89314         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89315         (jm_PREREQ): Use it here.
89316
89317 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89318
89319         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89320         in acconfig.h.
89321
89322 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89323
89324         * m4/prereq.m4: New file.
89325         * m4/error.m4: New file.
89326         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89327
89328 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89329
89330         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89331         cache-check for the same variable -- that defeated the purpose of
89332         the test; the test program was never run.  This was a problem only
89333         on systems with losing getline functions -- HP-UX 10.20 is one.
89334         Reported by Bjorn Helgaas.
89335
89336 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89337
89338         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89339
89340 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89341
89342         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89343
89344         * m4/const.m4: New file.  Use an initializer in this declaration
89345         typedef int charset[2]; const charset x;
89346         Reported by Bob Glickstein.
89347
89348 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89349
89350         * m4/chown.m4: Fix reversed types on -1 args to chown.
89351         From Kaveh Ghazi.
89352
89353 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89354
89355         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89356         Add lseek and memchr.
89357
89358         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89359         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89360         have a 20-character limit on names.
89361
89362 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89363
89364         * m4/inttypes_h.m4: New file.
89365         * m4/uintmax_t.m4: New file.
89366         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89367
89368
89369         -----
89370
89371         Local Variables:
89372         coding: utf-8
89373         End:
89374
89375         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89376
89377         Copying and distribution of this file, with or without
89378         modification, are permitted provided the copyright notice
89379         and this notice are preserved.